{% extends "base.html" %}{% set active="appointments" %}{% block title %}Appointments{% endblock %}{% block page_title %}Appointments{% endblock %} {% block content %} {% if msg %}
| # | {% if role != 'patient' %}Patient | {% endif %} {% if role != 'doctor' %}Doctor | {% endif %}Date & Time | Service | Reason | Status | Actions |
|---|---|---|---|---|---|---|---|
| #{{ a.appointment_id }} | {% if role != 'patient' %}{{ a.patient_name }}{% if a.patient_phone %} {{ a.patient_phone }} {% endif %} | {% endif %}
{% if role != 'doctor' %}{{ a.doctor_name }}{% if a.specialization %} {{ a.specialization }} {% endif %} | {% endif %}
{{ a.appointment_datetime[:10] }} {{ a.appointment_datetime[11:16] }} |
{{ a.service_name or '—' }} | {{ a.reason or '—' }} | {{ a.status }} | {% if a.status == 'Scheduled' %} {% if role in ['admin','receptionist'] %} {% endif %} {% if role in ['doctor','admin'] %} {% endif %} {% elif a.status == 'Completed' and a.diagnosis %} {% endif %} |
No appointments found. | |||||||