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/ZelfVerkopen/zelfverkopen.nl/resources/views/kms/attributes/onOff.blade.php
<div class="entity-attribute entity-attribute-on-off @if($errors->has($attribute->getKey().'')) error @endif {!!$attribute->getStyleClass()!!}"
     title="{!! $attribute->errors[0] or '' !!}"
>
    <label for="{!! $attribute->getKey() !!}" class="toggle-label">{!! $attribute->getLabelText() !!}</label>
    @if(!$attribute->getReadOnly())
        <input onchange="toggleOnOff('{!! $attribute->getKey() !!}')"
               id="{!! $attribute->getKey() !!}"
               name="{!! $attribute->getKey() !!}"
               type="checkbox"
               value="{!! $attribute->getValue() !!}"
               @if($attribute->getValue() == '1') checked @endif
        />
        <div onclick="toggleOnOffSwitch('{!! $attribute->getKey() !!}')"
             id="{!! $attribute->getKey() !!}-switch"
             class="on-off-switch @if($attribute->getValue() == '1') on @endif ">
        </div>
    @else
        <div style="text-indent: 0px;" class="input-read-only">{{ $attribute->getValue() == '1' ? __('kms/global.yes') : __('kms/global.no') }}</div>
    @endif
</div>