@extends('backend.layouts.app') @section('content') {{ html()->form('PUT', route('backend.banners.update', $banner->id))->attribute('enctype', 'multipart/form-data')->attribute('data-toggle', 'validator') ->attribute('id', 'form-submit') ->class('requires-validation') // Add the requires-validation class ->attribute('novalidate', 'novalidate') // Disable default browser validation ->open() }} @csrf
{{ html()->label(__('banner.lbl_image'), 'file_url')->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', 'selectedImageContainer1') ->attribute('data-hidden-input', 'file_url1') ->style('height:13.6rem') }} {{ html()->text('image_input1') ->class('form-control') ->placeholder('Select Image') ->attribute('aria-label', 'Image Input 1') ->attribute('data-bs-toggle', 'modal') ->attribute('data-bs-target', '#exampleModal') ->attribute('data-image-container', 'selectedImageContainer1') ->attribute('data-hidden-input', 'file_url1') ->attribute('aria-describedby', 'basic-addon1') }}
@if ($banner->file_url) × @endif
{{ html()->hidden('file_url')->id('file_url1')->value($banner->file_url) }} {{ html()->hidden('remove_image')->id('remove_image_flag1')->value(0) }}
{{ html()->label(__('movie.lbl_poster'), 'poster')->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', 'selectedImageContainer2') ->attribute('data-hidden-input', 'file_url2') ->style('height:13.6rem') }} {{ html()->text('image_input2') ->class('form-control') ->placeholder('Select Image') ->attribute('aria-label', 'Image Input 2') ->attribute('data-bs-toggle', 'modal') ->attribute('data-bs-target', '#exampleModal') ->attribute('data-image-container', 'selectedImageContainer2') ->attribute('data-hidden-input', 'file_url2') ->attribute('aria-describedby', 'basic-addon1') }}
@if ($banner->poster_url) × @endif
{{ html()->hidden('poster_url')->id('file_url2')->value($banner->poster_url) }} {{ html()->hidden('remove_image')->id('remove_image_flag2')->value(0) }}
{{ html()->label(__('banner.lbl_type') . '*', 'type')->class('form-label') }} {{ html()->select('type', $types, old('type', $banner->type))->class('form-control select2')->id('type')->attribute('required','required') }} @error('type') {{ $message }} @enderror
Type field is required
{{ html()->hidden('type_id', old('type_id', $banner->type_id))->id('type_id') }} {{ html()->hidden('type_name', old('type_name', $banner->type_name))->id('type_name') }}
{{ html()->label(__('banner.lbl_name') . '*', 'name')->class('form-label') }} {{ html()->select('name_id',$names[$banner->type], old('name_id', $banner->type_id))->class('form-control select2')->id('name_id')->attribute('required','required') }} @error('name_id') {{ $message }} @enderror
Name field is required
{{ html()->label(__('banner.lbl_status'), 'status')->class('form-label') }}
{{ html()->label(__('messages.active'), 'status')->class('form-label mb-0 text-body') }}
{{ html()->hidden('status', 0) }} {{ html()->checkbox('status', old('status', $banner->status))->class('form-check-input')->id('status')->value(1) }}
@error('status') {{ $message }} @enderror
{{ html()->submit(__('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