Onboarding File Management

Review, process, and manage restaurant onboarding submissions

Total Uploads

{{ \App\Models\BulkImportLog::where('import_type', 'onboarding')->count() }}

All time records

Pending

{{ \App\Models\BulkImportLog::where('import_type', 'onboarding')->where('status', 'pending')->count() }}

Awaiting process

Processing

{{ \App\Models\BulkImportLog::where('import_type', 'onboarding')->where('status', 'processing')->count() }}

In progress

Completed

{{ \App\Models\BulkImportLog::where('import_type', 'onboarding')->whereIn('status', ['completed', 'completed_with_errors'])->count() }}

Successfully done

Failed

{{ \App\Models\BulkImportLog::where('import_type', 'onboarding')->where('status', 'failed')->count() }}

Need attention

@if (session()->has('message'))

Success!

{{ session('message') }}

@endif @if (session()->has('error'))

Error!

{{ session('error') }}

@endif

Search & Filter Options

@forelse($logs as $log) @empty @endforelse
Restaurant / User
File Details
Status
Date
Actions
{{ substr($log->restaurant->name ?? 'N', 0, 1) }}
{{ $log->restaurant->name ?? 'N/A' }}
{{ $log->user->name ?? 'N/A' }}
{{ $log->user->email ?? 'N/A' }}
@php $extension = pathinfo($log->file_name, PATHINFO_EXTENSION); @endphp @if(in_array($extension, ['xlsx', 'xls']))
@else
@endif
{{ Str::limit($log->file_name, 30) }}
{{ number_format($log->file_size / 1024, 2) }} KB
@if($log->status === 'pending') @elseif($log->status === 'processing') @elseif($log->status === 'completed') @elseif($log->status === 'completed_with_errors') @elseif($log->status === 'failed') @endif {{ ucfirst(str_replace('_', ' ', $log->status)) }}
{{ $log->created_at->format('M d, Y') }}
{{ $log->created_at->format('h:i A') }}
@if($log->status === 'pending') @endif @if(in_array($log->status, ['completed', 'completed_with_errors'])) @endif

No Uploads Found

Try adjusting your search or filter criteria

{{ $logs->links() }}
@if($showDetailsModal && $selectedLog)

Upload Details

Complete information about this submission

Restaurant

{{ $selectedLog->restaurant->name ?? 'N/A' }}

Uploaded By

{{ $selectedLog->user->name ?? 'N/A' }}

{{ $selectedLog->user->email ?? 'N/A' }}

File Information

File Name {{ $selectedLog->file_name }}
File Size {{ number_format($selectedLog->file_size / 1024, 2) }} KB
Uploaded {{ $selectedLog->created_at->format('M d, Y h:i A') }}
Status {{ ucfirst(str_replace('_', ' ', $selectedLog->status)) }}
@if($importSummary && isset($importSummary['summary']))

Import Summary

@if(isset($importSummary['summary']['menu_items']))
Menu Items

{{ $importSummary['summary']['menu_items']['success'] }}

{{ $importSummary['summary']['menu_items']['failed'] }} failed

@endif @if(isset($importSummary['summary']['areas']))
Areas

{{ $importSummary['summary']['areas']['success'] }}

{{ $importSummary['summary']['areas']['failed'] }} failed

@endif @if(isset($importSummary['summary']['tables']))
Tables

{{ $importSummary['summary']['tables']['success'] }}

{{ $importSummary['summary']['tables']['failed'] }} failed

@endif
@if(isset($importSummary['errors']) && count($importSummary['errors']) > 0)

Import Errors

    @foreach(array_slice($importSummary['errors'], 0, 10) as $error)
  • {{ $error }}
  • @endforeach @if(count($importSummary['errors']) > 10)
  • ... and {{ count($importSummary['errors']) - 10 }} more errors
  • @endif
@endif
@endif

Additional Notes

{{ $selectedLog->notes ?? 'No additional notes available for this upload.' }}
@endif @if($showModal && $selectedLog)

Update Status

Change the processing status of this upload

@endif
@push('styles') @endpush