File: D:/HostingSpaces/SBogers10/conmeq.komma.pro/resources/views/kms/attributes/select.blade.php
@php /** @var \App\Komma\Kms\Core\Attributes\Select $attribute */ @endphp
<div class="entity-attribute entity-attribute-select {{$attribute->getStyleClass()}}"
data-key="{{$attribute->getKey()}}"
@foreach($attribute->getDataAttributes() as $dataAttributeName => $dataAttributeValue)
{{ $dataAttributeName }}="{{ $dataAttributeValue }}"
@endforeach()
>
@include('kms.attributes.label')
@if($attribute->getReadOnly())
<div class="input-read-only">
@foreach($attribute->getItems() as $selectOptionModel)
@if($attribute->getValue() == $selectOptionModel->getValue())
{{$selectOptionModel->getHtmlContent()}}
@endif
@endforeach
</div>
<input type="hidden" name="{{$attribute->getKey()}}" value="{{ $attribute->getValue() }}">
@else
<div class="select-wrapper">
<select class="select-menu" name="{{$attribute->getKey()}}" id="{{$attribute->getKey()}}">
@foreach($attribute->getItems() as $selectOptionModel)
@if($selectOptionModel->getValue() != $currentId || $attribute->getExcludeCurrentModelItem() == false)
<option @if(old((string)$attribute->getKey(), $attribute->getValue()) == $selectOptionModel->getValue()) selected @endif
value="{{$selectOptionModel->getValue()}}">
{!! $selectOptionModel->getHtmlContent() !!}
</option>
@endif
@endforeach
</select>
</div>
@endif
</div>