'Cache Hit', self::ApiFetched => 'API Fetched', self::NotFound => 'Not Found', self::Error => 'Error', self::ContactSubmitted => 'Contact Submitted', }; } public function getColor(): string { return match ($this) { self::CacheHit => 'success', self::ApiFetched => 'info', self::NotFound => 'warning', self::Error => 'danger', self::ContactSubmitted => 'primary', }; } public function getIcon(): string { return match ($this) { self::CacheHit => 'heroicon-m-check-circle', self::ApiFetched => 'heroicon-m-cloud-arrow-down', self::NotFound => 'heroicon-m-magnifying-glass', self::Error => 'heroicon-m-x-circle', self::ContactSubmitted => 'heroicon-m-envelope', }; } }