Обновлен вывод сведений о жк в таблице

This commit is contained in:
developer 2026-04-24 11:32:37 +08:00
parent f8d30e4908
commit 5a511eeadf

View File

@ -133,11 +133,11 @@ function getClients()
public function render() public function render()
{ {
$clients = $this->getClients(); $clients = $this->getClients();
$clients->groupBy('users.id','users.name','users.phone','users.email');
if ($this->clientsCount != $clients->count()) { if ($this->clientsCount != $clients->count()) {
$this->clientsCount = $clients->count(); $this->clientsCount = $clients->count();
$this->currentPage = 1; $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(); $clients = $clients->skip(($this->currentPage - 1) * $this->count)->take($this->count)->get();
return view( return view(
'livewire.clients-table', 'livewire.clients-table',