From 43c00fc27cf61181b39da3d08c83ff0cc0662445 Mon Sep 17 00:00:00 2001 From: Thekindbull Date: Thu, 6 Mar 2025 11:27:15 +0800 Subject: [PATCH] clients table updated --- app/Livewire/ClientsTable.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Livewire/ClientsTable.php b/app/Livewire/ClientsTable.php index 9c3de67..f23ee90 100644 --- a/app/Livewire/ClientsTable.php +++ b/app/Livewire/ClientsTable.php @@ -51,6 +51,12 @@ public function render() ->whereIn('status', [DealStatus::UNIQUE]) ->orderBy('id', 'desc')->paginate(10, ['*'], 'unique_clients'); } + elseif ($this->status && $this->status == DealStatus::NOT_UNIQUE) + { + $deals = $deals + ->whereIn('status', [DealStatus::MODERATION, DealStatus::NEW , DealStatus::NOT_UNIQUE]) + ->orderBy('id', 'desc')->paginate(10, ['*'], 'all_clients'); + } else { $deals = $deals->orderBy('id', 'desc')->paginate(10, ['*'], 'all_clients');