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/SBogers26/gripp.nu/app/storage/views/ec790be3d90aabbb6b7622f7d320f6bc
<div class="entity-attribute entity-attribute-on-off<?php echo e(count($attribute->errors) == 0 ? '' : ' error'); ?> <?php echo e($attribute->class); ?>" data-uk-tooltip="{pos:'bottom-right'}" title="<?php echo e(isset($attribute->errors[0]) ? $attribute->errors[0] : ''); ?>">
    <?php echo Form::label($attribute->key. '_checkbox', $attribute->label); ?>

    <?php echo Form::hidden($attribute->key, $attribute->getValue(), ['id' => $attribute->key]); ?>

    <?php echo Form::checkbox($attribute->key.'_checkbox', '1', $attribute->getValue() == 1 ? true : false, ['class' => 'toggle toggle-round-flat', 'id' => $attribute->key . '_checkbox']); ?>

    <label for="<?php echo e($attribute->key . '_checkbox'); ?>" class="toggle-label"></label>

    <script>
        $("#<?php echo $attribute->key; ?>_checkbox").change(function(){
            $("#<?php echo $attribute->key; ?>").val($(this).prop('checked') ? 1 : 0);
        });
    </script>

</div>