public function getBrickBySlug($slug)
    {
        $bricks = $this->repository->bricks;
        foreach ($bricks as $brick) {
            if ($brick->slug == $slug) {
                return $brick;
            }
        }

        return null;
    }