12-05-2026 Frontend dev
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run

This commit is contained in:
Kevin Adametz 2026-05-12 18:32:33 +02:00
parent 405df0a122
commit 5b8bdf4182
779 changed files with 480564 additions and 6241 deletions

17
app/Enums/CompanyType.php Normal file
View file

@ -0,0 +1,17 @@
<?php
namespace App\Enums;
enum CompanyType: string
{
case Company = 'company';
case Agency = 'agency';
public function label(): string
{
return match ($this) {
self::Company => 'Unternehmen',
self::Agency => 'Agentur',
};
}
}

View file

@ -0,0 +1,21 @@
<?php
namespace App\Enums;
enum InvoiceStatus: string
{
case Open = 'open';
case Paid = 'paid';
case Void = 'void';
case Uncollectible = 'uncollectible';
public function label(): string
{
return match ($this) {
self::Open => 'Offen',
self::Paid => 'Bezahlt',
self::Void => 'Storniert',
self::Uncollectible => 'Uneinbringlich',
};
}
}

View file

@ -0,0 +1,17 @@
<?php
namespace App\Enums;
enum PaymentOptionType: string
{
case Recurring = 'recurring';
case Onetime = 'onetime';
public function label(): string
{
return match ($this) {
self::Recurring => 'Wiederkehrend',
self::Onetime => 'Einmalig',
};
}
}

View file

@ -0,0 +1,21 @@
<?php
namespace App\Enums;
enum PaymentStatus: string
{
case Pending = 'pending';
case Succeeded = 'succeeded';
case Failed = 'failed';
case Refunded = 'refunded';
public function label(): string
{
return match ($this) {
self::Pending => 'Ausstehend',
self::Succeeded => 'Erfolgreich',
self::Failed => 'Fehlgeschlagen',
self::Refunded => 'Erstattet',
};
}
}

19
app/Enums/Portal.php Normal file
View file

@ -0,0 +1,19 @@
<?php
namespace App\Enums;
enum Portal: string
{
case Presseecho = 'presseecho';
case Businessportal24 = 'businessportal24';
case Both = 'both';
public function label(): string
{
return match ($this) {
self::Presseecho => 'Presseecho',
self::Businessportal24 => 'Businessportal24',
self::Both => 'Beide Portale',
};
}
}

View 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',
};
}
}

View file

@ -0,0 +1,21 @@
<?php
namespace App\Enums;
enum RegistrationType: string
{
case Agency = 'agency';
case Company = 'company';
case ApiUser = 'apiuser';
case ExistingLegacy = 'existing_legacy';
public function label(): string
{
return match ($this) {
self::Agency => 'Agentur',
self::Company => 'Unternehmen',
self::ApiUser => 'API-User',
self::ExistingLegacy => 'Legacy-Bestand',
};
}
}

View file

@ -0,0 +1,21 @@
<?php
namespace App\Enums;
enum UserPaymentOptionStatus: string
{
case Active = 'active';
case PastDue = 'past_due';
case Cancelled = 'cancelled';
case Grandfathered = 'grandfathered';
public function label(): string
{
return match ($this) {
self::Active => 'Aktiv',
self::PastDue => 'Ueberfaellig',
self::Cancelled => 'Gekuendigt',
self::Grandfathered => 'Bestandsschutz',
};
}
}