{{ $orgName }} — Donation Export

Generated: {{ $generatedAt }}  |  Total records: {{ $donations->count() }}

@if($filters)
Filters: @foreach($filters as $key => $val) {{ $key }}: {{ $val }} @endforeach
@endif {{-- Summary totals --}} @if($totals->count())

Completed donations summary

@foreach($totals as $t) @endforeach
Total ({{ $t['currency'] }})
{{ number_format($t['sum'], 0, ',', ' ') }} {{ $t['currency'] }}
{{ $t['count'] }} completed
Total donations
{{ $donations->count() }}
all statuses
@endif {{-- Detailed table --}}

Donation details

@forelse($donations as $d) @php $donor = $d->person ? trim($d->person->last_name . ' ' . $d->person->first_name) : ($d->is_anonymous ? '(anonymous)' : ($d->donor_name ?? '—')); $email = $d->person?->email ?? $d->donor_email ?? '—'; @endphp @empty @endforelse
# Date Donor Email Amount Status Method Campaign Rec. Transaction ID
{{ $d->id }} {{ $d->created_at->format('Y-m-d') }} {{ $donor }} {{ $email }} {{ number_format($d->amount, 0, ',', ' ') }} {{ $d->currency }} {{ ucfirst($d->status) }} {{ $d->payment_method ?? '—' }} {{ $d->campaign ?? '—' }} {{ $d->is_recurring ? '✓' : '—' }} {{ $d->transaction_id ?? '—' }}
No donations match the selected filters.