File: D:/HostingSpaces/SBogers10/conmeq.komma.pro/resources/views/kms/attributes/multiSelect.blade.php
@php /** @var \App\Komma\Kms\Core\Attributes\MultiSelect $attribute */@endphp
<div class="entity-attribute entity-attribute-multiselect-combo-box {!!$attribute->getStyleClass()!!}"
data-max-items-to-select="{{ $attribute->getMaxItemsToSelect() }}"
data-autosave-url = "{{ $attribute->getAutoSaveUrl() }}"
data-items="{{ $attribute->getItems(true) }}"
data-key="{{ $attribute->getKey() }}"
data-default-value="{{ $attribute->getDefaultValue() }}"
data-readOnly="{{ $attribute->getReadOnly() ? 'true' : 'false' }}"
data-sortable="{{ $attribute->isSortable() ? 'true' : 'false' }}"
@foreach($attribute->getDataAttributes() as $dataAttributeName => $dataAttributeValue)
{{ $dataAttributeName }}="{{ $dataAttributeValue }}"
@endforeach
>
@include('kms.attributes.label')
@if($attribute->getReadOnly())
<div class="content">
<ul>
@foreach($attribute->getItems() as $selectOptionsModel)
@foreach(explode(',', $attribute->getValue()) as $currentItemId)
@if($currentItemId == $selectOptionsModel->getValue())
<li>{{$selectOptionsModel->getHtmlContent()}}</li>
@endif
@endforeach()
@endforeach
</ul>
</div>
<input type="hidden" name="{{ $attribute->getKey() }}" value="{{ $attribute->getValue() }}">
@else
<div class="ui-widget">
<input id="{{$attribute->getKey()}}-fake"
placeholder=" @lang('kms/global.search2')"
dusk="{{$attribute->getKey()}}-fake"
>
<span class="dropdown" id="{{$attribute->getKey()}}-open"></span>
<input type="hidden" id="{{$attribute->getKey()}}" name="{{$attribute->getKey()}}" value="{{ $attribute->getValue() }}">
</div>
<div class="items" id="{{$attribute->getKey()}}_items" dusk="{{$attribute->getKey()}}_items">
</div>
@if($attribute->getExplanation())<span class="explanation">{!! $attribute->getExplanation() !!} </span> @endif
@endif
</div>