diff --git a/app/Livewire/ClientsTable.php b/app/Livewire/ClientsTable.php index 840bbcc..c5b9c53 100644 --- a/app/Livewire/ClientsTable.php +++ b/app/Livewire/ClientsTable.php @@ -133,11 +133,11 @@ function getClients() public function render() { $clients = $this->getClients(); + $clients->groupBy('users.id','users.name','users.phone','users.email'); if ($this->clientsCount != $clients->count()) { $this->clientsCount = $clients->count(); $this->currentPage = 1; }; - $clients->groupBy('users.id','users.name','users.phone','users.email'); $clients = $clients->skip(($this->currentPage - 1) * $this->count)->take($this->count)->get(); return view( 'livewire.clients-table',