@extends('layouts.app') @section('title', 'Preview Import') @section('content')

Preview Import

Review the data before confirming the import.

File: {{ $filename }}

Data Preview

Showing the first {{ count($previewData) }} rows
@if(count($columns) > 0) @endif
@foreach($columns as $column) @endforeach @if(count($previewData) > 0) @foreach($previewData as $row) @foreach($columns as $column) @endforeach @endforeach @else @endif
{{ $column }}
@if(isset($row[$column])) {{ $row[$column] === '' ? '(empty)' : $row[$column] }} @else Column not found @endif
No data found
@if(count($previewData) === 0)

No data found

No data could be extracted from the file using the selected columns.

Possible reasons:

  • The selected columns don't exist in the file
  • The columns exist but don't contain any data
  • If using column names, ensure they match exactly with the first row of your Excel file
  • If using column letters, ensure they are valid (A, B, C, etc.)
@endif
Back
@csrf

What happens next?

@endsection