@if(count($dataHeadGroup) > 0) @foreach($dataHeadGroup as $key => $val) @if(count($val['heads']) > 0) @foreach($val['heads'] as $h => $hed) @endforeach @endif @endforeach @endif
{{ $getHo->receipt_number_prefix }}- @if($parent_merchant_id != '') {{ getMerchantNameById($parent_merchant_id) }} @else {{ getMerchantNameById($ho_id) }} @endif ({{$fiscal_year}})
Trial Balance
{{ $from_date }} to {{ $to_date }}
Particulars Opening Balance Transactions
Debit Credit
Closing Balance
{{ $val['group_name'] }} @if($val['group_dr_total'] > 0 && $val['is_opening'] == 0) @else @endif @if($val['group_cr_total'] > 0 && $val['is_opening'] == 0) @else @endif
{{ $val['group_dr_total'] }}{{ $val['group_cr_total'] }}
{{ $val['group_total'] }} @if($val['dr_cr_type'] == 'dr') Dr @elseif($val['dr_cr_type'] == 'cr') Cr @endif
{{ $hed['head_name'] }} @if($hed['head_slug'] == 'sat-ho-for-opening-balance') @if($hed['totalHeadDR'] > 0) {{ $hed['totalHeadDR'] }} Dr @endif @if($hed['totalHeadCR'] > 0) {{ $hed['totalHeadCR'] }} Cr @endif @else @if($hed['dr_cr_type'] == 'dr' && $hed['dr_op'] > 0) {{ $hed['dr_op'] }} Dr @elseif($hed['cr_op'] > 0) {{ $hed['cr_op'] }} Dr @endif @endif @if($hed['head_slug'] == 'contra-sat-ho-for-opening-balance') {{ $hed['ledger_total'] }} Cr @endif @if($hed['totalHeadDR'] > 0 && ($hed['head_slug'] != 'sat-ho-for-opening-balance' && $hed['head_slug'] != 'contra-sat-ho-for-opening-balance')) @else @endif @if($hed['totalHeadCR'] > 0 && ($hed['head_slug'] != 'sat-ho-for-opening-balance' && $hed['head_slug'] != 'contra-sat-ho-for-opening-balance')) @else @endif
@if($from_month == 04 && $fiscal_year == '2021-2022') {{ $hed['totalHeadDR'] - $hed['cr_op'] }} @else {{ $hed['totalHeadDR'] }} @endif {{ $hed['totalHeadCR'] }}
{{ $hed['ledger_total'] }} @if($hed['dr_cr_type'] == 'dr') Dr @elseif($hed['dr_cr_type'] == 'cr') Cr @endif
Grand Total
{{ $grandDrTotal }} {{ $grandCrTotal }}