diff --git a/app/Http/Livewire/CreditsTable.php b/app/Http/Livewire/CreditsTable.php index 056d72469de8..4b889870bda3 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 633fb6fe0afa..73fee5be016e 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 b4906176fd05..d50a6f35372f 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 2e1c4dc92f35..804fe7050f32 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 a99f387086f2..a6bb79f9115a 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 a18bdb1b77b4..7993680ca2ed 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 679c02d5724f..be084fecffbb 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', [