{{--*/ $total_loss_amount = 0 /*--}} {{--*/ $i = 1 /*--}} @foreach($driver_trip_loses as $index=>$driver_trip_loss) {{-- --}} {{--*/ $total_loss_amount += $driver_trip_loss->transit_loss_rate*$driver_trip_loss->driver_loss /*--}} {{--*/ $i++ /*--}} @endforeach
S/N Loading Order Allocation # Allocation Date Offloading Date Closed Date Driver Truck Client Destination Quantity Loss Loss Rate Amount (TSH)
{{$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->driver_loss}} {{number_format($driver_trip_loss->transit_loss_rate)}}{{$driver_trip_loss->product}}{{number_format( $driver_trip_loss->transit_loss_rate*$driver_trip_loss->driver_loss)}}
TOTAL {{number_format($total_loss_amount)}}