1 <div class="col-sm-12">
2 <div class="content">
3 <table class="table table-striped" id="myTable">
4 <thead>
5 <tr>
6 <th>Title</th>
7 <th>Slug</th>
8 <th>Category</th>
9 <th>Status</th>
10 <th>Date</th>
11 </tr>
12 </thead>
13 <tbody>
14 @if(count($posts) > 0)
15 @foreach($posts as $post)
16 <tr>
17 <td>{{ $post->title }}</td>
18 <td>{{ $post->slug }}</td>
19 <td>{{ $post->category_id }}</td>
20 <td>{{ $post->status }}</td>
21 <td>{{ $post->created_at }}</td>
22 </tr>
23 @endforeach
24 @else
25 <tr>
26 <td>No data Found.</td>
27 </tr>
28 @endif
29 </tbody>
30 </table>
31 </div>
32 </div>