DATE:{{ date('d/m/Y') }}

TRIP EXPENSES SUMMARY
{{$title}}

{{--*/ $budgeted_amount = 0 /*--}} {{--*/ $un_budgeted_amount = 0 /*--}} {{--*/ $total_overall_amount = 0 /*--}} @foreach($route_assignments as $index=> $route_assignment) {{--*/ $total_budgeted_amount = $route_assignment->budgetedAmount('TSH') /*--}} {{--*/ $total_un_budgeted_amount = $route_assignment->unBudgetedAmount('TSH') /*--}} {{--*/ $total_amount = $total_budgeted_amount+$total_un_budgeted_amount /*--}} {{--*/ $budgeted_amount += $total_budgeted_amount /*--}} {{--*/ $un_budgeted_amount += $total_un_budgeted_amount /*--}} {{--*/ $total_overall_amount += $total_budgeted_amount+$total_un_budgeted_amount /*--}} @endforeach
# Date Trip # Truck Client Destination Budgeted Un-Budgeted Total Amount
{{++$index}} {{\Carbon\Carbon::parse($route_assignment->loading_date)->toFormattedDateString()}} {{$route_assignment->route_assignment_id}} {{$route_assignment->truck}} / {{$route_assignment->trailer}} {{$route_assignment->client}} {{$route_assignment->destination}} {{number_format($total_budgeted_amount,2)}} {{number_format($total_un_budgeted_amount,2)}} {{number_format($total_amount,2)}}
TOTAL {{number_format($budgeted_amount,2)}} {{number_format($un_budgeted_amount,2)}} {{number_format($total_overall_amount,2)}}