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/SBogers47/ehbocranendonck.nl/app/storage/views/6a4a3ab3ea0cc9d30ee1791a65a07e32
<div class="entity-attribute entity-attribute-on-off<?php echo e(count($attribute->errors) == 0 ? '' : ' error'); ?> <?php echo e($attribute->class); ?> <?php if( !$attribute->show || ($attribute->show === 'admin' && !\Auth::user()->get()->is_admin) ): ?> hidden <?php endif; ?> " 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>