
<?php echo $with_navbar=false; ?>

<?php $__env->startSection('title'); ?> Utilisateur <?php $__env->stopSection(); ?>
<?php $__env->startSection('title_card',"Mise à jour d'un Utilisateur"); ?>
<?php $__env->startSection('content'); ?>
<div class="card">
    <?php if($errors): ?>
        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class='bg-danger alert'><?php echo $error; ?></div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>
    <div class="col-lg-max col-lg-offset-1 container-fluid"> 
        <?php echo Form::model($user_sel, ['users' => 'form', 'url' => '/acces/users/' . $user_sel->id, 'method' => 'PUT'
        , 'class' => 'form-horizontal']); ?>

            <div class="form-group row">
                <div class="col-md-6">
                <?php echo Form::label('nom', 'Nom'); ?>

                <?php echo Form::text('nom', null, ['placeholder' => 'Nom', 'class' => 'form-control text-uppercase']); ?>

                </div>

                <div class="col-md-6">
                <?php echo Form::label('prenom', 'Prénom'); ?>

                <?php echo Form::text('prenom', null, ['placeholder' => 'Nom', 'class' => 'form-control']); ?>

                </div>
            </div>
            <div class='form-group'>
                <div class="col-xs-3">
                <?php echo Form::label('login', 'Identifiant'); ?>

                <?php echo Form::text('login', null, ['placeholder' => 'Login', 'class' => 'form-control text-lowercase']); ?>

                </div>
            </div>

            <div class="form-group row">
                <div class="col-md-6">
                <?php echo Form::label('email', 'Email'); ?>

                <?php echo Form::email('email', null, ['placeholder' => 'Email', 'class' => 'form-control text-lowercase']); ?>

                </div>
            </div>
            <div class="form-group row">
                <div class="col-md-4">
                <?php echo Form::label('password', 'Mot de passe'); ?>

                <?php echo Form::password('password', ['placeholder' => 'Mot de passe'
                    , 'class' => 'form-control']); ?>

                </div>
            </div>

            <div class="form-group">
                <div class="custom-control custom-switch custom-switch-off-danger custom-switch-on-success">
                  <?php echo Form::checkbox('change_pwd', '1', null,
                    ['id' => 'change_pwd', 'class' => 'custom-control-input']); ?>

                  <label class="custom-control-label" for="change_pwd">Changer à la prochaine connexion</label>
                </div>
            </div>



            <div class="row">
                <div class="col-md-5">
                    <div class="form-group">
                        <?php echo Form::label('roles', 'Rôles'); ?>

                        <?php echo Form::select(
                            'users_role[]',$liste_roles,$t_getroles,
                                [
                                    'class' => 'form-control selectpicker',
                                    'multiple'=> 'multiple',
                                    'data-selected-text-format'=>"count"
                                ]); ?>

                    </div>
                </div>
            </div>
            <div class='form-group'>
                    <?php echo Form::submit('Enregistrer', ['class' => 'btn btn-primary']); ?>

                    <a class="btn btn-warning"  href="<?php echo url('acces/users'); ?>">Retour</a>
            </div>
        <?php echo Form::close(); ?>

    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dash', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre2\resources\views/acces/users/edit.blade.php ENDPATH**/ ?>