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

This commit is contained in:
developer 2026-04-24 11:22:20 +08:00
parent 19af080e3e
commit 8bba9a2bee

View File

@ -17,9 +17,20 @@ class="d-none d-flex position-absolute w-100 h-100 top-0 start-0 align-items-cen
$companiesNames = [];
$agentsNames = [];
$filterRow = [];
$clientDeals = $client->deals;
$clientDeals = $client->deals();
if (array_key_exists('status', $this->filter)) {
$clientDeals->where('status', $this->filter['status']);
}
if (array_key_exists('complexes', $this->filter)) {
$complexes = [];
foreach ($this->filter['complexes'] as $selectedComplex) {
$complexes[] = $selectedComplex['id'];
}
$clientDeals->whereIn('complex_id', $complexes);
}
//echo 'cId:' . $client->id;
foreach ($clientDeals as $deal) {
foreach ($clientDeals->get() as $deal) {
//echo 'dId:' . $deal->id;
$filterRow[] = 'filter[deal_id][]=' . $deal->id;
$complexesNames[] = '<span>'