diff --git a/app/Http/Livewire/Datatable.php b/app/Http/Livewire/Datatable.php index 1537d0c..c804486 100644 --- a/app/Http/Livewire/Datatable.php +++ b/app/Http/Livewire/Datatable.php @@ -110,6 +110,12 @@ class Datatable extends Component return view('livewire.datatable', ['items' => $items]); } + public function toggleTrashed() + { + $this->trashed = !$this->trashed; + $this->setTrashedColumns(); + } + private function setTrashedColumns() { if ($this->trashed) {