S/N | Allocation # Date |
Truck # Client |
Loading Destination |
@endif
@foreach($chunk_expense as $expense)
{{$expense->account}} | {{--*/ $daynamic_total_account[$expense->account_id] = [] /*--}} @endforeach @if(!$index)Total (Tsh) | @endif||
---|---|---|---|---|---|---|---|
{{++$index1}} | {{$company_performance->id}}
{{ \Carbon\Carbon::parse($company_performance->date)->format('M ,jS')}} |
{{$company_performance->loadingOrderVehicle->vehicle->registration_number}}
{{$company_performance->client_code}} |
{{$company_performance->loading_city}}
{{$company_performance->destination}} |
@endif
@foreach($chunk_expense as $expense)
{{number_format($company_performance->getPaidAmount($expense->account_id))}} | {{--*/ $overall_total_tsh += $company_performance->getPaidAmount($expense->account_id) /*--}} {{--*/ $trip_total_expense += $company_performance->getPaidAmount($expense->account_id) /*--}} {{--*/ $daynamic_total_account[$expense->account_id][] = $company_performance->getPaidAmount($expense->account_id) /*--}} @endforeach @if($index == 0)@else @if(!(sizeof($chunk_expense)%2)) | @endif | {{number_format($trip_total_expense)}} | @endif
OVERALL TOTAL | @endif @foreach($chunk_expense as $expense){{number_format(array_sum($daynamic_total_account[$expense->account_id]))}} | @endforeach @if(!$index){{number_format($overall_total_tsh)}} | @endif