@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 /*--}} @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)}}