{{ __('بوابة الطالب') }}

@if($announcements->isNotEmpty())
@foreach($announcements as $announcement) @php $bgClass = match($announcement->type) { 'info' => 'bg-blue-50 border-blue-200 text-blue-800', 'warning' => 'bg-yellow-50 border-yellow-200 text-yellow-800', 'danger' => 'bg-red-50 border-red-200 text-red-800', 'success' => 'bg-green-50 border-green-200 text-green-800', default => 'bg-gray-50 border-gray-200 text-gray-800', }; $iconColor = match($announcement->type) { 'info' => 'text-blue-500', 'warning' => 'text-yellow-500', 'danger' => 'text-red-500', 'success' => 'text-green-500', default => 'text-gray-500', }; @endphp
@if($announcement->type === 'warning' || $announcement->type === 'danger') @elseif($announcement->type === 'success') @else @endif

{{ $announcement->title }}

{{ $announcement->message }}

@endforeach
@endif
{{ substr($student->full_name, 0, 1) }}

{{ $student->full_name }}

{{ $student->grade->name }} {{ $student->birth_date ?? '---' }}

جدولي الدراسي

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

الواجبات المستحقة

{{ $dueAssignments->count() }} واجبات
@if($dueAssignments->isEmpty())

لا توجد واجبات مستحقة حالياً

@else
@foreach($dueAssignments as $assignment)

{{ $assignment->title }}

@php $daysLeft = \Carbon\Carbon::parse($assignment->due_date)->diffInDays(now()); $isUrgent = $daysLeft <= 2; @endphp {{ \Carbon\Carbon::parse($assignment->due_date)->format('Y-m-d') }}

{{ $assignment->description }}

{{ $assignment->subject->name }} أ. {{ $assignment->teacher->user->name ?? '---' }}
@endforeach
@endif

سجل الحضور

{{ $attendanceSummary['present'] }}
حضور
{{ $attendanceSummary['absent'] }}
غياب
{{ $attendanceSummary['late'] }}
تأخير
@if($attendances->isEmpty())

لا توجد سجلات حضور حديثة

@else

أحدث السجلات

@foreach($attendances as $attendance)
@php $statusData = match($attendance->status) { 'present' => ['icon' => 'M5 13l4 4L19 7', 'color' => 'text-green-500', 'bg' => 'bg-green-100', 'label' => 'حاضر'], 'absent' => ['icon' => 'M6 18L18 6M6 6l12 12', 'color' => 'text-red-500', 'bg' => 'bg-red-100', 'label' => 'غائب'], 'late' => ['icon' => 'M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z', 'color' => 'text-yellow-500', 'bg' => 'bg-yellow-100', 'label' => 'متأخر'], default => ['icon' => 'M5 13l4 4L19 7', 'color' => 'text-gray-500', 'bg' => 'bg-gray-100', 'label' => 'غير معروف'], }; @endphp
{{ $attendance->date }}
{{ $statusData['label'] }}
@endforeach
@endif