@extends('layouts.admin') @section('title', 'Offerings Report') @section('page-title', 'Offerings Report') @section('page-subtitle', 'Church offerings analysis') @section('content')

Total Offerings

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

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

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

{{ $types[$type] ?? ucfirst($type) }}

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

@endif @endforeach @endif

Offerings - {{ $year }}

Export CSV
@forelse($offerings as $offering) @empty @endforelse
Date Service Type Amount
{{ $offering->offering_date->format('M d, Y') }} {{ $offering->service_name }} {{ $types[$offering->offering_type] ?? ucfirst($offering->offering_type) }} GH₵{{ number_format($offering->amount, 2) }}
No offerings found.
{{ $offerings->withQueryString()->links() }}
@endsection