добавил передачу agency_id в битрикс при создании контакта
This commit is contained in:
parent
82dc2fff6e
commit
63822ba69f
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,6 +25,7 @@ class ClientCreateLivewire extends Component
|
||||
/////////////////////
|
||||
public $agentId;
|
||||
public $contacts;
|
||||
public $objects = [];
|
||||
public $complexId;
|
||||
public $plan7Room = false;
|
||||
////////////////////
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user