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

{{ $title }} Form

 

@if(!empty($record)) {!! Form::model($record, ['route' => [$route.'update',$record->id],'files' =>true , 'id'=>'myform', 'method' => 'patch', 'class' => 'ajax_submit']) !!} @else {!! Form::open(['url' => route($route.'store'), 'files' =>true, 'method' => 'post','id'=>'myform' ,'class' => 'ajax_submit']) !!} @endif

Enter Details

@include('admin.gallery.form')
{!! Form::close() !!}
@endsection