From baba204b57908f0318447a277bb3de7343e464b7 Mon Sep 17 00:00:00 2001 From: developer Date: Fri, 24 Apr 2026 09:37:46 +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=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=20=D1=83=D0=B2=D0=B5?= =?UTF-8?q?=D0=B4=D0=BE=D0=BC=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Notifications/UniqueContact.php | 7 ++++++- lang/ru/notifications.php | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/Notifications/UniqueContact.php b/app/Notifications/UniqueContact.php index 9c2f5c3..03c5859 100644 --- a/app/Notifications/UniqueContact.php +++ b/app/Notifications/UniqueContact.php @@ -55,12 +55,17 @@ public function toMail(object $notifiable): MailMessage */ public function toArray(object $notifiable): array { + $clientsPhones = $this->deal->clients->pluck('phone')->toArray(); $clientsNames = $this->deal->clients->pluck('name')->toArray(); + foreach ($clientsNames as $key=>$name) { + $clientsNames[$key] = $name . ' ' . $clientsPhones[$key] .''; + } return [ 'deal' => $this->deal->id, 'text' => __('notifications.' . get_class($this), [ - 'contact' => implode(', ', $clientsNames) + 'contact' => implode(', ', $clientsNames), + 'complex' => $this->deal->complex->name, ]) ]; } diff --git a/lang/ru/notifications.php b/lang/ru/notifications.php index 47997f2..b28ed48 100644 --- a/lang/ru/notifications.php +++ b/lang/ru/notifications.php @@ -15,7 +15,8 @@ 'has no notifications' => 'Список уведомлений пуст', 'has no history' => 'История изменений отсутствует', - 'App\Notifications\UniqueContact' => 'Контакт :contact был проверен, уникальность подтверждена', + 'App\Notifications\UniqueContact' => 'Контакт :contact был проверен, уникальность подтверждена на ЖК ":complex". С Вами свяжется ответственный менеджер.', + //'App\Notifications\UniqueContact' => 'Контакт :contact был проверен, уникальность подтверждена', 'App\Notifications\NotUniqueContact' => 'Контакт :contact был проверен и является не уникальным', 'App\Notifications\ContractUpdated' => 'Информация о договоре для контакта ":contact" обновлен',