<nav class="sb-topnav navbar navbar-expand navbar-dark">
    <!-- Navbar Brand-->
    <a class="navbar-brand ps-3" href="<?php echo VENDOR_BASE_URL; ?>dashboard.php">
        <i class="fas fa-store me-2"></i>
        <span class="d-none d-md-inline"><?php echo htmlentities($VENDOR_INFO['store_name']); ?></span>
        <span
            class="d-inline d-md-none"><?php echo htmlentities(strlen($VENDOR_INFO['store_name']) > 12 ? substr($VENDOR_INFO['store_name'], 0, 12) . '...' : $VENDOR_INFO['store_name']); ?></span>
    </a>
    <!-- Sidebar Toggle-->
    <button class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarToggle">
        <i class="fas fa-bars"></i>
    </button>

    <!-- Navbar-->
    <ul class="navbar-nav ms-auto me-3 me-lg-4 align-items-center">
        <!-- View Store -->
        <li class="nav-item me-3">
            <a href="<?php echo APP_BASE_URL; ?>vendor-store.php?vid=<?php echo $VENDOR_INFO['id']; ?>"
                class="btn btn-outline-light btn-sm" target="_blank">
                <i class="fas fa-external-link-alt me-0 me-md-2"></i><span class="d-none d-md-inline">View My
                    Store</span>
            </a>
        </li>

        <!-- User Dropdown -->
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" id="navbarDropdown" href="#" role="button" data-bs-toggle="dropdown"
                aria-expanded="false">
                <i class="fas fa-user fa-fw"></i>
            </a>
            <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
                <li><a class="dropdown-item" href="<?php echo VENDOR_BASE_URL; ?>store/profile.php">
                        <i class="fas fa-store me-2"></i>Store Settings
                    </a></li>
                <li><a class="dropdown-item" href="<?php echo VENDOR_BASE_URL; ?>store/settings.php">
                        <i class="fas fa-cog me-2"></i>Account Settings
                    </a></li>
                <li>
                    <hr class="dropdown-divider" />
                </li>
                <li><a class="dropdown-item" href="<?php echo VENDOR_BASE_URL; ?>logout.php">
                        <i class="fas fa-sign-out-alt me-2"></i>Logout
                    </a></li>
            </ul>
        </li>
    </ul>
</nav>