@extends('backend.layout.master-tailwind') @section('title', __('Import Countries')) @section('content')

{{ __('Import Countries') }}

{{ __('Bulk-import countries from a CSV file.') }}

@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- Step indicator --}}
1 {{ __('Upload CSV') }}
2 {{ __('Map Columns') }}
@if(empty($import_data)) {{-- Step 1: Upload --}}
{{ __('Upload CSV file') }}
@csrf
{{ __('CSV file') }}
{{ __('Only .csv files. Columns separated by commas.') }}
{{ __('The CSV must have a header row. Country names go in a single column. Duplicate entries are skipped automatically.') }}
@else {{-- Step 2: Map columns --}} @php $csvHeaders = current($import_data); @endphp
{{ __('Map CSV columns') }}
@csrf
{{ __('Country name') }}
{{ __('Which CSV column contains the country name?') }}
{{ __('Import status') }}
{{ __('Status applied to all imported countries.') }}
{{ __('← Start over') }}
@endif
@endsection @section('script') @endsection