обновлено уведомление о договоре

This commit is contained in:
developer 2026-04-24 14:11:14 +08:00
parent c0c1f81686
commit 002caa3525
2 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ public function __invoke(Deal $deal, Request $request)
$contract->add_info = $addInfo;
$contract->save();
$agent = $deal->agent;
$deal->notify(new ContractUpdated($deal->contract));
$agent->user->notify(new ContractUpdated($deal->contract));
return true;
}

View File

@ -18,7 +18,7 @@
'App\Notifications\UniqueContact' => 'Контакт <b>:contact</b> был проверен, уникальность подтверждена на ЖК ":complex". С Вами свяжется ответственный менеджер.',
//'App\Notifications\UniqueContact' =>'Контакт :contact был проверен, уникальность подтверждена',
'App\Notifications\NotUniqueContact' => 'Контакт :contact был проверен и является не уникальным',
'App\Notifications\ContractUpdated' => 'Информация о договоре для контакта <b>:contact"</b> обновлен',
'App\Notifications\ContractUpdated' => 'Сведения о договоре для контакта <b>:contact"</b> обновлены',
'App\Notifications\Deal\DealCreated' => 'Контакт создан',
'App\Notifications\Deal\DealUnique' => 'Стутус контакта изменен на "уникальный"',