-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathshow_category_list.php
35 lines (25 loc) · 1.64 KB
/
show_category_list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@if($category_all->count() >0)
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>#</th>
<th>Category name</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach($category_all as $row)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$row->category_name}}</td>
<td>
<a class="btn btn-primary" href="{{url('category-edit/'.$row->catid)}}">Edit</a>
<a class="btn btn-danger" onclick="confirm_category_delete({{$row->catid}})">Delete</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@else
<h3>No record found</h3>
@endif