@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'تحليلات بنك الأسئلة' : 'Question Bank Analytics') @section('page_heading', app()->getLocale() === 'ar' ? 'تحليلات بنك الأسئلة' : 'Question Bank Analytics') @section('page_subtitle', app()->getLocale() === 'ar' ? 'تحليلات البنك في صفحة مستقلة بدل تكديسها مع القائمة.' : 'Question bank analytics in a separate page instead of crowding the list.') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; $stats = $questionBankData['stats']; $typeBreakdown = $questionBankData['type_breakdown']; $difficultyBreakdown = $questionBankData['difficulty_breakdown']; $typeLabels = $questionBankData['type_labels']; $typeIcons = $questionBankData['type_icons']; @endphp @section('content')

{{ $isArabic ? 'تحليلات بنك الأسئلة' : 'Question bank analytics' }}

{{ $isArabic ? 'التحليلات العامة لأنواع الأسئلة والصعوبة والوسائط والتصحيح تم فصلها هنا لتصبح القراءة أسرع وأوضح.' : 'General analytics for types, difficulty, media usage, and correction modes live here for faster and clearer review.' }}

@include('admin.questions._navigation')

{{ $isArabic ? 'المؤشرات العامة' : 'General indicators' }}

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

{{ $stats['total_questions'] }}

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

{{ $stats['total_subjects'] }}

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

{{ $stats['manual_review_questions'] }}

{{ $isArabic ? 'تصحيح تلقائي' : 'Auto corrected' }}

{{ $stats['auto_corrected_questions'] }}

{{ $isArabic ? 'أسئلة بها وسائط' : 'With media' }}

{{ $stats['questions_with_media'] }}

{{ $isArabic ? 'توزيع أنواع الأسئلة' : 'Question type breakdown' }}

@foreach($typeLabels as $key => $label)
{{ $label }} {{ $typeBreakdown[$key] ?? 0 }}
@endforeach

{{ $isArabic ? 'توزيع مستويات الصعوبة' : 'Difficulty breakdown' }}

@forelse($difficultyBreakdown as $difficulty => $total)
{{ $difficulty }} {{ $total }}
@empty
{{ __('dashboard.No data found') }}
@endforelse
@endsection