добавил передачу agency_id в битрикс при создании контакта

This commit is contained in:
developer 2026-04-13 16:38:37 +08:00
parent 82dc2fff6e
commit 63822ba69f
3 changed files with 18 additions and 2 deletions

View File

@ -14,6 +14,7 @@ public function __construct(Agent $agent)
{
$this->addDataItem('name', $agent->user->name);
$this->addDataItem('phones', [$agent->user->phone]);
$this->addDataItem('email', $agent->user->email);
$this->addDataItem('agency_id', $agent->company->bitrixId());
}
}

View File

@ -25,6 +25,7 @@ class ClientCreateLivewire extends Component
/////////////////////
public $agentId;
public $contacts;
public $objects = [];
public $complexId;
public $plan7Room = false;
////////////////////

View File

@ -144,8 +144,22 @@ class="bi bi-plus-circle" viewBox="0 0 16 16">
</div>
</div>
</div>
<div class="form-floating mb-3">
<div class="btn-group">
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false">
Выберите жилой комплекс
</button>
<ul class="dropdown-menu">
@foreach ($complexes as $complex)
<li><div class="dropdown-item"><input class="form-check-input" type="checkbox" value="" id="checkDefault">
<label class="form-check-label" for="checkDefault">
{{ $complex['name'] }}
</label>
</div>
</li>
@endforeach
</ul>
</div>
<div class="form-floating mb-2">
<select wire:model.live="complexId" class="form-select rounded-4 @error('complexId') is-invalid @enderror"
id="complexId" name="complexId" aria-label="Жилой комплекс">
<option selected></option>