<!-- Ajouter Note========================================================= -->
<div class="modal animate__animated animate__fadeInLeft" id="modal_ajouter_note">
    <div onclick="closeForm('modal_ajouter_note')" class="modal-background"></div>
    <div class="modal-card">
        <header class="modal-card-head">
            <p class="modal-card-title">Ajouter Note</p>
            <button type="button" onclick="closeForm('modal_ajouter_note')" class="delete"
                aria-label="close"></button>
        </header>
        <section class="modal-card-body">
            <div class="content">
                <form id="form_ajouter_note">
                    <?php echo csrf_field(); ?>
                    <div class="field mb-5">
                        <label class="label title is-6" for="evaluation_id">Evaluation</label>
                        <div class="control">
                            <div class="select is-info is-rounded">
                                <select name="evaluation" id="evaluation_id"
                                    class="<?php $__errorArgs = ['evaluation'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                    required>
                                    <option value="" disabled selected>Sélectionner</option>
                                    <?php $__currentLoopData = $evaluations->sortByDesc('id'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $evaluation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option class="<?php echo e($matieres->find($evaluation->matiere_id)->coefficient); ?>" value="<?php echo e($evaluation->id); ?>">
                                            <?php $__currentLoopData = $matieres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matiere): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if($matiere->id == $evaluation->matiere_id): ?>
                                                    Evaluation <?php echo e($matiere->libelle); ?> du
                                                    <?php echo e(date('d/m/Y', strtotime($evaluation->date))); ?>

                                                <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        <?php $__errorArgs = ['evaluation'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="help is-danger error"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="field mb-5">
                        <label class="label title is-6" for="type_note_id">Type de Note</label>
                        <div class="control">
                            <div class="select is-info is-rounded">
                                <select id="type_note_id" name="type_note"
                                    class="<?php $__errorArgs = ['type_note'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                    required>
                                    <option value="" disabled selected>Sélectionner</option>
                                    <?php if($classe->type == 'Primaire'): ?>
                                        <option value="Contrôle">Contrôle</option>
                                        <option value="Composition">Composition</option>
                                    <?php else: ?>
                                        <option value="Devoir">Devoir</option>
                                        <option value="Examen">Examen</option>
                                    <?php endif; ?>
                                </select>
                            </div>
                        </div>
                        <?php $__errorArgs = ['type_note'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="help is-danger error"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="field">
                        <label class="label title is-6" for="valeur_note_id">Valeur</label>
                        <p class="control">
                            <input id="valeur_note_id" min="0" max="<?php echo e($classe->type == 'Primaire' ? '60' : '20'); ?>" type="number" class="input is-info is-rounded"
                                title="<?php echo e($classe->type == 'Primaire' ? 'Respectez le barême' : 'Entre 0 et 20'); ?>" name="valeur_note" placeholder="00" required>
                        </p>
                        <?php $__errorArgs = ['valeur_note'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="help is-danger error"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <button id="submit_form_ajouter_note" hidden></button>
                    <button type="reset" class="btn_reset" hidden></button>
                </form>
            </div>
        </section>
        <footer class="modal-card-foot">
            <button type="button" class="button is-light is-danger is-rounded"
                onclick="closeForm('modal_ajouter_note')">Annuler</button>
            <button class="button is-info is-link is-rounded"
                onclick="$('#submit_form_ajouter_note').click()">Enregistrer</button>
        </footer>
    </div>
</div>
<?php /**PATH /home/dide1435/luqman.upschool-sn.com/resources/views//partials/modalAjouterNote.blade.php ENDPATH**/ ?>