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

🏥 Patient Dashboard

Welcome, {{ session['username'] }}!

Here’s your medical summary and upcoming appointments.

Assigned Doctor
{{ doctor_name or 'Not Assigned' }}
Room
{{ room_type or 'Not Assigned' }}
Next Appointment
{{ next_appointment_date or 'No Upcoming' }}

📅 Your Appointments

{% for a in appointments %} {% else %} {% endfor %}
DateTimeDoctorStatus
{{ a.appointment_date }} {{ a.time_slot }} {{ a.doctor_name }} {% if a.appointment_date >= current_date %} Upcoming {% else %} Completed {% endif %}
No appointments found.

💳 Billing Summary

{% for b in bills %} {% else %} {% endfor %}
Doctor Fee (₹)Room Charge (₹)Medicine (₹)Total (₹)Status
{{ b.doctor_fee }} {{ b.room_charge }} {{ b.medicine_charge }} {{ b.total_bill }} {% if b.payment_status == 'Paid' %} Paid {% else %} Unpaid {% endif %}
No billing information available.
{% endblock %}