<aside :class="sidebarOpen ? 'translate-x-0 w-64' : '-translate-x-full w-0'" class="fixed inset-y-0 left-0 z-50 bg-[#0B0F19] text-white transition-all duration-300 ease-in-out md:relative overflow-y-auto overflow-x-hidden border-r border-slate-800 shadow-2xl flex-shrink-0">
    
    <div class="flex items-center justify-center h-16 bg-[#05070B] border-b border-slate-800 sticky top-0 z-10 w-64">
        <span class="text-2xl font-black tracking-widest text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-purple-500">UTSN SPARE</span>
    </div>
    
    <nav class="mt-8 px-4 space-y-2 w-64">
        <p class="px-4 text-[10px] font-black text-slate-500 uppercase tracking-[0.2em] mb-4">Core</p>
        
        <a href="<?php echo e(route('admin.dashboard')); ?>" class="flex items-center px-4 py-3 bg-gradient-to-r from-cyan-500/10 to-transparent border-l-4 border-cyan-500 text-cyan-400 rounded-r-lg font-medium">
            <svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>
            Dashboard
        </a>

        <p class="px-4 text-[10px] font-black text-slate-500 uppercase tracking-[0.2em] mt-8 mb-4">Management</p>

        <?php if(auth()->user()->hasPermissionTo('manage-inventory')): ?>
        <a href="<?php echo e(url('/admin/products')); ?>" class="flex items-center px-4 py-3 text-slate-400 hover:bg-slate-800/50 hover:text-cyan-400 rounded-lg transition-colors font-medium">
            <svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg>
            Master Inventory
        </a>
        <?php endif; ?>

        <?php if(auth()->user()->hasPermissionTo('manage-users')): ?>
        <a href="#" class="flex items-center px-4 py-3 text-slate-400 hover:bg-slate-800/50 hover:text-white rounded-lg transition-colors font-medium">
            <svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>
            User Roles & Perms
        </a>
        <?php endif; ?>

        <?php if(auth()->user()->hasPermissionTo('manage-orders')): ?>
        <a href="#" class="flex items-center px-4 py-3 text-slate-400 hover:bg-slate-800/50 hover:text-white rounded-lg transition-colors font-medium">
            <svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"></path></svg>
            Orders Tracking
        </a>
        <?php endif; ?>

    </nav>
</aside><?php /**PATH C:\Users\Administrator\utsn-spare\resources\views/admin/layouts/sidebar.blade.php ENDPATH**/ ?>