обновлен текст уведомления
This commit is contained in:
parent
4832c48654
commit
baba204b57
@ -55,12 +55,17 @@ public function toMail(object $notifiable): MailMessage
|
|||||||
*/
|
*/
|
||||||
public function toArray(object $notifiable): array
|
public function toArray(object $notifiable): array
|
||||||
{
|
{
|
||||||
|
$clientsPhones = $this->deal->clients->pluck('phone')->toArray();
|
||||||
$clientsNames = $this->deal->clients->pluck('name')->toArray();
|
$clientsNames = $this->deal->clients->pluck('name')->toArray();
|
||||||
|
foreach ($clientsNames as $key=>$name) {
|
||||||
|
$clientsNames[$key] = $name . ' ' . $clientsPhones[$key] .'';
|
||||||
|
}
|
||||||
return [
|
return [
|
||||||
'deal' => $this->deal->id,
|
'deal' => $this->deal->id,
|
||||||
'text' => __('notifications.' . get_class($this),
|
'text' => __('notifications.' . get_class($this),
|
||||||
[
|
[
|
||||||
'contact' => implode(', ', $clientsNames)
|
'contact' => implode(', ', $clientsNames),
|
||||||
|
'complex' => $this->deal->complex->name,
|
||||||
])
|
])
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,8 @@
|
|||||||
'has no notifications' => 'Список уведомлений пуст',
|
'has no notifications' => 'Список уведомлений пуст',
|
||||||
'has no history' => 'История изменений отсутствует',
|
'has no history' => 'История изменений отсутствует',
|
||||||
|
|
||||||
'App\Notifications\UniqueContact' => 'Контакт :contact был проверен, уникальность подтверждена',
|
'App\Notifications\UniqueContact' => 'Контакт :contact был проверен, уникальность подтверждена на ЖК ":complex". С Вами свяжется ответственный менеджер.',
|
||||||
|
//'App\Notifications\UniqueContact' => 'Контакт :contact был проверен, уникальность подтверждена',
|
||||||
'App\Notifications\NotUniqueContact' => 'Контакт :contact был проверен и является не уникальным',
|
'App\Notifications\NotUniqueContact' => 'Контакт :contact был проверен и является не уникальным',
|
||||||
'App\Notifications\ContractUpdated' => 'Информация о договоре для контакта ":contact" обновлен',
|
'App\Notifications\ContractUpdated' => 'Информация о договоре для контакта ":contact" обновлен',
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user