first commit

This commit is contained in:
f4ilji
2024-09-19 16:06:49 +05:00
commit b686638a39
1664 changed files with 428174 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App\Enums;
use Filament\Support\Contracts\HasLabel;
use Filament\Support\Contracts\HasColor;
enum CustomFormStatus: string implements HasLabel, HasColor
{
case PUBLISHED = 'published';
case HIDDEN = 'hidden';
public function getLabel(): ?string
{
return match ($this) {
self::PUBLISHED => 'Опубликовано',
self::HIDDEN => 'Скрыто',
};
}
public function getColor(): string|array|null
{
return match ($this) {
self::PUBLISHED => 'success',
self::HIDDEN => 'gray',
};
}
}