<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
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;

/* madeshop/template/madeshop/variant.twig */
class __TwigTemplate_3b5a2206fc95bd79cdd624ca78c31247893079131e773f7ca94c14406a99bdb9 extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        if (($context["variants"] ?? null)) {
            echo "\t\t  
  <div class=\"variant form-group\">
\t<label class=\"control-label olabel\">";
            // line 3
            echo ($context["title"] ?? null);
            echo "</label>
\t<ul class=\"color-input list-inline inlineb var";
            // line 4
            echo ($context["vimage"] ?? null);
            echo "\">
\t";
            // line 5
            if (twig_get_attribute($this->env, $this->source, ($context["color"] ?? null), "name", [], "any", false, false, false, 5)) {
                // line 6
                echo "\t<li class=\"icolor checked\" style=\"background:";
                echo twig_get_attribute($this->env, $this->source, ($context["color"] ?? null), "color_cod", [], "any", false, false, false, 6);
                echo ";\" data-toggle=\"tooltip\" title=\"";
                echo twig_get_attribute($this->env, $this->source, ($context["color"] ?? null), "name", [], "any", false, false, false, 6);
                echo "\"></li>
    ";
            } else {
                // line 8
                echo "    <li class=\"iimage checked no-href\"></li>
    ";
            }
            // line 10
            echo "\t";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["variants"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
                // line 11
                echo "\t";
                if (twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 11)) {
                    // line 12
                    echo "\t";
                    if (twig_get_attribute($this->env, $this->source, $context["product"], "color", [], "any", false, false, false, 12)) {
                        // line 13
                        echo "\t<li class=\"icolor\" style=\"background:";
                        echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "color", [], "any", false, false, false, 13), "color_cod", [], "any", false, false, false, 13);
                        echo ";\" data-toggle=\"tooltip\" title=\"";
                        echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "color", [], "any", false, false, false, 13), "color_name", [], "any", false, false, false, 13);
                        echo "\"><a href=\"";
                        echo twig_get_attribute($this->env, $this->source, $context["product"], "href", [], "any", false, false, false, 13);
                        echo "\"></a> </li>
\t";
                    } else {
                        // line 15
                        echo "\t<li class=\"iimage\"><a href=\"";
                        echo twig_get_attribute($this->env, $this->source, $context["product"], "href", [], "any", false, false, false, 15);
                        echo "\"><img src=\"";
                        echo twig_get_attribute($this->env, $this->source, $context["product"], "thumb", [], "any", false, false, false, 15);
                        echo "\" alt=\"";
                        echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 15);
                        echo "\" data-toggle=\"tooltip\" title=\"";
                        echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 15);
                        echo "\"/></a></li>
\t";
                    }
                    // line 17
                    echo "\t";
                }
                // line 18
                echo "\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 19
            echo "    </ul>\t
  </div>
";
        }
        // line 22
        echo "


";
    }

    public function getTemplateName()
    {
        return "madeshop/template/madeshop/variant.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  111 => 22,  106 => 19,  100 => 18,  97 => 17,  85 => 15,  75 => 13,  72 => 12,  69 => 11,  64 => 10,  60 => 8,  52 => 6,  50 => 5,  46 => 4,  42 => 3,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "madeshop/template/madeshop/variant.twig", "");
    }
}
