{{-- Excel table title format start --}}
{{ config('settings.company_name') }}
{{ config('settings.address_1') }}
{{ $extra['branch'] ? $extra['branch']->name : 'All Projects' }} {{ $heading }} @if ($search_by['from'] && $search_by['to']) {{__('lang.from')}}: {{ $transaction->date_format($search_by['from']) }} {{__('lang.to')}}: {{ $transaction->date_format($search_by['to']) }} @else {{ 'Upto ' . $transaction->date_format(now()) }} @endif
{{-- Excel title format end --}} @php $max_value_other = max(count($dr_transactions_other),count($cr_transactions_other)); $other_head_range = range(0,$max_value_other - 1); $total_received_other = 0; $total_paid_other = 0; $max_value_cash = max(count($dr_transactions_cash),count($cr_transactions_cash)); $cash_head_range = range(0,$max_value_cash - 1); $total_received_cash = 0; $total_paid_cash = 0; @endphp @foreach ($other_head_range as $key ) @php $dr_transaction_other = $dr_transactions_other[$key] ?? null; $dr_amount = $dr_transaction_other->amount ?? 0; $total_received_other += $dr_amount; $cr_transaction_other = $cr_transactions_other[$key] ?? null; $cr_amount = $cr_transaction_other->amount ?? 0; $total_paid_other += $cr_amount; $head_data_dr = $transaction->getHeadData($dr_transaction_other->income_expense_head_id); $head_data_cr = $transaction->getHeadData($cr_transaction_other->income_expense_head_id); @endphp @endforeach @foreach ($cash_head_range as $key ) @php $dr_transaction_cash = $dr_transactions_cash[$key] ?? null; $dr_amount = $dr_transaction_cash->amount ?? 0; $total_received_cash += $dr_amount; $cr_transaction_cash = $cr_transactions_cash[$key] ?? null; $cr_amount = $cr_transaction_cash->amount ?? 0; $total_paid_cash += $cr_amount; $head_data_dr = $transaction->getHeadData($dr_transaction_cash->income_expense_head_id); $head_data_cr = $transaction->getHeadData($cr_transaction_cash->income_expense_head_id); @endphp @endforeach

Overall Project Report

{{__('lang.sno')}} {{__('lang.collection')}} {{__('lang.amount')}} {{__('lang.sno')}} {{__('lang.payment')}} {{__('lang.amount')}}
{{ $dr_transaction_other ? $loop->iteration : ''}} {{ $head_data_dr->name2 }} {{ $dr_transaction_other ? $transaction->isNegative($dr_amount) : ''}} {{ $cr_transaction_other ? $loop->iteration : ''}} {{ $head_data_cr->name2 }} {{ $cr_transaction_other ? $transaction->isNegative($cr_amount) : ''}}
{{__('lang.total_received')}} {{$transaction->isNegative($total_received_other)}} {{__('lang.total_paid')}} {{$transaction->isNegative($total_paid_other)}}
{{__('lang.balance_upper')}} {{$transaction->isNegative($total_received_other - $total_paid_other)}}

Overall Cash / Bank Report

{{__('lang.sno')}} {{__('lang.collection')}} {{__('lang.amount')}} {{__('lang.sno')}} {{__('lang.payment')}} {{__('lang.amount')}}
{{ $dr_transaction_cash ? $loop->iteration : ''}} {{ $head_data_dr->name2 }} {{ $dr_transaction_cash ? $transaction->isNegative($dr_amount) : ''}} {{ $cr_transaction_cash ? $loop->iteration : ''}} {{ $head_data_cr->name2 }} {{ $cr_transaction_cash ? $transaction->isNegative($cr_amount) : ''}}
{{__('lang.total_received')}} {{$transaction->isNegative($total_received_cash)}} {{__('lang.total_paid')}} {{$transaction->isNegative($total_paid_cash)}}
{{__('lang.balance_upper')}} {{$transaction->isNegative($total_received_cash - $total_paid_cash)}}