section ??= []; ?> startSection('content'); ?> 'components.dashboard.breadcumb','data' => ['title' => $title]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('dashboard.breadcumb'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($title)]); ?> renderComponent(); ?>
any()): ?> all() : [])); ?> withName('flash-message'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\App\View\Components\FlashMessage::ignoredParameterNames()); ?> withAttributes(['type' => 'danger','messages' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($errors->all())]); ?> renderComponent(); ?>
Page List Customize Page
modelForm($page, 'PUT')->route('page.updateContent', $page->id)->class('needs-validation')->attributes(['novalidate'])->open()); ?>
label('Title')->class('form-label')->for('title')); ?> span('*')->class('text-danger')); ?> text('title')->class('form-control bg-light')->isReadonly(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')); ?>
type == 'page'): ?>
URL Generator
label('Parent(Optional)')->class('form-label')->for('parent_slug')); ?> text('parent_slug')->class('form-control')); ?>
label('Slug')->class('form-label')->for('slug')); ?> span('*')->class('text-danger')); ?> text('slug')->class('form-control')->placeholder('Page Slug')->required()); ?>
section)): ?> 'ccms::components.custom-form-field','data' => ['data' => $page->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($page->custom ?? [])]); ?> renderComponent(); ?> section)): ?>
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'))->value($page->status ?? old('status'))->class('form-select choices-select')->required()); ?>
'components.form-buttons','data' => ['href' => route('page.index'),'label' => 'Update']] + (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('page.index')),'label' => 'Update']); ?> renderComponent(); ?>
type == 'page'): ?>
Template
label('Template')->class('form-label visually-hidden')->for('template')); ?> select('template', getPageTemplateOptions())->class('form-select choices-select')->value($page->template ?? old('template'))->placeholder('Select')->required()); ?>
section)): ?>
Page Attributes
label('Parent Page')->class('form-label')->for('parent_id')); ?> span('*')->class('text-danger')); ?> multiselect('parent_id', $pageOptions ?? [], $page->parents()->pluck('parent_page_id') ?? null)->class('form-select choices-select')->attributes(['multiple'])->required()); ?>
section)): ?> section)): ?> section)): ?>
Youtube Link
textarea('link')->class('form-control')->rows(3)->placeholder('Enter Youtube Link or Iframe')); ?>
section)): ?> section)): ?>
Button
label('Text')->class('form-label')->for('button_text')); ?> span('*')->class('text-danger')); ?> text('button_text')->class('form-control')->required()); ?>
label('Link')->class('form-label')->for('button_url')); ?> span('*')->class('text-danger')); ?> text('button_url')->class('form-control')->placeholder('Button Link')->required()); ?>
label('Target')->class('form-label')->for('button_target')); ?> span('*')->class('text-danger')); ?> select('button_target', config('constants.redirect_options'))->class('form-select choices-select')->required()); ?>
closeModelForm()); ?>
make('ccms::page.modal.edit', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> stopSection(); ?> make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>