{{ $title }}
Dashboard

Vehicle Earnings Dashboard - {{ $dashboardData['month'] }}

Total Earnings

฿{{ number_format($dashboardData['total_earnings'], 2) }}

@php $monthly_avg = number_format($dashboardData['average_per_vehicle'], 2); @endphp
Avg per Vehicle {{ $dashboardData['total_vehicles'] }} vehicles

฿{{ $monthly_avg }}

Total Trips

{{ array_sum(array_column($dashboardData['vehicle_earnings'], 'trip_count')) }}

Vehicle Earnings with Average Line
Monthly Avg: ฿{{ number_format($dashboardData['average_per_vehicle'], 2) }}
Earnings Distribution
@php $dailyCount = count($dashboardData['daily_earnings']); $dailyAvg = $dailyCount > 0 ? $dashboardData['total_earnings'] / $dailyCount : 0; @endphp
Daily Earnings Trend with Average
Daily Avg: ฿{{ number_format($dailyAvg, 2) }}