{{--*/ $col_span =5 /*--}} {{--*/ $m =1 /*--}} @foreach($expenses as $expense) {{--*/ $col_span +=$m /*--}} {{--*/ $m++ /*--}} @endforeach @foreach($loading_orders as $loading_order) {{--*/ $total_tsh = 0 /*--}} {{--*/ $total_usd = 0 /*--}} {{--*/ $overall_total_usd = 0 /*--}} {{--*/ $overall_total_tsh = 0 /*--}} {{--*/ $overall_expense = [] /*--}} @foreach($loading_order->companyPerformances as $index=> $company_performance) @foreach($expenses as $expense) @endforeach @endforeach @endforeach
SNO. Date
LOI
Truck
Trailer
Loading
Destination
{{ucfirst(strtolower($expense->account))}}
Loading Order: {{$loading_order->id}}; Client: {{$loading_order->client->name}}
{{++$index}} {{ \Carbon\Carbon::parse($company_performance->loading_date)->toFormattedDateString()}}
{{$company_performance->loading_order_item_id}}
{{ $company_performance->truck}}
{{ $company_performance->trailer}}
{{$company_performance->destination}}{{$company_performance->expenseAmountWithCurrency($expense->account_id)}}