File: D:/HostingSpaces/SBogers10/edwingovers.komma.pro/resources/views/kms/attributes/sorter.blade.php
<div class="entity-attribute entity-attribute-sorter @if($errors->has($attribute->key)) error @endif {!!$attribute->class!!}"
ng-controller="KmsAttributeSorterController"
ng-init="modelString = createModelString('{!! $attribute->key !!}', itemKey)">
{!! Form::label($attribute->key, $attribute->label()) !!}
{!! Form::hidden($attribute->key(), '', ['ng-value' => 'items | json']) !!}
{!! Form::hidden('key', $attribute->key(), ['class' => 'attribute-key']) !!}
<div class="content"
ng-init='items ={!! $attribute->getData('json') !!} '>
<ul ui-sortable ng-model="items">
<li ng-repeat="item in items">@{{ item.value }}</li>
</ul>
</div>
</div>