Created
December 21, 2016 17:39
-
-
Save PHPauloReis/dfde8909a8a1b0756271298d496519e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('template') | |
@section('main') | |
<div class="container"> | |
<h1>Clientes cadastrados</h1> | |
<hr> | |
<table class="table table-bordered"> | |
<thead> | |
<tr> | |
<th>ID</th> | |
<th>Nome</th> | |
<th>Sobrenome</th> | |
<th>E-mail</th> | |
<th>Sexo</th> | |
<th> </th> | |
</tr> | |
</thead> | |
<tbody> | |
@if($clientList->count() > 0) | |
@foreach($clientList as $client) | |
<tr> | |
<th>{{ $client->id }}</th> | |
<td>{{ $client->first_name }}</td> | |
<td>{{ $client->last_name }}</td> | |
<td>{{ $client->email }}</td> | |
<td>{{ $client->gender }}</td> | |
<td width="75"> | |
<a href="client/edit/{{ $client->id }}" class="btn btn-primary btn-xs"> | |
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> | |
</a> | |
<a href="client/delete/{{ $client->id }}" class="btn btn-danger btn-xs"> | |
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> | |
</a> | |
</td> | |
</tr> | |
@endforeach | |
@else | |
<tr> | |
<td colspan="6"> | |
Não há registros cadastrados | |
</td> | |
</tr> | |
@endif | |
</tbody> | |
</table> | |
</div> | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment