<div class="form-group <?php echo e($errors->has('nom') ? 'has-error' : ''); ?>">
    <label for="nom" class="control-label"><?php echo e('Nom'); ?></label>
    <input class="form-control" name="nom" type="text" id="nom" value="<?php echo e(isset($signataire->nom) ? $signataire->nom : ''); ?>" >
    <?php echo $errors->first('nom', '<p class="help-block">:message</p>'); ?>

</div>
<div class="form-group <?php echo e($errors->has('prenoms') ? 'has-error' : ''); ?>">
    <label for="prenoms" class="control-label"><?php echo e('Prenoms'); ?></label>
    <input class="form-control" name="prenoms" type="text" id="prenoms" value="<?php echo e(isset($signataire->prenoms) ? $signataire->prenoms : ''); ?>" >
    <?php echo $errors->first('prenoms', '<p class="help-block">:message</p>'); ?>

</div>
<div class="form-group <?php echo e($errors->has('email') ? 'has-error' : ''); ?>">
    <label for="email" class="control-label"><?php echo e('Email'); ?></label>
    <input class="form-control" name="email" type="text" id="email" value="<?php echo e(isset($signataire->email) ? $signataire->email : ''); ?>" >
    <?php echo $errors->first('email', '<p class="help-block">:message</p>'); ?>

</div>
<div class="form-group <?php echo e($errors->has('phone') ? 'has-error' : ''); ?>">
    <label for="phone" class="control-label"><?php echo e('Phone'); ?></label>
    <input class="form-control" name="phone" type="text" id="phone" value="<?php echo e(isset($signataire->phone) ? $signataire->phone : ''); ?>" >
    <?php echo $errors->first('phone', '<p class="help-block">:message</p>'); ?>

</div>
<div class="form-group <?php echo e($errors->has('sexe') ? 'has-error' : ''); ?>">
    <label for="sexe" class="control-label"><?php echo e('Sexe'); ?></label>
    <select name="sexe" class="form-control" id="sexe" >
        <option value="M" <?php echo e((isset($signataire->sexe) && $signataire->sexe == "M") ? 'selected' : ''); ?>>M</option>
        <option value="F" <?php echo e((isset($signataire->sexe) && $signataire->sexe == "F") ? 'selected' : ''); ?>>F</option>
    </select>
    <?php echo $errors->first('sexe', '<p class="help-block">:message</p>'); ?>

</div>
<div class="form-group <?php echo e($errors->has('id_grade') ? 'has-error' : ''); ?>" required="required">
    <label for="id_grade" class="control-label"><?php echo e('grade'); ?></label>
    <select name="id_grade" class="form-control" id="id_grade"  required>
    <?php $__currentLoopData = $grades; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $grade): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <option
            value="<?php echo e($grade->sigleGrade); ?>"
            <?php echo e((isset($signataire->grade) && $signataire->grade == $grade->sigleGrade) ? 'selected' : ''); ?>

        >
                <?php echo e($grade->nomGrade); ?>

        </option>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </select>
    <?php echo $errors->first('id_grade', '<p class="help-block">:message</p>'); ?>

</div>
<div class="form-group <?php echo e($errors->has('idFonction') ? 'has-error' : ''); ?>" required="required">
    <label for="idFonction" class="control-label"><?php echo e('Fonction'); ?></label>
    <select name="idFonction" class="form-control" id="idFonction"  required>
    <?php $__currentLoopData = $fonctions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $fonction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <option
            value="<?php echo e($fonction->idFonction); ?>"
            <?php echo e((isset($signataire->fonction) && $signataire->fonction == $fonction->idFonction) ? 'selected' : ''); ?>

        >
                <?php echo e($fonction->nomFonction); ?>

        </option>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </select>
    <?php echo $errors->first('idFonction', '<p class="help-block">:message</p>'); ?>

</div>

<div class="form-group">
    <input class="btn btn-primary" type="submit" value="<?php echo e($formMode === 'edit' ? 'Modifier' : 'Créer'); ?>">
</div>
<?php /**PATH /home/africawebstudent/public_html/aws/gestjury/resources/views/admin/signataire/form.blade.php ENDPATH**/ ?>