@php $companySettings = \App\Models\CompanySetting::getSettings(); @endphp
{{ $companySettings->company_name ?? config('app.name') }}
@if($companySettings && $companySettings->company_logo && \Illuminate\Support\Facades\Storage::disk('public')->exists($companySettings->company_logo)) @endif
@if($companySettings->company_address){{ $companySettings->company_address }}
@endif @if($companySettings->company_phone){{ $companySettings->company_phone }}
@endif @if($companySettings->company_email){{ $companySettings->company_email }}@endif
PAYMENT RECEIPT
Receipt Number
{{ $payment->payment_number ?? 'PAY-001' }}
Payment Date
{{ ($payment->payment_date ?? now())->format('M d, Y') }}
Payment Method
{{ ucfirst($payment->payment_method ?? 'Bank Transfer') }}
@if($payment->customer ?? null)
Paid By
{{ $payment->customer->name }}
@if($payment->customer->email){{ $payment->customer->email }}
@endif @if($payment->customer->phone){{ $payment->customer->phone }}@endif
@endif @if($payment->invoice ?? null)
Payment for Invoice
Invoice #{{ $payment->invoice->invoice_number }}
Due Date: {{ $payment->invoice->due_date->format('M d, Y') }}
{{ $payment->currency ?? 'USD' }} {{ number_format($payment->amount ?? 0, 2) }}
@endif
Payment Summary
Amount Paid {{ $payment->currency ?? 'USD' }} {{ number_format($payment->amount ?? 0, 2) }}
@if($payment->transaction_id)
Transaction ID {{ $payment->transaction_id }}
@endif @if($payment->reference)
Reference {{ $payment->reference }}
@endif
Total Received {{ $payment->currency ?? 'USD' }} {{ number_format($payment->amount ?? 0, 2) }}
@if($payment->notes)
Notes
{{ $payment->notes }}
@endif