CheerfulNotification::getByKey('enum.data_change_decision.approved'), self::REJECTED => CheerfulNotification::getByKey('enum.data_change_decision.rejected'), }; } public function getColor(): string|array|null { return match ($this) { self::APPROVED => 'success', self::REJECTED => 'danger', }; } public static function options(): array { return collect(self::cases()) ->mapWithKeys(fn ($case) => [$case->value => $case->getLabel()]) ->toArray(); } }