@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 ?? '—'))) }} |
|
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
Payment details
|
|
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) }}
|
| Notes |
| {{ $payment->notes }} |
|
Thank you
Payment processed. Please keep this receipt.
|