<!-- views/layout/sidebar.php -->
<aside class="sidebar">
    <div class="sidebar-header">
        <h2>NexCore-Pharma</h2>
    </div>
    <ul class="nav-links">
        <li><a href="/dashboard" class="<?php echo $path === '/dashboard' || $path === '/' ? 'active' : ''; ?>">Dashboard</a></li>
        <li><a href="/medicines" class="<?php echo strpos($path, '/medicines') === 0 ? 'active' : ''; ?>">Medicines Master</a></li>
        <li><a href="/stock" class="<?php echo strpos($path, '/stock') === 0 ? 'active' : ''; ?>">Stock Entry</a></li>
        <li><a href="/inventory" class="<?php echo strpos($path, '/inventory') === 0 ? 'active' : ''; ?>">Inventory</a></li>
        <li><a href="/logout" style="color: var(--danger); margin-top: auto;">Logout</a></li>
    </ul>
</aside>
