@extends('layouts.app') @section('content')

{{ __('Bulk City Imports') }}

{{ __('Step 1') }}

{{ __('Download JSON Template') }}
  • {{ __('Download the JSON Template if you don\'t have one.') }}
  • {{ __('Use any JSON or text editor to edit the template.') }}

{{ __('Step 2') }}

{{ __('Ensure Correct Data Format') }}
  • {{ __('The JSON file must include a valid "country" name that exists in the database.') }}
  • {{ __('Only one country can be imported at a time.') }}
  • {{ __('Cities should be listed under the "cities" array.') }}
  • {{ __('City names can be freely defined.') }}
{
    "country": "Bangladesh",
    "cities": [
        "Dhaka",
        "Rajshahi",
        "Sylhet"
    ]
}
                                        

{{ __('Step 3') }}

{{ __('Upload and Import JSON File') }}
  • {{ __('Upload your JSON file (.json format).') }}
  • {{ __('Click Import to process the data and add new cities.') }}
@hasPermission('admin.city.import')

{{ __('Select JSON File to Import') }}

Warning: This will erase existing cities for the country.
@csrf
{{ __('Drop file here or click to upload') }}
@error('file')

{{ $message }}

@enderror
@endhasPermission
@endsection @push('scripts') @endpush