From 6afed935db95b93eeb4d684da4ea276a5cc9dbf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 11 Feb 2021 14:14:11 +0100 Subject: [PATCH] Hide draft credits from client --- app/Http/Livewire/CreditsTable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Livewire/CreditsTable.php b/app/Http/Livewire/CreditsTable.php index 5521a0bb04..4ea703c2db 100644 --- a/app/Http/Livewire/CreditsTable.php +++ b/app/Http/Livewire/CreditsTable.php @@ -28,6 +28,7 @@ class CreditsTable extends Component { $query = Credit::query() ->where('client_id', auth('contact')->user()->client->id) + ->where('status_id', '<>', Credit::STATUS_DRAFT) ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc') ->paginate($this->per_page);