ldc-com-app-bo/resources/views/bo/partials/inputs/tinyint-enum.blade.php
2023-03-31 15:14:48 +02:00

15 lines
664 B
PHP

@if(!empty($label))
<label for="{{ $name }}" class="col-form-label"><b>{{ $label }}@if(!empty($required)) * @endif</b></label>
@endif
<select id="{{ $name }}" class="form-select" name="{{ $name }}" aria-describedby="{{ $id }}Help" @if(!empty($require))required @endif>
@foreach ($associatedDatas as $associatedData)
<option value="{{ $associatedData->value }}" @if (old($name, $model->{$name}->value ?? $value ?? 1) == $associatedData->value) selected @endif>
{{ $associatedData->label }}
</option>
@endforeach
</select>
@include('modules.input-error', [
'inputName' => $name,
'helperId' => $id . "Help",
'helper' => $helper
])