Import Data

Upload CSV files whose headers follow the table.field pattern (e.g., products.brand_id).

Latest Result

Results for the most recent upload attempt.

@if($summary) @endif
@if($summary)
Table
{{ $summary['table'] }}
Processed Rows
{{ $summary['processed_rows'] }}
Imported Rows
{{ $summary['inserted_rows'] }}
Errors
{{ count($summary['errors']) }}

Columns

@foreach($summary['columns'] as $column) {{ $column }} @endforeach
@if(! empty($summary['errors']))

Issues detected

    @foreach($summary['errors'] as $error)
  • Row {{ $error['row'] ?? '?' }} — {{ $error['message'] }}
  • @endforeach
@else

All rows imported successfully.

@endif @else

Use the Import CSV button to upload a data set. Each header must reference an existing table and field. Example header row:

{{ implode(', ', $exampleHeaders) }}
@endif
@if($showModal)

Upload CSV

Map data into the database using table.field headers.

@error('csv')

{{ $message }}

@enderror

Quick checklist

  • Headers must match real columns (e.g., products.brand_id).
  • Only one table per file is supported.
  • Dates accept ISO format (YYYY-MM-DD), booleans accept yes/no or true/false.
@endif