@foreach($costs as $index => $cost)
{{$index+1}} |
{{$cost->cost->name}} |
{{$cost->currency}}
|
{{$cost->exchange_rate}}
|
@if(($cost->currency == 'TSH') || ($cost->currency == 'Tsh')|| ($cost->currency == 'tsh'))
{{--*/ $tshCost_total += $cost->amount /*--}}
{{number_format($cost->amount,2)}}
|
|
@elseif(($cost->currency == 'USD') || $cost->currency == 'usd')
|
{{--*/ $usdCost_total += $cost->amount/*--}}
{{number_format($cost->amount,2)}}
|
@endif
|
{{--*/ $i += 1 /*--}}
{{--*/ $n += 1 /*--}}
@endforeach
{{$n}} |
Fuel |
Tsh |
|
@if(empty($fuel_orders->amountValue))
{{number_format($routeassignment->fuel_required)}} litres
@else
{{number_format($fuel_orders->amountValue,2)}} (
or {{number_format($routeassignment->fuel_required)}} litres)
{{--*/ $tshCost_total += $routeassignment->fuel_required*$fuel_orders->rate /*--}}
@endif
|
|
|