resources/views/livewire/datatable.blade.php: only show action column if $route_edit or $route_delete is defined.
This commit is contained in:
parent
3dfbae179e
commit
a9ca7cc86a
1 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@
|
|||
<td class="border px-4 py-2">{{ Arr::get($item, $key) }}</td>
|
||||
@endforeach
|
||||
|
||||
@if ($route_edit || $route_delete)
|
||||
<td class="border px-4 py-2">
|
||||
@if($route_edit)
|
||||
<a href="{{ route($route_edit, [ $item ]) }}">
|
||||
|
|
@ -43,6 +44,7 @@
|
|||
</x-ignite-form>
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue