{{ $getHo->receipt_number_prefix }}- @if($parent_merchant_id != '') {{ getMerchantNameById($parent_merchant_id) }} @else {{ getMerchantNameById($ho_id) }} @endif ({{$fiscal_year}})
Trial Balance
1-{{ getMonthName($from_month) }}-{{$fiscalY[0]}} to @if($to_month >= 1 && $to_month <= 3) {{$lastdate}}-{{ getMonthName($to_month) }}-{{$fiscalY[1]}} @else {{$lastdate}}-{{ getMonthName($to_month) }}-{{$fiscalY[0]}} @endif
@if(count($dataHeadGroup) > 0) @foreach($dataHeadGroup as $key => $val) @if(count($val['heads']) > 0) @foreach($val['heads'] as $h => $hed) @endforeach @endif @endforeach @endif
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_ids'] == '4091') @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_ids'] == 4095) {{ $hed['ledger_total'] }} Cr @endif @if($hed['totalHeadDR'] > 0 && ($hed['head_ids'] != '4091' && $hed['head_ids'] != 4095)) @else @endif @if($hed['totalHeadCR'] > 0 && ($hed['head_ids'] != '4091' && $hed['head_ids'] != 4095)) @else @endif
@if($from_month == 4) {{ $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 }}