<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* OfficeBrainPageBundle:tempUIElements:brand.html.twig */
class __TwigTemplate_a5b313932ed631fde851b461c1f057d5cffc2219a71a815b24ffd8291a14bdb0 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
            'home_page_brand' => [$this, 'block_home_page_brand'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        $this->displayBlock('home_page_brand', $context, $blocks);
    }

    public function block_home_page_brand($context, array $blocks = [])
    {
        // line 2
        echo "\t";
        $context["arrLocale"] = $this->env->getExtension('OfficeBrain\Bundle\CoreBundle\TwigExtension\Extension')->splitCultureFilter($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "locale", []));
        // line 3
        echo "\t<div class=\"container\">
\t\t<h3 class=\"h-title\">Popular
\t\t\t<b>Brands</b>
\t\t\t<a href=\"";
        // line 6
        echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getUrl("office_brain_search_bundle_browse_brand");
        echo "\" class=\"pull-right font-14\">See All</a> 
\t\t</h3>
\t\t";
        // line 8
        if (($this->getAttribute(($context["brandList"] ?? null), $this->getAttribute(($context["arrLocale"] ?? null), "culture", []), [], "array", true, true) && (twig_length_filter($this->env, $this->getAttribute(($context["brandList"] ?? null), $this->getAttribute(($context["arrLocale"] ?? null), "culture", []), [], "array")) > 0))) {
            // line 9
            echo "\t\t\t<div id=\"owl-carousel-brand\" class=\"owl-carousel owl-theme category-sellers\" data-auto-play=\"";
            if (($this->getAttribute(($context["ob_project_setting"] ?? null), "instance_theme_mode", []) == "draft")) {
                echo "false";
            } else {
                echo "3000";
            }
            echo "\" data-show-slides=\"10\">
\t\t\t\t";
            // line 10
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["brandList"] ?? null), $this->getAttribute(($context["arrLocale"] ?? null), "culture", []), [], "array"));
            foreach ($context['_seq'] as $context["brand_key"] => $context["brand"]) {
                // line 11
                echo "\t\t\t\t  ";
                if (($this->getAttribute($context["brand"], "status", []) == 1)) {
                    // line 12
                    echo "\t\t\t\t\t<div class=\"item\">
\t\t\t\t\t\t<div class=\"category-slider\">
\t\t\t\t\t\t  <div class=\"cat-img\">
\t\t\t\t\t\t\t<a href=\"";
                    // line 15
                    echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getUrl("office_brain_search_bundle_search", ["_locale" => $this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "locale", []), "main_filter" => "lineName", "search_query" => $this->getAttribute($context["brand"], "name", [])]), "html", null, true);
                    echo "\">
\t\t\t\t\t\t\t\t<img class=\"owl-lazy\" data-src=\"";
                    // line 16
                    echo twig_escape_filter($this->env, $this->getAttribute($context["brand"], "image", []), "html", null, true);
                    echo "\"  src=\"";
                    echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("images/uploads/media/20240326112149_image-load.gif", null, true), "html", null, true);
                    echo "\" alt=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($context["brand"], "name", []), "html", null, true);
                    echo "\">
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t
\t\t\t\t\t\t  </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t";
                }
                // line 23
                echo "\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['brand_key'], $context['brand'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 24
            echo "\t\t\t</div>
\t\t";
        }
        // line 26
        echo "\t</div>
";
    }

    public function getTemplateName()
    {
        return "OfficeBrainPageBundle:tempUIElements:brand.html.twig";
    }

    public function getDebugInfo()
    {
        return array (  101 => 26,  97 => 24,  91 => 23,  77 => 16,  73 => 15,  68 => 12,  65 => 11,  61 => 10,  52 => 9,  50 => 8,  45 => 6,  40 => 3,  37 => 2,  31 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "OfficeBrainPageBundle:tempUIElements:brand.html.twig", "/var/www/html/src/OfficeBrain/Bundle/PageBundle/Resources/views/tempUIElements/brand.html.twig");
    }
}
