{{-- resources/views/admin/bulk-imports/index.blade.php --}} @extends('layouts.app') @section('title', 'Bulk Imports') @section('content')
Manage CSV imports and track their progress
| File | Type | Status | Progress | Results | Date | Actions |
|---|---|---|---|---|---|---|
|
{{ $import->original_filename }}
{{ number_format($import->file_size / 1024, 1) }} KB
|
{{ ucfirst(str_replace('_', ' ', $import->import_type)) }} | @php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'processing' => 'bg-blue-100 text-blue-800', 'completed' => 'bg-green-100 text-green-800', 'failed' => 'bg-red-100 text-red-800' ]; @endphp {{ ucfirst($import->status) }} |
{{ $import->processed_rows }}/{{ $import->total_rows }} rows
|
@if($import->status === 'completed')
✓ {{ $import->successful_rows }} successful
@if($import->failed_rows > 0)
✗ {{ $import->failed_rows }} failed
@endif
@elseif($import->status === 'failed')
Import failed
@else
In progress...
@endif
|
{{ $import->created_at->format('M j, Y g:i A') }} | View Details |