{{-- --}} {{-- --}} {{--*/ $total_loss = 0 /*--}} {{--*/ $total_loss_amount = 0 /*--}} {{--*/ $i = 1 /*--}} @foreach($driver_trip_losses as $index=>$driver_trip_loss) {{-- --}} {{-- --}} {{--*/ $total_loss += $driver_trip_loss->driver_loss /*--}} {{--*/ $total_loss_amount += $driver_trip_loss->driver_loss_amount /*--}} {{--*/ $i++ /*--}} @endforeach
S/N Loading OrderAllocation #Allocation Date Offloading DateClosed DateDriver Truck Client Destination Allowable Loss(%) Allowable Loss(Qnty) Gross Loss Actual Loss Loss Amount
{{$i}} {{$driver_trip_loss->loading_order_id}}{{$driver_trip_loss->loading_order_item_id}}{{\Carbon\Carbon::parse($driver_trip_loss->loading_date)->format('d-m-Y')}} {{\Carbon\Carbon::parse($driver_trip_loss->offload_date)->format('d-m-Y')}}{{\Carbon\Carbon::parse($driver_trip_loss->closed_date)->format('d-m-Y')}}{{$driver_trip_loss->driver}} {{$driver_trip_loss->truck}} {{$driver_trip_loss->client_code}} {{$driver_trip_loss->destination}} {{$driver_trip_loss->allowable_transit_loss_percent}} {{$driver_trip_loss->allowable_loss}} {{number_format($driver_trip_loss->different_quantity)}} {{$driver_trip_loss->driver_loss}} {{$driver_trip_loss->driver_loss_amount}}
TOTAL {{number_format($total_loss)}} {{number_format($total_loss_amount)}}