form('POST', route('faq.store'))->class('needs-validation')->attributes(['novalidate'])->open()); ?>
hidden('id', $faq->id)); ?>
label('Title')->for('title')); ?>
span('*')->class('text-danger')); ?>
text('title')->value($faq->title ?? old('title'))->class('form-control')->placeholder('Enter Title')->required()); ?>
div('Please enter a title.')->class('invalid-feedback')); ?>
label('Content')->for('description')); ?>
textarea('description')->value($faq->description ?? old('description'))->class('form-control')->placeholder('Enter Content')->rows(5)); ?>
label('Category')->class('form-label')->for('category_id')); ?>
select('category_id', $categoryOptions)->value($faq->category_id ?? old('category_id'))->class('form-select choices-select')->placeholder('Select')); ?>
'components.form-buttons','data' => ['href' => route('faq.index'),'label' => isset($faq) ? '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('faq.index')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(isset($faq) ? 'Update' : 'Create')]); ?>
renderComponent(); ?>
form()->close()); ?>