{% extends 'shared/base.html' %} {% load static %} {% load tz %} {% load app_filters %} {% block title %}HOD Dashboard - {{ course.name }}{% endblock title %} {% block head %} {{ block.super }} {% endblock head %} {% block content %} {% csrf_token %} {% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %} {% include 'shared/common_modals.html' %}
{% include 'shared/welcome_section.html' %}
Students

{{ total_students }}

Total Students

{{ total_staff }}

Staff

{{ total_subjects }}

Subjects

Today's Classes

{{ today_classes|length }}

Total Classes

{% if today_classes %}
{% for class in today_classes|slice:":3" %} {{ class.subject.name|truncatechars:15 }} {% endfor %} {% if today_classes|length > 3 %} +{{ today_classes|length|add:"-3" }} more {% endif %}
{% else %}

No classes scheduled for today

{% endif %}
Student Progress
{% if student_progress %}
{% for progress in student_progress|slice:":3" %}
{{ progress.student.name }}
{{ progress.completion_percentage }}%
{% endfor %}
{% else %}

No progress data available

{% endif %}
Upcoming Meetings
{% if upcoming_meetings %} {% for meeting in upcoming_meetings|slice:":3" %}
{{ meeting.meeting_date|date:"M d, Y" }} {{ meeting.meeting_time|time:"h:i A" }}
{{ meeting.get_status_display }}
{% endfor %} {% if upcoming_meetings|length > 3 %}
+{{ upcoming_meetings|length|add:"-3" }} more meetings
{% endif %} {% else %}

No upcoming meetings

{% endif %}
Today's Classes
{% if today_classes %}
{% for class in today_classes %} {% endfor %}
Subject Code Teacher Time Period/Year Status
{{ class.subject.name }} {{ class.subject.code|default:"-" }} {{ class.teacher.name }} {{ class.start_time|time:"h:i A" }} - {{ class.end_time|time:"h:i A" }} {{ class.period_or_year }} {% if class.attendance %} {% if class.attendance.class_status %}Conducted{% else %}Cancelled{% endif %} {% else %} Pending {% endif %}
{% else %}
No classes scheduled for today.
{% endif %}
Student Progress
{% if student_progress_all %}
{% for progress in student_progress_all %} {% endfor %}
Student Batch Current Period Completion % Status Actions
{% if progress.student.image %} {% else %}
{{ progress.student.name|slice:":1" }}
{% endif %} {{ progress.student.name }}
{% for batch in progress.student.batches.all %} {{ batch.name }}{% if not forloop.last %}, {% endif %} {% endfor %} {{ progress.student.current_period }}
{{ progress.completion_percentage }}%
{% if progress.progress_status == "Completed" %} Completed {% elif progress.progress_status == "In Progress" %} In Progress {% elif progress.progress_status == "Not Started" %} Not Started {% elif progress.progress_status == "Dropped" %} Dropped {% endif %}
{% else %}
No progress data found for the selected batch.
{% endif %}
Recent Feedback
{% if recent_feedback %} {% else %}
No recent feedback available.
{% endif %}
{% include 'hod/modals/add_subject_modal.html' %} {% include 'hod/modals/edit_subject_modal.html' %} {% include 'hod/modals/view_subject_modal.html' %} {% include 'hod/modals/add_staff_modal.html' %} {% include 'hod/modals/view_staff_modal.html' %} {% include 'hod/modals/edit_staff_modal.html' %} {% include 'hod/modals/add_student_modal.html' %} {% include 'hod/modals/edit_student_modal.html' %} {% include 'hod/modals/view_student_modal.html' %} {% include 'hod/modals/add_meeting_modal.html' %} {% include 'hod/modals/edit_meeting_modal.html' %} {% include 'hod/modals/view_meeting_modal.html' %} {% include 'hod/modals/cancel_meeting_modal.html' %} {% include 'hod/modals/meeting_notes_modal.html' %} {% include 'hod/modals/meeting_agenda_modal.html' %} {% include 'hod/modals/cancellation_reason_modal.html' %} {% include 'hod/modals/add_routine_modal.html' %} {% include 'hod/modals/edit_routine_modal.html' %} {% include 'shared/bottom_nav.html' with user=hod %} {% include 'hod/modals/notice_modal.html' %} {% include 'hod/modals/edit_progress_modal.html' %} {% endblock content %} {% block extrastyle %} {{ block.super }} {% endblock extrastyle %}