Vehicle Management System - Reports

Generated on: {{ now()->format('d M Y h:i A') }}

@php $tRent=0; $tFuel=0; $tProfit=0; @endphp @foreach($exportData as $row) @php $tRent+=$row->rent_amount; $tFuel+=$row->fuel_cost; $tProfit+=$row->profit; @endphp @endforeach
Date Location Vehicle Driver Rent Fuel Profit
{{ $row->date->format('d/m/Y') }} {{ $row->location }} {{ $row->vehicle->vehicle_number ?? '-' }} {{ $row->driver->driver_name ?? '-' }} {{ $row->rent_amount }} {{ $row->fuel_cost }} {{ $row->profit }}
Total: {{ $tRent }} {{ $tFuel }} {{ $tProfit }}