{{ $isArabic ? 'إجمالي الأسئلة' : 'Total questions' }}
{{ $stats['total_questions'] }}
@php $filtersOpen = request()->hasAny(['keyword', 'subject_id', 'lesson_id', 'teacher_id', 'type', 'difficulty_level_id']); $pageTitle = $pageTitle ?? __('dashboard.Question Bank'); $pageHeading = $pageHeading ?? __('dashboard.All Questions'); $pageDescription = $pageDescription ?? __('dashboard.Question bank subtitle'); $routePrefix = $routePrefix ?? 'admin'; $indexRoute = $indexRoute ?? $routePrefix . '.questions.index'; $createRoute = $createRoute ?? $routePrefix . '.questions.create'; $showTeacherFilter = $showTeacherFilter ?? false; $bankView = $bankView ?? ($routePrefix === 'teacher' ? 'teacher_scope' : 'admin'); $isTeacherBank = str_starts_with($bankView, 'teacher'); $showAuthorColumn = ! $isTeacherBank; $creatorScope = request('creator_scope', 'all'); $stats = $questionBankData['stats']; $typeBreakdown = $questionBankData['type_breakdown']; $difficultyBreakdown = $questionBankData['difficulty_breakdown']; $subjectCards = $questionBankData['subject_cards']; $previewSubject = $questionBankData['preview_subject']; $previewQuestions = $questionBankData['preview_questions']; $previewSubjectStats = $questionBankData['preview_subject_stats']; $typeLabels = $questionBankData['type_labels']; $typeIcons = $questionBankData['type_icons']; $isArabic = app()->getLocale() === 'ar'; $teacherScopeFilters = $isTeacherBank ? [ [ 'label' => $isArabic ? ($bankView === 'subject_head_scope' ? 'كل أسئلة القسم' : 'كل الأسئلة المتاحة') : ($bankView === 'subject_head_scope' ? 'All Department Questions' : 'All Available Questions'), 'route' => route($indexRoute, array_merge(request()->except(['page', 'creator_scope']), ['creator_scope' => 'all'])), 'active' => $creatorScope !== 'mine', ], [ 'label' => $isArabic ? ($bankView === 'subject_head_scope' ? 'أسئلة رئيس القسم' : 'أسئلتي المنشأة') : ($bankView === 'subject_head_scope' ? 'Head Created Questions' : 'My Created Questions'), 'route' => route($indexRoute, array_merge(request()->except(['page', 'creator_scope']), ['creator_scope' => 'mine'])), 'active' => $creatorScope === 'mine', ], ] : []; $resetQuery = array_filter([ 'preview_subject_id' => request('preview_subject_id'), 'creator_scope' => $isTeacherBank ? $creatorScope : null, ]); @endphp @if($isTeacherBank)
{{ $pageTitle }}
{{ $pageDescription }}
{{ $isArabic ? 'الأسئلة المتاحة لك' : 'Questions in your reach' }}
{{ $stats['total_questions'] }}
{{ $isArabic ? 'إحصائيات البنك' : 'Bank statistics' }}
{{ $isArabic ? 'مؤشرات سريعة تساعدك على فهم التغطية الحالية داخل موادك قبل اختيار الأسئلة.' : 'Fast indicators to understand current coverage across your subjects before choosing questions.' }}
{{ $isArabic ? 'إجمالي الأسئلة' : 'Total questions' }}
{{ $stats['total_questions'] }}
{{ $isArabic ? 'المواد المغطاة' : 'Covered subjects' }}
{{ $stats['total_subjects'] }}
{{ $isArabic ? 'تصحيح تلقائي' : 'Auto corrected' }}
{{ $stats['auto_corrected_questions'] }}
{{ $isArabic ? 'تصحيح يدوي' : 'Manual review' }}
{{ $stats['manual_review_questions'] }}
{{ $isArabic ? 'أسئلة بوسائط' : 'Media questions' }}
{{ $stats['questions_with_media'] }}
{{ $isArabic ? 'أسئلة المواد' : 'Subject questions' }}
{{ $isArabic ? 'اختر مادة من البطاقات التالية لمراجعة أسئلتها، أو اترك الفلاتر عامة لعرض كل الأسئلة المتاحة لك.' : 'Pick a subject from the cards below to review its questions, or keep filters broad to view all questions available to you.' }}
{{ $previewSubject->name }}
{{ $previewSubjectStats['total_questions'] }} {{ $isArabic ? 'سؤالاً في المادة المختارة' : 'questions in the selected subject' }}
{{ $subjectCard['name'] }}
{{ trim(($subjectCard['stage_name'] ?? '') . ' - ' . ($subjectCard['grade_name'] ?? ''), ' -') }}
{{ $isArabic ? 'أسئلة' : 'Questions' }}
{{ $subjectCard['questions_count'] }}
{{ $isArabic ? 'دروس' : 'Lessons' }}
{{ $subjectCard['lessons_count'] }}
{{ $isArabic ? 'متوسط' : 'Average' }}
{{ $subjectCard['average_score'] }}
{{ $isArabic ? 'القائمة الحالية' : 'Current list' }}
{{ $isArabic ? 'هذه القائمة تعكس المادة المختارة والفلاتر الحالية مباشرة.' : 'This list directly reflects the selected subject and current filters.' }}
| {{ $isArabic ? 'السؤال' : 'Question' }} | {{ $isArabic ? 'النوع' : 'Type' }} | {{ $isArabic ? 'المادة والدرس' : 'Subject & lesson' }} | {{ $isArabic ? 'الصعوبة والدرجة' : 'Difficulty & score' }} | {{ __('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 }} |
{{ $pageTitle }}
{{ $pageDescription }}
{{ $isArabic ? 'إجمالي الأسئلة' : 'Total questions' }}
{{ $stats['total_questions'] }}
{{ $isArabic ? 'ملخص البنك' : 'Bank overview' }}
{{ $isArabic ? 'إحصاءات مباشرة عن التغطية والأنواع والتصحيح والوسائط.' : 'Direct metrics for coverage, types, correction mode, and media usage.' }}
{{ $isArabic ? 'المواد المغطاة' : 'Covered subjects' }}
{{ $stats['total_subjects'] }}
{{ $isArabic ? 'متوسط الدرجة' : 'Average score' }}
{{ $stats['average_score'] }}
{{ $isArabic ? 'تصحيح يدوي' : 'Manual review' }}
{{ $stats['manual_review_questions'] }}
{{ $isArabic ? 'تصحيح تلقائي' : 'Auto corrected' }}
{{ $stats['auto_corrected_questions'] }}
{{ $isArabic ? 'بها وسائط' : 'With media' }}
{{ $stats['questions_with_media'] }}
{{ $isArabic ? 'خريطة المواد' : 'Subjects map' }}
{{ $isArabic ? 'اختر مادة واحدة لعرض معاينة سريعة وإحصاءاتها.' : 'Choose a subject to preview recent questions and related metrics.' }}
{{ $subjectCard['name'] }}
{{ trim(($subjectCard['stage_name'] ?? '') . ' - ' . ($subjectCard['grade_name'] ?? ''), ' -') }}
{{ $isArabic ? 'أسئلة' : 'Questions' }}
{{ $subjectCard['questions_count'] }}
{{ $isArabic ? 'دروس' : 'Lessons' }}
{{ $subjectCard['lessons_count'] }}
{{ $isArabic ? 'متوسط' : 'Average' }}
{{ $subjectCard['average_score'] }}
{{ $isArabic ? 'قائمة الأسئلة' : 'Questions list' }}
{{ $isArabic ? 'الأسئلة الظاهرة تعكس الفلاتر الحالية مباشرة.' : 'The visible questions reflect the active filters directly.' }}
| {{ $isArabic ? 'السؤال' : 'Question' }} | {{ $isArabic ? 'النوع' : 'Type' }} | {{ $isArabic ? 'المادة والدرس' : 'Subject & lesson' }} | {{ $isArabic ? 'الصعوبة والدرجة' : 'Difficulty & score' }} | @if($showAuthorColumn){{ $isArabic ? 'المنشئ' : 'Author' }} | @endif{{ __('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 }} |
@if($showAuthorColumn)
{{ trim(($question->user?->first_name ?? '') . ' ' . ($question->user?->last_name ?? '')) ?: '-' }} | @endif
{{ $isArabic ? 'المعاينة السريعة' : 'Quick preview' }}
{{ $isArabic ? 'عرض مباشر لآخر الأسئلة المرتبطة بالمادة الجاري معاينتها.' : 'A direct snapshot of the latest questions linked to the currently previewed subject.' }}
| {{ $isArabic ? 'السؤال' : 'Question' }} | {{ $isArabic ? 'النوع' : 'Type' }} | {{ $isArabic ? 'الدرس' : 'Lesson' }} | {{ $isArabic ? 'الصعوبة' : 'Difficulty' }} | {{ $isArabic ? 'الدرجة' : 'Score' }} | {{ $isArabic ? 'إجراء' : 'Action' }} |
|---|---|---|---|---|---|
|
{{ $question->question_text }} {{ trim(($question->user?->first_name ?? '') . ' ' . ($question->user?->last_name ?? '')) ?: '-' }} |
{{ $typeLabels[$question->type] ?? $question->type }} | {{ $question->lesson?->title ?? '-' }} | {{ $question->difficultyLevel?->name ?? ($isArabic ? 'غير محدد' : 'Unspecified') }} | {{ $question->score ?? 0 }} | {{ __('dashboard.View') }} |