<?php $__env->startSection('contenu'); ?>

    <?php echo $__env->make('/partials/modalModifierEvaluation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalConfirmSuppEvaluation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <section
        style="background-image: url('/img/bgclasse.png'); background-attachment: fixed; background-repeat: no-repeat; background-size: cover; min-height: 93.2vh"
        class="section mt-0 columns mx-0 mb-0 is-centered">
        <section class="section container column is-two-thirds">
            <section class="section is-link is-light p-0">
                <h1 class="title is-1 is-size-3-touch has-text-centered has-text-white"><?php echo e($classe->libelle); ?></h1>
                <h1 class="subtitle is-6 has-text-centered has-text-white"><?php echo e($classe->type); ?></h1>
            </section>
            <nav class="panel has-background-light is-info mt-2">
                <p class="panel-heading mb-3">
                    L'historique des évaluations dans cette classe
                </p>
                <?php if(count($evaluations) == 0): ?>
                    <p class="title is-6 has-text-centered pb-4">Il n'y pas encore d'évaluations dans cette classe</p>
                <?php else: ?>
                    <?php $__currentLoopData = $evaluations->sortByDesc('id'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $evaluation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="content box has-background-light">
                            <div class="has-text-weight-bold has-text-success"><span
                                    class="has-text-weight-bold">Date:</span>
                                <?php echo e(date('d/m/Y', strtotime($evaluation->date))); ?></div>
                            <?php $__currentLoopData = $matieres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matiere): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($matiere->id == $evaluation->matiere_id): ?>
                                    <div><span class="has-text-weight-bold">Matière:</span> <?php echo e($matiere->libelle); ?></div>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php if($classe->type == 'Secondaire'): ?>
                                <div><span class="has-text-weight-bold">Trimestre/Semestre:</span> <?php echo e($evaluation->semestre); ?></div>
                            <?php else: ?>
                                <div><span class="has-text-weight-bold">Trimestre:</span> <?php echo e($evaluation->semestre); ?></div>
                            <?php endif; ?>

                            <div class="buttons">
                                <?php if(auth()->user()->administrateur == 1): ?>
                                    <a type="button" class="button is-info is-light"
                                        onclick="get_classe_slug('<?php echo e($classe->slug); ?>'); get_eval_id(<?php echo e($evaluation->id); ?>); get_classe_libelle('<?php echo e($classe->libelle); ?>'); openForm('modalSuppEvaluation')">Supprimer</a>
                                    <a type="button" class="button is-info is-light"
                                        onclick="get_classe_slug('<?php echo e($classe->slug); ?>') ; getOldMatiere(<?php echo e($evaluation->matiere_id); ?>); getOldDate('<?php echo e(date('Y-m-d', strtotime($evaluation->date))); ?>'); get_eval_id(<?php echo e($evaluation->id); ?>); get_classe_libelle('<?php echo e($classe->libelle); ?>'); openForm('modal_modifier_evaluation');">Modifier</a>
                                <?php endif; ?>
                                <a href="/accueil/classe/<?php echo e($classe->slug); ?>/evaluationHistory/<?php echo e($evaluation->slug); ?>/details"
                                    type="button" class="button supp_cours is-info is-light">Détails</a>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </nav>
        </section>
    </section>
    <?php echo $__env->make('/partials/evaluationJs', \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/evaluationHistory.blade.php ENDPATH**/ ?>