ldc-com-app-bo/resources/views/users/index.blade.php
Vincent BRIDIER f01e1501b4 init
2021-01-15 14:47:59 +01:00

41 lines
1.5 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12 d-flex justify-content-end">
<a href="/users/add" class="btn btn-sm btn-primary">Ajouter</a>
</div>
</div>
<br>
<div class="row">
<div class="col-md-12">
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">Email</th>
<th scope="col">Nom</th>
<th scope="col">Prénom</th>
<th scope="col">Activé ?</th>
</tr>
</thead>
<tbody>
@foreach($users as $user)
<tr>
<th scope="row"><a href="/users/{{$user->id}}/edit">{{$user->email}}</a></th>
<td>{{$user->surname}}</td>
<td>{{$user->firstname}}</td>
<td>
@if ($user->activated === 1)
Oui
@else
Non
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection