@extends('layouts.master') @section('css') @endsection @section('title') Receipt @endsection @section('content')

RECEIPT DETAILS

Go Back
VOUCHER TYPE

{{ $accountingVoucher->voucherType->name }}

VOUCHER NUMBER

{{ $accountingVoucher->voucher_number }}

VOUCHER DATE

{{ \Carbon\Carbon::parse($accountingVoucher->voucher_date)->format('d M Y') }}

LEDGER (Cr)

{{ $accountingVoucher->creditLedger?->name }}

LEDGER (Dr)

{{ $accountingVoucher->debitLedger?->name }}

TOTAL

{{ $accountingVoucher->amount }}

BRANCH

{{ $accountingVoucher->branch->name ?? '--' }}

REMARKS

{{ $accountingVoucher->remarks ?? '--' }}

STATUS
@if ($accountingVoucher->status)

NOT CANCELLED

@else

CANCELLED

@endif
@if($accountingVoucher->customer)
Customer Name

{{ $accountingVoucher->customer->name ?? '--' }}

Customer Mobile

{{ $accountingVoucher->customer->mobile ?? '--' }}

@endif
@if ($accountingVoucher->accountingVoucherLedgers->count() > 0)

Ledgers

@foreach ($accountingVoucher->accountingVoucherLedgers as $accountingVoucherLedger) @endforeach
Ledger Amount
{{ $accountingVoucherLedger->ledger->name }} {{ $accountingVoucherLedger->amount }}
@elseif($accountingVoucher->status)

Associated Ledger Accounts

@foreach ($accountingVoucher->accountingVoucherDetails as $accountingVoucherDetail) @endforeach
Account Name Amount
{{ $accountingVoucherDetail->ledger->name }} {{ $accountingVoucherDetail->amount }} {{ $accountingVoucherDetail->dr_or_cr }}
@endif @endsection @section('script') @endsection