<!-- nav =============================================================  -->
<nav class="navbar is-light is-fixed-top has-background-light" role="navigation" aria-label="main navigation">
    <div class="navbar-brand">
        <?php if(auth()->user()->role == 'administration' || auth()->user()->role == 'surveillant'): ?>
            <a class="navbar-item" href="/accueil">
                <img src="/img/upschool-favicon.png" height="28">
            </a>
        <?php else: ?>
            <a class="navbar-item" href="#">
                <img src="/img/upschool-favicon.png" height="28">
            </a>
        <?php endif; ?>
        <a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false"
            data-target="navbarBasicExample">
            <span aria-hidden="true"></span>
            <span aria-hidden="true"></span>
            <span aria-hidden="true"></span>
        </a>
    </div>

    <div id="navbarBasicExample" class="navbar-menu">
        <?php if(auth()->user()->role == 'administration' || auth()->user()->role == 'surveillant'): ?>
            <div class="navbar-start">
                <a href="/accueil" class="navbar-item <?php echo e(request()->is('accueil') ? 'is-active has-text-info' : ''); ?>">
                    Accueil
                </a>
                <a href="/accueil/professeurs"
                    class="navbar-item <?php echo e(request()->is('accueil/professeurs') ? 'is-active has-text-info' : ''); ?>">
                    Professeurs
                </a>
                <a href="/accueil/matieres"
                    class="navbar-item <?php echo e(request()->is('accueil/matieres') ? 'is-active has-text-info' : ''); ?>">
                    Matières
                </a>
                <?php if(auth()->user()->administrateur == 1): ?>
                    <a href="/accueil/operations"
                        class="navbar-item <?php echo e(request()->is('accueil/operations') ? 'is-active has-text-info' : ''); ?>">
                        Transactions
                    </a>
                    <a href="/accueil/comptes"
                        class="navbar-item <?php echo e(request()->is('accueil/comptes') ? 'is-active has-text-info' : ''); ?>">
                        Comptes
                    </a>
                <?php endif; ?>

                <span id="barreRecherche" class="navbar-item recherche control has-icons-left">
                    <input id="rechercheNavigation" class="input is-info is-rounded" type="text"
                        placeholder="Rechercher un élève">
                    <span class="icon is-small is-left m-2">
                        <i class="fas fa-search"></i>
                    </span>
                </span>
            </div>
        <?php endif; ?>
        <?php if(auth()->user()->role == 'professeur'): ?>
            <?php $__currentLoopData = $professeurs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $professeur): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if(str_replace(' ', '', $professeur->telephone) == auth()->user()->nom_utilisateur): ?>
                    <a href="/upschool/profDashboard/<?php echo e($professeur->slug); ?>"
                        class="navbar-item <?php echo e(request()->is('upschool/profDashboard/' . $professeur->slug) ? 'is-active has-text-info' : ''); ?>">
                        Accueil
                    </a>
                <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php endif; ?>
        <div class="navbar-end">
            <div class="navbar-item">
                <span class="mr-4">Année: <?php echo e(auth()->user()->current_year); ?></span>
                <span class="title is-6"><?php echo e(auth()->user()->prenom[0]); ?>.<?php echo e(auth()->user()->nom); ?></span>
            </div>
            <div class="navbar-item">
                <div class="buttons">
                    <?php if(auth()->user()->role == 'administration'): ?>
                        <a onclick="openForm('modalFormeleve')" class="button is-info is-rounded">
                            <strong>Inscrire un élève</strong>
                        </a>
                    <?php endif; ?>
                    <a href="/deconnexion" class="button is-danger is-light is-rounded">
                        Se deconnecter
                    </a>
                </div>
            </div>
        </div>
    </div>
</nav>

<span id="barreRechercheCopie"></span>
<span style="position: fixed; height: 15rem; overflow-y: auto; z-index: 9999;" class="box column is-5 is-hidden"
    id="trouves"></span>
<!-- end =============================================================  -->
<?php /**PATH /home/dide1435/luqman.upschool-sn.com/resources/views//partials/navigation.blade.php ENDPATH**/ ?>