{{ html()->form('POST', route('gallery.store'))->class('needs-validation')->attributes(['novalidate'])->open() }} @isset($gallery) {{ html()->hidden('id', $gallery->id) }} @endisset
{{ html()->label('Title')->for('title') }} {{ html()->span('*')->class('text-danger') }} {{ html()->text('title')->value($gallery->title ?? old('title'))->class('form-control')->placeholder('Enter Title')->required() }} {{ html()->div('Please enter a title.')->class('invalid-feedback') }}
{{ html()->label('Slug')->for('slug') }} {{ html()->text('slug')->value($gallery->slug ?? old('slug'))->class('form-control')->placeholder('Enter Gallery Slug') }}
{{ html()->label('Image(s) or Video')->for('images') }}
{{ html()->label('Video Link')->for('slug') }} {{ html()->text('link')->value($gallery->link ?? old('link'))->class('form-control')->placeholder('Enter Youtube video link') }}
{{ html()->label('Category')->class('form-label')->for('category_id') }} {{ html()->select('category_id', $categoryOptions)->value($gallery->category_id ?? old('category_id'))->class('form-select choices-select')->placeholder('Select') }}
{{ html()->form()->close() }} @push('js') @endpush