{{ $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
|
Closing Balance |
@if(count($dataHeadGroup) > 0)
@foreach($dataHeadGroup as $key => $val)
{{ $val['group_name'] }} |
|
@if($val['group_dr_total'] > 0 && $val['is_opening'] == 0)
{{ $val['group_dr_total'] }} |
@else
|
@endif
@if($val['group_cr_total'] > 0 && $val['is_opening'] == 0)
{{ $val['group_cr_total'] }} |
@else
|
@endif
|
{{ $val['group_total'] }} @if($val['dr_cr_type'] == 'dr') Dr @elseif($val['dr_cr_type'] == 'cr') Cr @endif |
@if(count($val['heads']) > 0)
@foreach($val['heads'] as $h => $hed)
{{ $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'))
@if($from_month == 04 && $fiscal_year == '2021-2022')
{{ $hed['totalHeadDR'] - $hed['cr_op'] }}
@else
{{ $hed['totalHeadDR'] }}
@endif
|
@else
|
@endif
@if($hed['totalHeadCR'] > 0 && ($hed['head_slug'] != 'sat-ho-for-opening-balance' && $hed['head_slug'] != 'contra-sat-ho-for-opening-balance'))
{{ $hed['totalHeadCR'] }} |
@else
|
@endif
|
{{ $hed['ledger_total'] }} @if($hed['dr_cr_type'] == 'dr') Dr @elseif($hed['dr_cr_type'] == 'cr') Cr @endif
|
@endforeach
@endif
@endforeach
@endif
Grand Total |
|
{{ $grandDrTotal }} |
{{ $grandCrTotal }} |
|
|