@extends('admin.layouts.master') @section('title', 'سجل المتابعة التعليمية — ' . $student->full_name) @section('content') @php $quickAddParams = ['student_id' => $student->id]; if (!empty($report['lastLog']?->group_id)) { $quickAddParams['group_id'] = $report['lastLog']->group_id; } @endphp
@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') {{-- ══════════════════════════════════════════════════════════ بطاقة هوية الطالب ══════════════════════════════════════════════════════════ --}}
{{ $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
{{-- ══════════════════════════════════════════════════════════ شريط التقدم — نسبة الالتزام بصريًا ══════════════════════════════════════════════════════════ --}} @if($report['total'] > 0)
نسبة الالتزام الكلي {{ $report['commitmentRate'] }}%
@endif {{-- ══════════════════════════════════════════════════════════ جدول السجلات الكامل ══════════════════════════════════════════════════════════ --}}
السجل الكامل للمتابعة التعليمية
{{ $report['total'] }} سجل @can('student-progress-logs.create') إضافة متابعة @endcan
@if($report['logs']->isEmpty())
لا يوجد سجل متابعة لهذا الطالب حتى الآن.
@else
@foreach($report['logs'] as $log) @endforeach
التاريخ الحلقة المعلم الحفظ المراجعة التجويد التدبر الإتقان الالتزام الأخطاء / الملاحظات العمليات
{{ optional($log->progress_date)->format('Y-m-d') }} {{ $log->group?->name ?? '-' }} {{ $log->teacher?->name ?? '-' }} {{ $log->memorization_amount }} {{ $log->revision_amount }} {{ $log->tajweed_evaluation }} {{ $log->tadabbur_evaluation }} {{ $log->mastery_level }} {{ $log->commitment_status }} @if($log->repeated_mistakes)
{{ $log->repeated_mistakes }}
@endif {{ $log->notes ?: '-' }}
@can('student-progress-logs.update') @endcan @can('student-progress-logs.delete')
@csrf @method('DELETE')
@endcan
@endif
@endsection