@extends('pdf._base') @section('title', 'Receipt '.($payment->receipt_no ?: $payment->id)) @php $allocs = $payment->allocations->where('reversed', false); $plan = $invoice?->paymentPlan; $next = $plan?->nextInstallment(); $refunded = $payment->status === 'refunded'; @endphp @section('body') @include('pdf._letterhead', ['title' => 'PAYMENT RECEIPT', 'number' => $payment->receipt_no ?: $payment->reference, 'subtitle' => 'Official receipt']) @if($refunded)
| @include('pdf._from') |
Received from
{{ $payment->user?->name ?? $invoice?->customer_name }}
{{ $payment->user?->email ?? $invoice?->customer_email }}@if($payment->user?->student_code)
Student ID {{ $payment->user->student_code }}@endif |
|
|
Amount received
{{ money2($payment->amount) }}
{{ amount_in_words($payment->amount, $payment->currency) }}
|
@if($invoice)
Balance after this payment
{{ money2($payment->balanceAfter()) }}
@endif
{{ $payment->status === 'paid' ? 'Payment verified' : $payment->status }}
|
| Description | Amount |
|---|---|
| {{ $a->installment->label }} · due {{ $a->installment->due_date->format('d M Y') }}{{ $plan ? ' · plan '.$plan->code : '' }} | {{ money2($a->amount) }} |
| {{ $it->description }} | {{ $n === 0 ? money2($payment->amount) : '' }} |
|
@if($next)
Next installment {{ money2($next->outstanding()) }} due {{ $next->due_date->format('d M Y') }} {{ $next->label }} · plan {{ $plan->code }} Fully paid — thank you! No balance remains on invoice {{ $invoice->number }}. |
|
| This receipt confirms that {{ config('infotics.brand.legal_name') }} received the amount above. Please keep it for your records. Fees are subject to the INFOTICS refund policy.@if($payment->receiver) Recorded by {{ $payment->receiver->name }} on {{ ($payment->paid_at ?? $payment->created_at)->format('d M Y, h:i A') }}.@endif |
Accounts Department · {{ $brand['name'] }} |