diff --git a/src/EntityRelationsAchievements.php b/src/EntityRelationsAchievements.php index 726eca5..bca9996 100644 --- a/src/EntityRelationsAchievements.php +++ b/src/EntityRelationsAchievements.php @@ -61,6 +61,16 @@ public function inProgressAchievements(): Collection return $this->achievements()->whereNull('unlocked_at')->where('points', '>', 0)->get(); } + /** + * Get the entity's achievements not in progress. + * + * @return Collection + */ + public function notInProgressAchievements(): Collection + { + return $this->achievements()->whereNull('unlocked_at')->where('points', '=', 0)->get(); + } + /** * Get the entity's unlocked achievements. *