form('POST', route('gallery.store'))->class('needs-validation')->attributes(['novalidate'])->open()); ?>
hidden('id', $gallery->id)); ?>
label('Title')->for('title')); ?>
span('*')->class('text-danger')); ?>
text('title')->value($gallery->title ?? old('title'))->class('form-control')->placeholder('Enter Title')->required()); ?>
div('Please enter a title.')->class('invalid-feedback')); ?>
label('Slug')->for('slug')); ?>
text('slug')->value($gallery->slug ?? old('slug'))->class('form-control')->placeholder('Enter Gallery Slug')); ?>
label('Image(s) or Video')->for('images')); ?>
all() : [])); ?>
withName('image-input'); ?>
shouldRender()): ?>
startComponent($component->resolveView(), $component->data()); ?>
except(\App\View\Components\ImageInput::ignoredParameterNames()); ?>
withAttributes(['editable' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($editable),'id' => 'images','name' => 'images','data' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($editable ? $gallery->getRawOriginal('images') : null),'multiple' => true,'label' => 'Select Image(s) or video']); ?>
renderComponent(); ?>
label('Video Link')->for('slug')); ?>
text('link')->value($gallery->link ?? old('link'))->class('form-control')->placeholder('Enter Youtube video link')); ?>
label('Category')->class('form-label')->for('category_id')); ?>
select('category_id', $categoryOptions)->value($gallery->category_id ?? old('category_id'))->class('form-select choices-select')->placeholder('Select')); ?>
'components.form-buttons','data' => ['href' => route('gallery.index'),'label' => isset($gallery) ? 'Update' : 'Create']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
withName('form-buttons'); ?>
shouldRender()): ?>
startComponent($component->resolveView(), $component->data()); ?>
except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('gallery.index')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(isset($gallery) ? 'Update' : 'Create')]); ?>
renderComponent(); ?>
form()->close()); ?>
startPush('js'); ?>
stopPush(); ?>