<?php $__env->startSection('contenu'); ?>
    <?php echo $__env->make('/partials/modalConfirmSuppCompte', \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 if(auth()->user()->administrateur == 1): ?>
        <section
            style="background-image: url('/img/board.png'); background-attachment: fixed; background-repeat: no-repeat; background-size: cover; min-height: 93.2vh;"
            class="section p-3 mt-0 columns mx-0 mb-0 is-centered">
            <div
                class="container column is-half mt-6 has-background-light p-6 is-flex is-flex-direction-column is-justify-content-center">
                <div class="panel-block columns mx-0 is-centered my-1">
                    <button class="button is-rounded is-info" onclick="openForm('modalReinPassword')">
                        <span class="icon">
                            <i class="fas fa-key"></i>
                        </span>
                        <span>Restaurer accès</span>
                    </button>
                </div>
                <form id="info_compte">
                    <?php echo csrf_field(); ?>
                    <div class="field">
                        <label class="label title is-6" for="prenom_user_id">Prénom</label>
                        <p class="control">
                            <input id="prenom_user_id"
                                class="input is-info is-rounded 
                                <?php $__errorArgs = ['prenom_user'];
$__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_user" required
                                value="<?php echo e($compte->prenom); ?>" disabled />
                        </p>
                        <?php $__errorArgs = ['prenom_user'];
$__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_user_id">Nom</label>
                        <p class="control">
                            <input id="nom_user_id"
                                class="input is-info is-rounded 
                                <?php $__errorArgs = ['nom_user'];
$__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_user" required value="<?php echo e($compte->nom); ?>"
                                disabled />
                        </p>
                        <?php $__errorArgs = ['nom_user'];
$__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_utilisateur_user_id">Nom d'utilisateur</label>
                        <p class="control">
                            <input id="nom_utilisateur_user_id"
                                class="input is-info is-rounded 
                                <?php $__errorArgs = ['nom_utilisateur_user'];
$__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_utilisateur_user" required
                                value="<?php echo e($compte->nom_utilisateur); ?>" autocomplete="username" disabled />
                        </p>
                        <?php $__errorArgs = ['nom_utilisateur_user'];
$__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="mot_de_passe_user_id">Mot de passe actuel</label>
                        <p class="control">
                            <input id="mot_de_passe_user_id"
                                class="input mot_de_passe is-info is-rounded 
                                <?php $__errorArgs = ['mot_de_passe_user'];
$__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="password" placeholder="Saisissez l'ancien mot de passe" name="mot_de_passe_user"
                                required value="************" autocomplete="current-password" disabled />
                        </p>
                        <?php $__errorArgs = ['mot_de_passe_user'];
$__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 id="error_mot_de_passe" class="help is-danger error erreur"></div>
                    </div>
                    <div id="nv_mot_de_passe" class="field is-hidden">
                        <label class="label title is-6" for="nv_mot_de_passe_user_id">Nouveau mot de passe</label>
                        <p class="control">
                            <input id="nv_mot_de_passe_user_id"
                                class="input is-info is-rounded 
                                <?php $__errorArgs = ['nv_mot_de_passe_user'];
$__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="password" placeholder="Saisissez le nouveau mot de passe" name="nv_mot_de_passe_user"
                                required autocomplete="new-password" />
                        </p>
                        <?php $__errorArgs = ['nv_mot_de_passe_user'];
$__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 id="confirm_mot_de_passe" class="field is-hidden">
                        <label class="label title is-6" for="nv_mot_de_passe_user_confirm_id">Confirmation nouveau mot de
                            passe</label>
                        <p class="control">
                            <input id="nv_mot_de_passe_user_confirm_id"
                                class="input is-info is-rounded 
                                <?php $__errorArgs = ['nv_mot_de_passe_user_confirm'];
$__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="password" placeholder="Saisissez le nouveau mot de passe"
                                name="nv_mot_de_passe_user_confirm" required autocomplete="new-password" />
                        </p>
                        <?php $__errorArgs = ['nv_mot_de_passe_user_confirm'];
$__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="buttons is-centered mt-5">
                        <button onclick="get_compte_slug('<?php echo e($compte->slug); ?>'); openForm('modalSuppCompte')" type="button" id="" class="button is-info is-light">Supprimer</button>
                        <button id="btn_modif_compte" type="button" class="button is-info is-light"
                            onclick="modifier('info_compte')">Modifier mot de passe</button>
                        <button id="btn_enr_compte" class="button is-info is-light" onclick="get_compte_slug('<?php echo e($compte->slug); ?>'); get_id(<?php echo e($compte->id); ?>)"
                            disabled>Enregistrer</button>
                    </div>
                </form>
            </div>
        <?php else: ?>
            <script>
                window.location.replace('/accueil');
            </script>
        </section>
    <?php endif; ?>
    <?php echo $__env->make('/partials/detailsCompteJs', \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/detailsCompte.blade.php ENDPATH**/ ?>