{{$invoice->client->name}}
TRIPS DETAILS FOR INVOICE NO.:{{$invoice->invoice_number}} OF {{\Carbon\Carbon::parse($invoice->date)->toFormattedDateString()}}

{{--*/ $total_amount = 0 /*--}} {{--*/ $total_quantity = 0 /*--}} {{--*/ $quantity = 0 /*--}} @foreach($invoice_item_loading_order_destinations as $index=>$destination) @foreach($destination as $index_1=> $invoice_item_route_destination) @if($invoice_item_route_destination->rate_setup == 'TRIP') {{--*/ $total_quantity += $invoice_item_route_destination->route_count /*--}} {{--*/ $quantity = $invoice_item_route_destination->route_count /*--}} {{--*/ $rate = $invoice_item_route_destination->rate /*--}} {{--*/ $total_amount_per_trip = $invoice_item_route_destination->rate /*--}} {{--*/ $total_amount += $total_amount_per_trip /*--}} @elseif($invoice_item_route_destination->rate_setup == 'MT') {{--*/ $total_quantity += $invoice_item_route_destination->tonnage /*--}} {{--*/ $quantity = $invoice_item_route_destination->tonnage /*--}} {{--*/ $rate = $invoice_item_route_destination->rate /*--}} {{--*/ $total_amount_per_trip = $invoice_item_route_destination->rate*$invoice_item_route_destination->loading_tonnage /*--}} {{--*/ $total_amount += $total_amount_per_trip /*--}} @else {{--*/ $total_quantity += $invoice_item_route_destination->tonnage /*--}} {{--*/ $quantity = $invoice_item_route_destination->tonnage /*--}} {{--*/ $rate = 0 /*--}} {{--*/ $total_amount_per_trip = $invoice_item_route_destination->amount*$invoice_item_route_destination->route_count /*--}} {{--*/ $total_amount += $total_amount_per_trip /*--}} @endif {{----}} @endforeach @endforeach {{----}}
S/N LOADING TRUCK & TRAILER CONTAINER DN TRIPS RATE {{$invoice->currency}} AMOUNT
DATE NUMBER NUMBER NUMBER FROM TO COMMODITY MT/TRIP PER MT/TRIP $
{{++$index}} {{\Carbon\Carbon::parse($invoice_item_route_destination->date)->toFormattedDateString()}} {{$invoice_item_route_destination->truck}} / {{ $invoice_item_route_destination->trailer}} {{$invoice_item_route_destination->container}} {{$invoice_item_route_destination->file_number}} {{$invoice_item_route_destination->loading_city}} {{$invoice_item_route_destination->destination}} {{$invoice_item_route_destination->product }}{{number_format($quantity,2)}}{{$invoice_item_route_destination->loading_tonnage }} {{number_format($rate,3)}} {{number_format($total_amount_per_trip,2)}}
TOTAL{{number_format($total_quantity)}}{{number_format($total_tonnage, 3)}} {{number_format($total_amount,2)}}