'Menunggu', self::ASSIGNMENT => 'Penugasan', self::VERIFICATION => 'Verifikasi', self::PAYMENT => 'Pembayaran', self::COMPLETED => 'Selesai', }; } public function getColor(): string|array|null { return match ($this) { self::PENDING => 'warning', self::ASSIGNMENT => 'info', self::VERIFICATION => 'primary', self::PAYMENT => 'secondary', self::COMPLETED => 'success', }; } public static function options(): array { return collect(self::cases()) ->mapWithKeys(fn ($case) => [$case->value => $case->getLabel()]) ->toArray(); } }