File: D:/HostingSpaces/SBogers10/ehbo.today/resources/views/kms/attributes/multiSelect.blade.php
<div class="entity-attribute entity-attribute-multiselect @if($errors->has($attribute->key)) error @endif {!!$attribute->class!!}"
ng-controller="KmsAttributeMultiSelectController"
ng-init="
initChoices({{ $attribute->getData('JSON') }});
modelString = createModelString('{!! $attribute->key !!}', itemKey) "
>
{!! Form::label($attribute->key, $attribute->label()) !!}
{!! Form::text($attribute->key(), '@{{attributes[modelString].selects | valuesToArrayFilter}}',
[
'ng-hide'=> 'true',
'ng-cloak'=> 'true'
]) !!}
<div class="content">
<ui-select multiple allow-clear="false"
id="{!!$attribute->key!!}"
name="{!!$attribute->key!!}"
ng-model="attributes[modelString].selects"
theme="select2"
ng-init='attributes[modelString].selects = setValue({!! $attribute->getFormValue() !!})'
>
<ui-select-match placeholder="{!!$attribute->placeholder!!}">@{{$item.content}}</ui-select-match>
<ui-select-choices repeat="selectObject in selectData | propsFilter: {content: $select.search}">
<div ng-bind-html="selectObject.htmlContent"></div>
</ui-select-choices>
</ui-select>
</div>
</div>