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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['item']));

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((['item']), '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); ?>
<?php
    $exists = Route::has($item['route']);
    $active = $exists && request()->routeIs($item['route'].'*');
?>

<?php if($exists): ?>
    <a
        href="<?php echo e(route($item['route'])); ?>"
        class="group relative flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm transition-all duration-200
            <?php echo e($active ? 'bg-gradient-to-r from-champagne/20 to-champagne/5 text-champagne-light font-semibold' : 'text-cream/65 hover:translate-x-0.5 hover:bg-white/5 hover:text-cream'); ?>"
    >
        <?php if($active): ?>
            <span class="absolute left-0 top-1/2 h-5 w-1 -translate-y-1/2 rounded-r-full bg-champagne-light"></span>
        <?php endif; ?>
        <i class="<?php echo e($item['icon']); ?> w-4 text-center transition-transform duration-200 group-hover:scale-110 <?php echo e($active ? 'text-champagne-light' : 'text-cream/40'); ?>"></i>
        <?php echo e($item['label']); ?>

        <?php if(! empty($item['badge'])): ?>
            <span class="ml-auto rounded-full bg-danger/20 px-1.5 py-0.5 text-[0.65rem] font-semibold text-danger"><?php echo e($item['badge']); ?></span>
        <?php endif; ?>
    </a>
<?php else: ?>
    <span
        title="Coming soon"
        class="flex cursor-not-allowed items-center gap-3 rounded-lg px-3 py-2 text-sm text-cream/25"
    >
        <i class="<?php echo e($item['icon']); ?> w-4 text-center text-cream/20"></i>
        <?php echo e($item['label']); ?>

        <span class="ml-auto rounded bg-white/5 px-1.5 py-0.5 text-[0.6rem] uppercase tracking-wide text-cream/30">Soon</span>
    </span>
<?php endif; ?>
<?php /**PATH C:\xampp\htdocs\ecommerce\resources\views/components/admin/sidebar-link.blade.php ENDPATH**/ ?>