
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
    <div class="container-fluid">
        <a class="navbar-brand" href="/admin/orders.php">Admin Panel</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav">
                <?php if (isset($_SESSION['user_role'])): ?>
                    <li class="nav-item">
                        <a class="nav-link" href="orders.php">Zamówienia</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="clients.php">Klienci</a>
                    </li>
                    <?php if ($_SESSION['user_role'] === 'admin'): ?>
                        <li class="nav-item">
                            <a class="nav-link" href="products.php">Produkty</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="users.php">Użytkownicy</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="client_prices.php">Ceny klientów</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="attribute_keys.php">Atrybuty</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="settings.php">Ustawienia</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="kb_documents.php">Baza wiedzy</a>
                        </li>
                    <?php endif; ?>
                <?php endif; ?>
            </ul>
            <ul class="navbar-nav ms-auto">
                <li class="nav-item">
                    <a class="nav-link" href="../logout.php">Wyloguj</a>
                </li>
            </ul>
        </div>
    </div>
</nav>
