Kelola data manual trip count untuk semua driver
| Driver | Truck | Status | Trip Terakhir | Retase Terbaru | Aksi |
|---|---|---|---|---|---|
|
{{ strtoupper(substr($driver->name, 0, 2)) }}
{{ $driver->name }}
{{ $driver->phone ?? 'No phone' }}
|
@if($driver->truck)
{{ $driver->truck->plate_number }}
@else
No Truck
@endif
|
{{ ucfirst($driver->status) }} |
@if($driver->latestManualTripCount)
{{ $driver->latestManualTripCount->completed_trips }}
selesai
@if($driver->latestManualTripCount->ongoing_trips > 0)
+ {{ $driver->latestManualTripCount->ongoing_trips }} ongoing
@endif
{{ $driver->latestManualTripCount->date->format('d M Y') }}
@else
Belum ada data
@endif
|
@if($driver->latestManualTripCount) @if($driver->latestManualTripCount->date->isToday()) Hari ini @else {{ $driver->latestManualTripCount->date->diffForHumans() }} @endif @else Perlu update @endif | |