@include('admin.crud.crud-index-layout', [ 'page_title' => 'Exams', 'createUrl' => url('admin/exams/create'), 'bulkDeleteUrl' => url('admin/exams/bulk-delete'), 'redirectUrl' => url('admin/exams'), 'tableId' => 'exams-table', 'list_items' => $list_items, 'breadcrumbs' => [ 'Dashboard' => url('admin/dashboard'), 'Exams' => null, ], 'filters' => view('admin.partials.universal-filters', [ 'filterConfig' => [ 'status' => [ 'label' => 'Status', 'type' => 'select', 'options' => $status_options, 'value' => $filters['status'] ?? '' ], 'course_id' => [ 'label' => 'Course', 'type' => 'select', 'options' => $courses->pluck('title', 'id')->toArray(), 'value' => $filters['course_id'] ?? '' ] ], // 'searchConfig' => $search_config ]), 'customButtons' => [ [ 'type' => 'link', 'text' => 'Questions', 'url' => url('admin/questions'), 'class' => 'btn-outline-info', 'icon' => 'mdi mdi-help-circle' ], [ 'type' => 'link', 'text' => 'Question Banks', 'url' => url('admin/question-banks'), 'class' => 'btn-outline-success', 'icon' => 'mdi mdi-folder' ] ], 'tableHead' => ' # Exam Details Settings Status Action ', 'tableBody' => view('admin.exams.index-table', compact('list_items')) ])