{{----*/ $revenue = $invoice_amount['revenue'] /*----}}
Invoice Amount: |
{{number_format($revenue,2)}} |
REVENUE |
{{number_format($revenue)}}
|
{{--$revenue = [--}}
{{--'tonnage' => $request->tonnage,--}}
{{--'rate' => $request->rate,--}}
{{--'' => $request->tonnage * $request->rate,--}}
{{--'number_of_trucks' => $request->number_of_trucks--}}
{{--];--}}
{{----*/ $cost_total = 0 /*----}}
FUEL EXPENSES: |
{{number_format(\App\Logistics\Facades\Logistics::currencyConvert(($route->fuel*2)*1650,'TSH', 2240, 'USD'),2)}} |
{{----*/ $cost_total += \App\Logistics\Facades\Logistics::currencyConvert(($route->fuel*2)*1650,'TSH', 2240, 'USD') /*----}}
PREPAID EXPENSES: |
{{number_format($route->getPrepaidExpensesBudgetAmount('TANKERS', $route->getDays('TANKERS'), 2240),2)}} |
{{----*/ $cost_total += $route->getPrepaidExpensesBudgetAmount('TANKERS', $route->getDays('TANKERS'), 2240) /*----}}
VEHICLE DEPRECIATION EXPENSES: |
|
{{----*/ $cost_total +=0 /*----}}
DRIVER SALARY: |
|
{{----*/ $cost_total +=0 /*----}}
@foreach($route->routeExpenses()->whereIn('cargo_type',['ALL','TANKERS'])->get() as $route_expense)
{{$route_expense->cost_name}}: |
{{number_format(\App\Logistics\Facades\Logistics::currencyConvert($route_expense->amount, $route_expense->currency, 2240, 'USD'),2)}} |
{{----*/ $cost_total += \App\Logistics\Facades\Logistics::currencyConvert($route_expense->amount, $route_expense->currency, 2240, 'USD') /*----}}
@endforeach
TOTAL EXPENSES |
{{number_format($expense_total= $cost_total)}} |
{{number_format($revenue-$expense_total)}} |
|
|