Merge pull request #5406 from beganovich/v5-1004-add-with-trashed-for-invoices

(v5) Add withTrashed() for invoices table
This commit is contained in:
Benjamin Beganović 2021-04-12 11:52:08 +01:00 committed by GitHub
commit 24d6705b7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,7 @@ class InvoicesTable extends Component
$query = $query $query = $query
->where('client_id', auth('contact')->user()->client->id) ->where('client_id', auth('contact')->user()->client->id)
->where('status_id', '<>', Invoice::STATUS_DRAFT) ->where('status_id', '<>', Invoice::STATUS_DRAFT)
->withTrashed()
->paginate($this->per_page); ->paginate($this->per_page);
return render('components.livewire.invoices-table', [ return render('components.livewire.invoices-table', [