{{$invoice->client->name}}
TRIPS DETAILS FOR @if($invoice->valueAddedTax->is_taxed == 1) TAX @else   @endif INVOICE NO.: {{$invoice->invoice_number}} OF {{\Carbon\Carbon::parse($invoice->date)->toFormattedDateString()}}

{{--*/ $total_amount = 0 /*--}} {{--*/ $total_quantity = 0 /*--}} {{--*/ $i = 1 /*--}} @foreach($invoice_item_loading_order_destinations as $index=>$destination) @foreach($destination as $index_1=> $invoice_item_route_destination) {{--*/ $total_amount_per_trip = $invoice_item_route_destination->obs_volume*$invoice_item_route_destination->vc_factor /*--}} {{--*/ $rate = ($invoice_item_route_destination->rate_setup == 'LITER') ? $invoice_item_route_destination->rate : $invoice_item_route_destination->rate/1000 /*--}} {{--*/ $amount = $rate*$total_amount_per_trip /*--}} {{--*/ $total_quantity += $total_amount_per_trip /*--}} {{--*/ $total_amount += $amount /*--}} {{--*/ $i++ /*--}} @endforeach @endforeach @if($invoice->valueAddedTax->is_taxed == 1)   {{--*/ $total_tax = $total_amount*$invoice->valueAddedTax->rate_in_percent*0.01 /*--}} @else @endif
S/N LOADING TRUCK & TRAILER DN TRIPS LOADING RATE {{($invoice->currency == 'USD') ? 'US $' : 'TSH'}} AMOUNT
DATE NUMBER NUMBER FROM TO COMMODITY QTY {{($invoice->currency == 'USD') ? '$' : 'TSH'}}
{{$i}} {{\Carbon\Carbon::parse($invoice_item_route_destination->date)->toFormattedDateString()}} {{$invoice_item_route_destination->truck}} / {{ $invoice_item_route_destination->trailer}} {{$invoice_item_route_destination->file_number}} {{$invoice_item_route_destination->loading_city}} {{$invoice_item_route_destination->destination}} {{$invoice_item_route_destination->product }} {{number_format($total_amount_per_trip,2)}} {{number_format($rate,3)}}/{{$invoice_item_route_destination->rate_setup}} {{number_format($amount,2)}}
TOTAL {{number_format($total_quantity,2)}} {{number_format(ROUND($total_amount))}}
TOTAL VAT ( {{$invoice->valueAddedTax->rate_in_percent}}% ) {{number_format(ROUND($total_tax))}}
OVAL TOTAL {{number_format(ROUND($total_amount+$total_tax))}}
TOTAL {{number_format($total_quantity,2)}} {{number_format(ROUND($total_amount))}}