where('is_active', 1)->orderBy('template_key','asc')->findAll(); } public function findByKey(string $key): ?array { return $this->where('template_key', $key)->where('is_active', 1)->first(); } }