@include('forms.fbncheader')
@include('forms.fdatatables')


<div class="col-lg-10 col-lg-offset-1">
    <h1><i class="fa fa-epreuves"></i>Basculer sur un autre compte</h1>
</div>


<div class="col-lg-10 col-lg-offset-1">

    {!! Form::open(['user' => 'form', 'url' => '/action/changeprofil','method' => 'post', 'class' => 'form-control', 'class' => 'form-horizontal']) !!}


    <div class='form-group'>
        <div class="col-xs-6">
        {!! Form::label('utilisateur', 'Utilisateur') !!}

            {!! Form::select(
                'user_id',
                $users_list,
                DB::table('users')->where('id', '=', $user->id)->pluck("id")->toArray(),
                [
                    'class' => 'form-control selectpicker',
                    'data-width' => "100%"
                ]
            ) 

            !!}
        </div>
    </div>


    <div class='form-group'>
        <div class="col-lg-max">&nbsp;
        </div>
    </div>

    <div class='form-group'>
        <div class="col-lg-10 col-lg-offset-1">
        {!! Form::submit('Utiliser le compte de cet utilisateur', ['class' => 'btn btn-primary']) !!}
    </div>
    </div>
    {!! Form::close() !!}
</div>



</body></html>