12-05-2026 Frontend dev
This commit is contained in:
parent
405df0a122
commit
5b8bdf4182
779 changed files with 480564 additions and 6241 deletions
17
app/Enums/CompanyType.php
Normal file
17
app/Enums/CompanyType.php
Normal 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',
|
||||
};
|
||||
}
|
||||
}
|
||||
21
app/Enums/InvoiceStatus.php
Normal file
21
app/Enums/InvoiceStatus.php
Normal 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',
|
||||
};
|
||||
}
|
||||
}
|
||||
17
app/Enums/PaymentOptionType.php
Normal file
17
app/Enums/PaymentOptionType.php
Normal 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',
|
||||
};
|
||||
}
|
||||
}
|
||||
21
app/Enums/PaymentStatus.php
Normal file
21
app/Enums/PaymentStatus.php
Normal 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
19
app/Enums/Portal.php
Normal 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',
|
||||
};
|
||||
}
|
||||
}
|
||||
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',
|
||||
};
|
||||
}
|
||||
}
|
||||
21
app/Enums/RegistrationType.php
Normal file
21
app/Enums/RegistrationType.php
Normal 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',
|
||||
};
|
||||
}
|
||||
}
|
||||
21
app/Enums/UserPaymentOptionStatus.php
Normal file
21
app/Enums/UserPaymentOptionStatus.php
Normal 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',
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue