

<?php $__env->startSection('content'); ?>

        <?php if(session()->has('error')): ?>
             <p class="alert alert-danger"><?php echo e(session('error')); ?></p>
        <?php endif; ?>

      <div class="content mt-3">
            <div class="animated fadeIn">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header">
                                <strong class="card-title">Changer d'Utilisateur</strong>
                            </div>

                            <div class="card-body">
                                <div class="col-lg-max col-lg-offset-1 container-fluid">
                         
                                    <?php echo Form::model($user, ['user' => 'form', 'url' => 'change_profil', 'method' => 'PUT', 'class' => 'form-horizontal']); ?>

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


                                                    <?php echo Form::select(
                                                        'user_id',
                                                        [""=>"Choisissez un utilisateur"]+$users_list,
                                                        DB::table('users')->where('id', '=', $user->id)->pluck("id"),
                                                        [
                                                            'class' => 'form-control',
                                                            'data-width' => "100%"
                                                        ]
                                                    ); ?>

                                            </div>
                                        </div>
                                    </div>

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

                                    </div>

                                    <?php echo Form::close(); ?>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dash', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp7422\htdocs\sysinfo\cpswf\sipre_new\resources\views/auth/change_profil.blade.php ENDPATH**/ ?>