@extends('layouts.admin') @section('title', 'Questions Management') @section('content')
{{-- Page Header - Using standard component --}} @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', 'url' => route('admin.questions.create') . (isset($skill) ? '?skill_id=' . $skill->id : ''), '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' => 'copy', 'text' => 'Bulk Duplicate Selected', 'onclick' => 'bulkDuplicate()', 'id' => 'dropdownBulkDuplicate'], ['icon' => 'trash', 'text' => 'Bulk Delete Selected', 'onclick' => 'bulkDelete()', 'id' => 'dropdownBulkDelete'], ['icon' => 'sync', 'text' => 'Refresh', 'onclick' => 'refreshData()'] ] ] ] ]) {{-- Statistics Row - Using standard component --}} @include('admin.components.stats-row', [ 'stats' => [ [ 'value' => 'Loading...', 'label' => 'Total Questions', 'color' => 'primary', 'icon' => 'question-circle', 'id' => 'totalQuestionsCount' ], [ 'value' => '0', 'label' => 'Approved', 'color' => 'success', 'icon' => 'check-circle', 'id' => 'approvedCount' ], [ 'value' => '0', 'label' => 'Pending Review', 'color' => 'warning', 'icon' => 'clock', 'id' => 'pendingCount' ], [ 'value' => '0', 'label' => 'Flagged', 'color' => 'danger', 'icon' => 'flag', 'id' => 'flaggedCount' ] ] ]) {{-- Filters - Essential lookup table filters only --}} @component('admin.components.filters-card', ['items' => []])
@endcomponent {{-- Questions Table - Original design --}}
Questions List
Question Details
Skill & Difficulty
QA Status
Source
Created
Actions
Loading...
Loading questions...
{{-- Pagination Footer --}}
@endsection @push('scripts') @endpush