@extends('admin::layout') @section('header')

{{ trans('admin::messages.add') }} {!! $xPanel->entity_name !!}

@endsection @section('content')
@if ($xPanel->hasAccess('list')) {{ trans('admin::messages.back_to_all') }} {!! $xPanel->entity_name_plural !!}

@endif {!! Form::open(array('url' => $xPanel->route, 'method' => 'post', 'files' => $xPanel->hasUploadFields('create'))) !!}

{{ trans('admin::messages.add_a_new') }} {!! $xPanel->entity_name !!}

@if(view()->exists('vendor.admin.panel.' . $xPanel->entity_name . '.form_content')) @include('vendor.admin.panel.' . $xPanel->entity_name . '.form_content', ['fields' => $xPanel->getFields('create')]) @elseif(view()->exists('vendor.admin.panel.form_content')) @include('vendor.admin.panel.form_content', ['fields' => $xPanel->getFields('create')]) @else @include('admin::panel.form_content', ['fields' => $xPanel->getFields('create')]) @endif
{!! Form::close() !!}
@endsection