{% extends 'base.html' %} {% block content %}
Total Users{{ stats.total_users }}
Active Users{{ stats.active_users }}
Admins{{ stats.admins }}
Doctors{{ stats.doctors }}
Patients{{ stats.patients }}
Appointments{{ stats.appointments }}
Scheduled{{ stats.scheduled }}
Completed{{ stats.completed }}
Cancelled{{ stats.cancelled }}
No Show{{ stats.no_show }}

Reminder & Notification Center

Review the latest system alerts and generate reminders for appointments happening in the next 24 hours.

{% if notifications %}
{% for notification in notifications %}
{{ notification.title }} For: {{ user_lookup.get(notification.user_id, 'User') }} {{ notification.message }} {{ notification.created_at }}
{% endfor %}
{% else %}

No notifications have been generated yet.

{% endif %}

Recent Users

{% for u in recent_users %} {% endfor %}
NameEmailRoleStatus
{{ u.full_name }} {{ u.email }} {{ u.role.value }} {{ 'Active' if u.is_active else 'Inactive' }}

Recent Appointments

{% for a in appointments %} {% endfor %}
PatientDoctorWhenStatus
{{ user_lookup.get(a.patient_id, 'Patient') }} {{ user_lookup.get(a.doctor_id, 'Doctor') }} {{ a.scheduled_time }} {{ a.status.value }}

Recent Audit Activity

{% for log in logs %} {% endfor %}
ActionEntityTarget IDDetailsWhen
{{ log.action }} {{ log.entity_type }} {{ log.entity_id }} {{ log.details }} {{ log.created_at }}
{% endblock %}