{{--*/ $total_loss = 0 /*--}} {{--*/ $total_recovery = 0 /*--}} {{--*/ $total_balance = 0 /*--}} {{--*/ $i = 1 /*--}} @foreach($employee_transactions as $index=>$employee_transaction) @if(($employee_transaction->loss !=0) OR ($employee_transaction->recovery!=0)) {{--*/ $t_loss = $employee_transaction->loss /*--}} {{--*/ $total_loss += $employee_transaction->last_trip_loss /*--}} {{--*/ $total_recovery += $employee_transaction->last_trip_recovery /*--}} {{--*/ $total_balance += $employee_transaction->last_trip_loss-$employee_transaction->last_trip_recovery /*--}} {{--*/ $i++ /*--}} @endif @endforeach
S/N Driver Loss Recovery balance
{{$i}}{{ucfirst($employee_transaction->employee_name) . " " . ucfirst($employee_transaction->middle_name) . " " . ucfirst($employee_transaction->last_name)}} {{number_format($employee_transaction->last_trip_loss)}} {{number_format($employee_transaction->last_trip_recovery)}} {{number_format($employee_transaction->last_trip_loss-$employee_transaction->last_trip_recovery)}}
TOTAL {{number_format($total_loss)}} {{number_format($total_recovery)}} {{number_format($total_balance)}}