@extends('layouts.main_dashboard.app') @php $isArabic = app()->getLocale() === 'ar'; $items = $inquiries->getCollection(); @endphp @section('title', $isArabic ? 'إدارة استفسارات أولياء الأمور' : 'Parent Inquiries Management') @section('page_heading', $isArabic ? 'إدارة استفسارات أولياء الأمور' : 'Parent Inquiries Management') @section('page_subtitle', $isArabic ? 'عرض موحد لكل استفسارات أولياء الأمور المرسلة إلى المعلمين داخل النظام.' : 'A unified view for all parent inquiries sent to teachers across the system.') @section('skip_page_hero', true) @section('content')

{{ $isArabic ? 'المعروضة الآن' : 'Visible now' }}

{{ $items->count() }}

{{ $isArabic ? 'بانتظار الرد' : 'Awaiting reply' }}

{{ $openCount }}

{{ $isArabic ? 'المعلمون الظاهرون' : 'Visible teachers' }}

{{ $teacherCount }}

{{ $isArabic ? 'كل استفسارات أولياء الأمور' : 'All parent inquiries' }}

@if($items->isEmpty())
{{ $isArabic ? 'لا توجد استفسارات من أولياء الأمور حالياً.' : 'There are no parent inquiries right now.' }}
@else
@foreach($items as $inquiry) @endforeach
{{ $isArabic ? 'العنوان' : 'Title' }} {{ $isArabic ? 'ولي الأمر' : 'Parent' }} {{ $isArabic ? 'الابن' : 'Child' }} {{ $isArabic ? 'المعلم' : 'Teacher' }} {{ $isArabic ? 'الحالة' : 'Status' }} {{ __('dashboard.Actions') }}
{{ $inquiry->title }} {{ $inquiry->parentUser?->name ?? '—' }} {{ $inquiry->student?->name ?? '—' }} {{ $inquiry->teacher?->name ?? '—' }} {{ filled($inquiry->teacher_reply) ? ($isArabic ? 'تم الرد' : 'Answered') : ($isArabic ? 'بانتظار الرد' : 'Awaiting reply') }} {{ __('dashboard.View') }}
{{ $inquiries->links('pagination::simple-tailwind') }}
@endif
@endsection