Created
July 21, 2020 05:51
-
-
Save saeedhajinasiri/0e641035685264e9ff1df3e013c9c413 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($theme) | |
@section('content') | |
<table class="table table-bordered"> | |
<thead> | |
<tr> | |
<th>Name</th> | |
<th width="300px;">Action</th> | |
</tr> | |
</thead> | |
<tbody> | |
@if(!empty($data) && $data->count()) | |
@foreach($data as $key => $value) | |
<tr> | |
<td>{{ $value->name }}</td> | |
<td> | |
<button class="btn btn-danger">Delete</button> | |
</td> | |
</tr> | |
@endforeach | |
@else | |
<tr> | |
<td colspan="10">There are no data.</td> | |
</tr> | |
@endif | |
</tbody> | |
</table> | |
{!! $data->links() !!} | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment