<?php $__env->startSection('contenu'); ?>
    <?php echo $__env->make('/partials/modalModifierPayement', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalModifierNote', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalAjouterFrais', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalAjouterNote', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalConfirmSuppEleve', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalConfirmSuppNote', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalConfirmSuppPayement', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalConfirmSuppAbsence', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalCommingSoon', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalConfirmReinPassword', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalReinscrire', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <section
        style="background-image: url('/img/login.png'); background-repeat: no-repeat; background-attachment: fixed; background-size: cover; min-height: 94.8vh;"
        class="section mt-0 p-0 columns mx-0 mb-0 is-centered">
        <article class="panel is-info column is-8">
            <div class="box is-flex is-justify-content-center is-justify-content-space-around is-flex-wrap-wrap">
                <?php if($evaluations1->count() != 0): ?>
                    <div class="box mb-4">
                        <canvas id="chartEleve1"></canvas>
                    </div>
                <?php endif; ?>
                <?php if($evaluations2->count() != 0): ?>
                    <div class="box mb-4">
                        <canvas id="chartEleve2"></canvas>
                    </div>
                <?php endif; ?>
                <?php if($evaluations3->count() != 0): ?>
                    <div class="box mb-4">
                        <canvas id="chartEleve3"></canvas>
                    </div>
                <?php endif; ?>
            </div>
            <p class="panel-heading is-flex is-justify-content-space-between">
                <span><?php echo e($eleve->prenom); ?> <?php echo e($eleve->nom); ?><br>
                    <span class="is-size-6"><?php echo e($eleve->matricule); ?></span></span>
                <?php if(auth()->user()->role == 'administration'): ?>
                    <button class="button is-rounded is-info is-light"
                        onclick="openForm('modalReinPassword'); get_classe_slug('<?php echo e($classe->slug); ?>'); get_eleve_slug('<?php echo e($eleve->slug); ?>')">
                        <span class="icon">
                            <i class="fas fa-key"></i>
                        </span>
                        <span>Restaurer accès</span>
                    </button>
                <?php endif; ?>
            </p>
            <p class="panel-tabs has-background-white is-flex is-justify-content-space-around">
                <a title="Informations" id="default" onclick="openContent(event, 'info')"
                    class="is-size-7-mobile tab icon-text">
                    <span class="icon">
                        <i class="fas fa-info-circle"></i>
                    </span>
                    <span class="is-hidden-touch">Informations</span>
                </a>
                <a title="Notes d'évaluation" onclick="openContent(event, 'notes')" class="is-size-7-touch tab icon-text">
                    <span class="icon">
                        <i class="fas fa-edit"></i>
                    </span>
                    <span class="is-hidden-touch">Notes d'évaluations</span>
                </a>
                <a title="Frais payés" onclick="openContent(event, 'payes')" class="is-size-7-touch tab icon-text">
                    <span class="icon">
                        <i class="fas fa-money-check-alt"></i>
                    </span>
                    <span class="is-hidden-touch">Frais payés</span>
                </a>
                <a title="Frais impayés" onclick="openContent(event, 'impayes')" class="is-size-7-touch tab icon-text">
                    <span class="icon">
                        <i class="fas fa-money-check"></i>
                    </span>
                    <span class="is-hidden-touch">Frais impayés</span>
                </a>
                <a title="Absences/Retards" onclick="openContent(event, 'retard')" class="is-size-7-touch tab icon-text">
                    <span class="icon">
                        <i class="fas fa-clock"></i>
                    </span>
                    <span class="is-hidden-touch">Absences</span>
                </a>
            </p>
            <div id="info" class="panel-block is-justify-content-center" style="background: #E4E9F2; display: none">
                <div class="content column is-10">
                    <div class="is-flex is-justify-content-center mb-5">
                        <figure class="image is-128x128">
                            <?php if($eleve->photo == null): ?>
                                <img class="is-rounded" src="https://bulma.io/assets/images/placeholders/128x128.png">
                            <?php else: ?>
                                <img class="is-rounded" src="<?php echo e($eleve->photo); ?>">
                            <?php endif; ?>
                        </figure>
                    </div>
                    <?php if(auth()->user()->role == 'administration'): ?>
                        <div class="columns is-centered">
                            <form method="post"
                                action="/accueil/classe/<?php echo e($classe->slug); ?>/eleve/<?php echo e($eleve->id); ?>/ajouterProfil"
                                enctype="multipart/form-data" id="form_profil">
                                <?php echo csrf_field(); ?>
                                <div id="input-profil" class="file has-addons">
                                    <label class="file-label">
                                        <input id="profil_id" accept="image/jpg, image/jpeg" class="file-input"
                                            type="file" name="profil" class="<?php $__errorArgs = ['profil'];
$__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); ?>">
                                        <span class="file-cta">
                                            <span class="file-icon">
                                                <i class="fas fa-upload"></i>
                                            </span>
                                            <span class="file-label">
                                                Changer photo
                                            </span>
                                        </span>
                                    </label>
                                    <?php $__errorArgs = ['profil'];
$__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 error_profil"><?php echo e($message); ?></div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    <button id="btn_submit_profil" class="button is-info"
                                        onclick="get_id_eleve(<?php echo e($eleve->id); ?>); get_libelle_classe('<?php echo e($classe->libelle); ?>'); get_classe_slug('<?php echo e($classe->slug); ?>');">Valider</button>
                                </div>
                                <div class="help profil_file_name">Aucun fichier choisi</div>
                            </form>
                        </div>
                    <?php endif; ?>
                    <form id="info_eleve">
                        <?php echo csrf_field(); ?>
                        <div class="columns mb-0">
                            <div class="field column">
                                <label class="label title is-6" for="prenom">Prénom</label>
                                <p class="control">
                                    <input id="prenom"
                                        class="input is-info is-rounded
                                <?php $__errorArgs = ['prenom'];
$__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); ?>"
                                        type="text" placeholder="Papa Abdou" name="prenom" required
                                        value="<?php echo e($eleve->prenom); ?>" disabled />
                                </p>
                                <?php $__errorArgs = ['prenom'];
$__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 column">
                                <label class="label title is-6" for="nom">Nom</label>
                                <p class="control">
                                    <input id="nom"
                                        class="input is-info is-rounded
                                <?php $__errorArgs = ['nom'];
$__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); ?>"
                                        type="text" placeholder="Mbodji" name="nom" required
                                        value="<?php echo e($eleve->nom); ?>" disabled />
                                </p>
                                <?php $__errorArgs = ['nom'];
$__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>
                        <div class="columns mb-0">
                            <div class="field column">
                                <label class="label title is-6" for="date_naissance">Date de naissance</label>
                                <p class="control">
                                    <input id="date_naissance"
                                        class="input is-info is-rounded
                                <?php $__errorArgs = ['date_naissance'];
$__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); ?>"
                                        type="date" placeholder="01/01/2000" name="date_naissance" required
                                        value="<?php echo e($eleve->date_naissance); ?>" disabled />
                                </p>
                                <?php $__errorArgs = ['date_naissance'];
$__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 column">
                                <label class="label title is-6" for="lieu_naissance">Lieu de naissance</label>
                                <p class="control">
                                    <input id="lieu_naissance"
                                        class="input is-info is-rounded
                                <?php $__errorArgs = ['lieu_naissance'];
$__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); ?>"
                                        type="text" placeholder="Dakar" name="lieu_naissance" required
                                        value="<?php echo e($eleve->lieu_naissance); ?>" disabled />
                                </p>
                                <?php $__errorArgs = ['lieu_naissance'];
$__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>
                        <div class="field">
                            <label class="label title is-6" for="adresse">Adresse</label>
                            <p class="control">
                                <input id="adresse"
                                    class="input is-info is-rounded
                                <?php $__errorArgs = ['adresse'];
$__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); ?>"
                                    type="text" placeholder="Cambérène Quartier Deggo" name="adresse" required
                                    value="<?php echo e($eleve->adresse); ?>" disabled />
                            </p>
                            <?php $__errorArgs = ['adresse'];
$__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="columns mb-0">
                            <div class="field column">
                                <label class="label title is-6" for="tuteur">Prénom et Nom du tuteur</label>
                                <p class="control">
                                    <input id="tuteur"
                                        class="input is-info is-rounded
                                <?php $__errorArgs = ['tuteur'];
$__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); ?>"
                                        type="text" placeholder="Abdoulaye Mbodji" name="tuteur" required
                                        value="<?php echo e($eleve->tuteur); ?>" disabled />
                                </p>
                                <?php $__errorArgs = ['tuteur'];
$__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 column">
                                <label class="label title is-6" for="tel_tuteur">Téléphone du tuteur</label>
                                <p class="control">
                                    <input id="tel_tuteur"
                                        class="input input-phone is-info is-rounded
                                <?php $__errorArgs = ['tel_tuteur'];
$__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); ?>"
                                        type="tel" placeholder="761412278" name="tel_tuteur" required
                                        value="<?php echo e($eleve->tel_tuteur); ?>" disabled />
                                </p>
                                <?php $__errorArgs = ['tel_tuteur'];
$__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 column">
                                <label class="label title is-6" for="autre_tel">Autre Téléphone</label>
                                <p class="control">
                                    <input id="autre_tel"
                                        class="input input-phone is-info is-rounded
                                <?php $__errorArgs = ['autre_tel'];
$__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); ?>"
                                        type="tel" placeholder="761412278" name="autre_tel" required
                                        value="<?php echo e($eleve->autre_tel); ?>" disabled />
                                </p>
                                <?php $__errorArgs = ['autre_tel'];
$__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>
                        <div class="columns mb-0">
                            <div class="field column">
                                <label class="label title is-6" for="date_inscription">Date d'inscription</label>
                                <p class="control">
                                    <input id="date_inscription"
                                        class="input is-info is-rounded
                                <?php $__errorArgs = ['date_inscription'];
$__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); ?>"
                                        type="date" placeholder="01/01/2000" name="date_incription" required
                                        value="<?php echo e(date('Y-m-d', strtotime($eleve->created_at))); ?>" disabled />
                                </p>
                                <?php $__errorArgs = ['date_inscription'];
$__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 column">
                                <label class="label title is-6" for="classe">Classe</label>
                                <div class="control">
                                    <div class="select is-info is-rounded">
                                        <select id="classe" name="classe"
                                            class="<?php $__errorArgs = ['classe'];
$__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 disabled>
                                            <option value="<?php echo e($classe->id); ?>"><?php echo e($classe->libelle); ?></option>
                                            <?php $__currentLoopData = $classes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $autreClasse): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if($classe->id != $autreClasse->id): ?>
                                                    <option value="<?php echo e($autreClasse->id); ?>"><?php echo e($autreClasse->libelle); ?>

                                                    </option>
                                                <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </select>
                                    </div>
                                </div>
                                <?php $__errorArgs = ['classe'];
$__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>
                        <div class="columns mb-0">
                            <div class="field column">
                                <label class="label title is-6" for="inscription">Montant de l'inscription</label>
                                <p class="control">
                                    <input id="inscription"
                                        class="input input-numeral is-info is-rounded
                                <?php $__errorArgs = ['inscription'];
$__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); ?>"
                                        type="text" placeholder="Inscription de l'élève" name="inscription" required
                                        value="<?php echo e($eleve->inscription); ?>" disabled />
                                </p>
                                <?php $__errorArgs = ['inscription'];
$__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 column">
                                <label class="label title is-6" for="mensualite">Montant de la mensualité</label>
                                <p class="control">
                                    <input id="mensualite"
                                        class="input input-numeral is-info is-rounded
                                <?php $__errorArgs = ['mensualite'];
$__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); ?>"
                                        type="text" placeholder="Mensualité de l'élève" name="mensualite" required
                                        value="<?php echo e($eleve->mensualite); ?>" disabled />
                                </p>
                                <?php $__errorArgs = ['mensualite'];
$__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>
                        <?php if(auth()->user()->role == 'administration'): ?>
                            <div class="buttons is-centered">
                                <?php if(auth()->user()->administrateur == 1): ?>
                                    <button type="button" id="" class="button is-info is-light"
                                        onclick="openForm('modalSuppEleve')">Supprimer</button>
                                <?php endif; ?>
                                <button id="btn_modif" type="button" class="button is-info is-light"
                                    onclick="modifier('info_eleve')">Modifier</button>
                                <button id="btn_enr" class="button is-info is-light" disabled>Enregistrer</button>
                                <button id="btn_reinscr" type="button" class="button is-info is-light"
                                    onclick="openForm('modal_reinscrire');">Réinscrire</button>
                            </div>
                        <?php endif; ?>
                    </form>
                </div>
            </div>
            <div id="notes" class="panel-block is-justify-content-center" style="background: #E4E9F2">
                <div class="content column is-10">
                    <?php if(auth()->user()->role == 'administration'): ?>
                        <button type="button" class="button is-info is-rounded mb-3"
                            onclick="get_eleve_slug('<?php echo e($eleve->slug); ?>'); get_classe_slug('<?php echo e($classe->slug); ?>'); openForm('modal_ajouter_note'); getClasseLibelle('<?php echo e($classe->libelle); ?>'); get_eleve_id('<?php echo e($eleve->id); ?>')">Ajouter
                            une note</button>
                    <?php endif; ?>
                    <?php if(count($eleve->notes->where('promo', auth()->user()->current_year)) == 0): ?>
                        <p class="title is-6 has-text-centered">Pas encore de note</p>
                    <?php else: ?>
                        <?php $__currentLoopData = $eleve->notes->where('promo', auth()->user()->current_year)->sortByDesc('id'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $note): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="content box has-background-light">
                                <?php $__currentLoopData = $evaluations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $evaluation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if($evaluation->id == $note->evaluation_id): ?>
                                        <?php $__currentLoopData = $matieres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matiere): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if($matiere->id == $evaluation->matiere_id): ?>
                                                <div class="title is-5 mb-0"><?php echo e($note->type); ?>

                                                    <?php echo e($matiere->libelle); ?>

                                                </div>
                                                <?php if($classe->type == 'Secondaire'): ?>
                                                    <div><span class="has-text-weight-bold">Semestre/Trimestre:</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; ?>
                                            <?php endif; ?>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php endif; ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <div><span class="has-text-weight-bold">Date:</span>
                                    <?php echo e(date('d/m/Y', strtotime($note->date))); ?></div>
                                <?php if($classe->type == 'Primaire'): ?>
                                    <?php $__currentLoopData = $evaluations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $evaluation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($evaluation->id == $note->evaluation_id): ?>
                                            <?php $__currentLoopData = $matieres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matiere): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if($matiere->id == $evaluation->matiere_id): ?>
                                                    <div
                                                        class="<?php echo e(($note->valeur * 10) / $matiere->coefficient >= 5 ? 'has-text-success' : 'has-text-danger'); ?>">
                                                <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php else: ?>
                                    <div class="<?php echo e($note->valeur >= 10 ? 'has-text-success' : 'has-text-danger'); ?>">
                                <?php endif; ?>
                                <span class="has-text-weight-bold">Note Obtenue:</span>
                                <?php if($classe->type == 'Primaire'): ?>
                                    <?php $__currentLoopData = $evaluations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $evaluation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($evaluation->id == $note->evaluation_id): ?>
                                            <?php $__currentLoopData = $matieres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matiere): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if($matiere->id == $evaluation->matiere_id): ?>
                                                    <?php echo e($note->valeur); ?>/<?php echo e($matiere->coefficient); ?>

                                                <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php else: ?>
                                    <?php echo e($note->valeur); ?>/20
                                <?php endif; ?>
                            </div>
                            <?php if(auth()->user()->administrateur == 1): ?>
                                <div class="buttons">
                                    <button class="button is-info is-light"
                                        onclick="get_eleve_slug('<?php echo e($eleve->slug); ?>'); get_classe_slug('<?php echo e($classe->slug); ?>'); get_note_id(<?php echo e($note->id); ?>); getClasseLibelle('<?php echo e($classe->libelle); ?>'); get_eleve_id(<?php echo e($eleve->id); ?>); openForm('modalSuppNote')">Supprimer</button>
                                    <button class="button is-info is-light btn_modifier_note"
                                        onclick="get_eleve_slug('<?php echo e($eleve->slug); ?>'); get_classe_slug('<?php echo e($classe->slug); ?>'); get_note_id(<?php echo e($note->id); ?>); openForm('modal_modifier_note'); get_note_value(<?php echo e($note->valeur); ?>); get_note_type('<?php echo e($note->type); ?>'); getClasseLibelle('<?php echo e($classe->libelle); ?>'); get_eleve_id(<?php echo e($eleve->id); ?>); '<?php echo e($classe->type); ?>' == 'Primaire' ? getMax(<?php echo e($evaluations->find($note->evaluation_id) != null ?? $matieres->find($evaluations->find($note->evaluation_id)->matiere_id)->coefficient); ?>) : ''">Modifier</button>
                                </div>
                            <?php endif; ?>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </div>
            </div>
            <div id="payes" class="panel-block is-justify-content-center" style="background: #E4E9F2">
                <div class="content column is-10">
                    <?php if(auth()->user()->role == 'administration' || auth()->user()->role == 'eleve'): ?>
                        <?php if(auth()->user()->role == 'administration'): ?>
                            <button id="" type="button" class="button is-info is-rounded mb-3"
                                onclick="get_eleve_slug('<?php echo e($eleve->slug); ?>'); openForm('modal_ajouter_frais')">Ajouter
                                frais
                                supplémentaires</button>
                        <?php endif; ?>
                        <?php if(count($payes) == 0): ?>
                            <p class="title is-6 has-text-centered">Aucun frais payé</p>
                        <?php else: ?>
                            <?php $__currentLoopData = collect($payes)->sortByDesc('updated_at'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $paye): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="content box has-background-light">
                                    <?php if($paye->type == 'Inscription'): ?>
                                        <div class="title is-4 mb-0"><?php echo e($paye->type); ?></div>
                                    <?php elseif($paye->type == 'Mensualité'): ?>
                                        <div class="title is-4 mb-0">Mensualité <?php echo e($paye->mois); ?></div>
                                    <?php else: ?>
                                        <div class="title is-4 mb-0"><?php echo e($paye->type); ?></div>
                                    <?php endif; ?>
                                    <div class="has-text-success">Versé le
                                        <?php echo e(date('d/m/Y', strtotime($paye->updated_at))); ?>

                                    </div>
                                    <div class="somme"><span class="has-text-weight-bold">Somme versée:</span> <span
                                            class="somme_versee"><?php echo e(number_format($paye->montant, 0, ',', ' ')); ?></span>F
                                        CFA</div>
                                    <div class="buttons">
                                        <?php if(auth()->user()->administrateur == 1): ?>
                                            <a type="button" class="button is-info is-light"
                                                onclick="get_eleve_slug('<?php echo e($eleve->slug); ?>'); get_id_eleve(<?php echo e($eleve->id); ?>); get_libelle_classe('<?php echo e($classe->libelle); ?>'); get_id_payement(<?php echo e($paye->id); ?>); get_classe_slug('<?php echo e($classe->slug); ?>'); openForm('modalSuppPayement')">Supprimer</a>
                                            <a type="button" class="button is-info is-light"
                                                onclick="get_eleve_slug('<?php echo e($eleve->slug); ?>'); openForm('modal_modifier_payement'); get_id_eleve(<?php echo e($eleve->id); ?>); get_libelle_classe('<?php echo e($classe->libelle); ?>'); get_classe_slug('<?php echo e($classe->slug); ?>'); get_id_payement(<?php echo e($paye->id); ?>); get_montant_payement(<?php echo e($paye->montant); ?>); get_type_payement('<?php echo e($paye->type); ?>')">Modifier</a>
                                            <a type="button" class="button btn_impaye is-info is-light"
                                                onclick="get_eleve_slug('<?php echo e($eleve->slug); ?>'); get_id_eleve(<?php echo e($eleve->id); ?>); get_libelle_classe('<?php echo e($classe->libelle); ?>'); get_id_payement(<?php echo e($paye->id); ?>); get_classe_slug('<?php echo e($classe->slug); ?>');">Frais
                                                impayé</a>
                                        <?php endif; ?>
                                        <?php if(auth()->user()->role == 'administration'): ?>
                                            <a target="_blank" type="button" class="button btn_recu is-info is-light"
                                                href="/recu/<?php echo e($classe->slug); ?>/<?php echo e($eleve->slug); ?>/<?php echo e($paye->id); ?>">Reçu</a>
                                        <?php endif; ?>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    <?php else: ?>
                        <p class="title is-6 has-text-centered">Accès interdit</p>
                    <?php endif; ?>
                </div>
            </div>
            <div id="impayes" class="panel-block is-justify-content-center" style="background: #E4E9F2">
                <div class="content column is-10">
                    <?php if(auth()->user()->role == 'administration' || auth()->user()->role == 'eleve'): ?>
                        <?php if(count($impayes) == 0): ?>
                            <p class="title is-6 has-text-centered">Aucun frais impayé</p>
                        <?php else: ?>
                            <?php $__currentLoopData = $impayes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $impaye): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="content box has-background-light">
                                    <?php if($impaye->type == 'Inscription'): ?>
                                        <div class="title is-4 mb-0"><?php echo e($impaye->type); ?></div>
                                    <?php elseif($impaye->type == 'Mensualité'): ?>
                                        <div class="title is-4 mb-0">Mensualité <?php echo e($impaye->mois); ?></div>
                                    <?php else: ?>
                                        <div class="title is-4 mb-0"><?php echo e($impaye->type); ?></div>
                                    <?php endif; ?>
                                    <div class="somme"><span class="has-text-weight-bold">Somme à verser:</span>
                                        <span
                                            class="somme_versee"><?php echo e(number_format($impaye->montant, 0, ',', ' ')); ?></span>F
                                        CFA
                                    </div>
                                    <div class="buttons">
                                        <?php if(auth()->user()->administrateur == 1): ?>
                                            <a type="button" class="button is-info is-light"
                                                onclick="get_eleve_slug('<?php echo e($eleve->slug); ?>'); get_id_eleve(<?php echo e($eleve->id); ?>); get_libelle_classe('<?php echo e($classe->libelle); ?>'); get_id_payement(<?php echo e($impaye->id); ?>); get_classe_slug('<?php echo e($classe->slug); ?>'); openForm('modalSuppPayement')">Supprimer</a>
                                            <a type="button" class="button is-info is-light"
                                                onclick="get_eleve_slug('<?php echo e($eleve->slug); ?>'); openForm('modal_modifier_payement'); get_id_eleve(<?php echo e($eleve->id); ?>); get_libelle_classe('<?php echo e($classe->libelle); ?>'); get_id_payement(<?php echo e($impaye->id); ?>); get_classe_slug('<?php echo e($classe->slug); ?>'); get_montant_payement(<?php echo e($impaye->montant); ?>); get_type_payement('<?php echo e(addslashes($impaye->type)); ?>')">Modifier</a>
                                        <?php endif; ?>
                                        <?php if(auth()->user()->role == 'administration'): ?>
                                            <a type="button" class="button btn_paye is-info is-light"
                                                onclick="get_eleve_slug('<?php echo e($eleve->slug); ?>'); get_id_eleve(<?php echo e($eleve->id); ?>); get_libelle_classe('<?php echo e($classe->libelle); ?>'); get_id_payement(<?php echo e($impaye->id); ?>); get_classe_slug('<?php echo e($classe->slug); ?>');">Frais
                                                payé</a>
                                        <?php endif; ?>
                                        <?php if(auth()->user()->role == 'eleve'): ?>
                                            <a type="button" class="button is-info is-light"
                                                href="/upschool/eleveDashboard/<?php echo e($eleve->slug); ?>/<?php echo e($impaye->id); ?>/pay">Payer
                                                ce frais</a>
                                        <?php endif; ?>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    <?php else: ?>
                        <p class="title is-6 has-text-centered">Accès interdit</p>
                    <?php endif; ?>
                </div>
            </div>
            <div id="retard" class="panel-block is-justify-content-center" style="background: #E4E9F2">
                <div class="content column is-10">
                    <?php if(count($eleve->absences->where('promo', auth()->user()->current_year)) == 0): ?>
                        <p class="title is-6 has-text-centered">Aucune absence</p>
                    <?php else: ?>
                        <?php $__currentLoopData = $eleve->absences->where('promo', auth()->user()->current_year)->sortByDesc('id'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $absence): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php $__currentLoopData = $cours; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $unCours): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($unCours->id == $absence->cours_id): ?>
                                    <div class="content box has-background-light">
                                        <div class="has-text-weight-bold has-text-danger">
                                            <span class="has-text-weight-bold">Date:</span>
                                            <?php echo e(date('d/m/Y', strtotime($unCours->created_at))); ?>

                                        </div>
                                        <?php $__currentLoopData = $matieres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matiere): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if($matiere->id == $unCours->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(); ?>
                                        <div><span class="has-text-weight-bold">Heure de début:</span>
                                            <?php echo e($unCours->debut); ?>

                                        </div>
                                        <div><span class="has-text-weight-bold">Heure de fin:</span>
                                            <?php echo e($unCours->fin); ?>

                                        </div>
                                        <?php if(auth()->user()->administrateur == 1): ?>
                                            <div class="mt-2">
                                                <a type="button" class="button is-info is-light"
                                                    onclick="get_eleve_slug('<?php echo e($eleve->slug); ?>'); get_classe_slug('<?php echo e($classe->slug); ?>'); getClasseLibelle('<?php echo e($classe->libelle); ?>'); getEleveId(<?php echo e($eleve->id); ?>); getAbsenceId(<?php echo e($absence->id); ?>); openForm('modalSuppAbsence')">Supprimer</a>
                                            </div>
                                        <?php endif; ?>
                                    </div>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                </div>
            </div>
        </article>
    </section>
    <?php echo $__env->make('/partials/eleveJs', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/absenceJs', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/notesJs', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/profilJs', \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/eleve.blade.php ENDPATH**/ ?>