@extends('layouts.admin') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('page-subtitle', 'Church overview and statistics') @section('content')
Total Members
{{ number_format($stats['total_members']) }}
{{ $stats['new_members_this_month'] }} this month
Active Members
{{ number_format($stats['active_members']) }}
{{ round($stats['active_members'] / max($stats['total_members'], 1) * 100) }}% of total
Visitors
{{ number_format($stats['total_visitors']) }}
{{ $stats['new_visitors_this_month'] }} this month
Follow-ups
{{ $stats['pending_follow_ups'] }}
{{ $stats['overdue_follow_ups'] }} overdue
@endifTotal Donations
GH₵{{ number_format($stats['total_donations'], 2) }}
GH₵{{ number_format($stats['donations_this_month'], 2) }} this month
Total Expenses
GH₵{{ number_format($stats['total_expenses'], 2) }}
GH₵{{ number_format($stats['expenses_this_month'], 2) }} this month
Upcoming Events
{{ $eventStats['upcoming_events'] }}
{{ $eventStats['events_this_month'] }} this month
Last 6 months overview
{{ number_format($totalAttendance) }}
Total Attendance
{{ number_format($avgAttendance) }}
Monthly Average
{{ number_format($maxAttendance) }}
Highest Month
Last 6 months trends
GH₵{{ number_format(array_sum(array_column($financialTrends, 'income')), 0) }}
Total Income
GH₵{{ number_format(array_sum(array_column($financialTrends, 'expenses')), 0) }}
Total Expenses
GH₵{{ number_format(array_sum(array_column($financialTrends, 'net_balance')), 0) }}
Net Balance
GH₵{{ number_format(collect($financialTrends)->avg('income') ?? 0, 0) }}
Avg Monthly
{{ $member->full_name }}
{{ $member->membership_status }}
No recent members
@endforelse{{ $donation->is_anonymous ? 'Anonymous' : ($donation->donor_name ?? $donation->member?->full_name ?? 'Unknown') }}
{{ $donation->donationType?->name ?? 'General' }}
No recent donations
@endforelse| Date | Type | Member/Visitor | Assigned To | Status |
|---|---|---|---|---|
| {{ $followUp->follow_up_date->format('M d, Y') }} | {{ $followUp->type }} | {{ $followUp->member?->full_name ?? $followUp->visitor?->full_name ?? 'N/A' }} | {{ $followUp->assignee?->name ?? 'Unassigned' }} | {{ ucfirst($followUp->status) }} |
| No upcoming follow-ups | ||||
| Event | Date & Time | Location | Type | RSVPs |
|---|---|---|---|---|
| {{ $event->title }} |
{{ $event->start_date->format('M d, Y') }}
{{ $event->start_date->format('h:i A') }}
|
{{ $event->location ?? 'TBD' }} | {{ str_replace('_', ' ', $event->event_type) }} | {{ $event->rsvps_count }} |
| No upcoming events | ||||
{{ $systemTrends['fundraisers']['total'] }}
Fundraisers
{{ $systemTrends['sunday_school']['classes'] }}
Children Ministry
{{ $systemTrends['prayer_requests']['pending'] }}
Prayer Requests
{{ $systemTrends['equipment']['available'] }}
Equipment Available
Growth
Monthly Metrics
{{ $systemAnalytics['users_count'] }}
System Users
{{ $systemAnalytics['roles_count'] }}
Roles
{{ $systemAnalytics['services_count'] }}
Services
{{ $systemAnalytics['clusters_count'] }}
Clusters
{{ $systemAnalytics['adult_members'] }}
Adult Members
{{ $systemAnalytics['minor_members'] }} minors
{{ $systemAnalytics['pending_follow_ups'] }}
Pending Follow-ups
{{ $systemAnalytics['overdue_follow_ups'] }} overdue
@endif{{ round($systemAnalytics['avg_weekly_attendance']) }}
Avg Weekly Attendance
{{ round($systemAnalytics['avg_donation']) }}
Avg Donation (GH₵)
{{ round($systemAnalytics['avg_tithe']) }}
Avg Tithe (GH₵)
{{ $systemAnalytics['total_tithes'] }}
Total Tithes Records
{{ $systemAnalytics['total_welfare'] }}
Total Welfare Records