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:
2026-03-26 11:26:03 +01:00
parent 6956f7bf95
commit 1ab3cfc445
10 changed files with 731 additions and 9 deletions

View 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>

View 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>