feat: add notification infrastructure with database channel, enum, and notification classes (Story 3.1)
Set up Laravel notification system with NotificationType enum (5 types), NudgeNotification, DocumentUploadedNotification, and DeclarationOverdueNotification classes with database + mail channels. Add email templates, infrastructure tests, and fix existing NotificationController tests for workspace compatibility. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
13
resources/views/emails/declaration-overdue.blade.php
Normal file
13
resources/views/emails/declaration-overdue.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<x-mail::message>
|
||||
# Déclaration en retard
|
||||
|
||||
Bonjour,
|
||||
|
||||
La déclaration **{{ $declarationTitle }}** a dépassé son échéance prévue le **{{ $dueDate }}**.
|
||||
|
||||
Veuillez traiter cette déclaration dans les meilleurs délais.
|
||||
|
||||
<x-mail::button :url="$url" color="primary">
|
||||
Voir la déclaration
|
||||
</x-mail::button>
|
||||
</x-mail::message>
|
||||
15
resources/views/emails/nudge-notification.blade.php
Normal file
15
resources/views/emails/nudge-notification.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<x-mail::message>
|
||||
# Relance
|
||||
|
||||
Bonjour,
|
||||
|
||||
**{{ $senderName }}** de **{{ $firmName }}** vous envoie une relance concernant la déclaration suivante :
|
||||
|
||||
- **Client :** {{ $clientName }}
|
||||
- **Type :** {{ $declarationType }}
|
||||
- **Échéance :** {{ $dueDate }}
|
||||
|
||||
<x-mail::button :url="$url" color="primary">
|
||||
Voir la déclaration
|
||||
</x-mail::button>
|
||||
</x-mail::message>
|
||||
Reference in New Issue
Block a user