@extends('backend.layouts.app') @section('content')

{{ html()->form('POST' ,route('backend.tv-category.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() }} @csrf
{{ 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('Select 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(__('plan.lbl_name') . ' *', 'name')->class('form-label') }} {{ html()->text('name') ->attribute('value', old('name')) ->placeholder(__('placeholder.lbl_plan_name')) ->class('form-control') ->attribute('required','required') }} @error('name') {{ $message }} @enderror
Name field is required
{{ html()->label(__('plan.lbl_status'), 'status')->class('form-label') }}
{{ html()->label(__('messages.active'), 'status')->class('form-label mb-0 text-body') }}
{{ html()->hidden('status', 1) }} {{ html()->checkbox('status',old('status', true)) ->class('form-check-input') ->id('status') }}
@error('status') {{ $message }} @enderror
{{ html()->label(__('movie.lbl_description'). ' *', 'description')->class('form-label mb-0') }} {{ __('messages.lbl_chatgpt') }}
{{ html()->textarea('description') ->attribute('value', old('description')) ->placeholder(__('placeholder.lbl_plan_limit_description')) ->class('form-control') ->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 @push('after-scripts') @endpush