@include('receipts.partials.pdf-styles') @php $company = $company ?? \App\Models\CompanySetting::getSettings(); @endphp
@if($company->company_logo && \Illuminate\Support\Facades\Storage::disk('public')->exists($company->company_logo)) @endif
{{ $company->company_name ?? config('app.name') }}
@if($company->company_address ?? null){{ $company->company_address }}
@endif @if($company->company_phone ?? null){{ $company->company_phone }}@endif @if($company->company_email ?? null)@if($company->company_phone ?? null) · @endif{{ $company->company_email }}@endif
PAYMENT RECEIPT
@if($payment->invoice ?? null) @endif
Receipt #{{ $receipt->receipt_number }}
Date{{ $receipt->created_at->format('M d, Y') }}
Invoice{{ $payment->invoice->invoice_number }}
Method{{ ucfirst(str_replace('_', ' ', (string) ($receipt->payment_method ?? '—'))) }}
@if(filled(optional($payment->customer)->email)) @endif
Paid by
{{ optional($payment->customer)->name ?? 'Customer' }}
{{ $payment->customer->email }}
@if($receipt->transaction_reference) @endif
{{ $payment->currency ?? 'USD' }} {{ number_format((float) $receipt->amount, 2) }}
Reference{{ $receipt->transaction_reference }}
@if($receipt->notes)
Notes
{{ $receipt->notes }}
@endif