{{--*/ $col_span =5 /*--}} {{--*/ $m =1 /*--}} @foreach($expenses as $expense) {{--*/ $col_span +=$m /*--}} {{--*/ $m++ /*--}} @endforeach @foreach($expenses as $expense) @endforeach {{--*/ $total_tsh = 0 /*--}} {{--*/ $total_usd = 0 /*--}} {{--*/ $overall_total_usd = 0 /*--}} {{--*/ $overall_total_tsh = 0 /*--}} {{--*/ $overall_expense = [] /*--}} @foreach($company_performances as $index=> $company_performance) @foreach($expenses as $expense) @endforeach @endforeach
TRIPS EXPENSES SHEET
FROM {{\Carbon\Carbon::parse($date[0])->toFormattedDateString()}} TO {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}}
SNO. DATE
ROUTE_NO
TRUCK
TRAILER
FROM
DESTINATION
{{$expense->account}}
{{++$index}} {{ \Carbon\Carbon::parse($company_performance->date)->toFormattedDateString()}}
{{$company_performance->loading_order_item_id}}
{{ (isset($company_performance->loadingOrderVehicle->truck)) ? $company_performance->loadingOrderVehicle->truck->registration_number : ''}}
{{ (isset($company_performance->loadingOrderVehicle->trailer)) ? $company_performance->loadingOrderVehicle->trailer->registration_number : ''}}
{{$company_performance->destination}}{{number_format($company_performance->getPaidAmount($expense->account_id))}}