<div id="layoutSidenav_nav">
    <nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion">
        <div class="sb-sidenav-menu">
            <div class="nav">
                <!-- Core -->
                <div class="sb-sidenav-menu-heading">Core</div>
                <a class="nav-link" href="<?php echo VENDOR_BASE_URL; ?>dashboard.php">
                    <div class="sb-nav-link-icon"><i class="fas fa-tachometer-alt"></i></div>
                    Dashboard
                </a>

                <!-- Products -->
                <div class="sb-sidenav-menu-heading">Products</div>
                <a class="nav-link collapsed" href="#" data-bs-toggle="collapse" data-bs-target="#collapseProducts">
                    <div class="sb-nav-link-icon"><i class="fas fa-boxes"></i></div>
                    Products
                    <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                </a>
                <div class="collapse" id="collapseProducts" data-bs-parent="#sidenavAccordion">
                    <nav class="sb-sidenav-menu-nested nav">
                        <a class="nav-link" href="<?php echo VENDOR_BASE_URL; ?>products/add-product.php">Add New</a>
                        <a class="nav-link" href="<?php echo VENDOR_BASE_URL; ?>products/manage-products.php">Manage
                            Products</a>
                        <a class="nav-link" href="<?php echo VENDOR_BASE_URL; ?>inventory.php">Inventory</a>
                    </nav>
                </div>

                <!-- Orders -->
                <div class="sb-sidenav-menu-heading">Orders</div>
                <a class="nav-link collapsed" href="#" data-bs-toggle="collapse" data-bs-target="#collapseOrders">
                    <div class="sb-nav-link-icon"><i class="fas fa-shopping-cart"></i></div>
                    Orders
                    <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                </a>
                <div class="collapse" id="collapseOrders" data-bs-parent="#sidenavAccordion">
                    <nav class="sb-sidenav-menu-nested nav">
                        <a class="nav-link" href="<?php echo VENDOR_BASE_URL; ?>orders/all-orders.php">All Orders</a>
                        <a class="nav-link" href="<?php echo VENDOR_BASE_URL; ?>orders/pending-orders.php">Pending</a>
                        <a class="nav-link" href="<?php echo VENDOR_BASE_URL; ?>orders/completed-orders.php">Completed</a>
                    </nav>
                </div>

                <!-- Earnings -->
                <div class="sb-sidenav-menu-heading">Financials</div>
                <a class="nav-link" href="<?php echo VENDOR_BASE_URL; ?>earnings/dashboard.php">
                    <div class="sb-nav-link-icon"><i class="fas fa-money-bill-wave"></i></div>
                    Earnings
                </a>
                <a class="nav-link" href="<?php echo VENDOR_BASE_URL; ?>earnings/payouts.php">
                    <div class="sb-nav-link-icon"><i class="fas fa-wallet"></i></div>
                    Payouts
                </a>

                <!-- Store -->
                <div class="sb-sidenav-menu-heading">Store</div>
                <a class="nav-link" href="<?php echo VENDOR_BASE_URL; ?>store/profile.php">
                    <div class="sb-nav-link-icon"><i class="fas fa-store"></i></div>
                    Store Profile
                </a>

            </div>
        </div>
        <div class="sb-sidenav-footer">
            <div class="small">Vendor:</div>
            <strong>
                <?php echo htmlentities($VENDOR_INFO['username']); ?>
            </strong>
        </div>
    </nav>
</div>