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 ContractType: string
{
case SALE = 'sale';
case LEASE = 'lease';
case BCC = 'bcc';
public function label(): string
{
return match ($this) {
self::SALE => 'HĐ Mua bán',
self::LEASE => 'HĐ Thuê',
self::BCC => 'HĐ Hợp tác kinh doanh (BCC)',
};
}
public static function options(): array
{
return [
self::SALE->value => self::SALE->label(),
self::LEASE->value => self::LEASE->label(),
self::BCC->value => self::BCC->label(),
];
}
}