first change
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{{ html()->form('POST', route('requiredDocument.store'))->class('needs-validation')->attributes(['novalidate'])->open() }}
|
||||
|
||||
@isset($requiredDocument)
|
||||
{{ html()->hidden('id', $requiredDocument->id) }}
|
||||
@endisset
|
||||
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="mb-3">
|
||||
{{ html()->label('Document Title')->for('title') }}
|
||||
{{ html()->span('*')->class('text-danger') }}
|
||||
{{ html()->text('title')->value($requiredDocument->title ?? old('title'))->class('form-control')->placeholder('Enter Title')->required() }}
|
||||
{{ html()->div('Please enter a title.')->class('invalid-feedback') }}
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
{{ html()->label('Link')->for('link') }}
|
||||
{{ html()->text('link')->value($requiredDocument->link ?? old('link'))->class('form-control')->placeholder('Enter Related Link') }}
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
{{ html()->label('Sample Document')->class('form-label')->for('image') }}
|
||||
<x-image-input :editable="$editable" id="image" name="image" :data="$editable ? $requiredDocument->getRawOriginal('image') : null" :multiple="false" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<x-form-buttons :href="route('requiredDocument.index')" :label="isset($requiredDocument) ? 'Update' : 'Create'" />
|
||||
</div>
|
||||
</div>
|
||||
{{ html()->form()->close() }}
|
Reference in New Issue
Block a user