@extends($layout ?? BaseHelper::getAdminMasterLayoutTemplate()) @section('content') @if ($showStart) {!! Form::open(Arr::except($formOptions, ['template'])) !!} @endif @php do_action(BASE_ACTION_TOP_FORM_CONTENT_NOTIFICATION, request(), $form->getModel()); $columns = $form->getFormOption('columns'); @endphp
{!! apply_filters(BASE_FILTER_REGISTER_CONTENT_TABS, null, $form->getModel()) !!} @if ($showFields) {{ $form->getOpenWrapperFormColumns() }} @foreach ($fields as $key => $field) @break($field->getName() === $form->getBreakFieldPoint()) @unset($fields[$key]) @continue(in_array($field->getName(), $exclude)) {!! $field->render() !!} @if (defined('BASE_FILTER_SLUG_AREA') && $field->getName() === SlugHelper::getColumnNameToGenerateSlug($form->getModel())) {!! apply_filters(BASE_FILTER_SLUG_AREA, null, $form->getModel()) !!} @endif @endforeach {{ $form->getCloseWrapperFormColumns() }} @endif {!! apply_filters(BASE_FILTER_REGISTER_CONTENT_TAB_INSIDE, null, $form->getModel()) !!} @foreach ($form->getMetaBoxes() as $key => $metaBox) {!! $form->getMetaBox($key) !!} @endforeach @php do_action(BASE_ACTION_META_BOXES, 'advanced', $form->getModel()); @endphp @yield('form_main_end')
{!! $form->getActionButtons() !!} @php do_action(BASE_ACTION_META_BOXES, 'top', $form->getModel()); @endphp @foreach ($fields as $field) @if (!in_array($field->getName(), $exclude)) @if ($field->getType() === 'hidden') {!! $field->render() !!} @else {!! Form::customLabel($field->getName(), $field->getOption('label'), $field->getOption('label_attr')) !!} {!! $field->render([], false) !!} @endif @endif @endforeach @php do_action(BASE_ACTION_META_BOXES, 'side', $form->getModel()); @endphp
@if ($showEnd) {!! Form::close() !!} @endif @yield('form_end') @endsection @if ($form->getValidatorClass()) @if ($form->isUseInlineJs()) {!! Assets::scriptToHtml('jquery') !!} {!! Assets::scriptToHtml('form-validation') !!} {!! $form->renderValidatorJs() !!} @else @push('footer') {!! $form->renderValidatorJs() !!} @endpush @endif @endif