{{++$index}} |
{{ \Carbon\Carbon::parse($route->departure_date)->toFormattedDateString()}} |
{{ $route->vehicle}}
/{{ $route->getVehicle()->getCurrentTrailer()->registration_number}} |
{{$route->route}}
|
@foreach($expenses as $expense)
@if ($expense->id == 1)
{{$route->costAmount($expense->id)}} |
@else
@if($route->costAmount($expense->id) == 'N/A')
|
|
@else
@if($route->costAmount($expense->id)->currency == 'TSH')
{{number_format($route->costAmount($expense->id)->amount,2)}} |
{{--*/ $total_tsh += $route->costAmount($expense->id)->amount /*--}}
{{--*/ $overall_expense['tsh'][$expense->id][] = $route->costAmount($expense->id)->amount /*--}}
@else
{{number_format(0,2)}} |
{{--*/ $overall_expense['tsh'][$expense->id][] = 0 /*--}}
@endif
@if($route->costAmount($expense->id)->currency == 'USD')
{{number_format($route->costAmount($expense->id)->amount,2)}} |
{{--*/ $total_usd += $route->costAmount($expense->id)->amount /*--}}
{{--*/ $overall_expense['usd'][$expense->id][] = $route->costAmount($expense->id)->amount /*--}}
@else
{{number_format(0,2)}} |
{{--*/ $overall_expense['usd'][$expense->id][] = 0 /*--}}
@endif
@endif
@endif
@endforeach
{{number_format($total_tsh,2)}} |
{{number_format($total_usd,2)}} |
{{--*/ $overall_total_usd += $total_usd /*--}}
{{--*/ $total_usd = 0 /*--}}
{{--*/ $overall_total_tsh += $total_tsh /*--}}
{{--*/ $total_tsh = 0 /*--}}
{{--@endif--}}
@endforeach