Files
portal-api/app/Enums/WebDesign/WebDesignQuoteStatus.php
2026-07-06 08:00:23 +07:00

27 lines
577 B
PHP

<?php
namespace App\Enums\WebDesign;
enum WebDesignQuoteStatus: string
{
case DRAFT = 'draft';
case SENT = 'sent';
case ACCEPTED = 'accepted';
case REJECTED = 'rejected';
public function label(): string
{
return match ($this) {
self::DRAFT => 'Nháp',
self::SENT => 'Đã gửi khách',
self::ACCEPTED => 'Khách đồng ý',
self::REJECTED => 'Khách từ chối',
};
}
public static function values(): array
{
return array_column(self::cases(), 'value');
}
}