@include('admin.crud.form', [ 'action' => route('admin.demo-videos.store'), 'formId' => 'add-demo-video-form', 'submitText' => 'Save Demo Video', 'class' => 'ajax-crud-form', 'redirect' => route('admin.demo-videos.index'), 'fields' => [ [ 'type' => 'text', 'name' => 'title', 'id' => 'title', 'label' => 'Video Title', 'placeholder' => 'Enter Video Title', 'required' => true, 'col' => 12 ], [ 'type' => 'textarea', 'name' => 'description', 'id' => 'description', 'label' => 'Description', 'placeholder' => 'Enter Video Description', 'col' => 12 ], [ 'type' => 'select', 'name' => 'provider', 'id' => 'provider', 'label' => 'Provider', 'required' => true, 'options' => [ 'vimeo' => 'Vimeo', 'youtube' => 'YouTube', 's3' => 'S3', 'local' => 'Local' ], 'col' => 4 ], [ 'type' => 'text', 'name' => 'provider_id', 'id' => 'provider_id', 'label' => 'Video URL', 'placeholder' => 'https://vimeo.com/123456789', 'required' => true, 'col' => 8 ], [ 'type' => 'select', 'name' => 'status', 'id' => 'status', 'label' => 'Status', 'required' => true, 'options' => [ '1' => 'Active', '0' => 'Inactive' ], 'col' => 4 ], [ 'type' => 'select2', 'name' => 'course_id', 'id' => 'course_id', 'label' => 'Course', 'options' => $courses, 'col' => 8, 'placeholder' => 'Select Course (Optional)' ], [ 'type' => 'seperator', 'col' => 12 ], [ 'type' => 'image', 'name' => 'thumbnail', 'label' => 'Thumbnail', 'presetKey' => 'demo_videos_thumbnail', 'subPreset' => 'original', 'col' => 8, 'note' => 'Thumbnail will be auto-generated from Vimeo if not provided' ], ] ])