diff --git a/app/Modules/Bitrix/Models/SendAgent.php b/app/Modules/Bitrix/Models/SendAgent.php index 22cc00b..c4f3eb0 100644 --- a/app/Modules/Bitrix/Models/SendAgent.php +++ b/app/Modules/Bitrix/Models/SendAgent.php @@ -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()); } } diff --git a/app/Modules/ClientCreateForm/Http/Livewire/ClientCreateLivewire.php b/app/Modules/ClientCreateForm/Http/Livewire/ClientCreateLivewire.php index 8dece66..978306e 100644 --- a/app/Modules/ClientCreateForm/Http/Livewire/ClientCreateLivewire.php +++ b/app/Modules/ClientCreateForm/Http/Livewire/ClientCreateLivewire.php @@ -25,6 +25,7 @@ class ClientCreateLivewire extends Component ///////////////////// public $agentId; public $contacts; + public $objects = []; public $complexId; public $plan7Room = false; //////////////////// diff --git a/app/Modules/ClientCreateForm/Views/livewire/form.blade.php b/app/Modules/ClientCreateForm/Views/livewire/form.blade.php index 8416eeb..396ef90 100644 --- a/app/Modules/ClientCreateForm/Views/livewire/form.blade.php +++ b/app/Modules/ClientCreateForm/Views/livewire/form.blade.php @@ -144,8 +144,22 @@ class="bi bi-plus-circle" viewBox="0 0 16 16"> - -
+
+ + +
+