Skip to content

Instantly share code, notes, and snippets.

@PHPauloReis
Created December 21, 2016 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PHPauloReis/dfde8909a8a1b0756271298d496519e8 to your computer and use it in GitHub Desktop.
Save PHPauloReis/dfde8909a8a1b0756271298d496519e8 to your computer and use it in GitHub Desktop.
@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>&nbsp;</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