@foreach ($accountingVouchers as $accountingVoucher)
@if ($pageLogo != null) Logo @endif

PAYMENT

@if ($accountingVoucher->accountingVoucherLedgers->count() > 0)
Voucher Details
Voucher No : {{ $accountingVoucher->voucher_number }}
Date : {{ \Carbon\Carbon::parse($accountingVoucher->voucher_date)->format('d M Y') }}
@foreach ($accountingVoucher->accountingVoucherLedgers as $key => $accountingVoucherLedger) @endforeach
Particulars Debit Credit
{{ $accountingVoucherLedger->ledger->name }} {{ $accountingVoucherLedger->dr_or_cr == 'Dr' ? $accountingVoucherLedger->amount : '' }} {{ $accountingVoucherLedger->dr_or_cr == 'Cr' ? $accountingVoucherLedger->amount : '' }}
@else
Paid To
{{ $accountingVoucher->debitLedger->name }}
{{ $accountingVoucher->debitLedger->mobile_no }}
{{ $accountingVoucher->debitLedger->address }}
GST No : {{ $accountingVoucher->debitLedger->gst }}
Voucher Details
Voucher No : {{ $accountingVoucher->voucher_number }}
Date : {{ \Carbon\Carbon::parse($accountingVoucher->voucher_date)->format('d M Y') }}
@endif
Amount : {{ $accountingVoucher->amount }}

Particulars :
{{ $company->name }}

Authorized Signature
@if ($accountingVouchers->last() != $accountingVoucher)
@endif @endforeach