{{-- 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 $count_dr = count($dr_transactions); $count_cr = count($cr_transactions); $max_value = max($count_dr,$count_cr); $range = range(0,$max_value - 1); $show_bf = $search_by['from'] ? true : false; $total_received = $bf; $total_paid = 0; @endphp @if ($with_heads == "with_heads") @endif @if ($with_heads == "with_heads") @endif @if($show_bf) @endif @foreach ($range as $key ) @php $dr_transaction = $dr_transactions[$key] ?? null; $dr_transaction_detail = $dr_transaction ? $dr_transaction->getTransactionDetails($dr_transaction) : null; $dr_route = $dr_transaction_detail->route; $dr_particulars = $dr_transaction->particulars ?? null; $dr_voucher_no = $dr_transaction->voucher_no ?? null; $dr_amount = $dr_transaction->dr ?? 0; $total_received += $dr_amount; $cr_transaction = $cr_transactions[$key] ?? null; $cr_transaction_detail = $cr_transaction ? $cr_transaction->getTransactionDetails($cr_transaction) : null; $cr_route = $cr_transaction_detail->route; $cr_particulars = $cr_transaction->particulars ?? null; $cr_voucher_no = $cr_transaction->voucher_no ?? null; $cr_amount = $cr_transaction->cr ?? 0; $total_paid += $cr_amount; $collection_head_name = []; $payment_head_name = []; if ($dr_transaction) { $collection_head_name = $dr_transaction->getTransactionHeadNames($dr_transaction); } if ($cr_transaction) { $payment_head_name = $cr_transaction->getTransactionHeadNames($cr_transaction); } @endphp @if ($with_heads == "with_heads") @endif @if ($with_heads == "with_heads") @endif @endforeach @if ($with_heads == "with_heads") @endif @if ($with_heads == "with_heads") @endif @if ($with_heads == "with_heads") @else @endif
{{__('lang.sno')}} {{__('lang.project_name')}} {{__('lang.voucher_date')}} {{__('lang.collection')}} {{__('lang.amount')}}{{__('lang.cr_heads')}} {{__('lang.dr_heads')}} {{__('lang.sno')}} {{__('lang.project_name')}} {{__('lang.voucher_date')}} {{__('lang.payment')}} {{__('lang.amount')}}{{__('lang.cr_heads')}} {{__('lang.dr_heads')}}
Balance from {{ $transaction->date_format($search_by['from']) }} {{ $transaction->isNegative($bf) }}
{{ $dr_transaction ? $loop->iteration : ''}} {{ $dr_transaction->branch->name}} {{ $transaction->date_format($dr_transaction->voucher_date)}} @if($dr_transaction) ({{$dr_voucher_no}}) {{$dr_particulars}} @endif {{ $dr_transaction ? $transaction->isNegative($dr_amount) : ''}}{{$collection_head_name['cr_head_name']}}
({{$collection_head_name['cr_group_name']}}-{{$collection_head_name['cr_sub_group_name']}})
{{$collection_head_name['dr_head_name_collection']}}
({{$collection_head_name['dr_group_name_collection']}}-{{$collection_head_name['dr_sub_group_name_collection']}})
{{ $cr_transaction ? $loop->iteration : ''}} {{ $cr_transaction->branch->name}} {{ $transaction->date_format($cr_transaction->voucher_date)}} @if($cr_transaction) ({{ $cr_voucher_no }}) {{$cr_particulars}} @endif {{ $cr_transaction ? $transaction->isNegative($cr_amount) : ''}}{{$payment_head_name['cr_head_name']}}
({{$payment_head_name['cr_group_name']}}-{{$payment_head_name['cr_sub_group_name']}})
{{$payment_head_name['dr_head_name']}}
({{$payment_head_name['dr_group_name']}}-{{$payment_head_name['dr_sub_group_name']}})
{{__('lang.total_received_amount')}} {{$transaction->isNegative($total_received)}} {{__('lang.total_paid_amount')}} {{$transaction->isNegative($total_paid)}}
{{__('lang.balance_upper')}}{{__('lang.balance_upper')}} {{$transaction->isNegative($total_received - $total_paid)}}