{{--*/ $total_loss = 0 /*--}} {{--*/ $total_recovery = 0 /*--}} {{--*/ $total_balance = 0 /*--}} @foreach($view_driver_last_trip_loss_recoveries as $view_driver_last_trip_loss_recovery) {{--*/ $total_loss += $view_driver_last_trip_loss_recovery->driver_loss_amount /*--}} {{--*/ $total_recovery += $view_driver_last_trip_loss_recovery->recovery_amount /*--}} {{--*/ $total_balance += $view_driver_last_trip_loss_recovery->driver_loss_amount-$view_driver_last_trip_loss_recovery->recovery_amount /*--}} @endforeach
# Date Driver Loss Recovery Balance %
{{$view_driver_last_trip_loss_recovery->id}} {{$view_driver_last_trip_loss_recovery->date}} {{$view_driver_last_trip_loss_recovery->driver}} {{number_format($view_driver_last_trip_loss_recovery->driver_loss_amount)}} {{number_format($view_driver_last_trip_loss_recovery->recovery_amount)}} {{number_format($view_driver_last_trip_loss_recovery->driver_loss_amount-$view_driver_last_trip_loss_recovery->recovery_amount)}} {{number_format($view_driver_last_trip_loss_recovery->percent)}}
TOTAL {{number_format($total_loss)}} {{number_format($total_recovery)}} {{number_format($total_balance)}} {{number_format(($total_recovery/$total_loss)*100)}}