{% extends "base.html" %} {% block title %}تفاصيل {{ child.name }} - نظام إدارة روضة الأطفال{% endblock %} {% block content %}
{{ child.name[0] }}

{{ child.name }}

{{ child.age }} سنوات - {{ child.class }}

المعلومات الأساسية

الاسم: {{ child.name }}

العمر: {{ child.age }} سنوات

القسم: {{ child.class }}

الحالة الصحية:

{% if child.health_info %}
{{ child.health_info }}
{% else %}
لا توجد ملاحظات صحية خاصة
{% endif %}
سجل الحضور (آخر 30 يوم)
{% if attendance %}
{% for record in attendance %} {% endfor %}
التاريخ الحالة ملاحظات
{{ record.date }} {% if record.status == 'present' %} حاضر {% elif record.status == 'absent' %} غائب {% elif record.status == 'late' %} متأخر {% endif %} {{ record.notes or 'لا توجد ملاحظات' }}
إحصائيات الحضور

{{ attendance|selectattr('status', 'equalto', 'present')|list|length }}

حاضر

{{ attendance|selectattr('status', 'equalto', 'absent')|list|length }}

غائب

{{ attendance|selectattr('status', 'equalto', 'late')|list|length }}

متأخر

{{ ((attendance|selectattr('status', 'equalto', 'present')|list|length / attendance|length * 100)|round(1)) if attendance|length > 0 else 0 }}%

نسبة الحضور
{% else %}

لا توجد سجلات حضور حالياً

{% endif %}
الوضع المالي
{% if payments %}

{{ payments|sum(attribute='amount_paid') }} ريال

إجمالي المدفوع

{{ payments|length }}

عدد الدفعات

{{ payments[-1].payment_date if payments else 'لا يوجد' }}

آخر دفعة
{% for payment in payments %} {% endfor %}
تاريخ الدفع المبلغ ملاحظات
{{ payment.payment_date }} {{ payment.amount_paid }} ريال {{ payment.note or 'لا توجد ملاحظات' }}
{% else %}

لا توجد سجلات دفع حالياً

{% endif %}
الأنشطة والبرامج
{% if programs %}
{% for program in programs %}
{{ program.title }}

{{ program.program_date }}

{{ program.description }}

{% endfor %}
{% else %}

لا توجد أنشطة مجدولة حالياً

{% endif %}
{% endblock %}