{% extends 'base.html' %} {% load static %} {% load tz %} {% load app_filters %} {% block content %} {% csrf_token %}
{% include 'components/welcome_section.html' with user=teacher %}
Students

{{ total_students }}

Total Students

{{ present_students }}

Present Today

{{ absent_students }}

Absent Today

Today's Classes

{{ today_classes }}

Total Classes

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

No classes scheduled for today

{% endif %}
Feedback Rating

{{ avg_rating|floatformat:1 }}/5.0

{% for i in "12345"|make_list %} {% if forloop.counter <= avg_rating_rounded %} {% else %} {% endif %} {% endfor %}

Based on {{ recent_feedback.count }} student feedbacks

Leave Status

Pending

{{ pending_leaves }}

Approved

{{ approved_leaves }}

Rejected

{{ rejected_leaves }}
Today's Classes
{% if today_routines %}
{% for routine in today_routines %} {% endfor %}
Subject Course Semester/Year Time Attendance Status Action
{{ routine.name }} {{ routine.course_name }} {{ routine.semester_or_year }} {{ routine.start_time|time:"h:i A" }} - {{ routine.end_time|time:"h:i A" }} {{ routine.attendance_count }}/{{ routine.total_students }} {% if routine.is_completed %} Completed {% elif routine.is_ongoing %} In Progress {% else %} Upcoming {% endif %} {% if routine.has_attendance %} Recorded {% else %} {% endif %}
{% else %}
No classes scheduled for today.
{% endif %}
Recent Feedback
{{ avg_rating|floatformat:1 }}/5.0
{% for i in "12345"|make_list %} {% if forloop.counter <= avg_rating_rounded %} {% else %} {% endif %} {% endfor %}
Based on {{ recent_feedback.count }} feedbacks
{% if recent_feedback %} {% else %}

No recent feedback yet.

{% endif %}
Recent Notices
{% if notices %}
{% for notice in notices %}
{{ notice.title }}
{{ notice.created_at|timesince }} ago

{{ notice.message }}

{% endfor %}
{% else %}
No recent notices.
{% endif %}
Your Class Schedule
{% if all_routines %}
{% for routine in all_routines %}
{{ routine.subject.name }}
{{ routine.start_time|time:"h:i A" }} - {{ routine.end_time|time:"h:i A" }}

{{ routine.course.name }} - Semester {{ routine.semester_or_year }}

{% endfor %}
{% else %}
No class schedules found.
{% endif %}
Attendance Management
{% if recent_attendance %}
{% for attendance in recent_attendance %} {% endfor %}
Date Subject Time Status Present/Total Action
{{ attendance.date|date:"M d, Y" }} {{ attendance.routine.subject.name }} {{ attendance.routine.start_time|time:"h:i A" }} - {{ attendance.routine.end_time|time:"h:i A" }} {{ attendance.class_status }} {{ attendance.present_count|default:"0" }}/{{ attendance.total_count|default:"0" }}
{% else %}
No recent attendance records found.
{% endif %}
Notices & Announcements
{% if notices %}
{% for notice in notices %}
{{ notice.title }}
{{ notice.created_at|date:"M d, Y" }}

{{ notice.message }}

Posted {{ notice.created_at|timesince }} ago
{% endfor %}
{% else %}
No notices available.
{% endif %}
Give Feedback to Institute
Your Recent Feedback
{% if institute_feedback %} {% else %}

You haven't submitted any feedback yet.

{% endif %}

Profile Information

{% if teacher.image %} {{ teacher.name }} {% else %} Default User {% endif %}

{{ teacher.name }}

{{ teacher.id }} {{ teacher.email }} {{ teacher.phone }}

{{ teacher.is_active|yesno:"Active,Inactive" }} {{ teacher.designation }}
Personal Information
Full Name

{{ teacher.name }}

Gender

{{ teacher.gender|default:"Not provided" }}

Birth Date

{{ teacher.birth_date|date:"M d, Y"|default:"Not provided" }}

Marital Status

{{ teacher.marital_status|default:"Not provided" }}

Citizenship No.

{{ teacher.citizenship_no|default:"Not provided" }}

Passport

{{ teacher.passport|default:"Not provided" }}

Contact Information
Email Address

{{ teacher.email|default:"Not provided" }}

Phone Number

{{ teacher.phone|default:"Not provided" }}

Parent Name

{{ teacher.parent_name|default:"Not provided" }}

Parent Phone

{{ teacher.parent_phone|default:"Not provided" }}

Temporary Address

{{ teacher.temporary_address|default:"Not provided" }}

Permanent Address

{{ teacher.permanent_address|default:"Not provided" }}

Employment Information
Employee ID

{{ teacher.id }}

Designation

{{ teacher.designation|default:"Not provided" }}

Joining Date

{{ teacher.joining_date|date:"M d, Y"|default:"Not provided" }}

Status

{{ teacher.is_active|yesno:"Active,Inactive" }}

Permissions

{% for group in teacher.groups.all %} {{ group.name }} {% empty %} No specific permissions {% endfor %}

Qualifications
Educational Background {% if teacher.education_set.all %} {% for education in teacher.education_set.all %}

{{ education.degree }}, {{ education.institution }} ({{ education.year }})

{{ education.specialization }}
{% endfor %} {% else %}

No educational qualifications recorded

{% endif %} {% if teacher.qualification %}
Additional Qualifications

{{ teacher.qualification }}

{% endif %}
{% if teacher.skills %}
Skills & Specialization

{{ teacher.specialization|default:"No specialization information available" }}

{% for skill in teacher.skills %} {{ skill.strip }} {% endfor %}
{% endif %}

Leave Management

{{ pending_leaves }}

Pending Requests

{{ approved_leaves }}

Approved Requests

{{ rejected_leaves }}

Rejected Requests

Leave History
{% if recent_leaves %} {% for leave in recent_leaves %} {% endfor %} {% else %} {% endif %}
Start Date End Date Reason Status Applied On
{{ leave.start_date|date:"M d, Y" }} {{ leave.end_date|date:"M d, Y" }} {{ leave.message }} {{ leave.get_status_display }} {{ leave.created_at|date:"M d, Y" }}
No leave history available

Your Subjects & Materials

Manage study materials, notes, and resources for students.

Manage Subject Materials
{% for routine in teacher_subjects %}
{{ routine.subject.name }}
{{ routine.course.name }} - {{ routine.subject.semester_or_year }}

{{ routine.start_time|time:"h:i A" }} - {{ routine.end_time|time:"h:i A" }}

{{ routine.students_count|default:"0" }} students

View Syllabus {% if routine.subject.get_all_files|length > 0 %} View Materials {% else %} Upload Materials {% endif %}
{% empty %}
You don't have any subjects assigned.
{% endfor %}

Manage Subject Materials

{% include 'components/common_modals.html' with user=teacher %} {% include 'components/teacher_modals.html' %} {% include 'components/teacher_feedback_modal.html' %} {% include 'components/bottom_nav.html' with user=teacher %} {% endblock %} {% block extrastyle %} {{ block.super }} {% endblock %}