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