@extends('layouts.admin') @section('title', 'Donations Report') @section('page-title', 'Donations Report') @section('page-subtitle', 'Member donations analysis') @section('content')

Total Donations

GH₵{{ number_format($stats['total'], 2) }}

{{ $stats['count'] }} donations

@if($stats['by_type']->count() > 0) @foreach($stats['by_type'] as $type => $amount) @if($loop->iteration <= 2)

{{ $type }}

GH₵{{ number_format($amount, 2) }}

@endif @endforeach @endif

Donations - {{ $year }}

Export CSV
@forelse($donations as $donation) @empty @endforelse
Date Receipt # Donor Type Amount
{{ $donation->donation_date->format('M d, Y') }} {{ $donation->receipt_number }} {{ $donation->is_anonymous ? 'Anonymous' : ($donation->donor_name ?? $donation->member?->full_name ?? 'N/A') }} {{ $donation->donationType?->name ?? 'N/A' }} GH₵{{ number_format($donation->amount, 2) }}
No donations found.
{{ $donations->withQueryString()->links() }}
@endsection