label('Title')->class('form-label')); ?> span('*')->class('text-danger')); ?> text('title')->class('form-control')->placeholder('Menu Title')->required()); ?> div('Menu title is required')->class('invalid-feedback')); ?>
label('Location')->class('form-label')); ?> span('*')->class('text-danger')); ?> select('menu_location_id', config('constants.menu_location_options'))->class('form-select choices-select ')->required(true)); ?>
label('Type')->class('form-label')); ?> span('*')->class('text-danger')); ?> select('type', $menuTypes)->id('menuType')->class('form-select choices-select')->required(true)); ?>
label('Sub menu of (Empty if Parent Menu)')->class('form-label')); ?> select('parent_id', $menuOptions)->class('form-select choices-select')->placeholder('Select Parent')); ?>
label('#(Fragment) or Start from /(Custom)')->class('form-label')); ?> span('*')->class('text-danger')); ?> text('parameter')->id('parameterInput')->class('form-control')); ?> div('Link is required')->class('invalid-feedback')); ?>
Icon
label('Image')->class('form-label mb-1')->for('image')); ?> all() : [])); ?> withName('image-input'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\App\View\Components\ImageInput::ignoredParameterNames()); ?> withAttributes(['data' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($editable ? $menu->getRawOriginal('image') : null),'id' => 'image','name' => 'image','editable' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($editable),'multiple' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(false)]); ?> renderComponent(); ?>
label('Icon (Optional)')->class('form-label')); ?> text('icon')->class('form-control')->placeholder('Icon class')); ?>
Publish
select('status', config('constants.page_status_options'))->class('form-select choices-select ')); ?>
'components.form-buttons','data' => ['editable' => $editable,'label' => 'Create','href' => ''.e(route('menu.index')).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('form-buttons'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes(['editable' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($editable),'label' => 'Create','href' => ''.e(route('menu.index')).'']); ?> renderComponent(); ?>
startPush('js'); ?> stopPush(); ?>