Payment Receipt
{{ $payment->receipt_number }}
@if ($payment->voucher_no)
| Voucher: {{ $payment->voucher_no }}
@endif
@if ($payment->is_opening)
Opening / Previous Payment
@endif
Tk {{ number_format($payment->amount, 2) }}
| Payment Date | {{ $payment->payment_date->format('d M Y') }} |
| Customer | {{ $payment->customer->name ?? 'N/A' }} |
| Payment Method | {{ $payment->paymentMethod->method_name ?? 'N/A' }} |
@if ($payment->cheque_number)
| Cheque # | {{ $payment->cheque_number }} |
@endif
@if ($payment->transaction_id)
| Transaction ID | {{ $payment->transaction_id }} |
@endif
@if ($payment->narration)
| Narration | {{ $payment->narration }} |
@endif
| Received By | {{ $payment->createdBy->name ?? 'N/A' }} |
@if ($sale)
Sale Details
| Agreement # | {{ $sale->agreement_number }} |
| Project | {{ $sale->project->project_name ?? '-' }} |
| Flat | {{ $sale->flat->flat_number ?? '-' }} - {{ $sale->flat->building->name ?? '' }} |
| Net Payable | Tk {{ number_format($sale->net_payable, 2) }} |
@php
$totalPaid = $sale->total_paid;
$totalDue = $sale->outstanding_balance;
@endphp
| Total Paid | Tk {{ number_format($totalPaid, 2) }} |
| Remaining Due | Tk {{ number_format($totalDue, 2) }} |
@endif
@if ($payment->allocations && $payment->allocations->count() > 0)
Allocation Details
| Installment # |
Allocated Amount |
@foreach ($payment->allocations as $alloc)
| #{{ $alloc->installment->installment_number ?? '?' }} |
Tk {{ number_format($alloc->allocated_amount, 2) }} |
@endforeach
@endif