{{$title}}

{{--*/ $total_amounts = [] /*--}} @foreach($suppliers as $supplier) {{--*/ $total_amounts[] = $supplier->vendor_id /*--}} @endforeach @foreach($trip_fuel_assignment as $item) @foreach($suppliers as $supplier) {{--*/ $total_amounts[$supplier->vendor_id][] =$item->getFuelPurchased($supplier->vendor_id) /*--}} @endforeach @endforeach @foreach($suppliers as $supplier) @endforeach
LOI Date Truck Trailer Cargo Type Loading City Destination Budgeted Requested{{$supplier->supplier}}Variance
{{$item->loading_order_item_id}} {{$item->allocation_date}} {{$item->truck}} {{$item->trailer}} {{$item->cargo_type}} {{$item->loading_city}} {{$item->destination}} {{number_format($item->quantity)}} {{number_format($item->requested)}}{{number_format($item->getFuelPurchased($supplier->vendor_id))}}{{number_format($item->quantity-$item->received)}}
Total Quantity{{number_format(array_sum($total_amounts[$supplier->vendor_id]))}}