@extends('layouts.main_dashboard.app') @php $isArabic = app()->getLocale() === 'ar'; @endphp @section('title', __('dashboard.View Inquiry') . ' | ' . $inquiry->title) @section('skip_page_hero', true) @section('content')

{{ $isArabic ? 'تفاصيل الاستفسار' : 'Inquiry details' }}

{{ $inquiry->title }}

{{ $isArabic ? 'راجع الرسالة المرسلة والمرفقات وحالة الرد من المعلم.' : 'Review the sent message, its attachments, and the teacher response state.' }}

{{ __('dashboard.Back to Inquiries') }}

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

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

{{ $isArabic ? 'المعلم' : 'Teacher' }}

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

{{ $isArabic ? 'المساق' : 'Course' }}

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

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

{{ filled($inquiry->teacher_reply) ? ($isArabic ? 'تم الرد' : 'Answered') : ($isArabic ? 'بانتظار الرد' : 'Awaiting reply') }}

{{ $isArabic ? 'الرسالة المرسلة' : 'Sent message' }}

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

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

{!! nl2br(e($inquiry->teacher_reply)) !!}
@if($inquiry->teacherFiles->isNotEmpty())
@foreach($inquiry->teacherFiles as $file) {{ $file->file_name }} @endforeach
@endif
@endif
@endsection