@extends('admin.layout')
@section('title','Nouveau utilisateur')
@section('content')

                        <!-- [ Main Content ] start -->
                        <div class="card">
                            <div class="card-header">
                                <h5>Modifier utilisateur admin</h5>
                            </div>
                            <div class="card-body">
                        <div class="col-md-6">
                            <form action="{{asset('update_user')}}" method="POST">
                                @csrf
                                <input type="hidden" value="{{$user->id}}" name="id">
                                <div class="form-group">
                                    <label for="exampleInputEmail1">Nom</label>
                                    <input type="text" class="form-control" name="nom" placeholder="Nom" value="{{$user->nom}}" required>
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputEmail1">Prenom</label>
                                    <input type="text" class="form-control" name="prenom" placeholder="Prénom" value="{{$user->prenom}}" required>
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputEmail1">Contact</label>
                                    <input type="text" class="form-control" name="phone" placeholder="Contact" value="{{$user->phone}}" required>
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputEmail1">Adresse</label>
                                    <input type="text" class="form-control" name="adresse" placeholder="Adresse" value="{{$user->adresse}}" required>
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputEmail1">Email</label>
                                    <input type="email" class="form-control" id="exampleInputEmail1" value="{{$user->email}}" name="email" aria-describedby="emailHelp" placeholder="Votre email">
                                    <small id="emailHelp" class="form-text text-muted">Veuillez renseigner un mail valide .</small>
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">Mot de passe</label>
                                    <input type="password" class="form-control" name="password" id="exampleInputPassword1" placeholder="Mot de passe">
                                </div>
                                <button type="submit" class="btn btn-primary">Modifier</button>
                            </form>
                        </div>
                        <!-- [ Main Content ] end -->
                    </div>
                </div>

@endsection
