1
0
Fork 0

resources/views/livewire/datatable.blade.php: Adding "toggleTrashed" button.

This commit is contained in:
Henrik Hautakoski 2022-01-23 12:53:21 +01:00
parent 0110e8e8e7
commit fb288fe18b

View file

@ -1,8 +1,14 @@
<div>
@if ($route_create)
<div class="mb-4">
@if ($route_create || $route_restore)
<div class="flex space-x-4 mb-4">
@if ($route_create)
<x-button :href="route($route_create)" type="info">{{ __('New') }}</x-button>
@endif
@if ($route_restore)
<x-button wire:click="toggleTrashed" type="warning">{{ __('Show deleted records') }}</x-button>
@endif
</div>
@endif