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

@if(isenablemodule('enable_tmdb_api')==1)
{{ html()->label(__('movie.lbl_movie_id') . '*', 'movie_id')->class('form-label mb-0') }} {{ html()->text('movie_id')->attribute('value', old('movie_id'))->placeholder(__('placeholder.lbl_movie_id'))->class('form-control w-auto') }}
@endif {{ html()->form('POST' ,route('backend.entertainments.store')) ->attribute('enctype', 'multipart/form-data') ->attribute('data-toggle', 'validator') ->attribute('id', 'form-submit') ->class('requires-validation') ->attribute('novalidate', 'novalidate') ->open() }} @csrf
{{__('movie.about_movie')}}
{{ html()->hidden('type', $type)->id('type') }} {{ html()->hidden('tmdb_id', null)->id('tmdb_id') }} {{ html()->hidden('is_import', 0)->id('is_import') }} {{ html()->label(__('movie.lbl_thumbnail'), 'thumbnail')->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', 'thumbnail_url')->id('iq-image-url')->style('height:13.6rem') }} {{ 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')->attribute('data-hidden-input', 'thumbnail_url') }}
feature-image
{{ html()->hidden('thumbnail_url')->id('thumbnail_url')->value(old('thumbnail_url', isset($data) ? $data->thumbnail_url : ''))}}
{{ 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', 'poster_url')->style('height:13.6rem') }} {{ 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', 'poster_url') }} {{ html()->hidden('poster_url')->id('poster_url')->value(old('poster_url', isset($data) ? $data->poster_url : '')) }}
feature-image
{{ html()->label(__('movie.lbl_name') . ' *', 'name')->class('form-label') }} {{ html()->text('name')->attribute('value', old('name'))->placeholder(__('placeholder.lbl_movie_name'))->class('form-control')->attribute('required', 'required') }} @error('name') {{ $message }} @enderror
Name 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')->required() }} @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', old('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 (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
Video File field is required
{{ 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_movie_description'))->attribute('required', 'required')->rows(5) }} @error('description') {{ $message }} @enderror
Description field is required
{{ html()->label(__('movie.lbl_movie_access'), 'movie_access')->class('form-label') }}
@error('movie_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'), ''), old('plan_id'))->class('form-control select2')->id('plan_id') }} @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 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
{{ __('movie.lbl_basic_info') }}
{{ html()->label(__('movie.lbl_movie_language') . '*', 'language')->class('form-label') }} {{ html()->select('language', $movie_language->pluck('name', 'value')->prepend(__('placeholder.lbl_select_language'), ''), old('language'))->class('form-control select2')->id('language')->attribute('required', 'required') }} @error('language') {{ $message }} @enderror
Language field is required
{{ html()->label(__('movie.lbl_genres') . '*', 'genres')->class('form-label') }} {{ html()->select('genres[]', $genres->pluck('name', 'id'), old('genres')) ->class('form-control select2') ->id('genres') ->multiple() ->attribute('required', 'required') }} @error('genres') {{ $message }} @enderror
Genres field is required
{{ html()->label(__('movie.lbl_countries'), 'countries')->class('form-label') }} {{ html()->select('countries[]', $countries->pluck('name', 'id'), old('countries')) ->class('form-control select2') ->id('countries') ->multiple()}} @error('countries') {{ $message }} @enderror
Country field is required
{{ html()->label(__('movie.lbl_imdb_rating') . ' *', 'IMDb_rating')->class('form-label') }} {{ html()->text('IMDb_rating') ->attribute('value', old('IMDb_rating')) ->placeholder(__('movie.lbl_imdb_rating')) ->class('form-control') ->required() }} @error('IMDb_rating') {{ $message }} @enderror
IMDB Rating field is required
{{ html()->label(__('movie.lbl_content_rating') . '*', 'content_rating')->class('form-label') }} {{ html()->text('content_rating')->attribute('value', old('content_rating'))->placeholder(__('placeholder.lbl_content_rating'))->class('form-control')->attribute('required','required') }} @error('content_rating') {{ $message }} @enderror
Content Rating field is required
{{ 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')->id('duration') }} @error('duration') {{ $message }} @enderror
Duration field is required
{{ html()->label(__('movie.lbl_release_date').'*', 'release_date')->class('form-label') }} {{ html()->text('release_date')->attribute('value', old('release_date'))->placeholder(__('movie.lbl_release_date'))->class('form-control datetimepicker')->attribute('required', 'required')->id('release_date') }} @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_child_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(__('messages.on'), '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_actor_director')}}
{{ html()->label(__('movie.lbl_actors') . '*', 'actors')->class('form-label') }} {{ html()->select('actors[]', $actors->pluck('name', 'id'), old('actors'))->class('form-control select2')->id('actors')->multiple()->attribute('required', 'required') }} @error('actors') {{ $message }} @enderror
Actors field is required
{{ html()->label(__('movie.lbl_directors') . '*', 'directors')->class('form-label') }} {{ html()->select('directors[]', $directors->pluck('name', 'id'), old('directors'))->class('form-control select2')->id('directors')->multiple()->attribute('required', 'required') }} @error('directors') {{ $message }} @enderror
Directors field is required
{{ __('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'), ''), 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.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')->id('video_url_input') }} @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->video_quality_url : ''))->attribute('data-validation', 'iq_video_quality') }} @error('quality_video') {{ $message }} @enderror
{{ 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