{% extends 'shared/base.html' %} {% load static %} {% load tz %} {% load app_filters %} {% block extra_js %} {% endblock %} {% block content %} {% csrf_token %}
{% include 'shared/welcome_section.html' with user=parent %}
Students
Total Students

{{ attendance_summary.total_students }}

Present Today

{{ attendance_summary.students_present_today }}

Absent Today {{ attendance_summary.students_absent_today }}
Course Progress
{% if course_progress %} {% for progress in course_progress|slice:":3" %}
{{ progress.student }} - {{ progress.course }} {{ progress.status }}
{{ progress.progress }}%
{% endfor %} {% if course_progress|length > 3 %}
+{{ course_progress|length|add:"-3" }} more courses
{% endif %} {% else %}

No course progress data available

{% endif %}
Recent Leaves
{% if recent_leaves %} {% for leave in recent_leaves %}
{{ leave.student.name }} {% if leave.status == 1 %}Approved{% elif leave.status == 2 %}Rejected{% else %}Pending{% endif %}
{{ leave.start_date|date:"M d, Y" }} - {{ leave.end_date|date:"M d, Y" }}
{% endfor %} {% else %}

No recent leaves

{% endif %}
Recent Notices
{% if notices %} {% for notice in notices|slice:":3" %}
{{ notice.title|truncatechars:30 }}
{{ notice.created_at|timesince }} ago

{{ notice.message|truncatechars:50 }}

{% if notice.file %} Download {% endif %}
{% endfor %} {% if notices|length > 3 %} {% endif %} {% else %}

No notices available

{% endif %}

My Children

{% for student_info in student_data %} {% endfor %}
Name Course Current Period Attendance Course Progress Status Actions
{% if student_info.student.image %} {{ student_info.student.name }} {% else %}
{% endif %} {{ student_info.student.name }}
{{ student_info.student.course.name|default:"Not assigned" }} {% if student_info.student.course %} {% if student_info.student.course.duration_type == 'Semester' %} Semester {{ student_info.student.current_period }} {% else %} Year {{ student_info.student.current_period }} {% endif %} {% else %} - {% endif %} {% with attended_classes=student_info.student.attendance_records.all|filter_attended|length %} {% if student_info.student.course.duration_type == 'Semester' %} {% with total_period_days=180 %} {% with attendance_rate=attended_classes|div:total_period_days|multiply:100 %}
{{ attendance_rate|floatformat:1 }}% {% endwith %} {% endwith %} {% else %} {% with total_period_days=365 %} {% with attendance_rate=attended_classes|div:total_period_days|multiply:100 %}
{{ attendance_rate|floatformat:1 }}% {% endwith %} {% endwith %} {% endif %} {% endwith %}
{% with tracking=student_info.student.course_trackings.first %} {% if tracking %}
{{ tracking.completion_percentage }}% {% else %} No data {% endif %} {% endwith %}
{{ student_info.student.status }}

All Notices

{% if 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 %}
{% endfor %} {% else %}

No notices available

{% endif %}
{% include 'shared/common_modals.html' with user=parent %} {% include 'parent/modals/feedback_modal.html' %} {% include 'parent/modals/meeting_notes_modal.html' %} {% include 'parent/modals/meeting_agenda_modal.html' %} {% include 'parent/modals/cancellation_reason_modal.html' %} {% include 'parent/modals/student_details_modal.html' %} {% include 'shared/bottom_nav.html' with user=parent %} {% endblock %} {% block extrascripts %} {{ block.super }} {% endblock %}