@include('receipts.partials.pdf-styles') @php $companySettings = \App\Models\CompanySetting::getSettings(); @endphp
{{-- Header: logo + company --}}
@if($companySettings && $companySettings->company_logo && \Illuminate\Support\Facades\Storage::disk('public')->exists($companySettings->company_logo)) @endif
{{ $companySettings->company_name ?? config('app.name') }}
@if($companySettings->company_address ?? null){{ $companySettings->company_address }}
@endif @if($companySettings->company_phone ?? null){{ $companySettings->company_phone }}@endif @if($companySettings->company_email ?? null) @if($companySettings->company_phone ?? null) · @endif {{ $companySettings->company_email }}@endif
PAYMENT RECEIPT
{{-- Receipt meta --}}
Receipt #
{{ $payment->payment_number ?? '—' }}
Date
{{ ($payment->payment_date ?? now())->format('M d, Y') }}
Method
{{ ucfirst(str_replace('_', ' ', (string) ($payment->payment_method ?? '—'))) }}
@if($payment->customer ?? null)
Paid by
{{ $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)
Invoice reference
#{{ $payment->invoice->invoice_number }} {{ $payment->currency ?? 'USD' }} {{ number_format($payment->amount ?? 0, 2) }}
Due {{ $payment->invoice->due_date->format('M d, Y') }}
@endif @if($payment->transaction_id) @endif @if($payment->reference) @endif
Payment summary
Amount paid {{ $payment->currency ?? 'USD' }} {{ number_format($payment->amount ?? 0, 2) }}
Transaction ID {{ $payment->transaction_id }}
Reference {{ $payment->reference }}
Total received {{ $payment->currency ?? 'USD' }} {{ number_format($payment->amount ?? 0, 2) }}
@if($payment->notes ?? null)
Notes
{{ $payment->notes }}
@endif
Thank you for your payment
This receipt is proof of payment. Please retain for your records.