From 8454478df9462570dc1978dc567a0096ec1453d5 Mon Sep 17 00:00:00 2001 From: Thekindbull Date: Tue, 27 May 2025 09:58:04 +0800 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20=D1=81=D0=BE?= =?UTF-8?q?=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D0=B8?= =?UTF-8?q?=D1=81=D1=82=D0=BE=D1=80=D0=B8=D1=8E=20=D0=B8=D0=B7=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B0?= =?UTF-8?q?=D0=BA=D1=82=D0=BE=D0=B2=20=D0=B8=20=D1=81=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Notifications/Deal/DealUnique.php | 3 +- lang/ru/notifications.php | 2 ++ .../views/clients/contract/index.blade.php | 33 ++++++++++++------- 3 files changed, 24 insertions(+), 14 deletions(-) diff --git a/app/Notifications/Deal/DealUnique.php b/app/Notifications/Deal/DealUnique.php index f3f8956..976b0aa 100644 --- a/app/Notifications/Deal/DealUnique.php +++ b/app/Notifications/Deal/DealUnique.php @@ -10,10 +10,9 @@ use App\Models\Deal\Deal; use App\Models\Deal\DealStatus; -class DealCreated extends Notification +class DealUnique extends Notification { use Queueable; - private $deal; /** * Create a new notification instance. */ diff --git a/lang/ru/notifications.php b/lang/ru/notifications.php index 0ef4ed8..47997f2 100644 --- a/lang/ru/notifications.php +++ b/lang/ru/notifications.php @@ -13,6 +13,8 @@ | */ 'has no notifications' => 'Список уведомлений пуст', + 'has no history' => 'История изменений отсутствует', + 'App\Notifications\UniqueContact' => 'Контакт :contact был проверен, уникальность подтверждена', 'App\Notifications\NotUniqueContact' => 'Контакт :contact был проверен и является не уникальным', 'App\Notifications\ContractUpdated' => 'Информация о договоре для контакта ":contact" обновлен', diff --git a/resources/views/clients/contract/index.blade.php b/resources/views/clients/contract/index.blade.php index 4e22527..20a787d 100644 --- a/resources/views/clients/contract/index.blade.php +++ b/resources/views/clients/contract/index.blade.php @@ -91,20 +91,29 @@ class="bi bi-pen" viewBox="0 0 16 16">
История договора
- @for ($i = 0; $i <= 4; $i++) -
-
- - - -
-
-
05.03.25
-
Запланирована встреча с клиентом
+ @if ($contract->notifications->count() == 0) +
+
+ + {{ __('notifications.has no history') }}
- @endfor + @else + @foreach ($contract->notifications as $notification) +
+
+ + + +
+
+
{{ $notification->created_at }}
+
{{ $notification->data['text'] }}
+
+
+ @endfor + @endif
@endsection