@extends('layouts.app') @section('title','Import Preview #'.$batch->id) @section('content')

Import preview #{{ $batch->id }}

{{ str($batch->import_type)->replace('_',' ')->title() }}

{{ $batch->original_filename }} · {{ $batch->total_rows }} data rows

Import center

Total

{{ $batch->total_rows }}

Valid

{{ $batch->valid_rows }}

Invalid

{{ $batch->invalid_rows }}

Status

{{ str($batch->status)->replace('_',' ')->title() }}

@if($batch->status==='ready')
@csrf
All rows passed validation

Commit runs in one transaction; any runtime failure rolls back the entire batch.

@elseif($batch->status==='validation_failed')
Commit blocked

Correct every listed row and upload a new file. No partial import is available.

@endif

Row validation

Normalized values and exact row errors.

@foreach($batch->headers??[] as $header)@endforeach@foreach($batch->preview_rows??[] as $item)@foreach($batch->headers??[] as $header)@endforeach@endforeach
Row{{ str($header)->replace('_',' ')->title() }}Errors
{{ $item['row'] }}{{ $item['data'][$header]??'—' }}@if($item['errors'])
    @foreach($item['errors'] as $error)
  • {{ $error }}
  • @endforeach
@elseValid@endif
@endsection