@extends('student.layouts.app') @section('title', $course->name . ' | ' . __('dashboard.New Inquiry')) @section('content') @php $isArabic = app()->getLocale() === 'ar'; @endphp
@include('student.courses.inc.overview', ['course' => $course]) @include('student.courses.inc.tabs', ['course' => $course])
{{ $isArabic ? 'استفسار جديد' : 'New inquiry' }}

{{ $isArabic ? 'أرسل استفسارك بشكل منظم' : 'Send your inquiry clearly' }}

{{ $isArabic ? 'اكتب عنواناً واضحاً ورسالة مختصرة مع إمكانية إرفاق ملفات داعمة إذا احتجت.' : 'Use a clear title, a concise message, and attach supporting files if needed.' }}

{{ $isArabic ? 'العودة للاستفسارات' : 'Back to inquiries' }}
@csrf
@error('title')

{{ $message }}

@enderror
@error('message')

{{ $message }}

@enderror

{{ $isArabic ? 'يمكنك رفع عدة ملفات بحد أقصى 2MB لكل ملف و8MB إجمالي.' : 'You can upload multiple files, up to 2MB per file and 8MB total.' }}

@error('files')

{{ $message }}

@enderror @error('files.*')

{{ $message }}

@enderror
{{ __('dashboard.Cancel') }}

{{ $isArabic ? 'نصائح سريعة' : 'Quick tips' }}

{{ $isArabic ? 'كلما كان الاستفسار أوضح، كانت الإجابة أسرع وأكثر دقة.' : 'The clearer the inquiry, the faster and more accurate the answer.' }}

{{ $isArabic ? 'استخدم عنواناً محدداً' : 'Use a specific title' }}
{{ $isArabic ? 'بدلاً من "عندي مشكلة"، اكتب مثلاً "استفسار حول تسليم الواجب الثاني".' : 'Instead of "I have an issue", use something like "Question about assignment 2 submission".' }}
{{ $isArabic ? 'أرفق ما يدعم المشكلة' : 'Attach relevant evidence' }}
{{ $isArabic ? 'أضف لقطة شاشة أو ملفاً إذا كان ذلك سيساعد المعلم على فهم سؤالك.' : 'Add a screenshot or file if it helps the teacher understand the issue.' }}
{{ $isArabic ? 'اكتب الرسالة كاملة' : 'Write the full context' }}
{{ $isArabic ? 'اذكر اسم المهمة أو الدرس أو النقطة غير الواضحة داخل المقرر.' : 'Mention the assignment, lesson, or unclear point inside the course.' }}

{{ $isArabic ? 'هذا الاستفسار سيرسل إلى' : 'This inquiry will be sent to' }}

{{ $course->teacher?->name ?: ($isArabic ? 'معلم المقرر' : 'Course teacher') }}
{{ $course->name }}
@endsection