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

28
app/Enums/ServiceType.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
namespace App\Enums;
enum ServiceType: string
{
case MANAGEMENT_FEE = 'management_fee';
case GRATITUDE = 'gratitude';
case SELF_BUSINESS = 'self_business';
public function label(): string
{
return match ($this) {
self::MANAGEMENT_FEE => 'Phí quản lý',
self::GRATITUDE => 'Tri ân',
self::SELF_BUSINESS => 'Tự doanh',
};
}
public function options(): array
{
return [
self::MANAGEMENT_FEE->value => self::MANAGEMENT_FEE->label(),
self::GRATITUDE->value => self::GRATITUDE->label(),
self::SELF_BUSINESS->value => self::SELF_BUSINESS->label(),
];
}
}