Skip to content

Instantly share code, notes, and snippets.

Created April 10, 2019 12:28
What would you like to do?
<div class="row">
<div class="col show table-responsive">
<table class="table table-stripped table-bordered ">
<th>First Name</th>
<th>Last Name</th>
@if (!empty($users))
@foreach ($users as $user)
<td>{{ $no++ }}</td>
<td>{{ $user->first_name }}</td>
<td>{{ $user->last_name }}</td>
<td>{{ $user->email }}</td>
<td>{{ $user->phone }}</td>
<td>{{ $user->address }}</td>
<td><a href="{{ url('/update/') }}/{{ $user->id }}" class="btn btn-primary btn-sm">Edit</a><a href="{{ url('/delete/') }}/{{ $user->id }}" class="btn btn-danger btn-sm">Delete</a></td>
<td colspan="7" class="text-center">
<h3>User not found !</h3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment