<nav class="navbar bg-secondary navbar-dark">
    <a href="<?= __URLSITE__ ?>" class="navbar-brand mx-4 mb-3">
        <h3 class="text-primary text-center">
            <i class="fa-solid fa-gauge me-2"></i>
            <!-- Painel   <br>-->
            Feneva
        </h3>
    </a>
    <div class="d-flex align-items-center ms-4 mb-4">
        <div class="position-relative">
            <img class="rounded-circle" src="<?= __URLSITE__ ?>img/user.jpg" alt="" style="width: 40px; height: 40px;">
            <div class="bg-success rounded-circle border border-2 border-white position-absolute end-0 bottom-0 p-1"></div>
        </div>
        <div class="ms-3">
            <h6 class="mb-0"><?= $_SESSION["usuario_login"] ?></h6>
            <span><?= $_SESSION["usuario_nivel"] ?></span>
        </div>
    </div>
    <div class="navbar-nav w-100">
        <?php if ($_SESSION["participante"] == true) { ?>
            <a href="<?= __URLSITE__ ?>index.php" class="nav-item nav-link active"><i class="fa fa-home me-2"></i>Home</a>

        <?php } elseif ($_SESSION["bilheteria"] == true && $_SESSION["usuario_nivel"] == 'Bilheteria') { ?>
            <a href="<?= __URLSITE__ ?>index.php" class="nav-item nav-link active"><i class="fa fa-home me-2"></i>Home</a>
            <a href="<?= __URLSITE__ ?>participante/listagem" class="nav-item nav-link"><i class="fa fa-users me-2"></i>Participantes</a>
            <a href="<?= __URLSITE__ ?>participante/listagem_completa" class="nav-item nav-link"><i class="fa fa-users me-2"></i>Participantes (completo)</a>
            <a href="<?= __URLSITE__ ?>ingresso/listagem" class="nav-item nav-link"><i class="fa fa-receipt me-2"></i>Ingresso</a>
            <a href="<?= __URLSITE__ ?>evento/listagem" class="nav-item nav-link"><i class="fa fa-calendar me-2"></i>Evento</a>
            <a href="<?= __URLSITE__ ?>pagamento/listagem" class="nav-item nav-link"><i class="fa fa-money-bill me-2"></i>Pagamento</a>
            <!-- <div class="navbar-nav w-100">
                <div class="nav-item dropdown">
                    <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown"><i class="fas fa-cog me-2"></i>Configuração</a>
                    <div class="dropdown-menu bg-transparent border-0">
                        <a href="<?= __URLSITE__ ?>configuracoes/categoria_evento/listagem" class="dropdown-item" style="margin-left: 20px !important;"><i class="fas fa-calendar-alt me-2"></i>Categorias Evento</a>
                        <a href="<?= __URLSITE__ ?>configuracoes/programacao/listagem" class="dropdown-item" style="margin-left: 20px !important;"><i class="fas fa-calendar-week me-2"></i>Programação</a>
                        <a href="<?= __URLSITE__ ?>configuracoes/tipo_ingresso/listagem" class="dropdown-item" style="margin-left: 20px !important;"><i class="fa fa-receipt me-2"></i>Tipo de Ingresso</a>
                        <a href="<?= __URLSITE__ ?>configuracoes/forma_pagamento/listagem" class="dropdown-item" style="margin-left: 20px !important;"><i class="fa fa-money-bill me-2"></i>Forma de Pagamento</a>
                    </div>
                </div>
            </div> -->

        <?php } elseif ($_SESSION["usuario_nivel"] == 'Stand') { ?>
            <a href="<?= __URLSITE__ ?>index.php" class="nav-item nav-link active"><i class="fa fa-home me-2"></i>Home</a>
            <a href="<?= __URLSITE__ ?>frequencia_manual/listagem" class="nav-item nav-link"><i class="fa fa-home me-2"></i>Frequencia</a>
        <?php } else { ?>
            <a href="<?= __URLSITE__ ?>index.php" class="nav-item nav-link active"><i class="fa fa-home me-2"></i>Home</a>
            <a href="<?= __URLSITE__ ?>usuario/listagem" class="nav-item nav-link"><i class="fa fa-user me-2"></i>Usuários</a>
            <a href="<?= __URLSITE__ ?>participante/listagem" class="nav-item nav-link"><i class="fa fa-users me-2"></i>Participantes</a>
            <a href="<?= __URLSITE__ ?>ingresso/listagem" class="nav-item nav-link"><i class="fa fa-receipt me-2"></i>Ingresso</a>
            <a href="<?= __URLSITE__ ?>evento/listagem" class="nav-item nav-link"><i class="fa fa-calendar me-2"></i>Evento/Stand</a>
            <a href="<?= __URLSITE__ ?>frequencia_manual/listagem" class="nav-item nav-link"><i class="fa-sharp fa-solid fa-list-check me-2"></i>Frequencia </a>
            <a href="<?= __URLSITE__ ?>pagamento/listagem" class="nav-item nav-link"><i class="fa fa-money-bill me-2"></i>Pagamento</a>
            <div class="navbar-nav w-100">
                <div class="nav-item dropdown">
                    <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown"><i class="fas fa-cog me-2"></i>Configuração</a>
                    <div class="dropdown-menu bg-transparent border-0">
                        <a href="<?= __URLSITE__ ?>configuracoes/categoria_evento/listagem" class="dropdown-item" style="margin-left: 20px !important;"><i class="fas fa-calendar-alt me-2"></i>Categorias Evento</a>
                        <a href="<?= __URLSITE__ ?>configuracoes/programacao/listagem" class="dropdown-item" style="margin-left: 20px !important;"><i class="fas fa-calendar-week me-2"></i>Programação</a>
                        <a href="<?= __URLSITE__ ?>configuracoes/tipo_ingresso/listagem" class="dropdown-item" style="margin-left: 20px !important;"><i class="fa fa-receipt me-2"></i>Tipo de Ingresso</a>
                        <a href="<?= __URLSITE__ ?>configuracoes/forma_pagamento/listagem" class="dropdown-item" style="margin-left: 20px !important;"><i class="fa fa-money-bill me-2"></i>Forma de Pagamento</a>
                    </div>
                </div>
            </div>
        <?php } ?>
        <a href="<?= ($_SESSION["participante"] == false ? __URLSITE__ . 'logout.php' : __URLSITE__ . 'logout_participante.php') ?>" class="nav-item nav-link"><i class="fa fa-lock me-2"></i>Sair/Deslogar</a>
    </div>
</nav>