@if ($showFields && $form->hasMainFields())
{{ $form->getOpenWrapperFormColumns() }}
@foreach ($fields as $key => $field)
@if ($field->getName() == $form->getBreakFieldPoint())
@break
@else
@unset($fields[$key])
@endif
@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
@foreach ($form->getMetaBoxes() as $key => $metaBox)
{!! $form->getMetaBox($key) !!}
@endforeach
@php
do_action(BASE_ACTION_META_BOXES, 'advanced', $form->getModel());
@endphp
{!! $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')) !!}
@php
$bodyAttrs = Arr::get($field->getOptions(), 'card-body-attrs', []);
if (! Arr::has($bodyAttrs, 'class')) {
$bodyAttrs['class'] = '';
}
$bodyAttrs['class'] .= ' card-body';
@endphp
{!! $field->render([], in_array($field->getType(), ['radio', 'checkbox'])) !!}
@endif
@endif
@endforeach
@php
do_action(BASE_ACTION_META_BOXES, 'side', $form->getModel());
@endphp