{{ __('Dashboard') }}

Total Truk

{{ $truckCount }}

Total Driver

{{ $driverCount }}

Proyek Aktif

{{ $upcomingProjects->count() }}

Trip Bulan Ini

{{ $activeTrips }}

Ringkasan Keuangan Bulan Ini

Pendapatan

Rp {{ number_format($currentMonthIncome, 0, ',', '.') }}

Pengeluaran

Rp {{ number_format($currentMonthExpense, 0, ',', '.') }}

Profit/Loss

Rp {{ number_format($currentMonthIncome - $currentMonthExpense, 0, ',', '.') }}

Informasi BBM dan Retase Bulan Ini

Pemakaian BBM Teratas

@if($topFuelConsumption->count() > 0)
@foreach($topFuelConsumption as $truck) @endforeach
Truk Plat Nomor Total BBM (Liter)
{{ $truck->brand }} {{ $truck->model }} {{ $truck->plate_number }} {{ number_format($truck->total_fuel, 0) }}
@else

Tidak ada data pemakaian BBM bulan ini.

@endif

Retase Teratas

@if($topTrips->count() > 0)
@foreach($topTrips as $truck) @endforeach
Truk Plat Nomor Jumlah Trip Total Jarak (km)
{{ $truck->brand }} {{ $truck->model }} {{ $truck->plate_number }} {{ $truck->trip_count }} {{ number_format($truck->total_distance, 0) }}
@else

Tidak ada data retase bulan ini.

@endif

Proyek dengan Deadline Terdekat

@if($upcomingProjects->count() > 0)
@foreach($upcomingProjects as $project) @endforeach
Proyek Klien Deadline Status
{{ $project->name }} {{ $project->client->name ?? 'N/A' }} {{ $project->end_date->format('d/m/Y') }} {{ $project->status }}
@else

Tidak ada proyek aktif dengan deadline terdekat.

@endif

Dokumen yang Perlu Diperbarui

STNK yang Perlu Diperbarui
@if($trucksWithStnkIssues->count() > 0)
@foreach($trucksWithStnkIssues as $truck) @php $stnkStatus = $truck->stnk_status; @endphp @endforeach
Plat Nomor Nomor STNK Tanggal Expired Status
{{ $truck->plate_number }} {{ $truck->stnk_number }} {{ $truck->stnk_expire_date->format('d/m/Y') }} {{ $stnkStatus['status'] == 'overdue' ? 'Expired '.abs($stnkStatus['days']).' hari' : 'Expires dalam '.$stnkStatus['days'].' hari' }}
@else

Tidak ada STNK yang perlu diperbarui dalam 30 hari ke depan.

@endif
KIR yang Perlu Diperbarui
@if($trucksWithKirIssues->count() > 0)
@foreach($trucksWithKirIssues as $truck) @php $kirStatus = $truck->kir_status; @endphp @endforeach
Plat Nomor Nomor KIR Tanggal Expired Status
{{ $truck->plate_number }} {{ $truck->kir_number }} {{ $truck->kir_expire_date->format('d/m/Y') }} {{ $kirStatus['status'] == 'overdue' ? 'Expired '.abs($kirStatus['days']).' hari' : 'Expires dalam '.$kirStatus['days'].' hari' }}
@else

Tidak ada KIR yang perlu diperbarui dalam 30 hari ke depan.

@endif

Klien Teratas

@if($topClients->count() > 0)
@foreach($topClients as $client) @endforeach
Klien Jumlah Proyek Total Nilai
{{ $client->name }} {{ $client->projects_count }} Rp {{ number_format($client->total_budget, 0, ',', '.') }}
@else

Tidak ada data klien.

@endif

Trip Terbaru

@if($recentTrips->count() > 0)
@foreach($recentTrips as $trip) @endforeach
Tanggal Truk Driver Proyek
{{ $trip->start_date->format('d/m/Y') }} {{ $trip->truck->plate_number }} {{ $trip->driver->name }} {{ $trip->project->name ?? 'N/A' }}
@else

Tidak ada data trip terbaru.

@endif
@push('scripts') @endpush