28 lines
1.1 KiB
PHP
28 lines
1.1 KiB
PHP
{{ html()->form('POST', route('programLevel.store'))->class('needs-validation')->attributes(['novalidate'])->open() }}
|
|
|
|
@isset($programLevel)
|
|
{{ html()->hidden('id', $programLevel->id) }}
|
|
@endisset
|
|
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="mb-3">
|
|
{{ html()->label('Title')->for('title') }}
|
|
{{ html()->span('*')->class('text-danger') }}
|
|
{{ html()->text('title')->value($programLevel->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('Description')->for('description') }}
|
|
{{ html()->textarea('description')->value($programLevel->description ?? old('description'))->class('form-control')->rows(5)->placeholder('Enter Description') }}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<x-form-buttons :href="route('programLevel.index')" :label="isset($programLevel) ? 'Update' : 'Create'" />
|
|
</div>
|
|
</div>
|
|
{{ html()->form()->close() }}
|