@include('admin.crud.form', [ 'action' => route('admin.course-features.update', $courseFeature->id), 'formId' => 'edit-course-feature-form', 'submitText' => 'Update Course Feature', 'class' => 'ajax-crud-form', 'redirect' => route('admin.course-features.index'), 'method' => 'PUT', 'fields' => [ [ 'type' => 'select2', 'name' => 'course_id', 'id' => 'course_id', 'label' => 'Course', 'placeholder' => 'Select Course', 'required' => true, 'options' => $courses ?? [], 'value' => $courseFeature->course_id, 'col' => 12 ], [ 'type' => 'text', 'name' => 'title', 'id' => 'title', 'label' => 'Feature Title', 'placeholder' => 'Enter Feature Title', 'required' => true, 'value' => $courseFeature->title, 'col' => 12 ], [ 'type' => 'textarea', 'name' => 'description', 'id' => 'description', 'label' => 'Description', 'placeholder' => 'Enter Feature Description', 'value' => $courseFeature->description, 'col' => 12 ] ] ])