12-05-2026 Frontend dev
This commit is contained in:
parent
405df0a122
commit
5b8bdf4182
779 changed files with 480564 additions and 6241 deletions
23
app/Enums/PressReleaseStatus.php
Normal file
23
app/Enums/PressReleaseStatus.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum PressReleaseStatus: string
|
||||
{
|
||||
case Draft = 'draft';
|
||||
case Review = 'review';
|
||||
case Published = 'published';
|
||||
case Rejected = 'rejected';
|
||||
case Archived = 'archived';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Draft => 'Entwurf',
|
||||
self::Review => 'In Pruefung',
|
||||
self::Published => 'Veroeffentlicht',
|
||||
self::Rejected => 'Abgelehnt',
|
||||
self::Archived => 'Archiviert',
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue