@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)
@if($section->method == "PUT")
@endif @if($section->method == "PUT")
{!! Form::select('category_id[]',$category,string_convert_into_array($video->category_id), ['class' => ' form-control form-select select2','multiple'=>'multiple']) !!}
@endif @if($section->method == "POST")
{!! Form::select('category_id[]',$category,null,['class' => ' form-control form-select select2','multiple'=>'multiple']) !!}
@endif @if($section->method == "PUT")
{!! 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']) !!}
@endif @if($section->method == "PUT")
{!! 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']) !!}
@endif
{!! Form::text('title', null, ['class' => 'form-control', 'placeholder' => 'Title', 'id' => 'name']) !!}
@if ($errors->has('title'))

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

@endif
{!! Form::text('actor_name', null, ['class' => 'form-control', 'placeholder' => 'Profile Name', 'id' => 'name']) !!}
@if ($errors->has('actor_name'))

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

@endif
{!! 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' => 'customFile']) !!}
@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', 'id' => 'name']) !!}
@if ($errors->has('price'))

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

@endif
{!! Form::textarea('description', null, ['class' => 'form-control ckeditor', 'placeholder' => 'Description', 'id' => 'name']) !!}
@if ($errors->has('description'))

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

@endif
@if($section->method == "PUT")
{!! Form::select('status', ['1' => 'Active', '0' => 'Inactive'], null, ['class' => 'form-control form-select select2']); !!}
@endif
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-outline-primary']) !!}
{!! Form::close() !!}
0%
@php $methode = "{{ $section->method }}"; @endphp @section('scripts') error:function(response){//handle the error @endsection @endsection