@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
@foreach ($errors->all() as $error)

{{ $error }}

@endforeach @if (Session::has('error'))
{!! Session::get('error') !!}
@endif @if($ho_id > 0 && $parent_merchant_id > 0)
{{ getTitleInPage() }}
@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
{{ $getHo->receipt_number_prefix }}-{{ $getHo->ashram_id }} {{ $getHo->name }} ({{ $fiscal_year }})
{{ $parentMerchant->ashram_id }} Cash {{ $parentMerchant->full_address }} {{ getCityName($parentMerchant->city_id) }} {{ getStateName($parentMerchant->state_id) }} {{ getCountryName($parentMerchant->country_id) }} Book


{{ date('d-M-Y', strtotime($from_date)) }} to {{ date('d-M-Y', strtotime($to_date)) }}
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') {{ getAccountHeadByIdMerchant($v['ledger_id']) }} @else {{ 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') {{ getAccountHeadByIdMerchant($val['ledger_id']) }} @else {{ 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}}
@endif
@endsection @section('footer') @parent @endsection @section('extraa_script_and_js') @parent @endsection