@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'الحالات والطلاب' : 'Students and Cases') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; @endphp @section('content')

{{ $isArabic ? 'الحالات والطلاب' : 'Students & Cases' }}

{{ $isArabic ? 'متابعة الحالات الفردية ذات الأولوية' : 'Track high-priority individual cases' }}

{{ $isArabic ? 'صفحة عملية تضع الطلاب الأكثر احتياجًا في مقدمة المشهد، مع أحدث الحالات المسجلة داخل نطاقك.' : 'A practical page that keeps the highest-need students in focus, alongside the latest recorded cases in your scope.' }}

{{ $isArabic ? 'طلاب بحاجة متابعة' : 'Students needing follow-up' }}

{{ $flaggedStudentsCount }}

{{ $isArabic ? 'حالات حديثة' : 'Recent cases' }}

{{ $recentCaseCards->count() }}

{{ $isArabic ? 'الطلاب الأكثر احتياجًا للدعم' : 'Students needing the most support' }}

{{ $isArabic ? 'تجميع تلقائي بحسب تكرار الغياب ودرجة الأولوية.' : 'Automatically grouped by absence frequency and intervention priority.' }}

@foreach($flaggedStudentRows as $row) @endforeach @if($flaggedStudentRows->isEmpty()) @endif
{{ $isArabic ? 'الطالب' : 'Student' }} {{ $isArabic ? 'الصف' : 'Class' }} {{ $isArabic ? 'عدد الغياب' : 'Absences' }} {{ $isArabic ? 'آخر غياب' : 'Last absence' }} {{ $isArabic ? 'الأولوية' : 'Priority' }}
{{ $row['name'] }}
{{ $row['registration_number'] }}
{{ $row['class_name'] }} {{ $row['absences_count'] }} {{ $row['last_absence_label'] }} {{ $row['risk_label'] }}
{{ $isArabic ? 'لا توجد حالات طلابية حرجة حتى الآن.' : 'No critical student cases yet.' }}

{{ $isArabic ? 'أحدث الحالات المسجلة' : 'Latest recorded cases' }}

{{ $isArabic ? 'آخر وقائع الغياب التي تم رصدها في الفصول المسندة.' : 'The most recent absence records captured in assigned classes.' }}

@foreach($recentCaseCards as $case)

{{ $case['student_name'] }}

{{ $case['class_name'] }}

{{ $case['date_label'] }}
{{ $isArabic ? 'المادة' : 'Subject' }} {{ $case['subject_name'] }}
@endforeach @if($recentCaseCards->isEmpty())
{{ $isArabic ? 'لا توجد حالات حديثة.' : 'No recent cases.' }}
@endif
@endsection