<!-- Navbar -->
<div class="container-fluid page-body-wrapper">
    <nav class="navbar default-layout-navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
        <div class="navbar-menu-wrapper d-flex align-items-stretch">
            <button class="navbar-toggler navbar-toggler align-self-center" type="button" data-toggle="minimize">
                <span class="mdi mdi-chevron-double-left"></span>
            </button>
            
            <div class="text-center navbar-brand-wrapper d-flex align-items-center justify-content-center">

                <a class="navbar-brand brand-logo-mini" href="index.php">
                    <img src="assets/images/logo-mini.svg" alt="logo">
                </a>
            </div>
            
            <ul class="navbar-nav navbar-nav-right">
                 <li class="nav-item nav-logout d-none d-md-block me-3">
                <a class="nav-link" href="#">Status</a>
              </li>
              <li class="nav-item nav-logout d-none d-md-block">
                <button class="btn btn-sm btn-danger">Admin</button>
              </li>
           <li class="nav-item nav-profile dropdown">
    <a class="nav-link d-flex align-items-center" id="profileDropdown" href="#" 
       data-bs-toggle="dropdown" aria-expanded="false">
        <img src="assets/images/img2.png"
             alt="profile"
             class="rounded-circle"
             style="width:35px; height:35px; object-fit:cover;">
    </a>

    <div class="dropdown-menu dropdown-menu-end navbar-dropdown p-3 shadow"
         aria-labelledby="profileDropdown"
         style="width: 230px;">
         
        <div class="d-flex align-items-center mb-3">
            <img src="assets/images/img2.png"
                 class="rounded-circle me-2"
                 style="width:45px; height:45px; object-fit:cover;">
            <div>
                <h6 class="mb-0"><?php echo $_SESSION['gym_owner']; ?></h6>
<small class="text-muted">
    <?php echo htmlspecialchars($current_gym['name'] ?? ''); ?>
</small>
            </div>
        </div>

        <a class="dropdown-item d-flex align-items-center mb-2" href="profile.php">
            <i class="mdi mdi-account text-primary fs-5 me-2"></i> Profile
        </a>

        <a class="dropdown-item d-flex align-items-center bg-danger text-white rounded py-2" href="logout.php">
            <i class="mdi mdi-logout fs-5 me-2"></i> Logout
        </a>
    </div>
</li>
                
                <li class="nav-item nav-logout d-none d-lg-block">
                    <a class="nav-link" href="index.php">
                        <i class="mdi mdi-home-circle"></i>
                    </a>
                </li>
            </ul>
            
            <button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button" data-toggle="offcanvas">
                <span class="mdi mdi-menu"></span>
            </button>
        </div>
    </nav>