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

{{$section->title}}

{{-- @include('admin.components.alert') --}}
{!! Form::model($video, ['route' => $section->route , 'id' => "uploadForm", 'class' => 'form-validate', 'files' => true, 'enctype' => 'multipart/form-data', 'autocomplete' => 'off']) !!} @method($section->method)
{!! Form::select('category_id[]',$category,string_convert_into_array($video->category_id), ['class' => ' form-control form-select select2','multiple'=>'multiple']) !!}
{!! Form::select('flag',['set_top_trending' => 'Top Trending','unset_top_trending' => 'Unset Top Trending'],null,['class' => 'form-control form-select select2','placeholder' => 'if you want to putt video in top trending']) !!}
{!! Form::select('recent_upload',['set_recent_upload' => 'Set Recent Upload','unset_recent_upload' => 'unset Recent Upload'],null,['class' => 'form-control form-select select2','placeholder' => 'if you want to putt video in top trending']) !!}
{!! Form::text('title', null, ['class' => 'form-control', 'placeholder' => 'Title', 'id' => 'name']) !!}
{!! Form::text('actor_name', null, ['class' => 'form-control', 'placeholder' => 'Profile Name', 'id' => 'actor_name']) !!}
{!! Form::file('image', ['class' => 'custom-file-input', 'id' => 'customFile']) !!}
@if ($errors->has('image'))

{{ $errors->first('image') }}

@endif
{!! Form::file('promo_video', ['class' => 'custom-file-input', 'id' => 'teaser']) !!}
@if ($errors->has('promo_video'))

{{ $errors->first('promo_video') }}

@endif
{!! Form::file('full_video', ['class' => 'custom-file-input', 'id' => 'customFile']) !!}
@if ($errors->has('full_video'))

{{ $errors->first('full_video') }}

@endif
{!! Form::text('price', null, ['class' => 'form-control', 'placeholder' => 'price', 'required' => 'required', 'id' => 'name']) !!} {!! Form::hidden('id', null, ['class' => 'form-control', 'placeholder' => 'video Id', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('price'))

{{ $errors->first('price') }}

@endif
{!! Form::textarea('description', null, ['class' => 'form-control', 'placeholder' => 'Description', 'id' => 'description']) !!}
{!! Form::select('status', ['1' => 'Active', '0' => 'Inactive'], null, ['class' => 'form-control form-select select2']); !!}
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-outline-primary']) !!}
{!! Form::close() !!}
0%
@section('scripts') error:function(response){//handle the error @endsection @endsection