{{ __('Import Contacts') }}

@if (session()->has('error'))
{{ session('error') }}
@endif @if($importComplete) {{-- Import results --}}

{{ __('Import Complete') }}

{{ $importedCount }} {{ __('contacts imported') }}, {{ $skippedCount }} {{ __('skipped (duplicates or invalid)') }}

@elseif(!$hasPreview) {{-- File upload --}}

{{ __('CSV or TXT file, max 10MB') }}

{{ __('Processing file...') }}
@error('csvFile')

{{ $message }}

@enderror
@else {{-- Preview & Field Mapping --}}

{{ number_format($totalRows) }} {{ __('rows found in CSV.') }} {{ __('Preview of first') }} {{ min(5, count($previewRows)) }} {{ __('rows below.') }}

{{-- Field Mapping --}}

{{ __('Map CSV Columns') }}

@foreach($csvHeaders as $index => $header)
{{ $header }}
@endforeach
{{-- Preview Table --}}

{{ __('Preview') }}

@foreach($csvHeaders as $header) @endforeach @foreach($previewRows as $row) @foreach($row as $cell) @endforeach @endforeach
{{ $header }}
{{ $cell }}
{{-- Actions --}}
@endif