{% extends "base.html" %} {% load static %} {% load tz %} {% load app_filters %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block extrahead %} {{ block.super }} {% endblock %} {% block content %}
{% if student.image %} {{ student.name }} {% else %} Default User {% endif %}

Welcome, {{ student.name }}!

Student ID: {{ student.id }}

Attendance Summary
Total Classes

{{ attendance_summary.total_classes }}

Attendance Rate

{{ attendance_summary.attendance_percentage|floatformat:1 }}%

Current: {{ attendance_summary.current_streak }} days Best: {{ attendance_summary.longest_streak }} days
Course Progress
Total Courses

{{ course_summary.total_courses }}

Completion Rate

{{ course_summary.completion_percentage|floatformat:1 }}%

Completed {{ course_summary.completed_courses }}
Ongoing {{ course_summary.ongoing_courses }}
Recent Activity
{% for leave in recent_leaves %}
Leave Request ({{ leave.date|date:"M d" }}) {{ leave.get_status_display }} {{ leave.created_at|timesince }} ago
{% endfor %} {% for feedback in recent_feedback %}
Gave feedback {% if feedback.teacher %}to {{ feedback.teacher.name }}{% endif %}
{% for i in "12345"|make_list %} {% if forloop.counter <= feedback.rating %} {% else %} {% endif %} {% endfor %} {{ feedback.created_at|timesince }} ago
{% endfor %} {% for notice in notices %}
{{ notice.title }} {{ notice.created_at|timesince }} ago
{% endfor %} {% for record in attendance_records %}
{% if record.student_attend %}Attended{% else %}Missed{% endif %} {{ record.attendance.routine.subject.name|truncatechars:15 }} {{ record.attendance.date|date:"M d" }}
{% endfor %} {% if not recent_leaves and not recent_feedback and not notices and not attendance_records %}
No recent activity
{% endif %}
Leave Status
Pending {{ pending_leaves }}
Approved {{ approved_leaves }}
Rejected {{ rejected_leaves }}

Course Details

{% if course_details %} {% for course in course_details %}
{{ course.name }}
{{ course.progress_status }}
{{ course.completion_percentage }}%
{% if course.actual_end_date %} {% endif %}
Start Date {{ course.start_date|date:"M d, Y" }}
Duration Type {{ course.duration_type }}
Total Duration {% if course.duration_type == "Semester" %} {{ course.duration }} years ({{ course.duration|multiply:2 }} semesters) {% else %} {{ course.duration }} years {% endif %}
Expected End Date {{ course.expected_end_date|date:"M d, Y" }}
Actual End Date {{ course.actual_end_date|date:"M d, Y" }}
{% if course.remaining_days is not None %} {% endif %} {% if course.total_remaining_days is not None %} {% endif %}
Current Semester {{ course.current_semester }}
Semester Start {{ course.semester_start_date|date:"M d, Y" }}
Semester End {{ course.semester_end_date|date:"M d, Y" }}
Semester Days Remaining {{ course.remaining_days }} days
Total Course Days Remaining {{ course.total_remaining_days }} days
{% endfor %} {% else %}
No courses assigned yet.
{% endif %}

Current Semester Subjects

{% if current_subjects %}
{% for subject in current_subjects %}
{{ subject.name }}

Semester: {{ subject.semester_or_year }}

{% endfor %}
{% else %}
No subjects assigned for the current semester.
{% endif %}

Class Routine

{% if current_semester_routines %} {% for routine in current_semester_routines %} {% endfor %} {% elif has_routines %} {% else %} {% endif %}
Time Subject Teacher
{{ routine.start_time|time:"H:i" }} - {{ routine.end_time|time:"H:i" }} {{ routine.subject.name }} {{ routine.teacher.name }}
No routines for current semester (Semester {{ student.current_semester }}).
No routines assigned yet.

Attendance Record

{% for record in attendance_records %} {% empty %} {% endfor %}
Date Subject Teacher Status
{{ record.attendance.date|date:"M d, Y" }} {{ record.attendance.routine.name }} {{ record.attendance.teacher.name }} {% if record.student_attend %}Present{% else %}Absent{% endif %}
No attendance records found.

Leave Management

{% for leave in student_leaves %} {% empty %} {% endfor %}
Date Message Status Created At
{{ leave.date|date:"M d, Y" }} {{ leave.message }} {{ leave.get_status_display }} {{ leave.created_at|date:"M d, Y H:i" }}
No leave requests found.

Feedback

Teacher Feedback

{% for feedback in student.feedbacks.all %}
{{ feedback.teacher.name }}
{% for i in "12345"|make_list %} {% with i_float=forloop.counter|floatformat:0|add:"0" %} {% if feedback.rating >= i_float %} {% elif feedback.rating >= i_float|add:"-0.5" %} {% else %} {% endif %} {% endwith %} {% endfor %}
{{ feedback.created_at|timesince }} ago {{ feedback.rating }}/5
{% empty %}
No feedback given to teachers yet.
{% endfor %}

Institute Feedback

{% for feedback in student.institute_feedbacks.all %}
{{ feedback.feedback_type }}
{% for i in "12345"|make_list %} {% with i_float=forloop.counter|floatformat:0|add:"0" %} {% if feedback.rating >= i_float %} {% elif feedback.rating >= i_float|add:"-0.5" %} {% else %} {% endif %} {% endwith %} {% endfor %}
{{ feedback.created_at|timesince }} ago {{ feedback.rating }}/5
{% empty %}
No institute feedback given yet.
{% endfor %}

Notices

{% for notice in notices %}
{% if notice.image %} {{ notice.title }} {% endif %}
{{ notice.title }}

{{ notice.message }}

{{ notice.created_at|date:"M d, Y" }} {% if notice.file %} Download {% endif %}
{% empty %}

No notices available.

{% endfor %}

Profile Information

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

{{ student.name }}

{{ student.id }} {{ student.email }} {{ student.phone }}

{{ student.status }} {% if student.course %} {{ student.course.name }} {% endif %} Semester {{ student.current_semester }}
Personal Information
Full Name

{{ student.name }}

Gender

{{ student.gender }}

Birth Date

{{ student.birth_date|date:"M d, Y" }}

Marital Status

{{ student.marital_status }}

Citizenship No.

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

Joining Date

{{ student.joining_date|date:"M d, Y" }}

Contact Information
Email Address

{{ student.email }}

Phone Number

{{ student.phone }}

Parent Name

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

Parent Phone

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

Temporary Address

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

Permanent Address

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

Academic Information
Course

{{ student.course.name|default:"Not assigned" }}

Current Semester

{{ student.current_semester }}

Joining Date

{{ student.joining_date|date:"M d, Y" }}

Batches

{% for batch in student.batches.all %} {{ batch.name }} {% empty %} No batches assigned {% endfor %}

{% endblock %}