initial commit

This commit is contained in:
I-Fun
2026-04-01 08:04:56 +07:00
commit e09c8a5fa9
111 changed files with 18022 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
namespace App\Enums;
enum ClientStatus: string
{
case Active = 'active';
case Inactive = 'inactive';
case Prospect = 'prospect';
public function label(): string
{
return match($this) {
self::Active => 'Active',
self::Inactive => 'Inactive',
self::Prospect => 'Prospect',
};
}
public function badgeClass(): string
{
return match($this) {
self::Active => 'badge-success',
self::Inactive => 'badge-error',
self::Prospect => 'badge-warning',
};
}
}