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/helder.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>