@vite(['resources/css/app.css', 'resources/js/app.js']) @include('admin.partials.styles') @include('admin.partials.sidebar')

Delivery Agents

@if(session('success'))
{{ session('success') }}
@endif
@forelse($agents as $agent) @empty @endforelse
Agent Contact Vehicle Bank Details Status Actions
@if($agent->user->profile_photo_path) @elseif($agent->profile_image) @else
{{ substr($agent->user->name, 0, 1) }}
@endif @php $isOnline = false; if($agent->user->last_seen_at) { $lastSeen = \Carbon\Carbon::parse($agent->user->last_seen_at); if($lastSeen->diffInMinutes(now()) < 5) { // 5 minutes threshold $isOnline = true; } } @endphp
{{ $agent->user->name }} @if($agent->documents->isNotEmpty()) @endif
ID: #{{ $agent->id }} @if($agent->ratings->isNotEmpty()) {{ $agent->ratings->count() }} Ratings @endif {{ $isOnline ? '• Online' : '• Offline' }}
{{ $agent->phone }}
{{ $agent->user->email }}
@foreach($agent->vehicles as $vehicle)
{{ ucfirst($vehicle->type) }} {{ $vehicle->vehicle_number }}
@endforeach @if($agent->vehicles->isEmpty()) No vehicles @endif
@if($agent->bank_name && $agent->account_number) Filled @else Not Filled @endif {{ $agent->status ? 'Active' : 'Inactive' }}
@csrf
View Details Edit
@csrf @method('DELETE')
No delivery agents found.