@extends('layouts.main_dashboard.app') @php $isArabic = app()->getLocale() === 'ar'; $isAnswered = filled($inquiry->teacher_reply); @endphp @section('title', $isArabic ? 'تفاصيل استفسار ولي الأمر' : 'Parent Inquiry Details') @section('page_heading', $isArabic ? 'تفاصيل استفسار ولي الأمر' : 'Parent Inquiry Details') @section('page_subtitle', $isArabic ? 'عرض مركزي لرسالة ولي الأمر مع القدرة على الرد من الإدارة عند الحاجة.' : 'A central view of the parent message with the ability to reply from administration when needed.') @section('skip_page_hero', true) @section('content')

{{ $isArabic ? 'ولي الأمر' : 'Parent' }}

{{ $inquiry->parentUser?->name ?? '—' }}

{{ $isArabic ? 'الابن' : 'Child' }}

{{ $inquiry->student?->name ?? '—' }}

{{ $isArabic ? 'المعلم الحالي' : 'Current teacher' }}

{{ $inquiry->teacher?->name ?? '—' }}

{{ $isArabic ? 'الحالة' : 'Status' }}

{{ $isAnswered ? ($isArabic ? 'تم الرد' : 'Answered') : ($isArabic ? 'بانتظار الرد' : 'Awaiting reply') }}

{{ $inquiry->title }}

{!! nl2br(e($inquiry->message)) !!}
@if($inquiry->parentFiles->isNotEmpty())
@foreach($inquiry->parentFiles as $file) {{ $file->file_name }} @endforeach
@endif
@if($isAnswered)

{{ __('dashboard.Your Reply') }}

{!! nl2br(e($inquiry->teacher_reply)) !!}
@else
@csrf
@endif
@endsection