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

{{--
--}} {{ html()->form('POST' ,route('backend.videos.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
{{__('customer.about')}} {{ __('video.singular_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', 'selectedImageContainerPoster') ->attribute('data-hidden-input', 'file_url_poster') ->style('height: 13.8rem') }} {{ html()->text('poster_input') ->class('form-control') ->placeholder(__('placeholder.lbl_image')) ->attribute('aria-label', 'Poster Image') ->attribute('data-bs-toggle', 'modal') ->attribute('data-bs-target', '#exampleModal') ->attribute('data-image-container', 'selectedImageContainerPoster') ->attribute('data-hidden-input', 'file_url_poster') }}
@if(old('poster_url', isset($data) ? $data->poster_url : '')) @endif {{ html()->hidden('poster_url_removed', 0)->id('poster_url_removed') }}
{{ html()->hidden('poster_url')->id('file_url_poster')->value(old('poster_url', isset($data) ? $data->poster_url : '')) }}
{{ html()->label(__('movie.lbl_poster_tv'), 'poster_tv')->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', 'selectedImageContainerPosterTv') ->attribute('data-hidden-input', 'file_url_poster_tv') ->style('height: 13.8rem') }} {{ html()->text('poster_input') ->class('form-control') ->placeholder(__('placeholder.lbl_image')) ->attribute('aria-label', 'Poster Image') ->attribute('data-bs-toggle', 'modal') ->attribute('data-bs-target', '#exampleModal') ->attribute('data-image-container', 'selectedImageContainerPosterTv') ->attribute('data-hidden-input', 'file_url_poster_tv') }}
@if(old('poster_tv_url', isset($data) ? $data->poster_tv_url : '')) @endif {{ html()->hidden('poster_tv_url_removed', 0)->id('poster_tv_url_removed') }}
{{ html()->hidden('poster_tv_url')->id('file_url_poster_tv')->value(old('poster_tv_url', isset($data) ? $data->poster_tv_url : '')) }}
{{ html()->label(__('video.lbl_title') . ' *', 'name')->class('form-label') }} {{ html()->text('name')->attribute('value', old('name'))->placeholder(__('placeholder.lbl_video_title'))->class('form-control')->attribute('required','required') }} @error('name') {{ $message }} @enderror
Title field is required
{{ html()->label(__('movie.lbl_movie_access') , 'movie_access')->class('form-label') }}
@error('access') {{ $message }} @enderror
{{ html()->label(__('messages.lbl_price') . '*', 'price')->class('form-label')->for('price') }} {{ html()->number('price', old('price'))->class('form-control')->attribute('placeholder', __('messages.enter_price'))->attribute('step', '0.01')->required() }} @error('price') {{ $message }} @enderror
Price field is required
{{ html()->label(__('messages.purchase_type'). '*', 'access_duration')->class('form-label') }} {{ html()->select('purchase_type', [ '' => __('messages.lbl_select_purchase_type'), 'rental' => __('messages.lbl_rental'), 'onetime' => __('messages.lbl_one_time_purchase') ], old('purchase_type', 'rental')) ->id('purchase_type') ->class('form-control select2') ->required() ->attributes(['onchange' => 'toggleAccessDuration(this.value)']) }} @error('purchase_type') {{ $message }} @enderror
Purchase Type field is required
{{ html()->label(__('messages.lbl_access_duration') . __('messages.lbl_in_days') . '*', 'access_duration')->class('form-label') }} {{ html()->number('access_duration', old('access_duration'))->class('form-control')->attribute('pattern', '[0-9]*')->attribute('oninput', 'this.value = this.value.replace(/[^0-9]/g, "")')->attribute('placeholder', __('messages.access_duration'))->required() }} @error('access_duration') {{ $message }} @enderror
Access Duration field is required
{{ html()->label(__('messages.lbl_discount') . ' (%)', 'discount')->class('form-label') }} {{ html()->number('discount', old('discount'))->class('form-control')->attribute('placeholder', __('messages.enter_discount'))->attribute('min', 1)->attribute('max', 99)->attribute('step', '0.01') }} @error('discount') {{ $message }} @enderror
Available For field is required
{{ html()->label(__('messages.lbl_total_price'), 'total_amount')->class('form-label') }} {{ html()->text('total_amount', null)->class('form-control')->attribute('disabled', true)->id('total_amount') }}
{{ html()->label(__('messages.lbl_available_for') . __('messages.lbl_in_days'). '*', 'available_for')->class('form-label') }} {{ html()->number('available_for', old('available_for'))->class('form-control')->attribute('pattern', '[0-9]*')->attribute('oninput', 'this.value = this.value.replace(/[^0-9]/g, "")')->attribute('placeholder', __('messages.available_for'))->required() }} @error('available_for') {{ $message }} @enderror
Available For field is required
{{ html()->label(__('movie.lbl_select_plan'). ' *', 'type')->class('form-label') }} {{ html()->select('plan_id', $plan->pluck('name', 'id')->prepend(__('placeholder.lbl_select_plan'), ''), old('plan_id'))->class('form-control select2')->id('plan_id')}} @error('plan_id') {{ $message }} @enderror
Plan 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', ''), // Set '' as the default value )->class('form-control select2')->id('trailer_url_type') }} @error('trailer_url_type') {{ $message }} @enderror
--}} {{--
{{ html()->label(__('movie.lbl_trailer_url'), 'trailer_url')->class('form-label') }} {{ html()->text('trailer_url')->attribute('value', old('trailer_url'))->placeholder(__('placeholder.lbl_trailer_url'))->class('form-control') }} @error('trailer_url') {{ $message }} @enderror
{{ html()->label(__('movie.lbl_trailer_video'), 'trailer_video')->class('form-label') }}
@if (old('trailer_url', isset($data) ? $data->trailer_url : '')) @endif
{{ html()->hidden('trailer_video')->id('file_url_trailer')->value(old('trailer_url', isset($data) ? $data->poster_url : ''))->attribute('data-validation', 'iq_video_quality') }} @error('trailer_video') {{ $message }} @enderror
--}}
{{ html()->label(__('plan.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', 1)) ->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', old('short_desc'))->class('form-control')->id('short_desc')->placeholder(__('placeholder.episode_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', old('description'))->class('form-control')->id('description')->placeholder(__('placeholder.lbl_video_description'))->attribute('required','required') }} @error('description') {{ $message }} @enderror
Description field is required
{{ __('movie.lbl_basic_info') }}
{{ html()->label(__('movie.lbl_duration') . ' *', 'duration')->class('form-label') }} {{ html()->time('duration')->attribute('value', old('duration'))->placeholder(__('movie.lbl_duration'))->class('form-control min-datetimepicker-time')->attribute('required','required') }} @error('duration') {{ $message }} @enderror
Duration field is required
{{ html()->label(__('movie.lbl_release_date') . ' *', 'release_date')->class('form-label') }} {{ html()->date('release_date')->attribute('value', old('release_date'))->placeholder(__('movie.lbl_release_date'))->class('form-control datetimepicker')->required() }} @error('release_date') {{ $message }} @enderror
Release Date field is required
{{ html()->label(__('movie.lbl_age_restricted'), 'is_restricted')->class('form-label') }}
{{ html()->label(__('movie.lbl_restricted_content'), 'is_restricted')->class('form-label mb-0 text-body') }}
{{ html()->hidden('is_restricted', 0) }} {{ html()->checkbox('is_restricted', old('is_restricted', false))->class('form-check-input')->id('is_restricted') }}
@error('is_restricted') {{ $message }} @enderror
{{ html()->label(__('movie.lbl_download_status'), 'download_status')->class('form-label') }}
{{ html()->label(__('movie.lbl_download_status'), 'download_status')->class('form-label mb-0 text-body') }}
{{ html()->hidden('download_status', 0) }} {{ html()->checkbox('download_status', old('download_status', 1))->class('form-check-input')->id('download_status')->value(1) }}
@error('download_status') {{ $message }} @enderror
{{ __('movie.lbl_video_info') }}
{{ html()->label(__('movie.lbl_video_upload_type'). '*', 'video_upload_type')->class('form-label') }} {{ html()->select( 'video_upload_type', $upload_url_type->pluck('name', 'value')->prepend(__('placeholder.lbl_select_video_type'), '') ->merge(['Embedded' => 'Embedded']), // Add Embedded option old('video_upload_type', ''), )->class('form-control select2')->id('video_upload_type')->required() }} @error('video_upload_type') {{ $message }} @enderror
Video Type field is required
{{ html()->label(__('movie.lbl_embed_code') . ' *', 'embed_code')->class('form-label') }} {{ html()->textarea('embed_code', old('embed_code'))->class('form-control')->id('embed_code')->placeholder('') }} @error('embed_code') {{ $message }} @enderror
Embed Code field is required
{{ html()->label(__('movie.video_url_input') . '*', 'video_url_input')->class('form-control-label') }} {{ html()->text('video_url_input')->attribute('value', old('video_url_input'))->placeholder(__('placeholder.video_url_input'))->class('form-control') }} @error('video_url_input') {{ $message }} @enderror
Video URL field is required
{{ html()->label(__('movie.video_file_input') . '*', 'video_file')->class('form-label') }}
@if (old('video_file_input')) @endif
{{ html()->hidden('video_file_input')->id('file_url_video')->value(old('video_file_input'))->attribute('data-validation', 'iq_video_quality') }} @error('video_file_input') {{ $message }} @enderror
Video File field is required
{{ __('movie.lbl_quality_info') }}
@error('enable_quality') {{ $message }} @enderror
{{ html()->label(__('movie.lbl_video_upload_type'), 'video_quality_type')->class('form-label') }} {{ html()->select( 'video_quality_type[]', $upload_url_type->pluck('name', 'value')->prepend(__('placeholder.lbl_select_video_type'), ''), old('video_quality_type', ''), )->class('form-control select2 video_quality_type') }} @error('video_quality_type') {{ $message }} @enderror
{{ html()->label(__('movie.lbl_video_quality'), 'video_quality')->class('form-label') }} {{ html()->select('video_quality[]', $video_quality->pluck('name', 'value')->prepend(__('placeholder.lbl_select_quality'), ''))->class('form-control select2 video_quality') }}
{{ html()->label(__('movie.video_url_input'), 'quality_video_url_input')->class('form-label') }} {{ html()->text('quality_video_url_input[]')->placeholder(__('placeholder.video_url_input'))->class('form-control') }}
{{ html()->label(__('movie.video_file_input'), 'quality_video')->class('form-label') }}
@if (old('video_quality_url', isset($data) ? $data->video_quality_url : '')) @endif
{{ html()->hidden('quality_video[]')->id('file_url_videoquality')->value(old('video_quality_url', isset($data) ? $data->poster_url : ''))->attribute('data-validation', 'iq_video_quality') }} @error('quality_video') {{ $message }} @enderror
{{ html()->label(__('movie.lbl_embed_code'), 'quality_video_embed')->class('form-label') }} {{ html()->textarea('quality_video_embed[]') ->placeholder('') ->class('form-control') ->rows(3) }}
{{ __('movie.lbl_subtitle_info') }}
@error('enable_subtitle') {{ $message }} @enderror
{{ html()->label(__('movie.lbl_language'), 'language')->class('form-label') }} {{ html()->select('subtitles[0][language]', $subtitle_language->pluck('name', 'value')->prepend(__('placeholder.lbl_select_language'), ''), old('subtitles.0.language'))->class('form-control select2 subtitle-language') }} @error('subtitles.0.language') {{ $message }} @enderror
{{ __('validation.required', ['attribute' => 'language']) }}
{{ html()->label(__('movie.lbl_subtitle_file'), 'subtitle_file')->class('form-label') }} {{ html()->file('subtitles[0][subtitle_file]')->class('form-control subtitle-file')->accept('.srt,.vtt') }} @error('subtitles.0.subtitle_file') {{ $message }} @enderror
{{ __('validation.required', ['attribute' => 'subtitle file']) }}
{{ html()->checkbox('subtitles[0][is_default]', old('subtitles.0.is_default', false))->class('form-check-input is-default-subtitle')->id('is_default_0') }} {{ html()->label(__('movie.lbl_default_subtitle'), 'is_default_0')->class('form-check-label') }}

 {{__('messages.lbl_seo_settings')}}

meta_title) || !empty($seo->meta_keywords) || !empty($seo->meta_description) || !empty($seo->seo_image) || !empty($seo->google_site_verification) || !empty($seo->canonical_url) || !empty($seo->short_description) ? 'checked' : '' }}>
{{ html()->hidden('seo_image')->id('seo_image')->value(old('seo_image', $data->seo_image ?? '')) }} {!! html()->label(__('messages.lbl_seo_image') . ' *', 'seo_image') ->class('form-label') ->attribute('for', 'seo_image') !!}
{{ 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', 'selectedImageContainerSeo') ->attribute('data-hidden-input', 'seo_image') ->id('seo-image-url-button') ->style('height:13.6rem') }} {{ html()->text('seo_image_input') ->class('form-control') ->placeholder(__('placeholder.lbl_image')) ->attribute('aria-label', 'SEO Image') ->attribute('readonly', true) ->attribute('data-bs-toggle', 'modal') ->attribute('data-bs-target', '#exampleModal') ->attribute('data-image-container', 'selectedImageContainerSeo') ->attribute('data-hidden-input', 'seo_image') }}
seo-image-preview
@error('seo_image')
{{ $message }}
@enderror
{!! html()->label(__('messages.lbl_meta_title') . ' *', 'meta_title') ->class('form-label') ->attribute('for', 'meta_title') !!}
0/100 {{ __('messages.words') }}
@error('meta_title') {{ $message }} @enderror
{!! html()->label(__('messages.lbl_google_site_verification') . ' *', 'google_site_verification') ->class('form-label') ->attribute('for', 'google_site_verification') !!} @error('google_site_verification') {{ $message }} @enderror
Google Site Verification is required
{!! html()->label(__('messages.lbl_meta_keywords') . ' *', 'meta_keywords_input') ->class('form-label') ->attribute('for', 'meta_keywords_input') !!}
Meta Keywords are required
@error('meta_keywords') {{ $message }} @enderror
{!! html()->label(__('messages.lbl_canonical_url') . ' *', 'canonical_url') ->class('form-label') ->attribute('for', 'canonical_url') !!} {{-- @error('canonical_url') {{ $message }} @enderror --}}
Canonical URL is required
{!! html()->label(__('messages.lbl_short_description') . ' *', 'short_description') ->class('form-label') ->attribute('for', 'short_description') !!}
0/200 {{ __('messages.words') }}
@error('short_description') {{ $message }} @enderror
Site Meta Description 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