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