resources/views/livewire/datatable.blade.php: show different text and button type depending on if trashed is set or not.
This commit is contained in:
parent
bf76ecebbd
commit
751e947956
1 changed files with 3 additions and 1 deletions
|
|
@ -7,7 +7,9 @@
|
|||
@endif
|
||||
|
||||
@if ($restore_enabled)
|
||||
<x-button wire:click="toggleTrashed" type="warning">{{ __('Show deleted records') }}</x-button>
|
||||
<x-button wire:click="toggleTrashed" type="{{ $trashed ? 'success' : 'warning' }}">
|
||||
{{ __($trashed ? 'Show non-deleted records' : 'Show deleted records') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue