@extends('layouts.admin') @section('title','Questions Management') @push('styles') {{-- KaTeX --}} @endpush @section('content')
{{-- Header --}} @include('admin.components.page-header', [ 'title' => isset($skill) ? 'Questions for: ' . $skill->skill : 'Questions Management', 'subtitle' => isset($skill) ? 'Manage questions for this specific skill' : 'Manage all questions in the system', 'breadcrumbs' => [ ['title' => 'Dashboard', 'url' => url('/admin')], ['title' => 'Questions'] ], 'actions' => [ [ 'text' => 'Create New Question', 'onclick' => 'openCreateQuestionModal()', 'icon' => 'plus', 'class' => 'primary' ], [ 'type' => 'dropdown', 'class' => 'secondary', 'icon' => 'ellipsis-v', 'text' => 'Actions', 'items' => [ ['icon' => 'download', 'text' => 'Export Questions', 'onclick' => 'exportQuestions()'], ['icon' => 'upload', 'text' => 'Import Questions', 'onclick' => 'importQuestions()'], ['icon' => 'magic', 'text' => 'Bulk Generate Selected', 'onclick' => 'openGenerateModalForSelected()', 'id' => 'dropdownBulkGenerate'], ['icon' => 'trash', 'text' => 'Bulk Delete Selected', 'onclick' => 'bulkDelete()', 'id' => 'dropdownBulkDelete'], ['icon' => 'sync', 'text' => 'Refresh', 'onclick' => 'refreshData()'], ] ], ] ]) {{-- Stats --}} @include('admin.components.stats-row', [ 'stats' => [ ['value' => $totals['total'] ?? 0, 'label' => 'Total Questions', 'color' => 'primary', 'icon' => 'question-circle', 'id' => 'totalQuestionsCount'], ['value' => $totals['approved'] ?? 0, 'label' => 'Approved', 'color' => 'success', 'icon' => 'check-circle', 'id' => 'approvedCount'], ['value' => $totals['pending'] ?? 0, 'label' => 'Pending Review', 'color' => 'warning', 'icon' => 'clock', 'id' => 'pendingCount'], ['value' => $totals['flagged'] ?? 0, 'label' => 'Flagged', 'color' => 'danger', 'icon' => 'flag', 'id' => 'flaggedCount'], ] ]) {{-- Filters --}} @component('admin.components.filters-card', ['items' => []])
@endcomponent {{-- Table --}}
Questions List
@include('admin.questions.table-body', ['questions' => $questions])
Question Details Skill & Difficulty Status QA Status Source Actions
{{-- Create Question Modal --}} {{-- Generate Questions Modal --}} @endsection @push('scripts') {{-- KaTeX --}} @endpush