{% extends "base.html" %} {% block content %}

Appointments

{% if role in ['admin', 'patient'] %}
Book New Appointment
{% endif %}

Upcoming Appointments

{% if upcoming %} {% for a in upcoming %} {% endfor %}
ID Date Time Patient Doctor
{{ a.appointment_id }} {{ a.appointment_date }} {{ a.time_slot }} {{ a.patient_name }} {{ a.doctor_name }}
{% else %}

No upcoming appointments.

{% endif %}

Completed Appointments

{% if completed %} {% for a in completed %} {% endfor %}
ID Date Time Patient Doctor
{{ a.appointment_id }} {{ a.appointment_date }} {{ a.time_slot }} {{ a.patient_name }} {{ a.doctor_name }}
{% else %}

No completed appointments.

{% endif %}
{% endblock %}