@extends('layout') @section('title', '| user') @section('content')

GESTION DES USERS

@if ($message = Session::get('success'))

{{ $message }}

@endif @if ($message = Session::get('error'))

{{ $message }}

@endif
LISTE D'ENREGISTREMENT DES USERS
@foreach ($users as $user) @endforeach
# Name Email Role Projet Actions
{{ $user->id }} {{ $user->name }} {{ $user->email }} {{ $user->role }} @if($user->projet){{ $user->projet->nom }}@endif {!! Form::open(['method' => 'DELETE', 'route'=>['user.destroy', $user->id], 'style'=> 'display:inline', 'onclick'=>"if(!confirm('Êtes-vous sûr de vouloir supprimer cet enregistrement ?')) { return false; }"]) !!} {!! Form::close() !!}
@endsection