feat: add guest notification center
This commit is contained in:
17
app/Enums/GuestNotificationAudience.php
Normal file
17
app/Enums/GuestNotificationAudience.php
Normal 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'),
|
||||
};
|
||||
}
|
||||
}
|
||||
19
app/Enums/GuestNotificationDeliveryStatus.php
Normal file
19
app/Enums/GuestNotificationDeliveryStatus.php
Normal 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'),
|
||||
};
|
||||
}
|
||||
}
|
||||
19
app/Enums/GuestNotificationState.php
Normal file
19
app/Enums/GuestNotificationState.php
Normal 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'),
|
||||
};
|
||||
}
|
||||
}
|
||||
25
app/Enums/GuestNotificationType.php
Normal file
25
app/Enums/GuestNotificationType.php
Normal 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'),
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user