44 lines
1.6 KiB
PHP
44 lines
1.6 KiB
PHP
<div class="main-container pb-4">
|
|
@include('Partials.Pages.index_top')
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<th>@lang('name')</th>
|
|
<th>@lang('action')</th>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($data as $object)
|
|
<tr>
|
|
<td class="align-middle">
|
|
@can(Request::segment(1).'_view')
|
|
<a href="{{route(Request::segment(1).'.show',[$data_name => $object])}}"
|
|
class="btn btn-success">
|
|
{{$object->name}}
|
|
</a>
|
|
@else
|
|
{{$object->name}}
|
|
@endcan
|
|
</td>
|
|
<td>
|
|
@can(Request::segment(1).'_edit')
|
|
<a href="{{route(Request::segment(1).'.edit',[$data_name => $object])}}"
|
|
class="btn btn-outline-success">
|
|
@lang('edit')
|
|
</a>
|
|
@endcan
|
|
@can(Request::segment(1).'_restore')
|
|
<a href="{{route(Request::segment(1).'.restore',[$data_name => $object])}}"
|
|
class="btn btn-outline-success">
|
|
@lang('restore')
|
|
</a>
|
|
@endcan
|
|
@can(Request::segment(1).'_delete_force')
|
|
@include('Partials.Form.Input.Modal.delete_force')
|
|
@endcan
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@include('Partials.Pages.display')
|
|
</div>
|