@include('admin.partials.page-header', [
'title' => 'تقرير المتابعة التعليمية للطالب',
'breadcrumbs' => $breadcrumbs,
'actions' => array_values(array_filter([
auth()->user()?->can('student-progress-logs.create') ? [
'title' => 'تسجيل جلسة جديدة',
'url' => route('admin.student-progress-logs.create', $quickAddParams),
'icon' => 'ti ti-plus',
'class' => 'btn-primary',
] : null,
auth()->user()?->can('students.view') ? [
'title' => 'ملف الطالب',
'url' => route('admin.students.show', $student),
'icon' => 'ti ti-user',
'class' => 'btn-outline-secondary',
] : null,
])),
])
@include('admin.partials.alerts')
{{-- ══════════════════════════════════════════════════════════
بطاقة هوية الطالب
══════════════════════════════════════════════════════════ --}}
{{-- ══════════════════════════════════════════════════════════
بطاقات الإحصائيات
══════════════════════════════════════════════════════════ --}}
{{-- ══════════════════════════════════════════════════════════
شريط التقدم — نسبة الالتزام بصريًا
══════════════════════════════════════════════════════════ --}}
@if($report['total'] > 0)
@endif
{{-- ══════════════════════════════════════════════════════════
جدول السجلات الكامل
══════════════════════════════════════════════════════════ --}}
{{ $student->full_name }}
@if($student->branch)
{{ $student->branch->name }}
@endif
@if($student->age)
{{ $student->age }} سنة
@endif
@if($student->phone)
{{ $student->phone }}
@endif
{{ $report['total'] }} جلسة مسجّلة
@can('students.view')
ملف الطالب
@endcan
@can('student-progress-logs.create')
تسجيل جلسة جديدة
@endcan
إجمالي الجلسات
{{ $report['total'] }}
نسبة الالتزام
{{ $report['commitmentRate'] }}%
{{ $report['committed'] }} ملتزم / {{ $report['late'] }} متأخر
مستوى الإتقان الغالب
@php $masteryBadge = match($report['dominantMastery']) { 'ممتاز' => 'bg-success', 'جيد جداً' => 'bg-primary', 'جيد' => 'bg-info text-dark', 'مقبول' => 'bg-warning text-dark', 'ضعيف' => 'bg-danger', default => 'bg-secondary', }; @endphp{{ $report['dominantMastery'] }}
آخر جلسة مسجّلة
@if($report['lastLog']){{ optional($report['lastLog']->progress_date)->format('Y-m-d') }}
حفظ: {{ $report['lastLog']->memorization_amount }}
@elseلا يوجد سجل
@endif
نسبة الالتزام الكلي
{{ $report['commitmentRate'] }}%
السجل الكامل للمتابعة التعليمية
{{ $report['total'] }} سجل
@can('student-progress-logs.create')
إضافة متابعة
@endcan
@if($report['logs']->isEmpty())
@endif
لا يوجد سجل متابعة لهذا الطالب حتى الآن.
@else