@extends('backend.layouts.app') @section('content') {{ html()->form('POST', route('backend.genres.store')) ->attribute('enctype', 'multipart/form-data') ->attribute('data-toggle', 'validator') ->attribute('id', 'form-submit') // Add the id attribute here ->class('requires-validation') // Add the requires-validation class ->attribute('novalidate', 'novalidate') // Disable default browser validation ->open() }}
{{ html()->label(__('messages.image'), 'Image')->class('form-label')}}
{{ html()->button(__(''. __('messages.lbl_choose_image'))) ->class('input-group-text form-control') ->type('button') ->attribute('data-bs-toggle', 'modal') ->attribute('data-bs-target', '#exampleModal') ->attribute('data-image-container', 'selectedImageContainerThumbnail') ->attribute('data-hidden-input', 'file_url_image') }} {{ html()->text('thumbnail_input') ->class('form-control') ->placeholder(__('placeholder.lbl_image')) ->attribute('aria-label', 'Thumbnail Image') ->attribute('data-bs-toggle', 'modal') ->attribute('data-bs-target', '#exampleModal') ->attribute('data-image-container', 'selectedImageContainerThumbnail') }}
@if(old('file_url', isset($data) ? $data->file_url : '')) @endif
{{ html()->hidden('file_url')->id('file_url_image')->value(old('file_url', isset($data) ? $data->file_url : '')) }}
{{ html()->label(__('messages.name') . ' *', 'name')->class('form-label')}} {{ html()->text('name', old('name')) ->class('form-control') ->id('name') ->placeholder(__('placeholder.lbl_genre_name')) ->attribute('required', 'required') }} @error('name') {{ $message }} @enderror
Name field is required
{{ html()->label(__('messages.lbl_status'), 'status')->class('form-label') }}
{{ html()->label(__('messages.active'), 'status')->class('form-label mb-0') }}
{{ html()->hidden('status', 0) }} {{ html()->checkbox('status', old('status', 1)) ->class('form-check-input') ->id('status') ->value(1) }}
{{ html()->label(__('messages.description') . ' *', 'description')->class('form-label') }} {{ html()->textarea('description', old('description')) ->class('form-control') ->id('description') ->placeholder(__('placeholder.lbl_genre_description')) ->rows('5') ->attribute('required', 'required') }} @error('description') {{ $message }} @enderror
Description field is required
{{ html()->submit(trans('messages.save'))->class('btn btn-md btn-primary float-right')->id('submit-button') }}
{{ html()->form()->close() }} @include('components.media-modal') @endsection