From c0c1f816862c056c90e1e7e76b1842b5aca0b28b Mon Sep 17 00:00:00 2001 From: developer Date: Fri, 24 Apr 2026 14:08:14 +0800 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=83=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BE=20=D0=B4=D0=BE=D0=B3=D0=BE=D0=B2?= =?UTF-8?q?=D0=BE=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Notifications/ContractUpdated.php | 7 ++++++- lang/ru/notifications.php | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/Notifications/ContractUpdated.php b/app/Notifications/ContractUpdated.php index fe74ad0..827e0da 100644 --- a/app/Notifications/ContractUpdated.php +++ b/app/Notifications/ContractUpdated.php @@ -55,9 +55,14 @@ public function toMail(object $notifiable): MailMessage */ public function toArray(object $notifiable): array { + $clientsPhones = $this->contract->deal->clients->pluck('phone')->toArray(); + $clientsNames = $this->contract->deal->clients->pluck('name')->toArray(); + foreach ($clientsNames as $key=>$name) { + $clientsNames[$key] = $name . ' ' . $clientsPhones[$key] .''; + } return [ 'contract' => $this->contract->id, - 'text' => __('notifications.' . get_class($this), ['contact' => $this->contract->deal->agent->name]) + 'text' => __('notifications.' . get_class($this), ['contact' => implode(', ', $clientsNames)]) ]; } } diff --git a/lang/ru/notifications.php b/lang/ru/notifications.php index a67c3b8..94d2379 100644 --- a/lang/ru/notifications.php +++ b/lang/ru/notifications.php @@ -16,9 +16,9 @@ 'has no history' => 'История изменений отсутствует', 'App\Notifications\UniqueContact' => 'Контакт :contact был проверен, уникальность подтверждена на ЖК ":complex". С Вами свяжется ответственный менеджер.', - //'App\Notifications\UniqueContact' => 'Контакт :contact был проверен, уникальность подтверждена', + //'App\Notifications\UniqueContact' =>'Контакт :contact был проверен, уникальность подтверждена', 'App\Notifications\NotUniqueContact' => 'Контакт :contact был проверен и является не уникальным', - 'App\Notifications\ContractUpdated' => 'Информация о договоре для контакта ":contact" обновлен', + 'App\Notifications\ContractUpdated' => 'Информация о договоре для контакта :contact" обновлен', 'App\Notifications\Deal\DealCreated' => 'Контакт создан', 'App\Notifications\Deal\DealUnique' => 'Стутус контакта изменен на "уникальный"',