Обновлен вывод сведений о жк в таблице
This commit is contained in:
parent
f8d30e4908
commit
5a511eeadf
@ -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',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user