<div class="navbar-custom">
    <div class="container-fluid">

        <ul class="list-unstyled topnav-menu float-right mb-0">

          <?php if($Show == '1'){ ?>

            <li class="dropdown d-none d-lg-inline-block">
                <a class="nav-link dropdown-toggle arrow-none waves-effect waves-light" data-toggle="fullscreen" href="#">
                    <i class="fe-maximize noti-icon"></i>
                </a>
            </li>

            <li class="dropdown notification-list topbar-dropdown">
                <a class="nav-link dropdown-toggle waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
                    <i class="fe-bell noti-icon"></i>
                    <span class="badge badge-danger rounded-circle noti-icon-badge">2</span>
                </a>
                <div class="dropdown-menu dropdown-menu-right dropdown-lg">

                    <!-- item-->
                    <div class="dropdown-item noti-title">
                        <h5 class="m-0">
                            <span class="float-right">
                                <a href="" class="text-dark">
                                    <small>Borrar</small>
                                </a>
                            </span>Notificaciones
                        </h5>
                    </div>

                    <div class="noti-scroll" data-simplebar>

                        <!-- item-->
                        <a href="javascript:void(0);" class="dropdown-item notify-item">
                            <div class="notify-icon bg-soft-primary text-primary">
                                <i class="mdi mdi-comment-account-outline"></i>
                            </div>
                            <p class="notify-details">Comentario de Fuerza de Ventas
                                <small class="text-muted">1 min</small>
                            </p>
                        </a>

                        <!-- item-->
                        <a href="javascript:void(0);" class="dropdown-item notify-item">
                            <div class="notify-icon bg-soft-warning text-warning">
                                <i class="mdi mdi-account-plus"></i>
                            </div>
                            <p class="notify-details">Nuevo Usuario Registrado.
                                <small class="text-muted">5 horas</small>
                            </p>
                        </a>

                    </div>

                    <!-- All-->
                    <a href="javascript:void(0);" class="dropdown-item text-center text-primary notify-item notify-all">
                        Ver todo
                        <i class="fe-arrow-right"></i>
                    </a>

                </div>
            </li>

          <?php } ?>

          <li class="dropdown notification-list topbar-dropdown">
              <a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
                  <img src="<?php echo $position; ?>assets/images/users/avatar-1.jpg" alt="user-image" class="rounded-circle">
                  <span class="pro-user-name ml-1">
                  <?php echo $UserSession['nombre']; ?> <i class="mdi mdi-chevron-down"></i>
                  </span>
              </a>
              <div class="dropdown-menu dropdown-menu-right profile-dropdown ">
                    <!-- item-->
                    <div class="dropdown-header noti-title">
                        <h6 class="text-overflow m-0">Usuario</h6>
                    </div>

                  <?php if($Show == '1'){ ?>
                    <!-- item-->
                    <a href="javascript:void(0);" class="dropdown-item notify-item">
                        <i class="ri-account-circle-line"></i>
                        <span>Mi Cuenta</span>
                    </a>

                    <!-- item-->
                    <a href="javascript:void(0);" class="dropdown-item notify-item">
                        <i class="ri-lock-line"></i>
                        <span>Bloqueo</span>
                    </a>

                    <div class="dropdown-divider"></div>
                  <?php } ?>

                  <!-- item-->
                  <a href="<?php echo $dir;?>assets/logout.php" class="dropdown-item notify-item">
                      <i class="ri-logout-box-line"></i>
                      <span>Salir</span>
                  </a>

              </div>
          </li>

        </ul>

        <!-- LOGO -->
        <div class="logo-box">

            <a href="index.php" class="logo logo-light text-center">
                <span class="logo-sm">
                    <img src="<?php echo $position; ?>assets/images/logo-sm.png" alt="Logo Switch Point sm" height="24">
                </span>
                <span class="logo-lg">
                    <img src="<?php echo $position; ?>assets/images/logo-light.png" alt="Logo Switch Point" height="20">
                </span>
            </a>
        </div>

        <ul class="list-unstyled topnav-menu topnav-menu-left m-0">
            <li>
                <button class="button-menu-mobile waves-effect waves-light">
                    <i class="fe-menu"></i>
                </button>
            </li>

            <li>
                <!-- Mobile menu toggle (Horizontal Layout)-->
                <a class="navbar-toggle nav-link" data-toggle="collapse" data-target="#topnav-menu-content">
                    <div class="lines">
                        <span></span>
                        <span></span>
                        <span></span>
                    </div>
                </a>
                <!-- End mobile menu toggle-->
            </li>

            <?php if($Show == '1'){ ?>
              <li class="dropdown d-none d-xl-block">
                <a class="nav-link dropdown-toggle waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
                  Crear Nuevo
                  <i class="mdi mdi-chevron-down"></i>
                </a>
                <div class="dropdown-menu">
                  <!-- item-->
                  <a href="javascript:void(0);" class="dropdown-item">
                    <i class="fe-user mr-1"></i>
                    <span>Crear Usuario</span>
                  </a>
                  <!-- item-->
                  <a href="javascript:void(0);" class="dropdown-item">
                    <i class="fe-briefcase mr-1"></i>
                    <span>Nueva Ruta</span>
                  </a>

                  <div class="dropdown-divider"></div>

                  <!-- item-->
                  <a href="javascript:void(0);" class="dropdown-item">
                    <i class="fe-settings mr-1"></i>
                    <span>Ajustes</span>
                  </a>

                </div>
              </li>
            <?php } ?>

        </ul>
        <div class="clearfix"></div>
    </div>
</div>
