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

🏥 Patient–Room Chart

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}
Total Rooms

{{ total_rooms }}

Occupied Rooms

{{ occupied_rooms }}

Vacant Rooms

{{ total_rooms - occupied_rooms }}

{% if rows %} {% for row in rows %} {% endfor %} {% else %} {% endif %}
Room No. Room Type Charges/Day Bed Count Patient Doctor Status
{{ row.room_number }} {{ row.room_type }} ₹{{ row.charges_per_day or '—' }} {{ row.bed_count or '—' }} {{ row.patient_name or '—' }} {{ row.doctor_name or '—' }} {% if row.patient_name %} Occupied {% else %} Vacant {% endif %}
No patient-room mapping found.
{% endblock %}