<!-- Ajouter professeur =============================================================  -->
<div class="modal animate__animated animate__fadeInLeft" id="modalAjouterProf">
    <div onclick="closeForm('modalAjouterProf')" class="modal-background"></div>
    <div class="modal-card">
        <header class="modal-card-head">
            <p class="modal-card-title">Ajouter professeur</p>
            <button type="button" onclick="closeForm('modalAjouterProf')" class="delete"
                aria-label="close"></button>
        </header>
        <section class="modal-card-body">
            <div class="content">
                <form id="form_ajouter_prof">
                    <?php echo csrf_field(); ?>
                    <div class="field">
                        <label class="label title is-6" for="prenom_prof_id">Prénom</label>
                        <p class="control">
                            <input id="prenom_prof_id"
                                class="input is-info is-rounded
                                <?php $__errorArgs = ['prenom_prof'];
$__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_prof" required />
                        </p>
                        <?php $__errorArgs = ['prenom_prof'];
$__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="nom_prof_id">Nom</label>
                        <p class="control">
                            <input id="nom_prof_id"
                                class="input is-info is-rounded
                                <?php $__errorArgs = ['nom_prof'];
$__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_prof" required />
                        </p>
                        <?php $__errorArgs = ['nom_prof'];
$__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="date_naissance_prof_id">Date de naissance</label>
                        <p class="control">
                            <input id="date_naissance_prof_id"
                                class="input is-info is-rounded
                                <?php $__errorArgs = ['date_naissance_prof'];
$__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_prof" required />
                        </p>
                        <?php $__errorArgs = ['date_naissance_prof'];
$__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="lieu_naissance_prof_id">Lieu de naissance</label>
                        <p class="control">
                            <input id="lieu_naissance_prof_id"
                                class="input is-info is-rounded
                                <?php $__errorArgs = ['lieu_naissance_prof'];
$__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_prof" required />
                        </p>
                        <?php $__errorArgs = ['lieu_naissance_prof'];
$__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="adresse_prof_id">Adresse</label>
                        <p class="control">
                            <input id="adresse_prof_id"
                                class="input is-info is-rounded
                                <?php $__errorArgs = ['adresse_prof'];
$__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_prof" required />
                        </p>
                        <?php $__errorArgs = ['adresse_prof'];
$__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="telephone_prof_id">Téléphone</label>
                        <p class="control">
                            <input id="telephone_prof_id"
                                class="input input-phone is-info is-rounded
                                <?php $__errorArgs = ['telephone_prof'];
$__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="77 278 22 78" name="telephone_prof" required />
                        </p>
                        <?php $__errorArgs = ['telephone_prof'];
$__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="email_prof_id">Email</label>
                        <p class="control">
                            <input id="email_prof_id"
                                class="input is-info is-rounded
                                <?php $__errorArgs = ['email_prof'];
$__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="email" placeholder="abdoumbodji1401@gmail.com" name="email_prof" required />
                        </p>
                        <?php $__errorArgs = ['email_prof'];
$__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="niveau_prof_id">Niveau</label>
                        <div class="control">
                            <div class="select is-info is-rounded">
                                <select id="niveau_prof_id" name="niveau_prof"
                                    class="<?php $__errorArgs = ['niveau_prof'];
$__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>
                                    <option value="Primaire">Primaire</option>
                                    <option value="Secondaire">Secondaire</option>
                                </select>
                            </div>
                        </div>
                        <?php $__errorArgs = ['niveau_prof'];
$__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="salaire_prof_id">Salaire(mensuel/horaire)</label>
                        <p class="control">
                            <input id="salaire_prof_id"
                                class="input input-numeral is-info is-rounded
                                <?php $__errorArgs = ['salaire_prof'];
$__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="Salaire mensuel ou horaire" name="salaire_prof" required />
                        </p>
                        <?php $__errorArgs = ['salaire_prof'];
$__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">Classes</label>
                        <div id="classes_prof_id" style="height: 10rem; overflow-y: auto;">
                            <?php $__currentLoopData = $classes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $classe): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($classe->type == 'Primaire'): ?>
                                    <label class="checkbox column classe_prof_primaire is-hidden">
                                        <input class="classe_prof" type="checkbox" value="<?php echo e($classe->id); ?>">
                                        <?php echo e($classe->libelle); ?>

                                    </label>
                                <?php else: ?>
                                    <label class="checkbox column classe_prof_secondaire is-hidden">
                                        <input class="classe_prof" type="checkbox" value="<?php echo e($classe->id); ?>">
                                        <?php echo e($classe->libelle); ?>

                                    </label>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                    <div class="field">
                        <label class="label title is-6" for="matieres_prof_id">Matières</label>
                        <div style="height: 10rem; overflow-y: auto;">
                            <?php $__currentLoopData = $matieres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matiere): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($matiere->niveau == 'Primaire'): ?>
                                    <label class="checkbox column matiere_prof_primaire is-hidden">
                                        <input class="matiere_prof" type="checkbox" value="<?php echo e($matiere->id); ?>">
                                        <?php echo e($matiere->libelle); ?>

                                    </label>
                                <?php else: ?>
                                    <label class="checkbox column matiere_prof_secondaire is-hidden">
                                        <input class="matiere_prof" type="checkbox" value="<?php echo e($matiere->id); ?>">
                                        <?php echo e($matiere->libelle); ?>

                                    </label>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                    <button id="btn_submit_form_ajouter_prof" hidden></button>
                    <button type="reset" class="btn_reset" hidden></button>
                </form>
            </div>
        </section>
        <footer class="modal-card-foot">
            <button type="button" onclick="closeForm('modalAjouterProf')"
                class="button is-light is-danger is-rounded">Annuler</button>
            <button onclick="$('#btn_submit_form_ajouter_prof').click()" class="button is-info is-rounded">Ajouter
                le professeur</button>
        </footer>
    </div>
</div>
<?php /**PATH /home/dide1435/luqman.upschool-sn.com/resources/views/partials/modalAjouterProf.blade.php ENDPATH**/ ?>