From bc6671bf1094d4a525d0779baaf812a8391ceaa7 Mon Sep 17 00:00:00 2001 From: developer Date: Thu, 23 Apr 2026 15:44:07 +0800 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D1=8B=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D0=B0=20=D0=BA?= =?UTF-8?q?=D0=BB=D0=B8=D0=B5=D0=BD=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Livewire/ClientsTable.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Livewire/ClientsTable.php b/app/Livewire/ClientsTable.php index 857d428..fae076f 100644 --- a/app/Livewire/ClientsTable.php +++ b/app/Livewire/ClientsTable.php @@ -99,16 +99,15 @@ function getClients() if (array_key_exists('search', $this->filter) && $searchString = trim($this->filter['search'])) { $clients->whereFullText(['name', 'phone', 'email'], $this->filter['search']); } - if ($this->status && $this->status == DealStatus::UNIQUE) + + if (array_key_exists('status', $this->filter) && $this->status == DealStatus::UNIQUE) { $clients = $clients->whereHas('deals', function ($query) { $query->where('status', DealStatus::UNIQUE); })->paginate($this->count, ['*'], 'unique_clients'); - - } - elseif ($this->status && $this->status == DealStatus::NOT_UNIQUE) + elseif (array_key_exists('status', $this->filter) && $this->status == DealStatus::NOT_UNIQUE) { $clients = $clients->whereHas('deals', function ($query) {