доработка компоненты вывода клиентов
This commit is contained in:
parent
0ba87339d8
commit
0b33aaaf9f
@ -105,18 +105,18 @@ function getClients()
|
||||
$clients = $clients->whereHas('deals', function ($query)
|
||||
{
|
||||
$query->where('status', DealStatus::UNIQUE);
|
||||
})->paginate($this->count, ['*'], 'unique_clients');
|
||||
})->paginate($this->count, ['*'], 'clients');
|
||||
}
|
||||
elseif (array_key_exists('status', $this->filter) && $this->status == DealStatus::NOT_UNIQUE)
|
||||
{
|
||||
$clients = $clients->whereHas('deals', function ($query)
|
||||
{
|
||||
$query->whereIn('status', [DealStatus::MODERATION, DealStatus::NEW , DealStatus::NOT_UNIQUE]);
|
||||
})->paginate($this->count, ['*'], 'not_unique_clients');
|
||||
})->paginate($this->count, ['*'], 'clients');
|
||||
}
|
||||
else
|
||||
{
|
||||
$clients = $clients->paginate($this->count, ['*'], 'all_clients');
|
||||
$clients = $clients->paginate($this->count, ['*'], 'clients');
|
||||
}
|
||||
return $clients;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user