form('POST', route('counter.store'))->class('needs-validation')->attributes(['novalidate'])->open()); ?> hidden('id', $counter->id)); ?>
label('Title')->for('title')); ?> span('*')->class('text-danger')); ?> text('title')->value($counter->title ?? old('title'))->class('form-control')->placeholder('Enter Title')->required()); ?> div('Please enter a title.')->class('invalid-feedback')); ?>
label('Counter Value')->for('counter')); ?> text('counter')->value($counter->counter ?? old('counter'))->class('form-control')->placeholder('Enter Counter value')); ?>
label('Icon')->for('icon')); ?> text('icon')->value($counter->icon ?? old('icon'))->class('form-control')->placeholder('Enter Icon class')); ?>
label('Image')->class('form-label')->for('image')); ?> all() : [])); ?> withName('image-input'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\App\View\Components\ImageInput::ignoredParameterNames()); ?> withAttributes(['editable' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($editable),'id' => 'image','name' => 'image','data' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($editable ? $counter->getRawOriginal('image') : null),'multiple' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(false)]); ?> renderComponent(); ?>
'components.form-buttons','data' => ['href' => route('counter.index'),'label' => isset($counter) ? '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('counter.index')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(isset($counter) ? 'Update' : 'Create')]); ?> renderComponent(); ?>
form()->close()); ?>