{% extends "../base.html" %} {% load crispy_forms_tags %} {% block page_title %}Student Details{% endblock page_title %} {% block content %}
Back to Students
{% if student.photo %} Student Photo {% else %} Default Student Photo {% endif %}

{{ student.student_name }}

Student ID: {{ student.display_student_id }}{% if student.current_class %} - {{ student.current_class }}{% endif %}
{% if student.is_active %}Active{% else %}Inactive{% endif %}
{% if student.photo %} Student Photo {% else %} Default Student Photo {% endif %}
Email {{ student.email|default:"-" }}
DOB {{ student.birthdate|date:"M d, Y"|default:"-" }}
Registered Session {{ student.academic_year.academic_year|default:"-" }}
Class {{ student.current_class|default:"-" }}
Gender {{ student.get_gender_display|default:student.gender }}
Address {{ student.address|default:"-" }}
Guardian {{ student.guardian|default:"-" }}
Guardian Contact {{ student.contact|default:"-" }}
General Documents
{% if user.staff_account.role.name == "Admin" %}
{% endif %} {% for doc in general_documents %} {% empty %} {% endfor %}
S.No Document Type Upload Date Actions
{{ forloop.counter }} {{ doc.get_document_type_display }} {{ doc.uploaded_at|date:"M d, Y" }} {% if user.staff_account.role.name == "Admin" %} {% endif %}
No documents available
Payment History
{% for bill in student.bills.all %} {% for payment in bill.payments.all %} {% empty %} {% if forloop.first %} {% endif %} {% endfor %} {% empty %} {% endfor %}
S.No Bill # Amount Payment Method Reference Date
{{ forloop.parentloop.counter }}.{{ forloop.counter }} {{ bill.id }} {{ payment.amount }} {{ payment.payment_method }} {{ payment.reference_no }} {{ payment.payment_date|date:"M d, Y" }}
No payment records available
No bills found

Fee Receipts
{% for doc in bill_documents %} {% if doc.document_type == "FEE_RECEIPT" %} {% endif %} {% empty %} {% endfor %}
S.No Document Type Upload Date Actions
{{ forloop.counter }} {{ doc.get_document_type_display }} {{ doc.uploaded_at|date:"M d, Y" }} View {% if user.staff_account.role.name == "Admin" %} Delete {% endif %}
No fee receipts available
Exam Reports
{% if selected_academic_year or selected_term or selected_assessment_type %}
Showing results for: {% if selected_academic_year %} Academic Year: {% for year in academic_years %}{% if year.id|stringformat:"s" == selected_academic_year %}{{ year.academic_year }}{% endif %}{% endfor %} {% endif %} {% if selected_term %} {% if selected_academic_year %}, {% endif %}Term: {% for term in terms %}{% if term.id|stringformat:"s" == selected_term %}{{ term.get_term_display }}{% endif %}{% endfor %} {% endif %} {% if selected_assessment_type %} {% if selected_academic_year or selected_term %}, {% endif %}Assessment Type: {% for atype in assessment_types %}{% if atype.id|stringformat:"s" == selected_assessment_type %}{{ atype.name }}{% endif %}{% endfor %} {% endif %}
{% endif %} {% if exam_reports %}
{% if not selected_academic_year %}{% endif %} {% if not selected_term %}{% endif %} {% if not selected_assessment_type %}{% endif %} {% for report in exam_reports %} {% if not selected_academic_year %}{% endif %} {% if not selected_term %}{% endif %} {% if not selected_assessment_type %}{% endif %} {% empty %} {% endfor %}
S.No SubjectAcademic YearTermAssessment TypeDate Score Grade
{{ forloop.counter }} {{ report.assessment.subject.name }}{{ report.assessment.academic_class.academic_year.academic_year }}{{ report.assessment.academic_class.term.get_term_display }}{{ report.assessment.assessment_type.name }}{{ report.assessment.date|date:"M d, Y" }} {{ report.score }} {{ report.grade }}
No exam reports available
{% else %}

No exam reports available

{% endif %} {% if exam_reports %}
Performance Summary
Overall Average Score: {{ overall_avg|floatformat:1 }}%
Average by Assessment Type
{% for perf in assessment_performance %}
{{ perf.assessment__assessment_type__name }}
{{ perf.avg_score|floatformat:1 }}% {% if perf.avg_score >= 70 %}{% elif perf.avg_score >= 50 %}{% else %}{% endif %}
{% empty %}

No data

{% endfor %}
Average by Subject
{% for perf in subject_performance %}
{{ perf.assessment__subject__name }}
{{ perf.avg_score|floatformat:1 }}% {% if perf.avg_score >= 70 %}{% elif perf.avg_score >= 50 %}{% else %}Poor{% endif %}
{% empty %}

No data

{% endfor %}
{% endif %}
Library History

Library history content will be displayed here.

Extra Activities

Extra activities content will be displayed here.

Attendance
Effective Attendance: {{ attendance_rate|floatformat:1 }}%
Reset
Total Sessions {{ attendance_total }}
Present {{ attendance_present }}
Late {{ attendance_late }}
Absent {{ attendance_absent }}
Excused {{ attendance_excused }}

Showing attendance from {{ attendance_date_from|date:"M d, Y" }} to {{ attendance_date_to|date:"M d, Y" }}. Effective attendance counts Present, Late, and Excused.

{% if attendance_records %}
{% for record in attendance_records %} {% endfor %}
S.No Date Subject Class Time Status Teacher Remarks
{{ forloop.counter }} {{ record.session.date|date:"M d, Y" }} {{ record.session.subject.name|default:"-" }} {{ record.session.class_stream.academic_class.Class.code|default:record.session.class_stream.academic_class.Class.name|default:"-" }} - {{ record.session.class_stream.stream.stream|default:"-" }} {% if record.session.time_slot %} {{ record.session.time_slot.start_time|time:"H:i" }} - {{ record.session.time_slot.end_time|time:"H:i" }} {% else %} - {% endif %} {{ record.get_status_display }} {{ record.session.teacher|default:"-" }} {{ record.remarks|default:"-" }}
{% else %}
No attendance records found for the selected range.
{% endif %}
{% if user.staff_account.role.name == "Admin" %} {% endif %}
{% endblock content %}