form('POST', route('institution.store'))->class('needs-validation')->attributes(['novalidate'])->open()); ?>
hidden('id', $institution->id)); ?>
label('Title')->for('title')); ?>
span('*')->class('text-danger')); ?>
text('title')->value($institution->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($institution->link ?? old('link'))->class('form-control')->placeholder('Enter Related Link')); ?>
label('Location')->for('Location')); ?>
text('location')->value($institution->location ?? old('location'))->class('form-control')->placeholder('Enter Insititution Location')); ?>
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 ? $institution->getRawOriginal('image') : null),'multiple' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(false)]); ?>
renderComponent(); ?>
label('Country')->class('form-label')->for('country_id')); ?>
select('country_id', $countryOptions)->value($institution->country_id ?? old('country_id'))->class('form-select choices-select')->placeholder('Select')); ?>
'components.form-buttons','data' => ['href' => route('institution.index'),'label' => isset($institution) ? '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('institution.index')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(isset($institution) ? 'Update' : 'Create')]); ?>
renderComponent(); ?>
form()->close()); ?>