@extends('layouts.master') @section('title',__('Edit')." "." - $audio->title") @section('breadcum') @endsection @section('maincontent')
{{ __('Back') }}
{{__('Edit Audio')}}
{!! Form::model($audio, ['method' => 'PATCH', 'action' => ['AudioController@update',$audio->id], 'files' => true]) !!}
{!! Form::label('title', __('AudioTitle')) !!} {{ $errors->first('title') }}
{!! Form::label('maturity_rating', __('Maturity Rating')) !!} {!! Form::select('maturity_rating', array('all age' => __('All Age'), '13+' =>'13+', '16+' => '16+', '18+'=>'18+'), null, ['class' => 'form-control select2']) !!} {{ $errors->first('maturity_rating') }}
{!! Form::label('rating', __('Ratings')) !!} {!! Form::text('rating', old('rating'), ['class' => 'form-control', ]) !!} {{ $errors->first('rating') }}
{!! Form::label('a_language', __('Audio Languages')) !!}
{{ $errors->first('a_language') }}
{!! Form::label('genre_id', __('Genre')) !!}
{{ $errors->first('genre_id') }}
{!! Form::label('selecturls', __('Add Audio')) !!} {{ $errors->first('selecturl') }}
{{-- upload Audio --}}
{!! Form::label('upload_audio',__('Upload Audio')) !!}
{{__('Choose A Audio')}}
{{ $errors->first('upload_audio') }}
{!! Form::label('detail', __('Description')) !!} {!! Form::textarea('detail', old('detail'), ['class' => 'form-control materialize-textarea', 'rows' => '5']) !!} {{ $errors->first('detail') }}
{!! Form::label('featured',__('Featured')) !!}
{{ $errors->first('featured') }}
{!! Form::label('is_protect', __('Protected Video?')) !!}
{{ $errors->first('is_protect') }}
{{-- select to upload or add links code ends here --}}
{{--
--}}
@if(isset($audio->thumbnail) && $audio->thumbnail != NULL) @else @endif
@if(isset($audio->poster) && $audio->poster != NULL) @else @endif
{{--
--}}
{!! Form::close() !!}
@endsection @section('script') {{-- vimeo api code --}} @endsection