{{----}} {{----}} @foreach($trip_expenses as $account) @endforeach {{--*/ $total_diesel = 0 /*--}} @foreach($loading_order_items as $index=>$loading_order_item) @foreach($trip_expenses as $account) {{--*/ $total[$account->account_id][] = $loading_order_item->getPaidAmount($account->account_id,$account->direction) /*--}} @endforeach @endforeach @foreach($trip_expenses as $account) @endforeach
# Loading Date VehiclesDriverLoading Point DestinationDiesel (Litres){{$account->account}}
{{++$index}}/{{$loading_order_item->id}} {{\Carbon\Carbon::parse($loading_order_item->date)->toFormattedDateString()}} {{$loading_order_item->loadingOrderVehicle->vehicle->registration_number}} ({{$loading_order_item->cargo_type}}) {{strtoupper($loading_order_item->loading_point)}} {{strtoupper($loading_order_item->destination)}}{{number_format($loading_order_item->getPaidAmount($account->account_id,$account->direction))}}
Total{{number_format(array_sum($total[$account->account_id]))}}