Обновлен вывод сведений о жк в таблице
This commit is contained in:
parent
8bba9a2bee
commit
fb6a805022
@ -18,13 +18,13 @@ class="d-none d-flex position-absolute w-100 h-100 top-0 start-0 align-items-cen
|
|||||||
$agentsNames = [];
|
$agentsNames = [];
|
||||||
$filterRow = [];
|
$filterRow = [];
|
||||||
$clientDeals = $client->deals();
|
$clientDeals = $client->deals();
|
||||||
if (array_key_exists('status', $this->filter)) {
|
if (array_key_exists('status', $filter)) {
|
||||||
$clientDeals->where('status', $this->filter['status']);
|
$clientDeals->where('status', $filter['status']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists('complexes', $this->filter)) {
|
if (array_key_exists('complexes', $filter)) {
|
||||||
$complexes = [];
|
$complexes = [];
|
||||||
foreach ($this->filter['complexes'] as $selectedComplex) {
|
foreach ($filter['complexes'] as $selectedComplex) {
|
||||||
$complexes[] = $selectedComplex['id'];
|
$complexes[] = $selectedComplex['id'];
|
||||||
}
|
}
|
||||||
$clientDeals->whereIn('complex_id', $complexes);
|
$clientDeals->whereIn('complex_id', $complexes);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user