@extends('layouts.admin') @section('title', 'Finance Overview') @section('page-title', 'Finance Overview') @section('page-subtitle', 'Financial management dashboard') @section('content')

Total Donations

{{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($stats['total_donations'] ?? 0, 2) }}

This month: {{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($stats['monthly_donations'] ?? 0, 2) }}

Total Expenses

{{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($stats['total_expenses'] ?? 0, 2) }}

This month: {{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($stats['monthly_expenses'] ?? 0, 2) }}

Active Pledges

{{ number_format($stats['active_pledges'] ?? 0) }}

Outstanding: {{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($stats['outstanding_pledges'] ?? 0, 2) }}

Net Balance

{{ church_setting('currency_symbol', 'GH₵') }}{{ number_format(abs($stats['net_balance'] ?? 0), 2) }}

Income - Expenses

Recent Donations

View All
@forelse($recentDonations ?? [] as $donation)

{{ $donation->is_anonymous ? 'Anonymous' : ($donation->member?->full_name ?? $donation->donor_name ?? 'N/A') }}

{{ $donation->donationType?->name ?? 'Donation' }}

{{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($donation->amount, 2) }}

{{ $donation->donation_date->format('M j, Y') }}

@empty

No recent donations

@endforelse

Recent Expenses

View All
@forelse($recentExpenses ?? [] as $expense)

{{ Str::limit($expense->description, 30) }}

{{ $expense->category?->name ?? 'Uncategorized' }}

{{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($expense->amount, 2) }}

{{ $expense->expense_date->format('M j, Y') }}

@empty

No recent expenses

@endforelse

Quick Actions

@endsection