вывод аентства в таблицу агентов

This commit is contained in:
developer 2026-04-01 08:03:46 +08:00
parent 9d79741988
commit 85b3f54bc3

View File

@ -6,7 +6,7 @@
@endif
<div class="vstack gap-2">
@foreach ($clients as $client)
<?php
<?php
$complexesNames = [];
$companiesNames = [];
$agentsNames = [];
@ -28,7 +28,7 @@
$agentsNames = array_unique($agentsNames);
$agentsNames = implode('<br>', $agentsNames);
$dealsWithContracts = $client->deals()->whereHas('contract');
?>
?>
@if ($mode == 'full')
<div class="d-flex flex-row m-0 my-2 px-2 client-row">
<div class="d-flex flex-column flex-md-row w-100">
@ -97,7 +97,7 @@ class="bi bi-file-earmark-text ms-auto" viewBox="0 0 16 16">
$filterRow[] = 'filter[deal_id][]=' . $deal->id;
}
$filterRow = implode('&', $filterRow);
?>
?>
<a href="{{ route('contracts', [$filterRow]) }}"
class="icon-link icon-link-hover w-100 hstack gap-2 text-decoration-none">
<span class="text-dark">{{ $client->name }}</span>
@ -108,8 +108,13 @@ class="bi bi-arrow-right ms-auto" viewBox="0 0 16 16">
</svg>
</a>
@else
<a href="" class="icon-link icon-link-hover w-100 hstack gap-2 text-decoration-none">
<a href="" class=" icon-link icon-link-hover w-100 hstack gap-2 text-decoration-none">
<span class="text-dark">{{ $client->name }}</span>
@if (auth()->user()->isCityManager())
<div class="col col-md-2 align-middle text-truncate">
{!! $companiesNames !!}
</div>
@endif
</a>
@endif
</div>