diff --git a/app/Http/Livewire/CreditsTable.php b/app/Http/Livewire/CreditsTable.php index 056d72469d..4b889870bd 100644 --- a/app/Http/Livewire/CreditsTable.php +++ b/app/Http/Livewire/CreditsTable.php @@ -44,6 +44,7 @@ class CreditsTable extends Component ->orWhereNull('due_date'); }) ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc') + ->withTrashed() ->paginate($this->per_page); return render('components.livewire.credits-table', [ diff --git a/app/Http/Livewire/DocumentsTable.php b/app/Http/Livewire/DocumentsTable.php index 633fb6fe0a..73fee5be01 100644 --- a/app/Http/Livewire/DocumentsTable.php +++ b/app/Http/Livewire/DocumentsTable.php @@ -53,7 +53,10 @@ class DocumentsTable extends Component public function render() { return render('components.livewire.documents-table', [ - 'documents' => $this->query->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc')->paginate($this->per_page), + 'documents' => $this->query + ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc') + ->withTrashed() + ->paginate($this->per_page), ]); } diff --git a/app/Http/Livewire/PaymentMethodsTable.php b/app/Http/Livewire/PaymentMethodsTable.php index b4906176fd..d50a6f3537 100644 --- a/app/Http/Livewire/PaymentMethodsTable.php +++ b/app/Http/Livewire/PaymentMethodsTable.php @@ -37,6 +37,7 @@ class PaymentMethodsTable extends Component ->where('company_id', $this->company->id) ->where('client_id', $this->client->id) ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc') + ->withTrashed() ->paginate($this->per_page); return render('components.livewire.payment-methods-table', [ diff --git a/app/Http/Livewire/QuotesTable.php b/app/Http/Livewire/QuotesTable.php index 2e1c4dc92f..804fe7050f 100644 --- a/app/Http/Livewire/QuotesTable.php +++ b/app/Http/Livewire/QuotesTable.php @@ -48,6 +48,7 @@ class QuotesTable extends Component ->where('company_id', $this->company->id) ->where('client_id', auth('contact')->user()->client->id) ->where('status_id', '<>', Quote::STATUS_DRAFT) + ->withTrashed() ->paginate($this->per_page); return render('components.livewire.quotes-table', [ diff --git a/app/Http/Livewire/RecurringInvoicesTable.php b/app/Http/Livewire/RecurringInvoicesTable.php index a99f387086..a6bb79f911 100644 --- a/app/Http/Livewire/RecurringInvoicesTable.php +++ b/app/Http/Livewire/RecurringInvoicesTable.php @@ -46,6 +46,7 @@ class RecurringInvoicesTable extends Component ->orderBy('status_id', 'asc') ->with('client') ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc') + ->withTrashed() ->paginate($this->per_page); return render('components.livewire.recurring-invoices-table', [ diff --git a/app/Http/Livewire/SubscriptionRecurringInvoicesTable.php b/app/Http/Livewire/SubscriptionRecurringInvoicesTable.php index a18bdb1b77..7993680ca2 100644 --- a/app/Http/Livewire/SubscriptionRecurringInvoicesTable.php +++ b/app/Http/Livewire/SubscriptionRecurringInvoicesTable.php @@ -39,6 +39,7 @@ class SubscriptionRecurringInvoicesTable extends Component ->where('company_id', $this->company->id) ->whereNotNull('subscription_id') ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc') + ->withTrashed() ->paginate($this->per_page); return render('components.livewire.subscriptions-recurring-invoices-table', [ diff --git a/app/Http/Livewire/TasksTable.php b/app/Http/Livewire/TasksTable.php index 679c02d572..be084fecff 100644 --- a/app/Http/Livewire/TasksTable.php +++ b/app/Http/Livewire/TasksTable.php @@ -48,6 +48,7 @@ class TasksTable extends Component $query = $query ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc') + ->withTrashed() ->paginate($this->per_page); return render('components.livewire.tasks-table', [