label('Title')->class('form-label')->for('title')); ?> span('*')->class('text-danger')); ?> text('title')->class('form-control')->placeholder('Enter Blog Title')->required(true)); ?>
label('Category')->class('form-label')->for('category_id')); ?> select('category_id', $categoryOptions)->class('form-select choices-select')->placeholder('Select')); ?>
label('Published Date')->class('form-label')->for('date')); ?> date('date')->class('form-control')->value($blog->date ?? date('Y-m-d'))); ?>
label('Description (Short)')->class('form-label')->for('short_description')); ?> textarea('short_description')->class('form-control')->placeholder('Enter Blog Description')->rows(5)); ?>
label('Description')->class('form-label')->for('description')); ?> span('*')->class('text-danger')); ?> textarea('description')->class('form-control ckeditor-classic')->placeholder('Enter Blog Description')->required()); ?>
'ccms::components.custom-form-field','data' => ['data' => $blog->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($blog->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 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('blog.index'),'label' => isset($blog) ? '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('blog.index')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(isset($blog) ? 'Update' : 'Create')]); ?> renderComponent(); ?>
Author
label('Author')->class('form-label')->for('author')); ?> text('author')->class('form-control')); ?>
Button
label('Text')->class('form-label')->for('button_text')); ?> text('button_text')->class('form-control')); ?>
label('Link')->class('form-label')->for('button_text')); ?> text('button_text')->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')); ?>