@extends('layouts.admin') @section('title', 'Offerings') @section('page-title', 'Offerings') @section('page-subtitle', 'Track church offerings') @section('content')

Total Offerings

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

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

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

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

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

@endif @endforeach

Offerings - {{ $year }}

Record Offering
@forelse($offerings as $offering) @empty @endforelse
Date Service Type Method Amount Actions
{{ $offering->offering_date->format('M d, Y') }} {{ $offering->service_name }} {{ $types[$offering->offering_type] ?? ucfirst($offering->offering_type) }} {{ ucfirst(str_replace('_', ' ', $offering->collection_method)) }} GH₵{{ number_format($offering->amount, 2) }}
@csrf @method('DELETE')
No offerings recorded yet. Record one
{{ $offerings->withQueryString()->links() }}
@endsection