@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'جميع الأسئلة' : 'All Questions') @section('page_heading', app()->getLocale() === 'ar' ? 'جميع الأسئلة' : 'All Questions') @section('page_subtitle', app()->getLocale() === 'ar' ? 'إدارة الأسئلة الحالية من شاشة أخف وأكثر تركيزًا.' : 'Manage current questions from a lighter, more focused screen.') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; $stats = $questionBankData['stats']; $typeLabels = $questionBankData['type_labels']; $filtersOpen = request()->hasAny(['keyword', 'subject_id', 'lesson_id', 'teacher_id', 'type', 'difficulty_level_id']); @endphp @section('content')

{{ __('dashboard.All Questions') }}

{{ $isArabic ? 'قائمة الأسئلة الحالية مع الفلاتر الأساسية.' : 'Current questions list with the core filters.' }}

@include('admin.questions._navigation') {{ __('dashboard.Add New Question') }}

{{ $isArabic ? 'قائمة الأسئلة' : 'Questions list' }}

{{ $isArabic ? 'راجع الأسئلة الحالية وطبّق التصفية قبل العرض أو التعديل.' : 'Review current questions and narrow them before viewing or editing.' }}

{{ $isArabic ? 'إجمالي الأسئلة' : 'Total questions' }}

{{ $stats['total_questions'] }}

{{ $isArabic ? 'المواد المغطاة' : 'Covered subjects' }}

{{ $stats['total_subjects'] }}

{{ $isArabic ? 'التصحيح اليدوي' : 'Manual review' }}

{{ $stats['manual_review_questions'] }}

{{ $isArabic ? 'متوسط الدرجة' : 'Average score' }}

{{ $stats['average_score'] }}

{{ $isArabic ? 'تصفية الأسئلة' : 'Filter questions' }}

{{ $isArabic ? 'افتح الفلاتر فقط عند الحاجة للحفاظ على الصفحة مرتبة وواضحة.' : 'Open filters only when needed to keep the page tidy and clear.' }}

{{ __('dashboard.Reset') }}
@if($questions->isEmpty())
{{ __('dashboard.No data found') }}
@else
@foreach($questions as $question) @endforeach
{{ $isArabic ? 'السؤال' : 'Question' }} {{ $isArabic ? 'النوع' : 'Type' }} {{ $isArabic ? 'المادة والدرس' : 'Subject & lesson' }} {{ $isArabic ? 'الصعوبة والدرجة' : 'Difficulty & score' }} {{ $isArabic ? 'المنشئ' : 'Author' }} {{ __('dashboard.Actions') }}

{{ $question->question_text }}

#{{ $question->id }}

{{ $typeLabels[$question->type] ?? $question->type }}

{{ $question->subject?->name ?? '-' }}

{{ $question->lesson?->title ?? '-' }}

{{ $question->difficultyLevel?->name ?? ($isArabic ? 'غير محدد' : 'Unspecified') }}

{{ $question->score ?? 0 }}

{{ trim(($question->user?->first_name ?? '') . ' ' . ($question->user?->last_name ?? '')) ?: '-' }}
{{ $questions->appends(request()->query())->links('pagination::simple-tailwind') }}
@endif
@endsection