@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') }}
@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
{{ $payment->payment_number ?? '—' }}
{{ ($payment->payment_date ?? now())->format('M d, Y') }}
Payment received
{{ $payment->currency ?? 'USD' }} {{ number_format($payment->amount ?? 0, 2) }}
Method: {{ ucfirst(str_replace('_', ' ', (string) ($payment->payment_method ?? '—'))) }}
@if($payment->customer ?? null) @endif
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
Payment details
@if($payment->transaction_id) @endif @if($payment->reference) @endif
Date{{ ($payment->payment_date ?? now())->format('F d, Y') }}
Txn ID{{ $payment->transaction_id }}
Reference{{ $payment->reference }}
@if($payment->invoice ?? null)
Invoice
{{ $payment->invoice->invoice_number }}
Invoice total
{{ $payment->currency ?? 'USD' }} {{ number_format($payment->invoice->total ?? 0, 2) }}
Paid
{{ $payment->currency ?? 'USD' }} {{ number_format($payment->amount ?? 0, 2) }}
Balance
@php $balColor = (($payment->invoice->balance ?? 0) > 0) ? '#b91c1c' : '#059669'; @endphp
{{ $payment->currency ?? 'USD' }} {{ number_format($payment->invoice->balance ?? 0, 2) }}
@endif @if($payment->notes ?? null)
Notes
{{ $payment->notes }}
@endif
Thank you
Payment processed. Please keep this receipt.