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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'label',
    'icon' => null,
    'iconSolid' => true, // 👈 solid by default
    'routes' => [], // 👈 route patterns
]));

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',
    'icon' => null,
    'iconSolid' => true, // 👈 solid by default
    'routes' => [], // 👈 route patterns
]), '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
    $isActive = collect($routes)->contains(fn($route) => request()->routeIs($route));
?>

<div x-data="{ open: <?php echo e($isActive ? 'true' : 'false'); ?> }" class="space-y-1">

    <button type="button" @click="open = !open" <?php if($isActive): ?> aria-current="page" <?php endif; ?>
        class="group relative w-full flex items-center justify-between gap-1
            px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200
            focus:outline-none focus:ring-2 focus:ring-offset-1
            focus:ring-[#0E4D92]/40 dark:focus:ring-[#0E4D92]/40

            <?php echo e($isActive
                ? 'bg-[#0E4D92]/10 text-[#0E4D92] dark:bg-[#0E4D92]/20 dark:text-[#0E4D92]'
                : 'text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-gray-100'); ?>

        ">

        
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($isActive): ?>
            <span
                class="absolute left-0 top-1/2 -translate-y-1/2 h-6 w-1 rounded-full
                   bg-[#0E4D92] dark:bg-sky-600">
            </span>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        
        <div class="flex items-center gap-3">
            
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($icon): ?>
                <span
                    class="flex h-8 w-8 items-center justify-center rounded-md
                bg-gray-100 dark:bg-gray-800
                text-gray-600 dark:text-gray-300
                transition-colors duration-200
                group-hover:bg-sky-100 group-hover:text-sky-600
                dark:group-hover:bg-sky-900/30
                <?php echo e($isActive ? 'bg-sky-100 text-sky-600 dark:bg-sky-900/40' : ''); ?>">
                    <?php if (isset($component)) { $__componentOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'e60dd9d2c3a62d619c9acb38f20d5aa5::icon.index','data' => ['variant' => $iconSolid ? 'solid' : null,'name' => $icon,'class' => 'w-4 h-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('flux::icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['variant' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($iconSolid ? 'solid' : null),'name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($icon),'class' => 'w-4 h-4']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2)): ?>
<?php $attributes = $__attributesOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2; ?>
<?php unset($__attributesOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2)): ?>
<?php $component = $__componentOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2; ?>
<?php unset($__componentOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2); ?>
<?php endif; ?>
                </span>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            
            <span class="flex-1 text-xs md:text-sm truncate">
                <?php echo e($label); ?>

            </span>
        </div>

        
        <svg class="w-4 h-4 transition-transform duration-300
                <?php echo e($isActive ? 'text-sky-500 dark:text-[#0E4D92]' : 'text-gray-400 group-hover:text-gray-600'); ?>"
            :class="{ 'rotate-180': open }" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
        </svg>
    </button>

    
    <div x-show="open" x-collapse x-cloak
        class="relative ml-4 pl-2 space-y-1 border-l border-gray-200 dark:border-gray-700">
        <?php echo e($slot); ?>

    </div>
</div>
<?php /**PATH /Users/macuser/Herd/Novabank/resources/views/components/sidebar/dropdown.blade.php ENDPATH**/ ?>