{% extends 'shared/base.html' %} {% load static %} {% load tz %} {% load app_filters %} {% block content %} {% csrf_token %}
{% include 'shared/welcome_section.html' with user=student %}
Attendance Summary
Days Attended

{{ attendance_summary.classes_attended }}

{% if attendance_summary.actual_classes %} Classes Recorded
{{ attendance_summary.actual_classes }}
{% endif %}
Attendance Rate

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

{% if attendance_summary.actual_percentage %} Rate (Recorded Only)
{{ attendance_summary.actual_percentage|floatformat:1 }}%
{% endif %}
0%
100%
Minimum required: 75% {% if attendance_summary.attendance_percentage < 75 %} Below minimum requirement {% endif %}
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 %}
Course Name {{ course.name }}
Course Code {{ course.code|default:"-" }}
Description {{ course.description|default:"No description available" }}
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 %}
Status {{ course.is_active|yesno:"Active,Inactive" }}
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 %}
{% if course.duration_type == "Semester" %}Current Semester{% else %}Current Year{% endif %} {% if course.duration_type == "Semester" %}Semester{% else %}Year{% endif %} {{ course.current_period }}
{% if course.duration_type == "Semester" %}Semester{% else %}Year{% endif %} Start {{ course.period_start_date|date:"M d, Y" }}
{% if course.duration_type == "Semester" %}Semester{% else %}Year{% endif %} End {{ course.period_end_date|date:"M d, Y" }}
{% if course.duration_type == "Semester" %}Semester{% else %}Year{% endif %} Days Remaining {{ course.remaining_days }} days
Total Course Days Remaining {{ course.total_remaining_days }} days
{% endfor %} {% else %}
No courses assigned yet.
{% endif %}
{% include 'shared/common_modals.html' with user=student %} {% include 'student/modals/pdf_viewer_modal.html' %} {% include 'student/modals/subject_files_modal.html' %} {% include 'student/modals/feedback_modal.html' %} {% include 'shared/bottom_nav.html' with user=student %} {% endblock content %} {% block extrascripts %} {% endblock %}