{{--*/ $total_loss_amount = 0 /*--}} {{--*/ $i = 1 /*--}} @foreach($loading_order_destinations as $index=>$loading_order_destination) {{----}} {{--*/ $total_loss_amount += $loading_order_destination->transit_loss_rate*$loading_order_destination->driver_loss /*--}} {{--*/ $i++ /*--}} @endforeach {{----}} {{----}}
S/N Driver Name Truck Loading Offloading Destination Quantity Loss Loss Rate Product Amount(TSH)
{{$i}} {{$loading_order_destination->driver}} {{$loading_order_destination->truck}} {{$loading_order_destination->loading_date}} {{$loading_order_destination->offload_date}} {{$loading_order_destination->client_code}}/{{$loading_order_destination->destination}} {{$loading_order_destination->driver_loss}} @if($loading_order_destination->driver_bonus_amount){{number_format($loading_order_destination->driver_bonus_amount)}} @endif{{number_format($loading_order_destination->transit_loss_rate)}} {{$loading_order_destination->product}}{{number_format( $loading_order_destination->transit_loss_rate*$loading_order_destination->driver_loss)}}
TOTAL{{number_format($total_bonus_amount)}}{{number_format($total_loss_amount)}}