Add withTrashed for invoices table

This commit is contained in:
Benjamin Beganović 2021-04-10 10:56:48 +02:00
parent 3062ee4fec
commit b345e12678

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', [