label('Title')->class('form-label')->for('title')); ?> span('*')->class('text-danger')); ?> text('title')->class('form-control')->placeholder('Enter Service Title')->required(true)); ?>
label('Description (Short)')->class('form-label')->for('short_description')); ?> textarea('short_description')->class('form-control')->placeholder('Enter Description (Short)')->rows(5)); ?>
label('Description')->class('form-label')->for('description')); ?> textarea('description')->class('form-control ckeditor-classic')->placeholder('Enter Description')); ?>
'ccms::components.custom-form-field','data' => ['data' => $service->custom ?? []]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('ccms::custom-form-field'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes(['data' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($service->custom ?? [])]); ?> renderComponent(); ?>
Meta
label('Meta Title')->class('form-label')->for('meta_title')); ?> text('meta_title')->class('form-control mb-3')->placeholder('Meta Title')); ?>
label('Meta Keywords')->class('form-label')->for('meta_keywords')); ?> textarea('meta_keywords')->class('form-control mb-3')->placeholder('Meta Keywords')); ?>
label('Meta Description')->class('form-label')->for('meta_description')); ?> textarea('meta_description')->class('form-control mb-3')->placeholder('Meta wire:Description')->rows(3)); ?>
Published
label('Status')->class('form-label visually-hidden')->for('status')); ?> select('status', config('constants.page_status_options'))->class('form-select choices-select')); ?>
'components.form-buttons','data' => ['href' => route('service.index'),'label' => isset($service) ? 'Update' : 'Create']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('form-buttons'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('service.index')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(isset($service) ? 'Update' : 'Create')]); ?> renderComponent(); ?>
Page Attributes
label('Parent Service')->class('form-label')->for('parent_id')); ?> select('parent_id', $serviceOptions ?? [])->value($service->parent_id ?? old('parent_id'))->class('form-select choices-select')->placeholder('Select')); ?>
Button
label('Text')->class('form-label')->for('button_text')); ?> text('button_text')->class('form-control')); ?>
label('Link')->class('form-label')->for('button_url')); ?> text('button_url')->class('form-control')->placeholder('Button Link')); ?>
label('Target')->class('form-label')->for('button_target')); ?> select('button_target', config('constants.redirect_options'))->class('form-select choices-select')); ?>