<?php $__env->startSection('contenu'); ?>
    <?php echo $__env->make('/partials/modalAjouterMatiere', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalModifierMatiere', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalConfirmSuppMatiere', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <section
        style="background-image: url('/img/board.png'); background-attachment: fixed; background-repeat: no-repeat; background-size: cover; min-height: 93.2vh;"
        class="section p-3 mt-0 mb-0 mx-2-touch columns mx-0 is-centered is-flex-desktop is-flex-direction-column is-justify-content-center">
        <nav class="panel mx-auto is-info column is-half p-0">
            <p class="panel-heading">
                Les matières
            </p>
            <p class="panel-tabs has-background-white">
                <a id="default" class="tab" onclick="openContent(event, 'tout')">Tout</a>
                <a class="tab" onclick="openContent(event, 'primaire')">Primaire</a>
                <a class="tab" onclick="openContent(event, 'secondaire')">Secondaire</a>
            </p>
            <div class="mb-5" style="background: #E4E9F2; height: 25rem; overflow-y: auto">
                <div class="has-text-centered p-3">
                    <a onclick="openForm('modalAjouterMatiere')" class="button is-info is-rounded">
                        <strong>Ajouter Matière</strong>
                    </a>
                </div>
                <div id="tout" class="contenu-block columns m-0">
                    <div class="column px-0">
                        <?php $__currentLoopData = $matieres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matiere): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span class="columns is-flex m-auto">
                                <span class="column is-three-quarters">
                                    <span class="panel-block">
                                        <span class="panel-icon">
                                            <i class="fas fa-book" aria-hidden="true"></i>
                                        </span>
                                        <?php echo e($matiere->libelle); ?>(<?php echo e($matiere->niveau); ?>)
                                    </span>
                                </span>
                                <?php if(auth()->user()->administrateur == 1): ?>
                                    <span class="column px-0 is-flex is-justify-content-right">
                                        <a title="Modifier" class="icon is-medium"
                                            onclick="openForm('modalModifierMatiere'); get_id_matiere(<?php echo e($matiere->id); ?>); get_libelle_matiere('<?php echo e(addslashes($matiere->libelle)); ?>'); get_niveau_matiere('<?php echo e($matiere->niveau); ?>');get_coef(<?php echo e($matiere->coefficient); ?>)">
                                            <i class="fas fa-edit" aria-hidden="true"></i>
                                        </a>
                                        <a title="Supprimer" class="icon is-medium"
                                            onclick="get_id_matiere(<?php echo e($matiere->id); ?>); openForm('modalSuppMatiere')">
                                            <i class="fas fa-trash-alt" aria-hidden="true"></i>
                                        </a>
                                    </span>
                                <?php endif; ?>
                            </span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
                <div id="primaire" class="contenu-block columns m-0">
                    <div class="column">
                        <?php $__currentLoopData = $matieres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matiere): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span class="columns is-flex m-auto">
                                <?php if($matiere->niveau == 'Primaire'): ?>
                                    <span class="column is-three-quarters">
                                        <span class="panel-block">
                                            <span class="panel-icon">
                                                <i class="fas fa-book" aria-hidden="true"></i>
                                            </span>
                                            <?php echo e($matiere->libelle); ?>

                                        </span>
                                    </span>
                                    <?php if(auth()->user()->administrateur == 1): ?>
                                        <span class="column is-flex is-justify-content-right">
                                            <a title="Modifier" class="icon is-medium"
                                                onclick="openForm('modalModifierMatiere'); get_id_matiere(<?php echo e($matiere->id); ?>); get_libelle_matiere('<?php echo e(addslashes($matiere->libelle)); ?>'); get_niveau_matiere('<?php echo e($matiere->niveau); ?>');get_coef(<?php echo e($matiere->coefficient); ?>)">
                                                <i class="fas fa-edit" aria-hidden="true"></i>
                                            </a>
                                            <a title="Supprimer" class="icon is-medium"
                                                onclick="get_id_matiere(<?php echo e($matiere->id); ?>); openForm('modalSuppMatiere')">
                                                <i class="fas fa-trash-alt" aria-hidden="true"></i>
                                            </a>
                                        </span>
                                    <?php endif; ?>
                                <?php endif; ?>
                            </span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
                <div id="secondaire" class="contenu-block columns m-0">
                    <div class="column">
                        <?php $__currentLoopData = $matieres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matiere): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span class="columns is-flex m-auto">
                                <?php if($matiere->niveau == 'Secondaire'): ?>
                                    <span class="column is-three-quarters">
                                        <span class="panel-block">
                                            <span class="panel-icon">
                                                <i class="fas fa-book" aria-hidden="true"></i>
                                            </span>
                                            <?php echo e($matiere->libelle); ?>

                                        </span>
                                    </span>
                                    <?php if(auth()->user()->administrateur == 1): ?>
                                        <span class="column is-flex is-justify-content-right">
                                            <a title="Modifier" class="icon is-medium"
                                                onclick="openForm('modalModifierMatiere'); get_id_matiere(<?php echo e($matiere->id); ?>); get_libelle_matiere('<?php echo e(addslashes($matiere->libelle)); ?>'); get_niveau_matiere('<?php echo e($matiere->niveau); ?>');get_coef(<?php echo e($matiere->coefficient); ?>)">
                                                <i class="fas fa-edit" aria-hidden="true"></i>
                                            </a>
                                            <a title="Supprimer" class="icon is-medium"
                                                onclick="get_id_matiere(<?php echo e($matiere->id); ?>); openForm('modalSuppMatiere')">
                                                <i class="fas fa-trash-alt" aria-hidden="true"></i>
                                            </a>
                                        </span>
                                    <?php endif; ?>
                                <?php endif; ?>
                            </span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            </div>
            <div class="columns"></div>
            <div style="position: relative;" class="is-flex is-justify-content-center">
                <img src="/img/upschool.svg" width="200" alt="">
            </div>
        </nav>
    </section>
    <?php echo $__env->make('/partials/matieresJs', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/dide1435/luqman.upschool-sn.com/resources/views/matieres.blade.php ENDPATH**/ ?>