{{-- resources/views/admin/bulk-imports/index.blade.php --}} @extends('layouts.app') @section('title', 'Bulk Imports') @section('content')

Bulk Imports

Manage CSV imports and track their progress

New Import
@if(session('success'))
{{ session('success') }}
@endif

Import History

@if($imports->count() > 0)
@foreach($imports as $import) @endforeach
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->progress_percentage }}%
{{ $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
{{ $imports->links() }}
@else
📁

No imports yet

Get started by importing your first CSV file

Import CSV File
@endif
@endsection