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

{{ html()->form('PUT' ,route('backend.seasons.update', $data->id)) ->attribute('enctype', 'multipart/form-data') ->attribute('data-toggle', 'validator') ->attribute('id', 'form-submit') // Add the id attribute here ->attribute('novalidate', 'novalidate') // Disable default browser validation ->class('requires-validation') // Add the requires-validation class ->open() }} @csrf
{{ __('movie.lbl_season_title') }}
{{ 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:7.5rem') }} {{ html()->text('image_input2') ->class('form-control') ->placeholder((__('placeholder.lbl_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 ($data->poster_url) {{-- --}} feature-image × @else

No image selected.

@endif
{{ html()->hidden('poster_url')->id('file_url2')->value($data->poster_url) }} {{ html()->hidden('remove_image')->id('remove_image_flag')->value(0) }}
{{ html()->label(__('movie.lbl_name') . ' *', 'name')->class('form-label') }} {{ html()->text('name')->attribute('value', $data->name)->placeholder(__('placeholder.lbl_season_name'))->class('form-control')->attribute('required','required') }} @error('name') {{ $message }} @enderror
Name field is required
{{ html()->label(__('season.lbl_tv_shows') . ' *', 'type')->class('form-label') }} {{ html()->select( 'entertainment_id', $tvshows->pluck('name', 'id')->prepend(__('placeholder.lbl_select_tvshow'),''), $data->entertainment_id )->class('form-control select2')->id('entertainment_id')->attribute('required','required') }} @error('entertainment_id') {{ $message }} @enderror
TV Show field is required
{{ html()->label(__('movie.lbl_trailer_url_type').' *', 'type')->class('form-label') }} {{ html()->select( 'trailer_url_type', $upload_url_type->pluck('name', 'value')->prepend(__('placeholder.lbl_select_type'), ''), old('trailer_url_type', $data->trailer_url_type ?? '') // Set '' as the default value )->class('form-control select2')->id('trailer_url_type') }} @error('trailer_url_type') {{ $message }} @enderror
Trailer Type field is required
{{ html()->label(__('movie.lbl_trailer_url').' *', 'trailer_url')->class('form-label') }} {{ html()->text('trailer_url')->attribute('value', $data->trailer_url)->placeholder(__('placeholder.lbl_trailer_url'))->class('form-control') }} @error('trailer_url') {{ $message }} @enderror
Video URL field is required
{{ html()->label(__('movie.lbl_trailer_video').' *', 'trailer_video')->class('form-label') }}
@if (Str::endsWith($data->trailer_url, ['.jpeg', '.jpg', '.png', '.gif'])) @else @endif
{{ html()->hidden('trailer_video')->id('file_url3')->value($data->trailer_url)->attribute('data-validation', 'iq_video_quality') }} @error('trailer_video') {{ $message }} @enderror
Video File field is required
{{ html()->label(__('movie.lbl_movie_access') , 'movie_access')->class('form-label') }}
@error('access') {{ $message }} @enderror
{{ html()->label(__('movie.lbl_select_plan'). ' *', 'type')->class('form-label') }} {{ html()->select('plan_id', $plan->pluck('name', 'id')->prepend(__('placeholder.lbl_select_plan'), ''), $data->plan_id)->class('form-control select2')->id('plan_id')->attribute('required','required') }} @error('plan_id') {{ $message }} @enderror
Plan field is required
{{ html()->label(__('plan.lbl_status'), 'status')->class('form-label') }}
{{ html()->label(__('messages.active'), 'status')->class('form-label text-body mb-0') }}
{{ html()->hidden('status', 0) }} {{ html()->checkbox('status', $data->status) ->class('form-check-input') ->id('status') ->value(1) }}
@error('status') {{ $message }} @enderror
{{ html()->label(__('movie.lbl_short_desc'), 'short_desc')->class('form-label') }} {{ __('messages.lbl_chatgpt') }}
{{ html()->textarea('short_desc', $data->short_desc)->class('form-control')->id('short_desc')->placeholder(__('placeholder.lbl_season_short_desc'))->rows('8') }} @error('short_desc') {{ $message }} @enderror
{{ html()->label(__('movie.lbl_description'). ' *', 'description')->class('form-label mb-0') }} {{ __('messages.lbl_chatgpt') }}
{{ html()->textarea('description',$data->description)->class('form-control')->id('description')->placeholder(__('placeholder.lbl_movie_description'))->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