S/N | Truck & Trailer | Driver | Allocation | Destination | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Road Toll | {{--Border Fee | --}}Agent Fee | Gate Pass | Bond | Road Permit | Carbon E/Tax | Council Levy | {{--Zabs | --}}|||||
{{++$index}} | {{$route_assignment->truck}} | {{$route_assignment->loadingOrderVehicle->driver->full_name}} | {{$route_assignment->LoadingOrder->client->code}} | {{$route_assignment->loadingOrderDestination->city->name}} |
{{$route_assignment->getRouteExpenseCurrency(6)}}
@if($route_assignment->getRouteExpenseCurrency(6) == 'USD')
{{--*/ $road_toll_usd +=$route_assignment->getRouteExpense(6) /*--}}
@else
{{--*/ $road_toll_tsh +=$route_assignment->getRouteExpense(6) /*--}}
@endif
|
{{$route_assignment->getRouteExpenseCurrency(43)}}
@if($route_assignment->getRouteExpenseCurrency(43) == 'USD')
{{--*/ $agent_fee_usd += $route_assignment->getRouteExpense(43) /*--}}
@else
{{--*/ $agent_fee_tsh += $route_assignment->getRouteExpense(43) /*--}}
@endif
|
{{$route_assignment->getRouteExpenseCurrency(52)}}
@if($route_assignment->getRouteExpenseCurrency(52) == 'USD')
{{--*/ $gate_pass_usd += $route_assignment->getRouteExpense(52) /*--}}
@else
{{--*/ $gate_pass_tsh += $route_assignment->getRouteExpense(52) /*--}}
@endif
|
{{$route_assignment->getRouteExpenseCurrency(56)}}
@if($route_assignment->getRouteExpenseCurrency(56) == 'USD')
{{--*/ $bond_usd += $route_assignment->getRouteExpense(56) /*--}}
@else
{{--*/ $bond_tsh += $route_assignment->getRouteExpense(56) /*--}}
@endif
|
{{\App\Logistics\Facades\Vehicles::getTruckPermitCurrency(15)}}
{{--{{\App\Logistics\Facades\Vehicles::getTruckPermitDaysRemaining(15,$vehicle_id)}}--}}
@if(\App\Logistics\Facades\Vehicles::getTruckPermitCurrency(15) == 'USD')
{{--*/ $road_permit_usd += \App\Logistics\Facades\Vehicles::getTruckPermitAmount(15,$vehicle_id) /*--}}
@else
{{--*/ $road_permit_tsh += \App\Logistics\Facades\Vehicles::getTruckPermitAmount(15,$vehicle_id) /*--}}
@endif
|
{{\App\Logistics\Facades\Vehicles::getTruckPermitCurrency(14)}}
{{--{{\App\Logistics\Facades\Vehicles::getTruckPermitDaysRemaining(14,$vehicle_id)}}--}}
@if(\App\Logistics\Facades\Vehicles::getTruckPermitCurrency(14) == 'USD')
{{--*/ $carbon_tax_usd += \App\Logistics\Facades\Vehicles::getTruckPermitAmount(14,$vehicle_id) /*--}}
@else
{{--*/ $carbon_tax_tsh += \App\Logistics\Facades\Vehicles::getTruckPermitAmount(14,$vehicle_id) /*--}}
@endif
|
{{$route_assignment->getRouteExpenseCurrency(15)}}
@if($route_assignment->getRouteExpenseCurrency(15) == 'USD')
{{--*/ $council_levy_usd += $route_assignment->getRouteExpense(15) /*--}}
@else
{{--*/ $council_levy_tsh += $route_assignment->getRouteExpense(15) /*--}}
@endif
|
||
TOTAL USD | {{number_format($road_toll_usd)}} | {{number_format($agent_fee_usd)}} | {{number_format($gate_pass_usd)}} | {{number_format($bond_usd)}} | {{number_format($road_permit_usd)}} | {{number_format($carbon_tax_usd)}} | {{number_format($council_levy_usd)}} | {{--{{number_format($zabs_usd)}} | --}}|||||
TOTAL TSH | {{number_format($road_toll_tsh)}} | {{number_format($agent_fee_tsh)}} | {{number_format($gate_pass_tsh)}} | {{number_format($bond_tsh)}} | {{number_format($road_permit_tsh)}} | {{number_format($carbon_tax_tsh)}} | {{number_format($council_levy_tsh)}} | {{--{{number_format($zabs_tsh)}} | --}}