{{ session('success') }}
@endif
| Agent | Contact | Vehicle | Bank Details | Status | Actions |
|---|---|---|---|---|---|
|
@if($agent->user->profile_photo_path)
{{ 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' }} | |
| No delivery agents found. | |||||