{% extends 'familytouch/base.html' %} {% block title %}All Users - FamilyTouch{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ total_patients }}
Patients
{{ total_doctors }}
Doctors
{{ total_family }}
Family Members
{{ total_users }}
Total Users
{{ total_appointments }}
Appointments
{{ total_connections }}
Connections
{{ total_pending_invitations }}
Pending Invitations
{{ total_messages }}
Messages
{% if patients %} {% for patient in patients %}
{{ forloop.counter }}
Patient
{{ patient.total_appointments }}
Total Appointments
{{ patient.upcoming_appointments }}
Upcoming
{{ patient.completed_appointments }}
Completed
{{ patient.cancelled_appointments }}
Cancelled
{{ patient.doctor_count }}
Doctors
{{ patient.family_count }}
Family Members
๐Ÿ“Š Health Tracking & Activity
Vitals Recorded
{{ patient.vitals_count }}
Meal Choices
{{ patient.meals_count }}
Patient Updates
{{ patient.updates_count }}
Invitations Sent
{{ patient.pending_invitations_sent }}
Invitations Received
{{ patient.pending_invitations_received }}
Profile Type
{{ patient.profile.user_type|title }}
{% if patient.appointment_list %}
๐Ÿ“… Upcoming Appointments
{% for appt in patient.appointment_list %}
{{ appt.start|date:"M d, Y @ g:i A" }} with Dr. {{ appt.provider.get_full_name|default:appt.provider.username }}
{{ appt.reason|default:"General consultation" }}
{% endfor %}
{% endif %} {% if patient.doctors %}
๐Ÿ‘จโ€โš•๏ธ Connected Doctors ({{ patient.doctor_count }}):
{% for doctor in patient.doctors %}
{{ doctor.name }}
@{{ doctor.username }} โ€ข {{ doctor.email|default:"No email" }}
{% endfor %}
{% endif %} {% if patient.family_members %}
๐Ÿ‘ช Connected Family ({{ patient.family_count }}):
{% for family in patient.family_members %}
{{ family.name }}
@{{ family.username }} โ€ข {{ family.email|default:"No email" }}
{% endfor %}
{% endif %}
{% endfor %} {% else %}
๐Ÿง‘โ€โš•๏ธ

No patients found

{% endif %}
{% if doctors %} {% for doctor in doctors %}
{{ forloop.counter }}
Doctor
{{ doctor.total_appointments }}
Total Appointments
{{ doctor.upcoming_appointments }}
Upcoming
{{ doctor.completed_appointments }}
Completed
{{ doctor.requested_appointments }}
Requested
{{ doctor.cancelled_appointments }}
Cancelled
{{ doctor.patient_count }}
Patients
๐Ÿ“Š Doctor Activity
Invitations Sent
{{ doctor.pending_invitations_sent }}
Invitations Received
{{ doctor.pending_invitations_received }}
Profile Type
{{ doctor.profile.user_type|title }}
Past Appointments
{{ doctor.past_appointments }}
{% if doctor.appointment_list %}
๐Ÿ“… Upcoming Appointments
{% for appt in doctor.appointment_list %}
{{ appt.start|date:"M d, Y @ g:i A" }} with {{ appt.patient.get_full_name|default:appt.patient.username }}
{{ appt.reason|default:"General consultation" }}
{% endfor %}
{% endif %} {% if doctor.patients %}
๐Ÿง‘โ€โš•๏ธ Connected Patients ({{ doctor.patient_count }}):
{% for patient in doctor.patients %}
{{ patient.name }}
@{{ patient.username }} โ€ข {{ patient.email|default:"No email" }}
{% endfor %}
{% endif %}
{% endfor %} {% else %}
๐Ÿ‘จโ€โš•๏ธ

No doctors found

{% endif %}
{% if family_members %} {% for family in family_members %}
{{ forloop.counter }}
Family Member
{{ family.patient_count }}
Connected Patients
{{ family.sent_messages }}
Messages Sent
{{ family.received_messages }}
Messages Received
{{ family.unread_messages }}
Unread Messages
๐Ÿ“Š Family Activity
Invitations Sent
{{ family.pending_invitations_sent }}
Invitations Received
{{ family.pending_invitations_received }}
Profile Type
{{ family.profile.user_type|title }}
Total Messages
{{ family.sent_messages|add:family.received_messages }}
{% if family.patients %}
๐Ÿง‘โ€โš•๏ธ Connected Patients ({{ family.patient_count }}):
{% for patient in family.patients %}
{{ patient.name }}
@{{ patient.username }} โ€ข {{ patient.email|default:"No email" }}
{% endfor %}
{% endif %}
{% endfor %} {% else %}
๐Ÿ‘ช

No family members found

{% endif %}

๐Ÿ‘ฅ All Members

{% for patient in patients %}
๐Ÿง‘โ€โš•๏ธ

{{ patient.user.get_full_name|default:patient.user.username }}

@{{ patient.user.username }}

Patient
{% endfor %} {% for doctor in doctors %}
๐Ÿ‘จโ€โš•๏ธ

{{ doctor.user.get_full_name|default:doctor.user.username }}

@{{ doctor.user.username }}

Doctor
{% endfor %} {% for family in family_members %}
๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ

{{ family.user.get_full_name|default:family.user.username }}

@{{ family.user.username }}

Family
{% endfor %}
{% endblock %}