__('posts.status.draft'), self::Scheduled => __('posts.status.scheduled'), self::Publishing => __('posts.status.publishing'), self::Published => __('posts.status.published'), self::PartiallyPublished => __('posts.status.partially_published'), self::Failed => __('posts.status.failed'), }; } public function color(): string { return match ($this) { self::Draft => 'gray', self::Scheduled => 'blue', self::Publishing => 'yellow', self::Published => 'green', self::PartiallyPublished => 'orange', self::Failed => 'red', }; } }