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