<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'label',
    'name',
    'checked' => false,
    'hint' => null,
]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter(([
    'label',
    'name',
    'checked' => false,
    'hint' => null,
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<label class="flex cursor-pointer items-start gap-3">
    <span class="relative mt-0.5 inline-flex">
        <input type="checkbox" name="<?php echo e($name); ?>" value="1" class="peer sr-only" <?php if($checked): echo 'checked'; endif; ?>>
        <span class="h-6 w-11 rounded-full bg-slate-200 transition-colors peer-checked:bg-brand-600"></span>
        <span class="absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-white shadow transition-transform peer-checked:translate-x-5"></span>
    </span>
    <span>
        <span class="block text-sm font-medium text-slate-700"><?php echo e($label); ?></span>
        <?php if($hint): ?><span class="block text-xs text-slate-400"><?php echo e($hint); ?></span><?php endif; ?>
    </span>
</label>
<?php /**PATH D:\Zahid_Project\all-website\sharaussie_education\resources\views/components/admin/toggle.blade.php ENDPATH**/ ?>