File: D:/HostingSpaces/SBogers10/vebon.komma.pro/resources/views/kms/attributes/onOff.blade.php
<div class="entity-attribute entity-attribute-on-off
@if($errors->has($attribute->key)) error @endif {!!$attribute->class!!}"
data-uk-tooltip="{pos:'bottom-right'}"
title="{!! $attribute->errors[0] or '' !!}"
ng-controller="KmsAttributes"
ng-init="modelString = createModelString('{!! $attribute->key !!}', itemKey)">
{!! Form::label($attribute->key. '_checkbox', $attribute->label()) !!}
{!! Form::hidden($attribute->key(), $attribute->value,['ng-value' => 'attributes[modelString]']) !!}
{!! Form::checkbox('checkbox_'.$attribute->key(), '1', $attribute->getValue() == 1 ? true : false, [
'class' => 'toggle toggle-round-flat',
'id' => $attribute->key . '_checkbox',
'ng-model' => 'attributes[modelString]',
'ng-init'=>'attributes[modelString] ='.$attribute->value,
'ng-true-value'=>'1' ,
'ng-false-value'=>'0'
]) !!}
<label for="{!!$attribute->key . '_checkbox'!!}" class="toggle-label"></label>
@if(!empty($attribute->extra_info) )
<span class="extra-info">{!!$attribute->extra_info !!}</span>
@endif
</div>