payment plans wip
This commit is contained in:
1 parent
3a74e45a3a
commit
61594777d7
15 files changed
+560
-158
No files matched your search
@@ -8,34 +8,30 @@ use Filament\Support\Contracts\HasLabel;
|
||||
|
||||
enum ProjektStatus: string implements HasColor, HasIcon, HasLabel
|
||||
{
|
||||
case TEST = 'test';
|
||||
case ENTWURF = 'entwurf';
|
||||
case ENFASSUNG = 'endfassung';
|
||||
case Entwurf = 'entwurf';
|
||||
case Endfassung = 'endfassung';
|
||||
|
||||
public function getLabel(): ?string
|
||||
{
|
||||
return match ($this) {
|
||||
self::TEST => 'Test',
|
||||
self::ENTWURF => 'Entwurf',
|
||||
self::ENFASSUNG => 'Endfassung',
|
||||
self::Entwurf => 'Entwurf',
|
||||
self::Endfassung => 'Endfassung',
|
||||
};
|
||||
}
|
||||
|
||||
public function getColor(): string|array|null
|
||||
{
|
||||
return match ($this) {
|
||||
self::TEST => 'gray',
|
||||
self::ENTWURF => 'primary',
|
||||
self::ENFASSUNG => 'success',
|
||||
self::Entwurf => 'primary',
|
||||
self::Endfassung => 'success',
|
||||
};
|
||||
}
|
||||
|
||||
public function getIcon(): ?string
|
||||
{
|
||||
return match ($this) {
|
||||
self::TEST => 'lucide-file-cog',
|
||||
self::ENTWURF => 'lucide-file-pen',
|
||||
self::ENFASSUNG => 'lucide-file-check',
|
||||
self::Entwurf => 'lucide-file-pen',
|
||||
self::Endfassung => 'lucide-file-check',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user