Professional Documents
Culture Documents
This Code
This Code
@section('content')
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-bordered table-condensed table-striped">
<thead>
<th>ID</th>
<th>NAME</th>
<th>EMAIL</th>
<th>PHONE</th>
<th>ACTION</th>
</thead>
<tbody>
@foreach($data as $row)
<tr>
<td>{{$row->id }}</td>
<td>{{$row->name }}</td>
<td>{{$row->email }}</td>
<td>{{$row->phone }}</td>
<td>
<a href="{{ route('contacts.edit', $row->id)}}" class="btn
btn-primary">Edit</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div>
<?php echo $data->render(); ?>
</div>
</div>
@endsection