{{-- ১ম অংশ: Invoice No --}}
{{-- ৩য় অংশ: Receipt Detail Information --}}
Invoice No: {{ $payment->invoice_no }}
{{-- ২য় অংশ: Receipt Information --}}
Receipt Information
| Invoice No | Student Name | Received By | Date | Total | Discount | Adjusted | Paid | Previous Due Collection | Due | |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $payment->invoice_no }} | {{ $payment->student->student_name_english }} | {{ $payment->user?->name ?? 'N/A' }} | {{ \Carbon\Carbon::parse($payment->payment_date)->format('d-m-Y') }} | {{-- safe defaults with null-coalesce --}}{{ number_format($totalFee ?? 0) }} | @if ($totalWaver!=0 || $totalWaver!=null){{ number_format($totalWaver ?? 0) }} | @else@endif | {{ number_format($totalAdjusted ?? 0) }} | {{-- controller supplies $totalPaid (not $totalPaidThisTxn) --}}{{ number_format($totalPaid ?? 0) }} | {{-- previous adjustments (if controller passed it) --}}@if ($previousPaidAdjustments!=0 || $previousPaidAdjustments!=null) {{ number_format($previousPaidAdjustments ?? 0) }} @else @endif | @if ($totalDueAfter!=0 || $totalDueAfter!=null) {{ number_format($totalDueAfter ?? 0) }} @else @endif |
Receipt Detail Information
| Fee Remarks | Fee Type | Fee Amount | Discount | Paid This Invoice | Due After This Payment | |
|---|---|---|---|---|---|---|
| {{ $item->fee->note ?? '-' }} | {{ $item->fee->fee_type ?? '-' }} | {{ number_format($feeAmount) }} | {{ number_format($waver) }} | {{ number_format($paidThis) }} | {{ number_format($dueAfter) }} | @endif|
| Due Collection (This Item has been generated on the previous dues against Receipt: {{ $previousCombined }}) |
{{$previousPaidAdjustments ?? ''}} | {{ $totalDueAfter ?? '' }} | ||||
| Total | {{-- safe defaults with null-coalesce --}}{{ number_format($totalFee ?? 0) }} | @if ($totalWaver!=0 || $totalWaver!=null){{ number_format($totalWaver ?? 0) }} | @else0 | @endif{{ number_format($totalPaid ?? 0) }} | @if ($totalDueAfter!=0 || $totalDueAfter!=null) {{ number_format($totalDueAfter ?? 0) }} @else 0 @endif | |