{{ $gradeAbsence->grade_name }}
{{ $isArabic ? 'إجمالي حالات غياب مرتبطة بهذا الصف' : 'Total absence cases linked to this grade' }}
@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'لوحة الأخصائية الاجتماعية' : 'Social Worker Dashboard') @section('page_heading', app()->getLocale() === 'ar' ? 'لوحة الأخصائية الاجتماعية' : 'Social Worker Dashboard') @section('page_subtitle', app()->getLocale() === 'ar' ? 'متابعة الغياب والحالات المفتوحة والصفوف الأكثر حاجة للتدخل من مساحة واحدة.' : 'Track absences, open cases, and the classes needing intervention from one workspace.') @section('content') @php $isArabic = app()->getLocale() === 'ar'; $highestTrendValue = max(1, $weeklyAbsenceTrend->max()); @endphp
{{ $isArabic ? 'هذه اللوحة تجمع إشارات التدخل الأساسية: عدد الطلاب المتغيبين، الصفوف الأعلى خطورة، والاستفسارات التي ما زالت مفتوحة وتحتاج متابعة.' : 'This dashboard concentrates the main intervention signals: absent students, higher-risk classes, and open inquiries still awaiting follow-up.' }}
{{ $isArabic ? 'الطلاب المتغيبون' : 'Absent students' }}
{{ $totalAbsentStudents }}
{{ $isArabic ? 'إجمالي الحالات المسجلة في النظام' : 'Total absence cases recorded in the system' }}
{{ $isArabic ? 'طلاب يحتاجون تدخل' : 'Students needing action' }}
{{ $flaggedStudentsCount }}
{{ $isArabic ? 'غياب متكرر خلال آخر 30 يوماً' : 'Repeated absences during the last 30 days' }}
{{ $isArabic ? 'جلسات الحضور' : 'Attendance sessions' }}
{{ $totalAbsenceSessions }}
{{ $isArabic ? 'حالات الغياب' : 'Absence records' }}
{{ $totalAbsentStudents }}
{{ $isArabic ? 'استفسارات مفتوحة' : 'Open inquiries' }}
{{ $openInquiriesCount }}
{{ $isArabic ? 'صفوف عالية الخطورة' : 'High-risk classes' }}
{{ $classRiskBoard->count() }}
{{ $isArabic ? 'قراءة سريعة لتذبذب حالات الغياب اليومية.' : 'A quick look at day-to-day absence volume.' }}
{{ $isArabic ? 'توزيع حالات الغياب على الصفوف الدراسية.' : 'How absence cases are distributed across grades.' }}
{{ $isArabic ? 'إجمالي حالات غياب مرتبطة بهذا الصف' : 'Total absence cases linked to this grade' }}
{{ $isArabic ? 'أعلى الطلاب من حيث تكرار الغياب.' : 'Students with the highest repeated absence count.' }}
{{ $studentClass?->grade?->name ? $studentClass->grade->name . ' • ' : '' }}{{ $studentClass?->name ?? ($isArabic ? 'بدون فصل' : 'No class') }}
{{ $isArabic ? 'آخر غياب:' : 'Last absence:' }} {{ $row->last_absence_at ? \Illuminate\Support\Carbon::parse($row->last_absence_at)->translatedFormat('d MMM Y') : ($isArabic ? 'غير متاح' : 'Unavailable') }}
{{ $isArabic ? 'مقارنة بين عدد الغيابات والطلاب المتأثرين في كل فصل.' : 'Compare absence volume and affected students by class.' }}
{{ $isArabic ? 'طلاب متأثرون:' : 'Affected students:' }} {{ $classRow->students_count }}
{{ $isArabic ? 'آخر الحالات المسجلة مع الطالب والمقرر والفصل.' : 'Latest logged cases with student, course, and class context.' }}
{{ $case->attendance?->course?->name ?? ($isArabic ? 'مقرر غير محدد' : 'Unassigned course') }}
{{ $studentClass?->grade?->name ?? $courseClass?->grade?->name }}{{ ($studentClass?->name ?? $courseClass?->name) ? ' • ' . ($studentClass?->name ?? $courseClass?->name) : '' }}
{{ \Illuminate\Support\Carbon::parse($case->attendance?->date ?? $case->created_at)->translatedFormat('d MMM, h:mm a') }}
{{ $isArabic ? 'رسائل جديدة قد تتطلب دعماً اجتماعياً أو متابعة مع الطالب.' : 'New messages that may require social follow-up or student support.' }}
{{ $inquiry->student?->name ?? ($isArabic ? 'طالب غير معروف' : 'Unknown student') }} @if ($studentClass?->name) • {{ $studentClass->grade?->name }} {{ $studentClass->name }} @endif
{{ \Illuminate\Support\Str::limit($inquiry->message, 120) }}