@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'الإنذارات المبكرة' : 'Early Warnings') @section('skip_page_hero', true) @php($isArabic = app()->getLocale() === 'ar') @section('content')

{{ $isArabic ? 'الإنذارات المبكرة' : 'Early warnings' }}

{{ $isArabic ? 'التنبيهات الآلية للحالات التي تحتاج تدخلًا' : 'Automated alerts for cases that need intervention' }}

{{ $isArabic ? 'يتم تحديث هذه القائمة تلقائيًا من الحضور والدرجات والملاحظات السلوكية المفتوحة.' : 'This list is refreshed automatically from attendance, marks, and open behavior incidents.' }}

@if($alerts->count() > 0) @foreach($alerts as $alert)

{{ $alert->title }}

{{ strtoupper($alert->severity) }}

{{ $alert->student?->name }}{{ $alert->student?->schoolClass->first()?->name ? ' • ' . $alert->student->schoolClass->first()->name : '' }}

{{ $alert->summary }}

{{ $isArabic ? 'فتح الملف' : 'Open profile' }}
@endforeach @else
{{ $isArabic ? 'لا توجد إنذارات مفتوحة حاليًا.' : 'There are no open alerts right now.' }}
@endif
{{ $alerts->links('pagination::simple-tailwind') }}
@endsection