@php $anon = (int) $donation->anon === 1; $refunded = (bool) $donation->refunded; $donor = trim((string) $donation->d_name) ?: 'A supporter'; $gross = (float) $donation->d_amount; $pi = $donation->stripe_payment_intent; // Receipt status comes from admin_donor_print (linked by d_ident), read-only. $receipt = $donation->receipt(); $receiptIssued = $receipt?->isIssued() ?? false; @endphp Donations

€{{ number_format($gross, 0) }} Donation from {{ $donor }} - {{ $donation->d_ident ?: ('#'.$donation->id) }}

{{ $donation->record_created?->format('d M Y, H:i') ?: '—' }}

@if ($refunded) Refunded @else {{ $donation->d_status ?: 'PASSED' }} @endif @if ($anon) Anonymous@endif
Donation CRM
{{ $donation->d_ident ?: ('#'.$donation->id) }} {{ $donor }} @if ($donation->d_email){{ $donation->d_email }}@else—@endif €{{ number_format($gross, 0) }} @php $forName = trim((string) $donation->d_desc) ?: ($fundraiser?->full_name ?: $fundraiser?->username); @endphp @if ($fundraiser){{ $forName ?: '—' }} · {{ $donation->u_ident }}@else{{ $forName ?: '—' }} · {{ $donation->u_ident ?: '—' }}@endif {{ $donation->transact ?: '—' }} {{ $anon ? 'Yes' : 'No' }}
Donor message @if (trim((string) $donation->d_message) !== '')
{{ $donation->d_message }}
@else

No message left with this donation.

@endif
@if (trim((string) $donation->d_message) !== '' || (int) $donation->moderate_flag === 1) @endif Payment
@if ($refunded)Refunded@else{{ $donation->d_status ?: 'PASSED' }}@endif {{ $donation->p_record ?: '—' }} {{ $donation->trans_id ?: $donation->d_cs_id ?: '—' }} @if ($pi){{ $pi }} @else—@endif {{ $donation->stripe_charge_id ?: '—' }} @if ($refunded) {{ $donation->refunded_at?->format('d M Y') ?: '—' }} {{ $donation->refund_reason ?: '—' }} @endif
Receipt
{{ $receiptIssued ? 'Issued' : 'Not issued' }} @if ($receipt) {{ $receipt->receipt_date?->format('d M Y') ?: '—' }} {{ $receipt->print_ident ?: '—' }} @endif
History @if ($approvals->isEmpty() && $audit->isEmpty())

No corrections recorded for this donation.

@else @foreach ($approvals as $r) {{ $r->action->label() }} · {{ ucfirst($r->status) }} · {{ $r->requester?->full_name ?: '—' }} @endforeach @foreach ($audit as $entry) {{ $entry->action }} · {{ $entry->actor?->full_name ?: 'System' }} @endforeach @endif