@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'الاستفسارات المفتوحة' : 'Open Inquiries') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; @endphp @section('content')

{{ $isArabic ? 'الاستفسارات المفتوحة' : 'Open Inquiries' }}

{{ $isArabic ? 'رسائل تحتاج إلى مراجعة أو تنسيق' : 'Messages that need review or coordination' }}

{{ $isArabic ? 'هذه الصفحة تجمع الاستفسارات الجديدة المرتبطة بالطلاب والفصول التي تقع ضمن مسؤوليتك.' : 'This page gathers new inquiries linked to the students and classes under your responsibility.' }}

{{ $isArabic ? 'استفسارات جديدة' : 'New inquiries' }}

{{ $openInquiriesCount }}

{{ $isArabic ? 'طلاب أولوية' : 'Priority students' }}

{{ $flaggedStudentsCount }}

{{ $isArabic ? 'قائمة الاستفسارات المفتوحة' : 'Open inquiry list' }}

{{ $isArabic ? 'راجعي التفاصيل الأساسية لكل رسالة، ثم انتقلي للتنسيق مع المعلم أو متابعة الحالة عند الحاجة.' : 'Review the essentials of each message, then coordinate with the teacher or follow up on the case as needed.' }}

@foreach($openInquiryCards as $inquiry)

{{ $inquiry['title'] }}

{{ $isArabic ? 'مفتوح' : 'Open' }}
{{ $isArabic ? 'الطالب:' : 'Student:' }} {{ $inquiry['student_name'] }} {{ $isArabic ? 'المعلم:' : 'Teacher:' }} {{ $inquiry['teacher_name'] }} {{ $isArabic ? 'المادة:' : 'Subject:' }} {{ $inquiry['subject_name'] }} {{ $isArabic ? 'التاريخ:' : 'Date:' }} {{ $inquiry['created_at_label'] }}

{{ $inquiry['message'] }}

@endforeach @if($openInquiryCards->isEmpty())

{{ $isArabic ? 'لا توجد استفسارات مفتوحة حاليًا' : 'No open inquiries right now' }}

{{ $isArabic ? 'عند وصول رسائل جديدة مرتبطة بنطاقك ستظهر هنا مباشرة.' : 'New messages related to your scope will appear here automatically.' }}

@endif
@endsection