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

{{$section->title}}

{!! Form::model($teaser, ['route' => $section->route, 'id' => 'uploadForm', 'class' => 'form-validate', 'files' => true, 'enctype' => 'multipart/form-data', 'autocomplete' => 'off']) !!} @method($section->method)
{!! Form::text('title', null, ['class' => 'form-control', 'placeholder' => 'Name', 'Title' => 'required', 'id' => 'name']) !!}
@if ($errors->has('title'))

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

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

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

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

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

@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%
@section('scripts') error:function(response){//handle the error @endsection @endsection