@extends('layouts.master') @section('title',__('Edit Episodes')) @section('breadcum') @endsection @section('maincontent')
{{-- vimeo API Modal Start --}} {{----vimeo API ModalEnd --}} {{-- youtube API Modal Start --}} {{----youtube API ModalEnd --}}
{{ __('Back') }}
{{__('Edit Episode')}}
{{__('Of')}} {{$season->tvseries->title}} {{__('Season')}} {{$season->season_no}} {{__('Episode Number')}} {{$episode->episode_no}} @if ($season->tmdb == 'Y') {!!$season->tmdb == 'Y' ? ' by tmdb' : ''!!} @endif
@if(isset($episode))
{!! Form::model($episode, ['method' => 'PATCH', 'action' => ['TvSeriesController@update_episodes', $episode->id], 'files' => true]) !!}
{!! Form::label('title', __('Episode Title')) !!} {!! Form::text('title', null, ['class' => 'form-control', 'min' => '1']) !!} {{ $errors->first('title') }}
{!! Form::label('episode_no',__('Episode No.')) !!} {!! Form::number('episode_no', null, ['class' => 'form-control', 'min' => '1']) !!} {{ $errors->first('episode_no') }}
{!! Form::label('duration', __('Duration')) !!} {!! Form::text('duration', null, ['class' => 'form-control']) !!} {{ $errors->first('duration') }}
{!! Form::label('', __('Choose Custom Thumbnail And Poster')) !!}
{!! Form::label('a_language', __('Audio Languages')) !!}
{!! Form::select('a_language[]', $a_lans, null, ['class' => 'form-control select2', 'multiple']) !!}
{{ $errors->first('a_language') }}
{{-- select to upload code start from here --}}
{!! Form::label('selecturls', __('Add Video')) !!} {{ $errors->first('selecturl') }}

{{__('Upload Videos Not Support')}} !


{{__('Openload Google Drive And Other URL Add Here')}}!



{!! Form::label('url_360', __('Video Url For 360 Quality')) !!} {!! Form::text('url_360',isset($video_link['url_360']) && $video_link['url_360'] ? $video_link['url_360'] : NULL, ['class' => 'form-control']) !!} {{ $errors->first('url_360') }}
{!! Form::label('upload_video', 'Upload Video in 360p') !!}
{{__('Choose A Video')}}
{{ $errors->first('upload_video_360') }}
{!! Form::label('url_480',__('Video Url For 480 Quality')) !!} {!! Form::text('url_480', isset($video_link['url_480']) && $video_link['url_480'] ? $video_link['url_480'] : NULL, ['class' => 'form-control']) !!} {{ $errors->first('url_480') }}
{!! Form::label('upload_video', __('Upload Video In 480p')) !!} -

{{__('Choose A Video')}}

{{__('Choose A Video')}}
{{ $errors->first('upload_video_480') }}
{!! Form::label('url_720', __('Video Url For 720 Quality')) !!} {!! Form::text('url_720',isset($video_link['url_720']) && $video_link['url_720'] ? $video_link['url_720'] : NULL, ['class' => 'form-control']) !!} {{ $errors->first('url_720') }}
{!! Form::label('upload_video', __('Upload Video In 720p')) !!} -

{{__('Choose A Video')}}

{{__('Choose A Video')}}
{{ $errors->first('upload_video_720') }}
{!! Form::label('url_1080',__('Video Url For 1080 Quality')) !!} {!! Form::text('url_1080', isset($video_link['url_1080']) && $video_link['url_1080'] ? $video_link['url_1080'] : NULL, ['class' => 'form-control']) !!} {{ $errors->first('url_1080') }}
{!! Form::label('upload_video', 'Upload Video in 1080p') !!}
{{__('Choose A Video')}}
{{ $errors->first('upload_video_1080') }}
{{-- youtube and vimeo url --}}
{!! Form::text('ready_url', isset($video_link['ready_url']) && $video_link['ready_url'] ? $video_link['ready_url'] : NULL, ['class' => 'form-control','id'=>'apiUrl']) !!} {{ $errors->first('ready_url') }}
{{-- upload video --}} {{-- select to upload or add links code ends here --}}
{!! Form::label('subtitle', __('Subtitle')) !!}
{{ $errors->first('subtitle') }}
{{ $errors->first('sub_t') }}
{{__('Want TMDB Data And More Or Custom')}}?
tmdb == 'Y' ? 'checked' : ''}}/> tmdb == 'N' ? 'checked' : ''}} />
{!! Form::label('released',__('Released')) !!} {!! Form::date('released', null, ['class' => 'form-control']) !!} {{ $errors->first('released') }}
{!! Form::label('detail',__('Description')) !!} {!! Form::textarea('detail', null, ['class' => 'form-control materialize-textarea', 'rows' => '5']) !!} {{ $errors->first('detail') }}
{!! Form::hidden('seasons_id', $season->id) !!} {!! Form::hidden('tv_series_id', $season->tvseries->id) !!}
{!! Form::close() !!}
@endif
{{__('Sub title')}}
@foreach($episode->subtitles as $key=> $subtitle) @endforeach
# {{__('Subtitle Language')}} Action
{{ $key+1 }} {{ $subtitle->sub_lang }}
@endsection @section('script') {{-- vimeo api code --}} @endsection