{% extends "admin/base_admin.html" %} {% from "admin/components/modern_card.html" import render_modern_card, render_action_button, render_status_badge %} {% block title %}Enhanced Admin Dashboard{% endblock %} {% block content %}

Welcome back, {{ current_user.full_name }}

{{ current_user.group.name if current_user.group else 'System Administrator' }}

System Online
{{ moment().format('dddd, MMMM Do YYYY') if moment else now.strftime('%A, %B %d, %Y') }}
{{ render_action_button("Add Member", "fas fa-user-plus", url_for('admin_add_member'), "green") }} {{ render_action_button("Quick Reports", "fas fa-chart-bar", url_for('admin_reports'), "purple") }}
{{ render_modern_card("Total Members", "fas fa-users", members_count, "Active members in group", "blue", 12) }} {{ render_modern_card("Monthly Contributions", "fas fa-money-bill-wave", "৳" + "{:,.2f}".format(monthly_total), "This month", "green", 8) }} {{ render_modern_card("Pending Requests", "fas fa-clock", pending_requests, "Awaiting approval", "yellow", -5) }} {{ render_modern_card("Total Balance", "fas fa-piggy-bank", "৳" + "{:,.2f}".format(total_balance), "Group savings", "purple", 15) }}

Quick Actions

Common administrative tasks

Add Contribution

Record new payment

Bulk Import

Import multiple records

Create Event

Special collection event

Recent Activity

{% for activity in recent_activities[:5] %}

{{ activity.description }}

{{ activity.created_at.strftime('%b %d, %Y at %I:%M %p') }}

{% endfor %}

Monthly Payment Status

{{ paid_members_count }}
Paid This Month
{{ unpaid_members_count }}
Payment Pending
{% if unpaid_members %}

Members with pending payments:

{% for member in unpaid_members[:3] %}
{{ member.custom_id }}
{{ member.full_name }}
Overdue
{% endfor %}
{% endif %}
{% endblock %}