{{--*/ $invoice_amount = ['revenue'=>$client_inquiry_item->rate*$client_inquiry_item->tonnage] /*--}} {{--*/ $route = $client_inquiry_item->getRoute() /*--}} {{--*/ $loading_point_expenses = $client_inquiry_item->loadingPointExpenses() /*--}} {{--*/ $route_border_expenses = $client_inquiry_item->routeBorderExpenses() /*--}} {{--*/ $route_forecasting_expenses = $client_inquiry_item->routeForecastingExpenses() /*--}} {{--*/ $type = $client_inquiry_item->cargo_type /*--}} {{--*/ $exchange_rate = 2200 /*--}} {{--*/ $fuel_rate = 2200 /*--}} {{--*/ $permit_expenses = $route->getPermitExpenses($type, $route->getDays($client_inquiry_item->cargo_type), $exchange_rate) /*--}} @if($route) {{--*/ $revenue = $invoice_amount['revenue'] /*--}}
{{--*/ $cost_total = 0 /*--}} {{--*/ $cost_total_usd = 0 /*--}} @foreach($loading_point_expenses as $loading_point_expense) @endforeach
@foreach($route_forecasting_expenses as $route_forecasting_expense) {{--*/ $cost_total += \App\Logistics\Facades\Logistics::currencyConvert($route_forecasting_expense->amount, $route_forecasting_expense->currency, $exchange_rate) /*--}} @endforeach
{{$route_forecasting_expense->cost_name}} {{$route_forecasting_expense->currency}} {{number_format($route_forecasting_expense->amount,2)}} @if($route_forecasting_expense->descriptions) ({{$route_forecasting_expense->descriptions}}) @endif
@foreach($route_border_expenses as $route_border_expense) {{--*/ $cost_total += \App\Logistics\Facades\Logistics::currencyConvert($route_border_expense->amount, $route_border_expense->currency, $exchange_rate) /*--}} @endforeach
{{$route_border_expense->cost_name}} {{$route_border_expense->currency}} {{number_format($route_border_expense->amount,2)}}
@foreach($route->routeExpenses()->whereIn('cargo_type',['ALL',$type])->get() as $route_expense) {{--*/ $cost_total += \App\Logistics\Facades\Logistics::currencyConvert($route_expense->amount, $route_expense->currency, $exchange_rate) /*--}} @endforeach
{{$route_expense->cost_name}} {{$route_expense->currency}} {{number_format($route_expense->amount,2)}} {{$type}}
@endif