{{ __('Retase - Manual Trip Count') }}

Total Driver
{{ $drivers->count() }}
Driver Aktif
{{ $drivers->where('status', 'active')->count() }}
Pending Update
{{ $drivers->filter(function($driver) { return !$driver->latestManualTripCount; })->count() }}
Total Trip Hari Ini
{{ $drivers->sum(function($driver) { return $driver->latestManualTripCount && $driver->latestManualTripCount->date == today() ? $driver->latestManualTripCount->completed_trips : 0; }) }}

Data Retase Driver

Kelola data manual trip count untuk semua driver

@forelse($drivers as $driver) @empty @endforelse
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

Belum ada driver

Tambahkan driver terlebih dahulu untuk mengelola retase

Tambah Driver
@push('styles') @endpush