public function display($category)
    {

        $view = (View::exists("block::{$category}")) ? "block::{$category}" : "block::default";
        
        $category = $this->category
            ->scopeQuery(function ($query) use ($category) {
                return $query->with('blocks')->whereSlug($category);
            })->first();

        $blocks = $category->blocks;
        return view($view, compact('blocks', 'category'))->render();
    }