{{-- Header --}}

Pastor Dashboard

Overview of church activities and statistics

{{-- Stats Cards --}}
{{-- Total Members --}}

Total Members

{{ number_format($totalMembers ?? 156) }}

+3 this month

{{-- Average Attendance --}}

Avg. Attendance

{{ $attendancePercent ?? 88 }}%

+5% from last month

{{-- Monthly Income --}}

Monthly Income

₦{{ number_format($monthlyIncome ?? 31000) }}

{{ now()->format('F Y') }}

{{-- Alerts --}}

Alerts

{{ ($alerts['three_consecutive_absence']->count() ?? 0) + ($alerts['upcoming_birthdays']->count() ?? 0) }}

Requires attention

{{-- Charts and Widgets --}}
{{-- Attendance Trend Chart --}}

Attendance Trend

{{-- Financial Breakdown --}}

Financial Breakdown

{{-- Alerts Section --}}
{{-- Recent Alerts --}}

Recent Alerts

@if(isset($alerts['three_consecutive_absence']) && $alerts['three_consecutive_absence']->isNotEmpty())

{{ $alerts['three_consecutive_absence']->count() }} members absent for 3+ weeks

Requires pastoral visit

@endif @if(isset($alerts['upcoming_birthdays']) && $alerts['upcoming_birthdays']->isNotEmpty())

{{ $alerts['upcoming_birthdays']->count() }} upcoming birthdays this week

Consider celebration

@endif @if((!isset($alerts['three_consecutive_absence']) || $alerts['three_consecutive_absence']->isEmpty()) && (!isset($alerts['upcoming_birthdays']) || $alerts['upcoming_birthdays']->isEmpty()))

No alerts at this time

@endif
{{-- Quick Actions --}}

Quick Actions

@php try { $reportsUrl = route('reports.index'); } catch (\Exception $e) { $reportsUrl = url('/reports'); } try { $membersUrl = route('members.index'); } catch (\Exception $e) { $membersUrl = url('/members'); } @endphp

View Financial Reports

See detailed income and expenses

Member Directory

Access complete member list

Attendance Reports

View detailed attendance statistics

{{-- Birthday List --}}