@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 message linked to a parent and one of your students inside the course.') @section('skip_page_hero', true) @section('content')

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

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

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

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

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

{{ $inquiry->course?->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