| Клиент | ЖК @if (auth()->user()->isCityManager()) | Агентства | Агенты @endif | ||
|---|---|---|---|---|---|
|
{{ $client->name }}
{{ $client->phone }}
@if (env('APP_DEBUG'))
@foreach($client->deals as $deal)
@endif
Bitrix ID: {{ $deal->bitrixId() }}
@endforeach
|
Жилой комплекс
@if(count($complexesNames) > 1)
{!! $complexesNames[0] !!}
+
{{ count($complexesNames) - 1 }}
@else
{!! $complexesNames[0] !!}
@endif
|
@if (auth()->user()->isCityManager())
Агентство {!! $companiesNames !!} | Агент {!! $agentsNames !!} | @endif@php($contractRoute = "") @if ($dealsWithContracts->count() == 1) @php($contractRoute = route('contract', ['contract' => $dealsWithContracts->first()->contract])) @elseif($dealsWithContracts->count() > 1) @php($contractRoute = route('contracts', [$filterRow])) @endif @if($contractRoute) @endif | @else@if ($dealsWithContracts->count() == 1) {{ $client->name }} @elseif($dealsWithContracts->count() > 1) {{ $client->name }} @else {{ $client->name }} @endif | @endif