Invoice Amount: |
{{number_format(4273.143,2)}} |
REVENUE |
{{number_format($revenue = 4273.143)}}
|
{{----*/ $cost_total = 0 /*----}}
{{----*/ $route_tankers_detail = $route->routeCargoDetails()->where('type','TANKERS')->first() /*----}}
FUEL EXPENSES: |
{{number_format(\App\Logistics\Facades\Logistics::currencyConvert(($route_tankers_detail->fuel*2)*1650,'TSH', 2240, 'USD'),2)}} |
{{----*/ $cost_total += \App\Logistics\Facades\Logistics::currencyConvert(($route_tankers_detail->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)}} |
|
|