@extends('Admin.master_layout.master') @section('title', getTitleInPage()) @section('header_menu') @parent @endsection @section('sidebar_menu') @parent @endsection @section('styles') @parent @endsection @section('content')

{{ getTitleInPage() }}

@if(!getMechantIds()) @if(count($enterprise) > 0)
@endif
@else @endif
@if($is_show_area == 1)
@endif
@if($ho_id > 0)
@endif
@foreach ($errors->all() as $error)

{{ $error }}

@endforeach @if (Session::has('error'))
{!! Session::get('error') !!}
@endif @if($ho_id > 0)
{{ getTitleInPage() }}
@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
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
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 == 4 && $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 }}

View Ledger Report @if(count($ordersPending) > 0) View Pending Report @endif
@endif
@if(count($openingArr) > 0 ) @endif @if(count($orderArr) > 0) @foreach($orderArr as $key => $val) @if(count($val['OrderItems']) > 0) @foreach($val['OrderItems'] as $i => $v) @if(isset($v['totalItem'])) @else @endif @endforeach @else @endif @endforeach @endif @if($ledger_id == '') @endif
Date Particulars Vch Type Vch No. Debit Credit
{{ date('d-m-Y', strtotime($openingArr['date'])) }} {{ $openingArr['cr_dr_type'] }} {{ $openingArr['Particulars'] }} {{ $openingArr['dr'] }}
@if($v['date'] != null) {{ date('d-m-Y', strtotime($v['date'])) }} @endif {{ $v['cr_dr_type'] }} {{ $v['Particulars'] }} {{ getMerchantVoucherType($v['voucher_type_id']) }} {{ $v['order_id'] }} @if($v['dr'] > 0) {{ $v['totalItem'] }} @endif @if($v['cr'] > 0) {{ $v['totalItem'] }} @endif
@if($v['date'] != null) {{ date('d-m-Y', strtotime($v['date'])) }} @endif @if($v['is_check_main'] == 0) {{ $v['cr_dr_type'] }} @else     @endif @if($v['cr_dr_type'] == 'Cr') {{ str_replace('Branch', getMechantShortCode($v['merchant_id']).'-'.getBranchCode($v['merchant_id']), getAccountHeadByIdMerchant($v['ledger_id'])) }} @else {{ str_replace('Branch', getMechantShortCode($v['merchant_id']).'-'.getBranchCode($v['merchant_id']), getAccountHeadByIdMerchant($v['ledger_id'])) }} @endif @if($v['is_check_main'] == 1) {{ $v['amount'] }} {{ $v['cr_dr_type'] }} @else {{ getMerchantVoucherType($v['voucher_type_id']) }} @endif @if($v['is_check_main'] == 0) {{ $v['order_id'] }} @endif @if($v['dr'] > 0 && $v['is_check_main'] == 0) {{ $v['dr'] }} @endif @if($v['cr'] > 0 && $v['is_check_main'] == 0) {{ $v['cr'] }} @endif
@if($val['date'] != null) {{ date('d-m-Y', strtotime($val['date'])) }} @endif {{ $val['cr_dr_type'] }} @if($val['cr_dr_type'] == 'Cr') {{ str_replace('Branch', getMechantShortCode($val['merchant_id']).'-'.getBranchCode($val['merchant_id']), getAccountHeadByIdMerchant($val['ledger_id'])) }} @else {{ str_replace('Branch', getMechantShortCode($val['merchant_id']).'-'.getBranchCode($val['merchant_id']), getAccountHeadByIdMerchant($val['ledger_id'])) }} @endif {{ getMerchantVoucherType($val['voucher_type_id']) }} {{ $val['order_id'] }} @if($val['dr'] > 0) {{ $val['dr'] }} @endif @if($val['cr'] > 0) {{ $val['cr'] }} @endif
Dr Closing Balance {{$grandTotalDr}} {{$grandTotalCr}}
{{ $grandTotalDr-$grandTotalCr}}
{{$grandTotalDr}} {{$grandTotalDr}}
@if(count($ordersPending) > 0) @foreach($ordersPending as $key => $val) @endforeach @endif
Date Particulars Vch Type Vch No. Debit Credit
@if($val['date'] != null) {{ date('d-m-Y', strtotime($val['date'])) }} @endif {{ str_replace('Branch', getMechantShortCode($val['auto_mer_id']).'-'.getBranchCode($val['auto_mer_id']), getAccountHeadByIdMerchant($val['cr_account_head'])) }} {{ getMerchantVoucherType($val['voucher_type_id']) }} {{ $val['id'] }} {{ $val['amount'] }}
Dr Closing Balance {{$pendingTotal}}
@endsection @section('footer') @parent @endsection @section('extraa_script_and_js') @parent @endsection