@extends('layouts.master') @section('title',__('Manage Episodes')) @section('breadcum') @endsection @section('maincontent')
{{-- vimeo API Modal Start --}} {{----vimeo API ModalEnd --}} {{-- youtube API Modal Start --}} {{----youtube API ModalEnd --}}
{{-- Impport Model Start --}} {{-- Import Model End --}} {{ __('Back') }}
{{__('Manage Season')}}
{{__('Of')}} {{$season->tvseries->title}} Season {{$season->season_no}} @if ($season->tmdb == 'Y') {!!$season->tmdb == 'Y' ? ' by tmdb' : ''!!} @endif
{!! Form::open(['method' => 'POST', 'action' => 'TvSeriesController@store_episodes', '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')) !!} {!! Form::select('selecturl', array('iframeurl' => __('Iframe URL And Embed URL'), 'youtubeapi' =>__('YouTubeApi'), 'vimeoapi' => __('VimeoApi'), 'customurl'=>__('Custom URL Youtube URL Vimeo URL'),'multiqcustom' => __('Multi Quality Custom URL And URL Upload')), null, ['class' => 'form-control select2','id'=>'selecturl']) !!} {{ $errors->first('selecturl') }}
{{-- youtube and vimeo url --}} {{-- select to upload or add links code ends here --}}
{!! Form::label('subtitle', __('Subtitle')) !!}
{{ $errors->first('subtitle') }}
{{__('Want TMDB Data And More Or Custom')}}?
{!! 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() !!}
@if ($episodes) @foreach ($episodes as $episode) @php $i++; @endphp @endforeach @endif
# {{__('Title')}} {{__('By TMDB')}} {{__('Duration')}} {{__('Actions')}}
{{ $i }} {{$episode->title}} @if($episode->tmdb == 'Y') @else - @endif {{$episode->duration}} {{__('mins')}}
@can('tvseries.edit') @endcan @can('tvseries.view') @endcan @can('tvseries.delete') @endcan
@endsection @section('script') {{-- vimeo api code --}} @endsection