@include('receipts.partials.pdf-styles') @php $companySettings = \App\Models\CompanySetting::getSettings(); @endphp
@if($companySettings && $companySettings->company_logo && \Illuminate\Support\Facades\Storage::disk('public')->exists($companySettings->company_logo)) @endif
{{ $companySettings->company_name ?? config('app.name') }}
Receipt
{{ $payment->payment_number ?? '—' }}
PAYMENT RECEIPT
@if($payment->transaction_id) @endif @if($payment->reference) @endif
Payment information
Date
{{ ($payment->payment_date ?? now())->format('F d, Y') }}
Method
{{ ucfirst(str_replace('_', ' ', (string) ($payment->payment_method ?? '—'))) }}
Transaction ID
{{ $payment->transaction_id }}
Reference
{{ $payment->reference }}
@if($payment->customer ?? null)
Customer
{{ $payment->customer->name }}
@if($payment->customer->email){{ $payment->customer->email }}@endif @if($payment->customer->phone)@if($payment->customer->email)
@endif{{ $payment->customer->phone }}@endif
@endif @if($payment->invoice ?? null) @endif @if(($payment->invoice ?? null) && ($payment->invoice->balance ?? 0) > 0) @endif
@if($payment->invoice ?? null)Payment breakdown @else Summary @endif
Invoice #{{ $payment->invoice->invoice_number }}
Invoice total{{ $payment->currency ?? 'USD' }} {{ number_format($payment->invoice->total ?? 0, 2) }}
Amount paid {{ $payment->currency ?? 'USD' }} {{ number_format($payment->amount ?? 0, 2) }}
Balance due{{ $payment->currency ?? 'USD' }} {{ number_format($payment->invoice->balance, 2) }}
@if($payment->notes ?? null)
Notes
{{ $payment->notes }}
@endif
Thank you for your payment
Official proof of payment — retain for your records.