From 9ee001f39993df782b417e23955eecf7b7180121 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 5 Dec 2021 18:50:40 +1100 Subject: [PATCH] Hide deleted quotes from client portal --- app/Http/Livewire/QuotesTable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Livewire/QuotesTable.php b/app/Http/Livewire/QuotesTable.php index 804fe7050f32..eaf9a0add6c1 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) + ->where('is_deleted', 0) ->withTrashed() ->paginate($this->per_page);