public function getBlocksWithFilter($onlyActive = true)
    {
        $query = Block::query()->with(self::$loadRelations)
            ->where('filter', '!=', null);

        if ($onlyActive) {
            $query->where('is_active', '=', true);
        }

        $blocks = $query->orderBy('weight', 'ASC')->get();

        return $blocks;
    }