@include('admin.crud.form', [ 'action' => route('admin.question-banks.update', $edit_data->id), 'method' => 'PUT', 'formId' => 'edit-question-bank-form', 'submitText' => 'Update Question Bank', 'class' => 'ajax-crud-form', 'redirect' => route('admin.question-banks.index'), 'fields' => [ [ 'type' => 'text', 'name' => 'title', 'id' => 'title', 'label' => 'Question Bank Title', 'placeholder' => 'Enter Question Bank Title', 'required' => true, 'value' => $edit_data->title, 'col' => 6 ], [ 'type' => 'select2', 'name' => 'parent_id', 'id' => 'parent_id_form', 'label' => 'Parent Question Bank', 'options' => $parentQuestionBanks ?? [], 'value' => $edit_data->parent_id ?? '', 'col' => 6 ], [ 'type' => 'select2', 'name' => 'course_id', 'id' => 'course_id_form', 'label' => 'Course', 'options' => $courseOptions ?? [], 'value' => $edit_data->course_id ?? '', 'col' => 6 ], [ 'type' => 'select', 'name' => 'status', 'id' => 'status', 'label' => 'Status', 'required' => true, 'options' => [ 'active' => 'Active', 'inactive' => 'Inactive' ], 'value' => $edit_data->status, 'col' => 6 ], [ 'type' => 'textarea', 'name' => 'description', 'id' => 'description', 'label' => 'Description', 'placeholder' => 'Enter Question Bank Description', 'value' => $edit_data->description, 'col' => 12 ] ] ])