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