{{ __('Import and Preview Excel Data') }}

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- @if($errors->has('duplicates'))
Warning! Some records were duplicates and were not imported.
    @foreach(session('duplicates', []) as $duplicate)
  • SSN: {{ $duplicate['user'] }}
  • @endforeach

Total Skipped Rows: {{ session('skippedRows') }}

@endif --}}
@csrf
{{-- --}}
{{-- @if (isset($data) && !empty($data))

Preview Data

@foreach ($data as $row) @endforeach
First Name Last Name Address City State Zip Country SSN DOB Email Phone Price
{{ $row['first_name'] ?? 'N/A' }} {{ $row['last_name'] ?? 'N/A' }} {{ $row['address'] ?? 'N/A' }} {{ $row['city'] ?? 'N/A' }} {{ $row['state'] ?? 'N/A' }} {{ $row['zip'] ?? 'N/A' }} {{ $row['country'] ?? 'N/A' }} {{ $row['ssn'] ?? 'N/A' }} {{ excelDateToDate($row['dob'] ?? 'N/A') }} {{ $row['email'] ?? 'N/A' }} {{ $row['phone'] ?? 'N/A' }} {{ $row['price'] ?? 'N/A' }}
@elseif(isset($data))

No data found in the file.

@else

Preview Data

First Name Last Name Address City State Zip Country SSN DOB Email Phone Price
@endif --}}
@push('scripts') @endpush