{{++$index}} |
{{$route_assignment->loadingOrderVehicle->vehicle->registration_number}} |
{{--{{$route_assignment->loadingOrderVehicle->driver->full_name}} | --}}
{{$route_assignment->LoadingOrder->client->code}} |
{{$route_assignment->loadingOrderDestination->city->name}} |
@foreach($agent->route_prepaid_expenses as $route_prepaid_expense)
{{\App\Logistics\Facades\Vehicles::getTruckPermitCurrency($route_prepaid_expense->permit_id)}}
@if(\App\Logistics\Facades\Vehicles::getTruckPermitCurrency($route_prepaid_expense->permit_id) == 'USD')
{{--*/ $expenses_usd += \App\Logistics\Facades\Logistics::currencyConvert(\App\Logistics\Facades\Vehicles::getTruckPermitAmount($route_prepaid_expense->permit_id,$vehicle_id), 'USD', '2250','USD') /*--}}
{{--*/ $total_usd += \App\Logistics\Facades\Logistics::currencyConvert(\App\Logistics\Facades\Vehicles::getTruckPermitAmount($route_prepaid_expense->permit_id,$vehicle_id), 'USD', '2250','USD') /*--}}
@else
{{--*/ $expenses_tsh += \App\Logistics\Facades\Vehicles::getTruckPermitAmount($route_prepaid_expense->permit_id,$vehicle_id) /*--}}
{{--*/ $total_tsh +=\App\Logistics\Facades\Vehicles::getTruckPermitAmount($route_prepaid_expense->permit_id,$vehicle_id) /*--}}
@endif
|
@endforeach
@foreach($border_expenses[$agent->border_id] as $border_expense)
@if($route_assignment->getRouteExpense($border_expense['account_id']) > 0)
{{$route_assignment->getRouteExpenseCurrency($border_expense['account_id'])}}
{{--value="{{$border_expense['account_id']}}">--}}
@if($route_assignment->getRouteExpenseCurrency($border_expense['account_id']) == 'USD')
{{--*/ $expenses_usd += \App\Logistics\Facades\Logistics::currencyConvert($route_assignment->getRouteExpense($border_expense['account_id']), 'USD', '2250','USD') /*--}}
{{--*/ $total_usd +=$route_assignment->getRouteExpense($border_expense['account_id']) /*--}}
@else
{{--*/ $expenses_tsh +=$route_assignment->getRouteExpense($border_expense['account_id']) /*--}}
{{--*/ $total_tsh +=$route_assignment->getRouteExpense($border_expense['account_id']) /*--}}
@endif
@else
- NA -
@endif
|
@endforeach
@endif
@endforeach