{{ config('settings.company_name')}}
{{ config('settings.address_1') }}
{{$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
@php $total_receipt_amount = 0 ; $total_payment_amount = 0 ; @endphp @foreach ($voucher_data as $voucher_type => $voucher_type_data )

{{ $voucher_type }}

@php $total_amount = 0; @endphp @foreach($voucher_type_data as $group_id => $group_data) @php $group_name = Common::group_code_with_parent_code($group_id); $group_total = 0 ; @endphp @foreach ($group_data as $sub_group_id => $sub_group_head_data ) @php $sub_group_name = Common::sub_group_code_with_parent_code($sub_group_id); $sub_group_total = 0; @endphp @foreach ($sub_group_head_data as $head_data) @php $head_code = Common::head_code_with_parent_code($head_data['id']); $head_name = $head_data['name']; $bf = $head_data['bf']; $amount = $head_data['amount']; $total_amount += $amount; $group_total += $amount; $sub_group_total += $amount; @endphp @endforeach @endforeach @endforeach
{{ __('lang.head_name') }} {{ __('lang.amount') }} {{ $currency_code }}
{{ $group_name }}
{{ $sub_group_name }}
{{ $head_code }} {{ $head_name }} {{ Transaction::convert_money_format($amount) }}
Sub Group Total {{ Transaction::convert_money_format($sub_group_total) }}
Group Total {{ Transaction::convert_money_format($group_total) }}
Total {{ $voucher_type }} Amount {{ Transaction::convert_money_format($total_amount) }}


@php if($voucher_type == 'Receipts'){ $total_receipt_amount = $total_amount ; } else if ($voucher_type == 'Payments'){ $total_payment_amount = $total_amount ; } @endphp @endforeach
Total Receipt Amount : {{Transaction::convert_money_format($total_receipt_amount)}} Total Payment Amount : {{Transaction::convert_money_format($total_payment_amount)}} Balance Amount : {{Transaction::isNegative($total_receipt_amount - $total_payment_amount)}}

Summary

@php $total_bf = 0; $total_rv_amount = 0; $total_pv_amount = 0; $total_other_payment = 0; $total_net_amount = 0; @endphp @foreach ($transactions_banks as $head_data) @php $head_code = Common::head_code_with_parent_code($head_data->id); $bf = $head_data->bf; $rv_amount = $head_data->rv_amount; $pv_amount = $head_data->pv_amount; $other_payment = $head_data->other_payment; $net_total = $bf + $rv_amount - $pv_amount + $other_payment ; $total_bf += $bf; $total_rv_amount += $rv_amount; $total_pv_amount += $pv_amount; $total_other_payment += $other_payment; $total_net_amount += $net_total; $route_data=[ 'action' =>'Show', 'income_expense_head_id' => $head_data->id, 'is_official' => request()->is_official, 'from' => request()->from, 'to' => request()->to , 'branch_id' => request()->branch_id, 'module_type' => request()->module_type, ]; $route = route('reports_accounts_ledger.new.list',$route_data); @endphp @endforeach
S.no Name BF {{ $currency_code }} Received {{ $currency_code }} Payment {{ $currency_code }} Intra Transfer {{ $currency_code }} Net Total {{ $currency_code }}
{{ $loop->iteration }} {{ $head_code }} {{ $head_data->name }} {{ Transaction::isNegative($bf) }} {{ Transaction::convert_money_format($rv_amount) }} {{ Transaction::convert_money_format($pv_amount) }} {{ Transaction::isNegative($other_payment) }} {{ Transaction::isNegative($net_total) }}
Total {{ Transaction::isNegative($total_bf) }} {{ Transaction::convert_money_format($total_rv_amount) }} {{ Transaction::convert_money_format($total_pv_amount) }} {{ Transaction::isNegative($total_other_payment) }} {{ Transaction::isNegative($total_net_amount) }}