@extends('layouts.dash') @section('content') @if(session()->has('error'))

{{session('error')}}

@endif
Changer d'Utilisateur
{!! Form::model($user, ['user' => 'form', 'url' => 'change_profil', 'method' => 'PUT', 'class' => 'form-horizontal']) !!}
{!! Form::label('utilisateur', 'Utilisateur') !!} {!! Form::select( 'user_id', [""=>"Choisissez un utilisateur"]+$users_list, DB::table('users')->where('id', '=', $user->id)->value("id"), [ 'class' => 'form-control selectpicker', 'data-width' => "100%" ] ) !!}
{!! Form::submit('Valider', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@endsection