@extends('layouts.superadmin') @section('title', "Import Report #{$import->id}: {$import->filename}") @section('content')

Ingestion Diagnostics & Report

Detailed outcome analysis for batch import #{{ $import->id }} ({{ $import->filename }}).

@if($import->error_rows > 0) Download Error Report (CSV) @endif Back to Ingestion Desk
@php $total = $import->total_rows ?: 1; $successRate = round(($import->valid_rows / $total) * 100, 1); @endphp
Total File Rows {{ number_format($import->total_rows) }}
Committed to Database {{ number_format($import->valid_rows) }}
Rejected / Invalid Rows {{ number_format($import->error_rows) }}
Ingestion Yield {{ $successRate }}%

Row-Level Validation Diagnostics

Exact line numbers and error diagnostics for rejected records.

@if($import->error_rows > 0) Download Filtered Error CSV @endif
@php $errorsList = isset($import->validation_report['errors']) ? $import->validation_report['errors'] : ($import->validation_report ?? []); @endphp
@forelse($errorsList as $err) @empty @endforelse
File Line # Offending Field Provided Input Value Diagnostic Validation Message
Line {{ $err['row'] ?? '—' }} {{ $err['column'] ?? 'General' }} {{ $err['value'] !== '' ? $err['value'] : '«EMPTY»' }} {{ $err['error'] ?? 'Validation failure' }}
Flawless ingestion! Zero validation errors were encountered during processing.
@endsection