{% extends 'familytouch/base.html' %} {% block title %}Admin Dashboard - FamilyTouch{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

📊 Dashboard

Welcome back! Here's an overview of your FamilyTouch platform

{% if user.is_authenticated %} 👤 My Profile {% endif %}
🏥
↑ 12%
{{ total_patients }}
Total Patients
👨‍⚕️
↑ 8%
{{ total_doctors }}
Healthcare Providers
📅
↑ 24%
{{ total_appointments }}
Appointments
👪
↑ 15%
{{ total_connections }}
Care Connections

📋 Recent Activity

View All →
{% if recent_appointments %} {% for apt in recent_appointments %}
📅
Appointment scheduled
{{ apt.start_time|date:"M d, Y" }} at {{ apt.start_time|time:"g:i A" }}
{% endfor %} {% else %}
📭

No recent activity

{% endif %}

👥 Recent Users

View All →
{% if recent_users %} {% for user in recent_users %} {% endfor %}
User Role Email Status Joined
{{ user.get_full_name|default:user.username }} {% if user.profile %} {% if user.profile.user_type == 'patient' %} Patient {% elif user.profile.user_type == 'doctor' %} Doctor {% elif user.profile.user_type == 'family' %} Family {% else %} User {% endif %} {% else %} No Profile {% endif %} {{ user.email }} {% if user.is_active %} Active {% else %} Inactive {% endif %} {{ user.date_joined|date:"M d, Y" }}
{% else %}
👥

No users yet

{% endif %}
{% endblock %}