@extends('layouts.nursery') @section('title', niche_label('entities.child', 'الأطفال')) @section('topbar_subtitle', 'سجل الأطفال المسجّلين في الحضانة') @section('content') @php $canManageChildren = app(\App\Support\NurseryAccess::class)->allows(\App\Support\NurseryAccess::CAP_MANAGE_CHILDREN); @endphp

قائمة {{ niche_label('entities.child', 'الأطفال') }}

سجل الأطفال المسجّلين في الحضانة

@if($canManageChildren) + إضافة طفل @endif

قائمة الأطفال

{{ $children->total() }} سجل · صورة واسم وبيانات أساسية

@forelse($children as $child) @php $isActive = ($child->status ?? '') === \App\Models\Nursery\Child::STATUS_ACTIVE; $classroomName = $child->activeEnrollment?->classroom?->name ?? 'غير معين لفصل'; @endphp @empty @endforelse
الطفل الكود الفصل ولي الأمر الحالة إجراءات
{{ $child->name }} @if($child->date_of_birth) تاريخ الميلاد: {{ $child->date_of_birth->format('Y-m-d') }} @endif {{ $child->code }} {{ $classroomName }} {{ $child->guardian?->name ?: '—' }} @if($child->guardian?->phone) {{ $child->guardian->phone }} @endif @if($isActive) نشط @else مؤرشف @endif عرض الملف @if($canManageChildren) تعديل @endif

لا يوجد أي بيانات لعرضها

أضف أول طفل داخل حضانتك من هذا القسم.

@if($canManageChildren) + إضافة طفل @endif
{{ $children->links() }}
@endsection