nang cap san sang import

This commit is contained in:
2026-05-01 04:33:00 +00:00
parent 6c74c17b48
commit 6ef2e9fe4e
93 changed files with 6542 additions and 12 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Enums;
enum ContractStatus: string
{
case ACTIVE = 'active';
case EXPIRED = 'expired';
case LIQUIDATED = 'liquidated';
public function label(): string
{
return match ($this) {
self::ACTIVE => 'Đang hiệu lực',
self::EXPIRED => 'Hết hạn',
self::LIQUIDATED => 'Đã thanh lý',
};
}
public function options(): array
{
return [
self::ACTIVE->value => self::ACTIVE->label(),
self::EXPIRED->value => self::EXPIRED->label(),
self::LIQUIDATED->value => self::LIQUIDATED->label(),
];
}
}