HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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>