{% extends 'base.html'%} {% block title %} Patient Dashboard | Main Dashboard {% endblock %} {% load static %} {% load crispy_forms_tags %} {% load widget_tweaks %} {% block content %}
{% include 'dashboards/patient/sidebar.html'%}
{% include 'dashboards/patient/topbar.html' %}

Dashboard

{% include 'dashboards/patient/alert.html' %}
Booking
{{booking_count}}
Confirmed
{{booking_confirmed}}
Rejected
{{booking_rejected}}
Pending Requests
{{booking_progress}}

Bookings

{% if booking %} {% for b in booking %} {% endfor %}
Name Time Date Specialization Status Action
{% if b.doctor %} Jese image
Dr. {{b.doctor.first_name}} {{b.doctor.last_name}}
{{b.doctor.user.email}}
{% else %} Jese image
{{b.clinic.name}}
{{b.clinic.user.email}}
{% endif %}
{{b.time}} {{b.date}} {% if b.doctor %} {{b.doctor.specialization}} {% else %} {% if b.clinic.specialization.all %} {% for s in b.clinic.specialization.all|slice:':1' %} {{ s.name }} {% endfor %} {% endif %} {% endif %}
{% if b.status == 'confirmed' %} Confirmed {% elif b.status == 'rejected' %} Rejected {% else %} In Progress {% endif %}
Delete
{% else %}

No Bookings Yet

{% endif %}
{% endblock %}