File: D:/HostingSpaces/EUmans/umansradepo.be/app/storage/views/29e88d123e6dce38af3dcb9493671255
<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>