feat: add guest notification center

This commit is contained in:
Codex Agent
2025-11-12 16:56:50 +01:00
parent 062932ce38
commit 4495ac1895
27 changed files with 2042 additions and 64 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Enums;
enum GuestNotificationAudience: string
{
case ALL = 'all';
case GUEST = 'guest';
public function label(): string
{
return match ($this) {
self::ALL => __('Alle Gäste'),
self::GUEST => __('Individuelle Gäste'),
};
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Enums;
enum GuestNotificationDeliveryStatus: string
{
case NEW = 'new';
case READ = 'read';
case DISMISSED = 'dismissed';
public function label(): string
{
return match ($this) {
self::NEW => __('Neu'),
self::READ => __('Gelesen'),
self::DISMISSED => __('Ausgeblendet'),
};
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Enums;
enum GuestNotificationState: string
{
case DRAFT = 'draft';
case ACTIVE = 'active';
case ARCHIVED = 'archived';
public function label(): string
{
return match ($this) {
self::DRAFT => __('Entwurf'),
self::ACTIVE => __('Aktiv'),
self::ARCHIVED => __('Archiviert'),
};
}
}

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Enums;
enum GuestNotificationType: string
{
case BROADCAST = 'broadcast';
case SUPPORT_TIP = 'support_tip';
case UPLOAD_ALERT = 'upload_alert';
case ACHIEVEMENT_MAJOR = 'achievement_major';
case PHOTO_ACTIVITY = 'photo_activity';
case FEEDBACK_REQUEST = 'feedback_request';
public function label(): string
{
return match ($this) {
self::BROADCAST => __('Allgemeine Nachricht'),
self::SUPPORT_TIP => __('Support-Hinweis'),
self::UPLOAD_ALERT => __('Upload-Status'),
self::ACHIEVEMENT_MAJOR => __('Achievement'),
self::PHOTO_ACTIVITY => __('Fotoupdate'),
self::FEEDBACK_REQUEST => __('Feedback-Einladung'),
};
}
}