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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['href', 'active' => false, 'icon' => '', 'collapsed' => false]));

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((['href', 'active' => false, 'icon' => '', 'collapsed' => false]), '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); ?>

<a href="<?php echo e($href); ?>" x-data :class="collapsed ? 'justify-center px-0' : 'justify-start px-3'" class="relative flex items-center gap-3 py-2.5 rounded-lg text-sm font-medium transition-colors
   <?php echo e($active
    ? 'bg-indigo-50 text-indigo-600'
    : 'text-gray-500 hover:bg-gray-50 hover:text-gray-800'); ?>">

    <?php if($active): ?>
        <span class="absolute left-0 top-1.5 bottom-1.5 w-0.5 rounded-full bg-indigo-600"></span>
    <?php endif; ?>

    <span class="w-5 h-5 flex-shrink-0 <?php echo e($active ? 'text-indigo-600' : 'text-gray-400'); ?>">
        <?php echo $icon; ?>

    </span>

    <span x-show="!collapsed" x-transition class="truncate">
        <?php echo e($slot); ?>

    </span>
</a><?php /**PATH /home/iris/public_html/resources/views/components/sidebar-link.blade.php ENDPATH**/ ?>