{{ $company->name }}

@if ($company->address)
{!! nl2br(e($company->address)) !!}
@endif @if ($company->phone)
{{ $company->phone }}
@endif @if ($company->email)
{{ $company->email }}
@endif @if ($company->tax_number)
Tax: {{ $company->tax_number }}
@endif

Payment receipt

{{ $payment->payment_number }}
Date: {{ $payment->txn_date?->toDateString() }}
Method: {{ $payment->payment_method }}
@if ($payment->ref_number)
Ref: {{ $payment->ref_number }}
@endif
Amount received: {{ number_format((float) $payment->total_amount, 2) }}
@if ($payment->isVoided())
VOIDED
@endif
@php $customer = $payment->customer; @endphp
Received from
{{ $customer?->display_name }}
@if ($customer?->email)
{{ $customer->email }}
@endif @if ($customer?->phone)
{{ $customer->phone }}
@endif @if ($customer?->address)
{!! nl2br(e($customer->address)) !!}
@endif
@forelse ($payment->allocations as $allocation) @php $invoice = $allocation->invoice; @endphp @empty @endforelse
Invoice # Invoice date Original amount Amount applied
{{ $invoice?->invoice_number ?? '—' }} {{ $invoice?->txn_date?->toDateString() ?? '—' }} {{ $invoice ? number_format((float) $invoice->total_amount, 2) : '—' }} {{ number_format((float) $allocation->amount_applied, 2) }}
No invoices applied
Amount received {{ number_format((float) $payment->total_amount, 2) }}
Applied {{ number_format($payment->appliedAmount(), 2) }}
Unapplied (credit) {{ number_format($payment->unappliedAmount(), 2) }}
@if ($payment->memo)
Memo
{!! nl2br(e($payment->memo)) !!}
@endif