{{ __('بوابة المعلم') }}

{{ substr($teacher->full_name, 0, 1) }}

{{ $teacher->full_name }}

{{ $teacher->specialization }}

الجدول الدراسي الأسبوعي

طباعة PDF
@foreach($periods as $period) @endforeach @foreach($daysInArabic as $day) @foreach($periods as $period) @endforeach @endforeach
اليوم / الحصة{{ $period }}
{{ $day }} @if(isset($schedule[$day][$period]))
{{ $schedule[$day][$period]['grade'] }} {{ $schedule[$day][$period]['subject'] }} @if($schedule[$day][$period]['room']) 📍 {{ $schedule[$day][$period]['room'] }} @endif
@else - @endif

حضوري وانصرافي

{{ $attendanceData['overview']['present'] }}
حضور
{{ $attendanceData['overview']['absent'] }}
غياب
{{ $attendanceData['overview']['late'] }}
تأخير
نسبة الانضباط (آخر 30 يوم) {{ $attendanceData['overview']['pct'] }}%
@if($attendanceData['recent']->isEmpty())
لا توجد سجلات حضور حديثة
@else

أحدث السجلات

@foreach($attendanceData['recent']->take(3) as $record)
{{ $record->date->format('Y-m-d') }} @php $statusData = match($record->status) { 'present' => ['color' => 'text-green-600', 'bg' => 'bg-green-100', 'label' => 'حاضر'], 'absent' => ['color' => 'text-red-600', 'bg' => 'bg-red-100', 'label' => 'غائب'], 'late' => ['color' => 'text-yellow-600', 'bg' => 'bg-yellow-100', 'label' => 'متأخر'], 'excused' => ['color' => 'text-gray-600', 'bg' => 'bg-gray-200', 'label' => 'مستأذن'], default => ['color' => 'text-gray-500', 'bg' => 'bg-gray-100', 'label' => 'غير معروف'], }; @endphp {{ $statusData['label'] }}
@endforeach
@endif

موادي الدراسية

@if($subjects->isEmpty())

لا توجد مواد مسندة إليك

@else
@foreach($subjects as $subject)
{{ $subject->name }}
{{ $subject->grade->name }} رمز: {{ $subject->code ?? '-' }}
{{ $subject->students_count }} طالباً
متوسط الدرجات {{ $subject->average_score }}%
نسبة النجاح {{ $subject->pass_rate }}%
رصد الدرجات
@endforeach
@endif