@foreach( $requested_accounts as $requested_account) @endforeach {{--*/ $total_tsh = 0 /*--}} {{--*/ $total_usd = 0 /*--}} @foreach($cash_requisition_item_descriptions as $index=>$route_assignment) {{--*/ $loading_order_item = $route_assignment->loadingOrderItem /*--}} {{--*/ $vehicle_id = $loading_order_item->vehicle_id /*--}} @foreach($requested_accounts as $requested_account) @endforeach @endforeach
S/N Truck Driver Client Destination Description
{{ $requested_account->name }}
{!! ++$index !!} {{$loading_order_item->loadingOrderVehicle->vehicle->registration_number}} {{$loading_order_item->loadingOrderVehicle->driver->full_name}} {{$loading_order_item->LoadingOrder->client->code}} {{$loading_order_item->loadingOrderDestination->city->name}}
{{$route_assignment->getCurrency($requested_account->account->id)}}
@if($route_assignment->getCurrency($requested_account->account->id) == 'USD') {{--*/ $total_usd += $route_assignment->getAmount($requested_account->account->id) /*--}} @else {{--*/ $total_tsh += \App\Logistics\Facades\Logistics::currencyConvert($route_assignment->getAmount($requested_account->account->id), 'TSH', '2250') /*--}} @endif
TOTAL IN