@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') }}
Payment Receipt
{{ $payment->payment_number ?? 'PAY-001' }}
PAYMENT RECEIPT
Payment Information
Payment Date
{{ ($payment->payment_date ?? now())->format('F d, Y') }}
Payment Method
{{ ucfirst($payment->payment_method ?? 'Bank Transfer') }}
@if($payment->transaction_id)
Transaction ID
{{ $payment->transaction_id }}
@endif @if($payment->reference)
Reference
{{ $payment->reference }}
@endif
@if($payment->customer)
Customer Information
{{ $payment->customer->name }}
@if($payment->customer->email){{ $payment->customer->email }}
@endif @if($payment->customer->phone){{ $payment->customer->phone }}@endif
@endif @if($payment->invoice)
Payment Breakdown
Invoice Number {{ $payment->invoice->invoice_number }}
Invoice Total {{ $payment->currency ?? 'USD' }} {{ number_format($payment->invoice->total ?? 0, 2) }}
Previously Paid {{ $payment->currency ?? 'USD' }} {{ number_format(($payment->invoice->paid_amount ?? 0) - ($payment->amount ?? 0), 2) }}
Amount Paid {{ $payment->currency ?? 'USD' }} {{ number_format($payment->amount ?? 0, 2) }}
@if($payment->invoice->balance > 0)
Remaining Balance {{ $payment->currency ?? 'USD' }} {{ number_format($payment->invoice->balance ?? 0, 2) }}
@endif
@else
Payment Summary
Amount Paid {{ $payment->currency ?? 'USD' }} {{ number_format($payment->amount ?? 0, 2) }}
@endif @if($payment->invoice && $payment->invoice->balance > 0)
Outstanding Balance
Your remaining balance is {{ $payment->currency ?? 'USD' }} {{ number_format($payment->invoice->balance ?? 0, 2) }}. Please make payment by {{ $payment->invoice->due_date->format('F d, Y') }}.
@endif @if($payment->notes)
Notes
{{ $payment->notes }}
@endif