var/cache/dev/twig/6f/6f57eb3a0d0bf1f4706447c9297ffabb.php line 47

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* product/detail.html.twig */
  14. class __TwigTemplate_409d5d3d1d97b296862f2c312379945c extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.             'additionalimages' => [$this'block_additionalimages'],
  25.             'colorvariants' => [$this'block_colorvariants'],
  26.             'detailinfos' => [$this'block_detailinfos'],
  27.             'salesinfos' => [$this'block_salesinfos'],
  28.             'description' => [$this'block_description'],
  29.             'attributes' => [$this'block_attributes'],
  30.             'productrelations' => [$this'block_productrelations'],
  31.         ];
  32.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  33.         $this->checkSecurity();
  34.     }
  35.     protected function doGetParent(array $context)
  36.     {
  37.         // line 5
  38.         return "layouts/layout.html.twig";
  39.     }
  40.     protected function doDisplay(array $context, array $blocks = [])
  41.     {
  42.         $macros $this->macros;
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product/detail.html.twig"));
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product/detail.html.twig"));
  47.         // line 3
  48.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("product/macros.html.twig""product/detail.html.twig"3)->unwrap();
  49.         // line 5
  50.         $this->parent $this->loadTemplate("layouts/layout.html.twig""product/detail.html.twig"5);
  51.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  52.         
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  54.         
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  56.     }
  57.     // line 7
  58.     public function block_content($context, array $blocks = [])
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  65.         // line 8
  66.         echo "
  67.     <div id=\"main-content\" class=\"main-content\">
  68.         <div class=\"d-md-none mt-3\">
  69.             ";
  70.         // line 12
  71.         if ((twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'12$this->source); })()), "manufacturer", [], "any"falsefalsetrue12) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'12$this->source); })()), "manufacturer", [], "any"falsefalsetrue12), "logo", [], "any"falsefalsetrue12))) {
  72.             // line 13
  73.             echo "                ";
  74.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'13$this->source); })()), "manufacturer", [], "any"falsefalsetrue13), "logo", [], "any"falsefalsetrue13), "thumbnail", ["product_detail_manufacturer"], "method"falsefalsetrue13), "getHTML", [["imgAttributes" => ["class" => "img-fluid float-right"]]], "method"falsefalsetrue13), 13$this->source);
  75.             echo "
  76.             ";
  77.         }
  78.         // line 15
  79.         echo "            <div class=\"page-header\">
  80.                 <h1>";
  81.         // line 16
  82.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'16$this->source); })()), "oSName", [], "any"falsefalsetrue16), 16$this->source), "html"nulltrue);
  83.         echo "</h1>
  84.             </div>
  85.         </div>
  86.         <div class=\"bg-white my-3\">
  87.             <div class=\"row\">
  88.                 <div class=\"col-md-6 mb-4\">
  89.                     ";
  90.         // line 24
  91.         if (twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'24$this->source); })()), "mainImage", [], "any"falsefalsetrue24)) {
  92.             // line 25
  93.             echo "
  94.                         <div class=\"p-3\">
  95.                             <a href=\"";
  96.             // line 27
  97.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'27$this->source); })()), "mainImage", [], "any"falsefalsetrue27), "getThumbnail", ["galleryLightbox"], "method"falsefalsetrue27), 27$this->source);
  98.             echo "\" class=\"thumbnail\">
  99.                                 ";
  100.             // line 28
  101.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'28$this->source); })()), "mainImage", [], "any"falsefalsetrue28), "thumbnail", ["product_detail"], "method"falsefalsetrue28), "getHTML", [["imgAttributes" => ["class" => "img-thumbnail1 img-fluid"]]], "method"falsefalsetrue28), 28$this->source);
  102.             echo "
  103.                             </a>
  104.                             ";
  105.             // line 31
  106.             $this->displayBlock('additionalimages'$context$blocks);
  107.             // line 53
  108.             echo "                        </div>
  109.                     ";
  110.         }
  111.         // line 55
  112.         echo "                </div>
  113.                 <div class=\"col-md-6 mb-4\">
  114.                     <div class=\"p-3 pt-4\">
  115.                         <div class=\"row d-none d-md-block mb-3\">
  116.                             <div class=\"col-12\">
  117.                                 ";
  118.         // line 63
  119.         if ((twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'63$this->source); })()), "manufacturer", [], "any"falsefalsetrue63) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'63$this->source); })()), "manufacturer", [], "any"falsefalsetrue63), "logo", [], "any"falsefalsetrue63))) {
  120.             // line 64
  121.             echo "                                    ";
  122.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'64$this->source); })()), "manufacturer", [], "any"falsefalsetrue64), "logo", [], "any"falsefalsetrue64), "thumbnail", ["product_detail_manufacturer"], "method"falsefalsetrue64), "getHTML", [["imgAttributes" => ["class" => "img-fluid float-right"]]], "method"falsefalsetrue64), 64$this->source);
  123.             echo "
  124.                                 ";
  125.         }
  126.         // line 66
  127.         echo "
  128.                                 <h2 class=\"\">";
  129.         // line 67
  130.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'67$this->source); })()), "oSName", [], "any"falsefalsetrue67), 67$this->source), "html"nulltrue);
  131.         echo "</h2>
  132.                             </div>
  133.                         </div>
  134.                         <div class=\"row\">
  135.                             ";
  136.         // line 72
  137.         $this->displayBlock('colorvariants'$context$blocks);
  138.         // line 86
  139.         echo "
  140.                             ";
  141.         // line 87
  142.         $this->displayBlock('detailinfos'$context$blocks);
  143.         // line 100
  144.         echo "
  145.                             ";
  146.         // line 101
  147.         $this->displayBlock('salesinfos'$context$blocks);
  148.         // line 117
  149.         echo "
  150.                         </div>
  151.                         <hr/>
  152.                         <div class=\"mt-4 text-center\">
  153.                             ";
  154.         // line 122
  155.         $context["priceInfo"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'122$this->source); })()), "oSPriceInfo", [], "any"falsefalsetrue122);
  156.         // line 123
  157.         echo "                            ";
  158.         $context["price"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'123$this->source); })()), "oSPrice", [], "any"falsefalsetrue123);
  159.         // line 124
  160.         echo "
  161.                             ";
  162.         // line 125
  163.         if (twig_get_attribute($this->env$this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo"$context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.'125$this->source); })()), "rules", [], "any"falsefalsetrue125)) {
  164.             // line 126
  165.             echo "
  166.                                 <div class=\"alert alert-success mb-4\" role=\"alert\">
  167.                                     <p class=\"small mb-2\"><strong>";
  168.             // line 129
  169.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.your-benefits"), "html"nulltrue);
  170.             echo "</strong></p>
  171.                                     <ul class=\"list-unstyled mb-0 small\">
  172.                                         ";
  173.             // line 132
  174.             $context['_parent'] = $context;
  175.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo"$context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.'132$this->source); })()), "rules", [], "any"falsefalsetrue132));
  176.             foreach ($context['_seq'] as $context["_key"] => $context["rule"]) {
  177.                 // line 133
  178.                 echo "                                            <li>";
  179.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["rule"], "label", [], "any"falsefalsetrue133), 133$this->source), "html"nulltrue);
  180.                 echo "</li>
  181.                                         ";
  182.             }
  183.             $_parent $context['_parent'];
  184.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rule'], $context['_parent'], $context['loop']);
  185.             $context array_intersect_key($context$_parent) + $_parent;
  186.             // line 135
  187.             echo "                                    </ul>
  188.                                 </div>
  189.                             ";
  190.         }
  191.         // line 140
  192.         echo "
  193.                             ";
  194.         // line 141
  195.         if (twig_get_attribute($this->env$this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo"$context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.'141$this->source); })()), "hasDiscount", [], "any"falsefalsetrue141)) {
  196.             // line 142
  197.             echo "                                <p class=\"detail-price original mb-3\">";
  198.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo"$context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.'142$this->source); })()), "originalPrice", [], "any"falsefalsetrue142), 142$this->source), "html"nulltrue);
  199.             echo "</p>
  200.                             ";
  201.         }
  202.         // line 144
  203.         echo "
  204.                             <p class=\"detail-price mb-2\">";
  205.         // line 145
  206.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'145$this->source); })()), 145$this->source), "html"nulltrue);
  207.         echo "</p>
  208.                             <div class=\"detail-tax text-muted\">
  209.                                 <ul class=\"list-unstyled\">
  210.                                     ";
  211.         // line 149
  212.         $context['_parent'] = $context;
  213.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'149$this->source); })()), "taxEntries", [], "any"falsefalsetrue149));
  214.         foreach ($context['_seq'] as $context["_key"] => $context["taxEntry"]) {
  215.             // line 150
  216.             echo "                                        <li>";
  217.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["taxEntry"], "entry", [], "any"falsefalsetrue150), "name", [], "any"falsefalsetrue150), 150$this->source), "html"nulltrue);
  218.             echo ": ";
  219.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["taxEntry"], "percent", [], "any"falsefalsetrue150), 150$this->source), "html"nulltrue);
  220.             echo "% (";
  221.             echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\Currency']->format($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["taxEntry"], "amount", [], "any"falsefalsetrue150), "asNumeric", [], "any"falsefalsetrue150), 150$this->source), $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'150$this->source); })()), "currency", [], "any"falsefalsetrue150), "shortName", [], "any"falsefalsetrue150), 150$this->source)), "html"nulltrue);
  222.             echo ")</li>
  223.                                     ";
  224.         }
  225.         $_parent $context['_parent'];
  226.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxEntry'], $context['_parent'], $context['loop']);
  227.         $context array_intersect_key($context$_parent) + $_parent;
  228.         // line 152
  229.         echo "                                </ul>
  230.                             </div>
  231.                             ";
  232.         // line 155
  233.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'155$this->source); })()), "saleInformation", [], "any"falsefalsetrue155), "saleInformation", [], "any"falsefalsetrue155)) {
  234.             // line 156
  235.             echo "                                <p class=\"small text-muted mt-1\">";
  236.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.available-in"), "html"nulltrue);
  237.             echo " ";
  238.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_lower_filter($this->env, ("attribute." $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'156$this->source); })()), "saleInformation", [], "any"falsefalsetrue156), "saleInformation", [], "any"falsefalsetrue156), "availabilityType", [], "any"falsefalsetrue156), 156$this->source)))), "html"nulltrue);
  239.             echo "</p>
  240.                             ";
  241.         }
  242.         // line 158
  243.         echo "                        </div>
  244.                         <a href=\"";
  245.         // line 160
  246.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-add-to-cart", ["id" => twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'160$this->source); })()), "id", [], "any"falsefalsetrue160)]), "html"nulltrue);
  247.         echo "\" class=\"btn btn-success btn-block\">";
  248.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.add-to-cart"), "html"nulltrue);
  249.         echo "</a>
  250.                     </div>
  251.                 </div>
  252.             </div>
  253.             <hr>
  254.             ";
  255.         // line 170
  256.         $this->displayBlock('description'$context$blocks);
  257.         // line 180
  258.         echo "
  259.             ";
  260.         // line 181
  261.         $this->displayBlock('attributes'$context$blocks);
  262.         // line 280
  263.         echo "
  264.             ";
  265.         // line 281
  266.         $this->displayBlock('productrelations'$context$blocks);
  267.         // line 305
  268.         echo "
  269.         </div>
  270.     </div>
  271. ";
  272.         
  273.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  274.         
  275.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  276.     }
  277.     // line 31
  278.     public function block_additionalimages($context, array $blocks = [])
  279.     {
  280.         $macros $this->macros;
  281.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  282.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""additionalimages"));
  283.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  284.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""additionalimages"));
  285.         // line 32
  286.         echo "                                ";
  287.         $context["additionalImages"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'32$this->source); })()), "additionalImages", [], "any"falsefalsetrue32);
  288.         // line 33
  289.         echo "                                ";
  290.         if ((isset($context["additionalImages"]) || array_key_exists("additionalImages"$context) ? $context["additionalImages"] : (function () { throw new RuntimeError('Variable "additionalImages" does not exist.'33$this->source); })())) {
  291.             // line 34
  292.             echo "
  293.                                     <div class=\"row\">
  294.                                         ";
  295.             // line 37
  296.             $context['_parent'] = $context;
  297.             $context['_seq'] = twig_ensure_traversable((isset($context["additionalImages"]) || array_key_exists("additionalImages"$context) ? $context["additionalImages"] : (function () { throw new RuntimeError('Variable "additionalImages" does not exist.'37$this->source); })()));
  298.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  299.                 // line 38
  300.                 echo "
  301.                                             <div class=\"col-4 mt-3\">
  302.                                                 <a href=\"";
  303.                 // line 41
  304.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "getThumbnail", ["galleryLightbox"], "method"falsefalsetrue41), 41$this->source);
  305.                 echo "\" class=\"thumbnail\">
  306.                                                     ";
  307.                 // line 42
  308.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "thumbnail", ["product_detail_small"], "method"falsefalsetrue42), "getHTML", [["imgAttributes" => ["class" => "img-thumbnail1 img-fluid"]]], "method"falsefalsetrue42), 42$this->source);
  309.                 echo "
  310.                                                 </a>
  311.                                             </div>
  312.                                         ";
  313.             }
  314.             $_parent $context['_parent'];
  315.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  316.             $context array_intersect_key($context$_parent) + $_parent;
  317.             // line 48
  318.             echo "
  319.                                     </div>
  320.                                 ";
  321.         }
  322.         // line 52
  323.         echo "                            ";
  324.         
  325.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  326.         
  327.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  328.     }
  329.     // line 72
  330.     public function block_colorvariants($context, array $blocks = [])
  331.     {
  332.         $macros $this->macros;
  333.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  334.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""colorvariants"));
  335.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  336.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""colorvariants"));
  337.         // line 73
  338.         echo "                                <dl class=\"item-property col-12\">
  339.                                     <dt>";
  340.         // line 74
  341.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.color"), "html"nulltrue);
  342.         echo "</dt>
  343.                                     <dd>
  344.                                         ";
  345.         // line 76
  346.         $context['_parent'] = $context;
  347.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'76$this->source); })()), "colorVariants", [], "any"falsefalsetrue76));
  348.         foreach ($context['_seq'] as $context["_key"] => $context["colorVariant"]) {
  349.             // line 77
  350.             echo "                                            <a href=\"";
  351.             echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\ProductPageExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["colorVariant"], 77$this->source)), "html"nulltrue);
  352.             echo "\"
  353.                                                class=\"btn ";
  354.             // line 78
  355.             echo (((twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'78$this->source); })()), "id", [], "any"falsefalsetrue78) == twig_get_attribute($this->env$this->source$context["colorVariant"], "id", [], "any"falsefalsetrue78))) ? ("btn-primary") : ("btn-outline-primary"));
  356.             echo "\">
  357.                                                 ";
  358.             // line 79
  359.             echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\ProductPageExtension']->getColorName($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colorVariant"], "color", [], "any"falsefalsetrue79), 79$this->source)), "html"nulltrue);
  360.             echo "
  361.                                             </a>
  362.                                         ";
  363.         }
  364.         $_parent $context['_parent'];
  365.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['colorVariant'], $context['_parent'], $context['loop']);
  366.         $context array_intersect_key($context$_parent) + $_parent;
  367.         // line 82
  368.         echo "                                    </dd>
  369.                                 </dl>
  370.                             ";
  371.         
  372.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  373.         
  374.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  375.     }
  376.     // line 87
  377.     public function block_detailinfos($context, array $blocks = [])
  378.     {
  379.         $macros $this->macros;
  380.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  381.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""detailinfos"));
  382.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  383.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""detailinfos"));
  384.         // line 88
  385.         echo "                                ";
  386.         if (twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'88$this->source); })()), "bodyStyle", [], "any"falsefalsetrue88)) {
  387.             // line 89
  388.             echo "                                    <dl class=\"item-property col-6\">
  389.                                         <dt>";
  390.             // line 90
  391.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.body-style"), "html"nulltrue);
  392.             echo "</dt>
  393.                                         <dd>";
  394.             // line 91
  395.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'91$this->source); })()), "bodyStyle", [], "any"falsefalsetrue91), "name", [], "any"falsefalsetrue91), 91$this->source), "html"nulltrue);
  396.             echo "</dd>
  397.                                     </dl>
  398.                                 ";
  399.         }
  400.         // line 94
  401.         echo "
  402.                                 <dl class=\"item-property col-6\">
  403.                                     <dt>";
  404.         // line 96
  405.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.car-class"), "html"nulltrue);
  406.         echo "</dt>
  407.                                     <dd>";
  408.         // line 97
  409.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_lower_filter($this->env, ("attribute." $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'97$this->source); })()), "carClass", [], "any"falsefalsetrue97), 97$this->source)))), "html"nulltrue);
  410.         echo "</dd>
  411.                                 </dl>
  412.                             ";
  413.         
  414.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  415.         
  416.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  417.     }
  418.     // line 101
  419.     public function block_salesinfos($context, array $blocks = [])
  420.     {
  421.         $macros $this->macros;
  422.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  423.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""salesinfos"));
  424.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  425.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""salesinfos"));
  426.         // line 102
  427.         echo "
  428.                                 ";
  429.         // line 103
  430.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'103$this->source); })()), "saleInformation", [], "any"falsefalsetrue103), "saleInformation", [], "any"falsefalsetrue103)) {
  431.             // line 104
  432.             echo "
  433.                                     <dl class=\"item-property col-6 mb-0\">
  434.                                         <dt>";
  435.             // line 106
  436.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.condition"), "html"nulltrue);
  437.             echo "</dt>
  438.                                         <dd>";
  439.             // line 107
  440.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_lower_filter($this->env, ("attribute." $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'107$this->source); })()), "saleInformation", [], "any"falsefalsetrue107), "saleInformation", [], "any"falsefalsetrue107), "condition", [], "any"falsefalsetrue107), 107$this->source)))), "html"nulltrue);
  441.             echo "</dd>
  442.                                     </dl>
  443.                                     <dl class=\"item-property col-6 mb-0\">
  444.                                         <dt>";
  445.             // line 111
  446.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.milage"), "html"nulltrue);
  447.             echo "</dt>
  448.                                         <dd>";
  449.             // line 112
  450.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'112$this->source); })()), "saleInformation", [], "any"falsefalsetrue112), "saleInformation", [], "any"falsefalsetrue112), "milage", [], "any"falsefalsetrue112), 112$this->source), "html"nulltrue);
  451.             echo "</dd>
  452.                                     </dl>
  453.                                 ";
  454.         }
  455.         // line 116
  456.         echo "                            ";
  457.         
  458.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  459.         
  460.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  461.     }
  462.     // line 170
  463.     public function block_description($context, array $blocks = [])
  464.     {
  465.         $macros $this->macros;
  466.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  467.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  468.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  469.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  470.         // line 171
  471.         echo "                <div class=\"mt-5 col-12 text-center\">
  472.                     <h4 class=\"text-center\">";
  473.         // line 172
  474.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.additional-information"), "html"nulltrue);
  475.         echo "</h4>
  476.                     ";
  477.         // line 174
  478.         if (twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'174$this->source); })()), "description", [], "any"falsefalsetrue174)) {
  479.             // line 175
  480.             echo "                        <p>";
  481.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'175$this->source); })()), "description", [], "any"falsefalsetrue175), 175$this->source);
  482.             echo "</p>
  483.                     ";
  484.         }
  485.         // line 177
  486.         echo "
  487.                 </div>
  488.             ";
  489.         
  490.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  491.         
  492.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  493.     }
  494.     // line 181
  495.     public function block_attributes($context, array $blocks = [])
  496.     {
  497.         $macros $this->macros;
  498.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  499.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""attributes"));
  500.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  501.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""attributes"));
  502.         // line 182
  503.         echo "                <div class=\"col-12\">
  504.                 <ul class=\"nav nav-tabs\" id=\"attributes\" role=\"tablist\">
  505.                     <li class=\"nav-item\">
  506.                         <a class=\"nav-link active\" id=\"home-tab\" data-toggle=\"tab\" href=\"#home\" role=\"tab\" aria-controls=\"home\" aria-selected=\"true\">";
  507.         // line 186
  508.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.general"), "html"nulltrue);
  509.         echo "</a>
  510.                     </li>
  511.                     ";
  512.         // line 188
  513.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'188$this->source); })()), "attributes", [], "any"falsefalsetrue188), "dimensions", [], "any"falsefalsetrue188) || twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'188$this->source); })()), "attributes", [], "any"falsefalsetrue188), "bodywork", [], "any"falsefalsetrue188))) {
  514.             // line 189
  515.             echo "                        <li class=\"nav-item\">
  516.                             <a class=\"nav-link\" id=\"dimensions-tab\" data-toggle=\"tab\" href=\"#dimensions\" role=\"tab\" aria-controls=\"dimensions\" aria-selected=\"false\">";
  517.             // line 190
  518.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.dimensions"), "html"nulltrue);
  519.             echo "</a>
  520.                         </li>
  521.                     ";
  522.         }
  523.         // line 193
  524.         echo "                    ";
  525.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'193$this->source); })()), "attributes", [], "any"falsefalsetrue193), "engine", [], "any"falsefalsetrue193) || twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'193$this->source); })()), "attributes", [], "any"falsefalsetrue193), "transmission", [], "any"falsefalsetrue193))) {
  526.             // line 194
  527.             echo "                        <li class=\"nav-item\">
  528.                             <a class=\"nav-link\" id=\"engine-tab\" data-toggle=\"tab\" href=\"#engine\" role=\"tab\" aria-controls=\"engine\" aria-selected=\"false\">";
  529.             // line 195
  530.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.engine"), "html"nulltrue);
  531.             echo "</a>
  532.                         </li>
  533.                     ";
  534.         }
  535.         // line 198
  536.         echo "                </ul>
  537.                 <div class=\"tab-content\" id=\"myTabContent\">
  538.                     <div class=\"tab-pane fade show active\" id=\"home\" role=\"tabpanel\" aria-labelledby=\"home-tab\">
  539.                         <div class=\"m-3\">
  540.                             <div class=\"row\">
  541.                                 ";
  542.         // line 206
  543.         if (twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'206$this->source); })()), "manufacturer", [], "any"falsefalsetrue206)) {
  544.             // line 207
  545.             echo "                                    <dl class=\"item-property col-6 col-md-3\">
  546.                                         <dt>";
  547.             // line 208
  548.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.manufacturer"), "html"nulltrue);
  549.             echo "</dt>
  550.                                         <dd>";
  551.             // line 209
  552.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'209$this->source); })()), "manufacturer", [], "any"falsefalsetrue209), "name", [], "any"falsefalsetrue209), 209$this->source), "html"nulltrue);
  553.             echo "</dd>
  554.                                     </dl>
  555.                                 ";
  556.         }
  557.         // line 212
  558.         echo "
  559.                                 ";
  560.         // line 213
  561.         echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'213$this->source); })()), "productionYear", [], "any"falsefalsetrue213), "general.productionYear"], 213$context$this->getSourceContext());
  562.         echo "
  563.                                 ";
  564.         // line 215
  565.         if (twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'215$this->source); })()), "country", [], "any"falsefalsetrue215)) {
  566.             // line 216
  567.             echo "                                    <dl class=\"item-property col-6 col-md-3\">
  568.                                         <dt>";
  569.             // line 217
  570.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.country"), "html"nulltrue);
  571.             echo "</dt>
  572.                                         <dd>";
  573.             // line 218
  574.             echo twig_escape_filter($this->env$this->env->getFilter('country')->getCallable()($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'218$this->source); })()), "country", [], "any"falsefalsetrue218), 218$this->source)), "html"nulltrue);
  575.             echo "</dd>
  576.                                     </dl>
  577.                                 ";
  578.         }
  579.         // line 221
  580.         echo "
  581.                             </div>
  582.                         </div>
  583.                     </div>
  584.                     ";
  585.         // line 227
  586.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'227$this->source); })()), "attributes", [], "any"falsefalsetrue227), "dimensions", [], "any"falsefalsetrue227) || twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'227$this->source); })()), "attributes", [], "any"falsefalsetrue227), "bodywork", [], "any"falsefalsetrue227))) {
  587.             // line 228
  588.             echo "                        <div class=\"tab-pane fade\" id=\"dimensions\" role=\"tabpanel\" aria-labelledby=\"dimensions-tab\">
  589.                             <div class=\"m-3\">
  590.                                 <div class=\"row\">
  591.                                     ";
  592.             // line 234
  593.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'234$this->source); })()), "attributes", [], "any"falsefalsetrue234), "dimensions", [], "any"falsefalsetrue234)) {
  594.                 // line 235
  595.                 echo "                                        ";
  596.                 echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'235$this->source); })()), "attributes", [], "any"falsefalsetrue235), "dimensions", [], "any"falsefalsetrue235), "length", [], "any"falsefalsetrue235), "general.length"], 235$context$this->getSourceContext());
  597.                 echo "
  598.                                         ";
  599.                 // line 236
  600.                 echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'236$this->source); })()), "attributes", [], "any"falsefalsetrue236), "dimensions", [], "any"falsefalsetrue236), "width", [], "any"falsefalsetrue236), "general.width"], 236$context$this->getSourceContext());
  601.                 echo "
  602.                                         ";
  603.                 // line 237
  604.                 echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'237$this->source); })()), "attributes", [], "any"falsefalsetrue237), "dimensions", [], "any"falsefalsetrue237), "wheelbase", [], "any"falsefalsetrue237), "general.wheelbase"], 237$context$this->getSourceContext());
  605.                 echo "
  606.                                         ";
  607.                 // line 238
  608.                 echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'238$this->source); })()), "attributes", [], "any"falsefalsetrue238), "dimensions", [], "any"falsefalsetrue238), "weight", [], "any"falsefalsetrue238), "general.weight"], 238$context$this->getSourceContext());
  609.                 echo "
  610.                                     ";
  611.             }
  612.             // line 240
  613.             echo "
  614.                                     ";
  615.             // line 241
  616.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'241$this->source); })()), "attributes", [], "any"falsefalsetrue241), "bodywork", [], "any"falsefalsetrue241)) {
  617.                 // line 242
  618.                 echo "                                        ";
  619.                 echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'242$this->source); })()), "attributes", [], "any"falsefalsetrue242), "bodywork", [], "any"falsefalsetrue242), "numberOfDoors", [], "any"falsefalsetrue242), "general.numberOfDoors"], 242$context$this->getSourceContext());
  620.                 echo "
  621.                                         ";
  622.                 // line 243
  623.                 echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'243$this->source); })()), "attributes", [], "any"falsefalsetrue243), "bodywork", [], "any"falsefalsetrue243), "numberOfSeats", [], "any"falsefalsetrue243), "general.numberOfSeats"], 243$context$this->getSourceContext());
  624.                 echo "
  625.                                     ";
  626.             }
  627.             // line 245
  628.             echo "
  629.                                 </div>
  630.                             </div>
  631.                         </div>
  632.                     ";
  633.         }
  634.         // line 252
  635.         echo "                    ";
  636.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'252$this->source); })()), "attributes", [], "any"falsefalsetrue252), "engine", [], "any"falsefalsetrue252) || twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'252$this->source); })()), "attributes", [], "any"falsefalsetrue252), "transmission", [], "any"falsefalsetrue252))) {
  637.             // line 253
  638.             echo "                        <div class=\"tab-pane fade\" id=\"engine\" role=\"tabpanel\" aria-labelledby=\"engine-tab\">
  639.                             <div class=\"m-3\">
  640.                                 <div class=\"row\">
  641.                                     ";
  642.             // line 259
  643.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'259$this->source); })()), "attributes", [], "any"falsefalsetrue259), "engine", [], "any"falsefalsetrue259)) {
  644.                 // line 260
  645.                 echo "                                        ";
  646.                 echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'260$this->source); })()), "attributes", [], "any"falsefalsetrue260), "engine", [], "any"falsefalsetrue260), "cylinders", [], "any"falsefalsetrue260), "general.cylinders"], 260$context$this->getSourceContext());
  647.                 echo "
  648.                                         ";
  649.                 // line 261
  650.                 echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'261$this->source); })()), "attributes", [], "any"falsefalsetrue261), "engine", [], "any"falsefalsetrue261), "capacity", [], "any"falsefalsetrue261), "general.capacity"], 261$context$this->getSourceContext());
  651.                 echo "
  652.                                         ";
  653.                 // line 262
  654.                 echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'262$this->source); })()), "attributes", [], "any"falsefalsetrue262), "engine", [], "any"falsefalsetrue262), "power", [], "any"falsefalsetrue262), "general.power"], 262$context$this->getSourceContext());
  655.                 echo "
  656.                                         ";
  657.                 // line 263
  658.                 echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'263$this->source); })()), "attributes", [], "any"falsefalsetrue263), "engine", [], "any"falsefalsetrue263), "engineLocation", [], "any"falsefalsetrue263), "general.engineLocation"], 263$context$this->getSourceContext());
  659.                 echo "
  660.                                     ";
  661.             }
  662.             // line 265
  663.             echo "
  664.                                     ";
  665.             // line 266
  666.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'266$this->source); })()), "attributes", [], "any"falsefalsetrue266), "transmission", [], "any"falsefalsetrue266)) {
  667.                 // line 267
  668.                 echo "                                        ";
  669.                 echo twig_call_macro($macros["macros"], "macro_attribute", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'267$this->source); })()), "attributes", [], "any"falsefalsetrue267), "transmission", [], "any"falsefalsetrue267), "wheelDrive", [], "any"falsefalsetrue267), "general.wheelDrive"true"attribute."], 267$context$this->getSourceContext());
  670.                 echo "
  671.                                     ";
  672.             }
  673.             // line 269
  674.             echo "
  675.                                 </div>
  676.                             </div>
  677.                         </div>
  678.                     ";
  679.         }
  680.         // line 276
  681.         echo "                </div>
  682.             </div>
  683.             ";
  684.         
  685.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  686.         
  687.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  688.     }
  689.     // line 281
  690.     public function block_productrelations($context, array $blocks = [])
  691.     {
  692.         $macros $this->macros;
  693.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  694.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""productrelations"));
  695.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  696.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""productrelations"));
  697.         // line 282
  698.         echo "                ";
  699.         $context["accessories"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'282$this->source); })()), "accessories", [], "any"falsefalsetrue282);
  700.         // line 283
  701.         echo "
  702.                 ";
  703.         // line 284
  704.         if (twig_get_attribute($this->env$this->source, (isset($context["accessories"]) || array_key_exists("accessories"$context) ? $context["accessories"] : (function () { throw new RuntimeError('Variable "accessories" does not exist.'284$this->source); })()), "count", [], "any"falsefalsetrue284)) {
  705.             // line 285
  706.             echo "
  707.                     <hr>
  708.                     <div class=\"mt-5 col-12\">
  709.                         <h4 class=\"text-center\">";
  710.             // line 289
  711.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.accessories"), "html"nulltrue);
  712.             echo "</h4>
  713.                         <div class=\"row\">
  714.                             ";
  715.             // line 292
  716.             $context['_parent'] = $context;
  717.             $context['_seq'] = twig_ensure_traversable((isset($context["accessories"]) || array_key_exists("accessories"$context) ? $context["accessories"] : (function () { throw new RuntimeError('Variable "accessories" does not exist.'292$this->source); })()));
  718.             $context['loop'] = [
  719.               'parent' => $context['_parent'],
  720.               'index0' => 0,
  721.               'index'  => 1,
  722.               'first'  => true,
  723.             ];
  724.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  725.                 $length count($context['_seq']);
  726.                 $context['loop']['revindex0'] = $length 1;
  727.                 $context['loop']['revindex'] = $length;
  728.                 $context['loop']['length'] = $length;
  729.                 $context['loop']['last'] = === $length;
  730.             }
  731.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  732.                 // line 293
  733.                 echo "
  734.                                 <div class=\"col-md-3 d-flex align-items-stretch\">
  735.                                     ";
  736.                 // line 295
  737.                 $this->loadTemplate("product/product_teaser.html.twig""product/detail.html.twig"295)->display(twig_array_merge($context, ["product" => $context["item"]]));
  738.                 // line 296
  739.                 echo "                                </div>
  740.                             ";
  741.                 ++$context['loop']['index0'];
  742.                 ++$context['loop']['index'];
  743.                 $context['loop']['first'] = false;
  744.                 if (isset($context['loop']['length'])) {
  745.                     --$context['loop']['revindex0'];
  746.                     --$context['loop']['revindex'];
  747.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  748.                 }
  749.             }
  750.             $_parent $context['_parent'];
  751.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  752.             $context array_intersect_key($context$_parent) + $_parent;
  753.             // line 299
  754.             echo "                        </div>
  755.                     </div>
  756.                 ";
  757.         }
  758.         // line 304
  759.         echo "            ";
  760.         
  761.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  762.         
  763.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  764.     }
  765.     /**
  766.      * @codeCoverageIgnore
  767.      */
  768.     public function getTemplateName()
  769.     {
  770.         return "product/detail.html.twig";
  771.     }
  772.     /**
  773.      * @codeCoverageIgnore
  774.      */
  775.     public function isTraitable()
  776.     {
  777.         return false;
  778.     }
  779.     /**
  780.      * @codeCoverageIgnore
  781.      */
  782.     public function getDebugInfo()
  783.     {
  784.         return array (  862 => 304,  855 => 299,  839 => 296,  837 => 295,  833 => 293,  816 => 292,  810 => 289,  804 => 285,  802 => 284,  799 => 283,  796 => 282,  786 => 281,  773 => 276,  764 => 269,  758 => 267,  756 => 266,  753 => 265,  748 => 263,  744 => 262,  740 => 261,  735 => 260,  733 => 259,  725 => 253,  722 => 252,  713 => 245,  708 => 243,  703 => 242,  701 => 241,  698 => 240,  693 => 238,  689 => 237,  685 => 236,  680 => 235,  678 => 234,  670 => 228,  668 => 227,  660 => 221,  654 => 218,  650 => 217,  647 => 216,  645 => 215,  640 => 213,  637 => 212,  631 => 209,  627 => 208,  624 => 207,  622 => 206,  612 => 198,  606 => 195,  603 => 194,  600 => 193,  594 => 190,  591 => 189,  589 => 188,  584 => 186,  578 => 182,  568 => 181,  556 => 177,  550 => 175,  548 => 174,  543 => 172,  540 => 171,  530 => 170,  520 => 116,  513 => 112,  509 => 111,  502 => 107,  498 => 106,  494 => 104,  492 => 103,  489 => 102,  479 => 101,  466 => 97,  462 => 96,  458 => 94,  452 => 91,  448 => 90,  445 => 89,  442 => 88,  432 => 87,  419 => 82,  410 => 79,  406 => 78,  401 => 77,  397 => 76,  392 => 74,  389 => 73,  379 => 72,  369 => 52,  363 => 48,  351 => 42,  347 => 41,  342 => 38,  338 => 37,  333 => 34,  330 => 33,  327 => 32,  317 => 31,  303 => 305,  301 => 281,  298 => 280,  296 => 181,  293 => 180,  291 => 170,  276 => 160,  272 => 158,  264 => 156,  262 => 155,  257 => 152,  244 => 150,  240 => 149,  233 => 145,  230 => 144,  224 => 142,  222 => 141,  219 => 140,  212 => 135,  203 => 133,  199 => 132,  193 => 129,  188 => 126,  186 => 125,  183 => 124,  180 => 123,  178 => 122,  171 => 117,  169 => 101,  166 => 100,  164 => 87,  161 => 86,  159 => 72,  151 => 67,  148 => 66,  142 => 64,  140 => 63,  130 => 55,  126 => 53,  124 => 31,  118 => 28,  114 => 27,  110 => 25,  108 => 24,  97 => 16,  94 => 15,  88 => 13,  86 => 12,  80 => 8,  70 => 7,  59 => 5,  57 => 3,  44 => 5,);
  785.     }
  786.     public function getSourceContext()
  787.     {
  788.         return new Source("{# @var product \\App\\Model\\Product\\Car #}
  789. {% import 'product/macros.html.twig' as macros %}
  790. {% extends 'layouts/layout.html.twig' %}
  791. {% block content %}
  792.     <div id=\"main-content\" class=\"main-content\">
  793.         <div class=\"d-md-none mt-3\">
  794.             {% if(product.manufacturer and product.manufacturer.logo)  %}
  795.                 {{ product.manufacturer.logo.thumbnail('product_detail_manufacturer').getHTML({imgAttributes: {class: 'img-fluid float-right'}})|raw }}
  796.             {%  endif  %}
  797.             <div class=\"page-header\">
  798.                 <h1>{{ product.oSName }}</h1>
  799.             </div>
  800.         </div>
  801.         <div class=\"bg-white my-3\">
  802.             <div class=\"row\">
  803.                 <div class=\"col-md-6 mb-4\">
  804.                     {% if(product.mainImage) %}
  805.                         <div class=\"p-3\">
  806.                             <a href=\"{{ product.mainImage.getThumbnail('galleryLightbox')|raw }}\" class=\"thumbnail\">
  807.                                 {{ product.mainImage.thumbnail('product_detail').getHTML({imgAttributes: {class: 'img-thumbnail1 img-fluid'}})|raw }}
  808.                             </a>
  809.                             {% block additionalimages %}
  810.                                 {% set additionalImages = product.additionalImages %}
  811.                                 {%  if(additionalImages) %}
  812.                                     <div class=\"row\">
  813.                                         {% for image in additionalImages %}
  814.                                             <div class=\"col-4 mt-3\">
  815.                                                 <a href=\"{{ image.getThumbnail('galleryLightbox')|raw }}\" class=\"thumbnail\">
  816.                                                     {{ image.thumbnail('product_detail_small').getHTML({imgAttributes: {class: 'img-thumbnail1 img-fluid'}})|raw }}
  817.                                                 </a>
  818.                                             </div>
  819.                                         {% endfor %}
  820.                                     </div>
  821.                                 {%  endif %}
  822.                             {% endblock %}
  823.                         </div>
  824.                     {% endif %}
  825.                 </div>
  826.                 <div class=\"col-md-6 mb-4\">
  827.                     <div class=\"p-3 pt-4\">
  828.                         <div class=\"row d-none d-md-block mb-3\">
  829.                             <div class=\"col-12\">
  830.                                 {% if(product.manufacturer and product.manufacturer.logo)  %}
  831.                                     {{ product.manufacturer.logo.thumbnail('product_detail_manufacturer').getHTML({imgAttributes: {class: 'img-fluid float-right'}})|raw }}
  832.                                 {%  endif  %}
  833.                                 <h2 class=\"\">{{ product.oSName }}</h2>
  834.                             </div>
  835.                         </div>
  836.                         <div class=\"row\">
  837.                             {% block colorvariants %}
  838.                                 <dl class=\"item-property col-12\">
  839.                                     <dt>{{ 'general.color' | trans }}</dt>
  840.                                     <dd>
  841.                                         {% for colorVariant in product.colorVariants %}
  842.                                             <a href=\"{{ app_product_detaillink(colorVariant) }}\"
  843.                                                class=\"btn {{ product.id == colorVariant.id ? 'btn-primary' : 'btn-outline-primary' }}\">
  844.                                                 {{ colorVariant.color | colorname }}
  845.                                             </a>
  846.                                         {% endfor %}
  847.                                     </dd>
  848.                                 </dl>
  849.                             {% endblock %}
  850.                             {% block detailinfos %}
  851.                                 {% if(product.bodyStyle) %}
  852.                                     <dl class=\"item-property col-6\">
  853.                                         <dt>{{ 'general.body-style' | trans }}</dt>
  854.                                         <dd>{{ product.bodyStyle.name }}</dd>
  855.                                     </dl>
  856.                                 {% endif %}
  857.                                 <dl class=\"item-property col-6\">
  858.                                     <dt>{{ 'general.car-class' | trans }}</dt>
  859.                                     <dd>{{ ('attribute.' ~ product.carClass) | lower | trans }}</dd>
  860.                                 </dl>
  861.                             {% endblock %}
  862.                             {% block salesinfos %}
  863.                                 {% if product.saleInformation.saleInformation %}
  864.                                     <dl class=\"item-property col-6 mb-0\">
  865.                                         <dt>{{ 'general.condition' | trans }}</dt>
  866.                                         <dd>{{ ('attribute.' ~ product.saleInformation.saleInformation.condition) | lower | trans}}</dd>
  867.                                     </dl>
  868.                                     <dl class=\"item-property col-6 mb-0\">
  869.                                         <dt>{{ 'general.milage' | trans }}</dt>
  870.                                         <dd>{{ product.saleInformation.saleInformation.milage}}</dd>
  871.                                     </dl>
  872.                                 {% endif %}
  873.                             {% endblock %}
  874.                         </div>
  875.                         <hr/>
  876.                         <div class=\"mt-4 text-center\">
  877.                             {% set priceInfo = product.oSPriceInfo %}
  878.                             {% set price = product.oSPrice %}
  879.                             {% if(priceInfo.rules) %}
  880.                                 <div class=\"alert alert-success mb-4\" role=\"alert\">
  881.                                     <p class=\"small mb-2\"><strong>{{ 'general.your-benefits' | trans }}</strong></p>
  882.                                     <ul class=\"list-unstyled mb-0 small\">
  883.                                         {% for rule in priceInfo.rules %}
  884.                                             <li>{{ rule.label }}</li>
  885.                                         {% endfor %}
  886.                                     </ul>
  887.                                 </div>
  888.                             {% endif %}
  889.                             {% if(priceInfo.hasDiscount) %}
  890.                                 <p class=\"detail-price original mb-3\">{{ priceInfo.originalPrice }}</p>
  891.                             {% endif %}
  892.                             <p class=\"detail-price mb-2\">{{ price }}</p>
  893.                             <div class=\"detail-tax text-muted\">
  894.                                 <ul class=\"list-unstyled\">
  895.                                     {% for taxEntry in price.taxEntries %}
  896.                                         <li>{{ taxEntry.entry.name }}: {{ taxEntry.percent }}% ({{ taxEntry.amount.asNumeric | currency(price.currency.shortName) }})</li>
  897.                                     {% endfor %}
  898.                                 </ul>
  899.                             </div>
  900.                             {% if product.saleInformation.saleInformation %}
  901.                                 <p class=\"small text-muted mt-1\">{{ 'general.available-in' | trans }} {{ ('attribute.' ~ product.saleInformation.saleInformation.availabilityType) | lower | trans }}</p>
  902.                             {% endif %}
  903.                         </div>
  904.                         <a href=\"{{ path('shop-add-to-cart', { id: product.id }) }}\" class=\"btn btn-success btn-block\">{{ 'general.add-to-cart' | trans }}</a>
  905.                     </div>
  906.                 </div>
  907.             </div>
  908.             <hr>
  909.             {% block description %}
  910.                 <div class=\"mt-5 col-12 text-center\">
  911.                     <h4 class=\"text-center\">{{ 'general.additional-information' | trans }}</h4>
  912.                     {% if(product.description) %}
  913.                         <p>{{ product.description | raw }}</p>
  914.                     {% endif %}
  915.                 </div>
  916.             {% endblock %}
  917.             {% block attributes %}
  918.                 <div class=\"col-12\">
  919.                 <ul class=\"nav nav-tabs\" id=\"attributes\" role=\"tablist\">
  920.                     <li class=\"nav-item\">
  921.                         <a class=\"nav-link active\" id=\"home-tab\" data-toggle=\"tab\" href=\"#home\" role=\"tab\" aria-controls=\"home\" aria-selected=\"true\">{{ 'general.general' | trans }}</a>
  922.                     </li>
  923.                     {% if(product.attributes.dimensions or product.attributes.bodywork) %}
  924.                         <li class=\"nav-item\">
  925.                             <a class=\"nav-link\" id=\"dimensions-tab\" data-toggle=\"tab\" href=\"#dimensions\" role=\"tab\" aria-controls=\"dimensions\" aria-selected=\"false\">{{ 'general.dimensions' | trans }}</a>
  926.                         </li>
  927.                     {% endif %}
  928.                     {% if(product.attributes.engine or product.attributes.transmission) %}
  929.                         <li class=\"nav-item\">
  930.                             <a class=\"nav-link\" id=\"engine-tab\" data-toggle=\"tab\" href=\"#engine\" role=\"tab\" aria-controls=\"engine\" aria-selected=\"false\">{{ 'general.engine' | trans }}</a>
  931.                         </li>
  932.                     {%  endif %}
  933.                 </ul>
  934.                 <div class=\"tab-content\" id=\"myTabContent\">
  935.                     <div class=\"tab-pane fade show active\" id=\"home\" role=\"tabpanel\" aria-labelledby=\"home-tab\">
  936.                         <div class=\"m-3\">
  937.                             <div class=\"row\">
  938.                                 {% if(product.manufacturer) %}
  939.                                     <dl class=\"item-property col-6 col-md-3\">
  940.                                         <dt>{{ 'general.manufacturer' | trans }}</dt>
  941.                                         <dd>{{ product.manufacturer.name }}</dd>
  942.                                     </dl>
  943.                                 {% endif %}
  944.                                 {{ macros.attribute(product.productionYear, 'general.productionYear') }}
  945.                                 {% if(product.country) %}
  946.                                     <dl class=\"item-property col-6 col-md-3\">
  947.                                         <dt>{{ 'general.country' | trans }}</dt>
  948.                                         <dd>{{ product.country | country }}</dd>
  949.                                     </dl>
  950.                                 {% endif %}
  951.                             </div>
  952.                         </div>
  953.                     </div>
  954.                     {% if(product.attributes.dimensions or product.attributes.bodywork) %}
  955.                         <div class=\"tab-pane fade\" id=\"dimensions\" role=\"tabpanel\" aria-labelledby=\"dimensions-tab\">
  956.                             <div class=\"m-3\">
  957.                                 <div class=\"row\">
  958.                                     {% if(product.attributes.dimensions) %}
  959.                                         {{ macros.attribute(product.attributes.dimensions.length, 'general.length') }}
  960.                                         {{ macros.attribute(product.attributes.dimensions.width, 'general.width') }}
  961.                                         {{ macros.attribute(product.attributes.dimensions.wheelbase, 'general.wheelbase') }}
  962.                                         {{ macros.attribute(product.attributes.dimensions.weight, 'general.weight') }}
  963.                                     {%  endif %}
  964.                                     {% if(product.attributes.bodywork) %}
  965.                                         {{ macros.attribute(product.attributes.bodywork.numberOfDoors, 'general.numberOfDoors') }}
  966.                                         {{ macros.attribute(product.attributes.bodywork.numberOfSeats, 'general.numberOfSeats') }}
  967.                                     {%  endif %}
  968.                                 </div>
  969.                             </div>
  970.                         </div>
  971.                     {%  endif %}
  972.                     {% if(product.attributes.engine or product.attributes.transmission) %}
  973.                         <div class=\"tab-pane fade\" id=\"engine\" role=\"tabpanel\" aria-labelledby=\"engine-tab\">
  974.                             <div class=\"m-3\">
  975.                                 <div class=\"row\">
  976.                                     {% if(product.attributes.engine) %}
  977.                                         {{ macros.attribute(product.attributes.engine.cylinders, 'general.cylinders') }}
  978.                                         {{ macros.attribute(product.attributes.engine.capacity, 'general.capacity') }}
  979.                                         {{ macros.attribute(product.attributes.engine.power, 'general.power') }}
  980.                                         {{ macros.attribute(product.attributes.engine.engineLocation, 'general.engineLocation') }}
  981.                                     {%  endif %}
  982.                                     {% if(product.attributes.transmission) %}
  983.                                         {{ macros.attribute(product.attributes.transmission.wheelDrive, 'general.wheelDrive', true, 'attribute.') }}
  984.                                     {%  endif %}
  985.                                 </div>
  986.                             </div>
  987.                         </div>
  988.                     {%  endif %}
  989.                 </div>
  990.             </div>
  991.             {% endblock %}
  992.             {% block productrelations %}
  993.                 {% set accessories = product.accessories %}
  994.                 {%  if(accessories.count) %}
  995.                     <hr>
  996.                     <div class=\"mt-5 col-12\">
  997.                         <h4 class=\"text-center\">{{ 'general.accessories' | trans }}</h4>
  998.                         <div class=\"row\">
  999.                             {% for item in accessories %}
  1000.                                 <div class=\"col-md-3 d-flex align-items-stretch\">
  1001.                                     {% include 'product/product_teaser.html.twig' with {'product': item} %}
  1002.                                 </div>
  1003.                             {% endfor %}
  1004.                         </div>
  1005.                     </div>
  1006.                 {% endif %}
  1007.             {% endblock %}
  1008.         </div>
  1009.     </div>
  1010. {% endblock %}""product/detail.html.twig""/var/www/html/templates/product/detail.html.twig");
  1011.     }
  1012.     
  1013.     public function checkSecurity()
  1014.     {
  1015.         static $tags = array("import" => 3"if" => 12"block" => 31"set" => 122"for" => 132"include" => 295);
  1016.         static $filters = array("raw" => 13"escape" => 16"trans" => 129"currency" => 150"lower" => 156"colorname" => 79"country" => 218);
  1017.         static $functions = array("path" => 160"app_product_detaillink" => 77);
  1018.         try {
  1019.             $this->sandbox->checkSecurity(
  1020.                 ['import''if''block''set''for''include'],
  1021.                 ['raw''escape''trans''currency''lower''colorname''country'],
  1022.                 ['path''app_product_detaillink']
  1023.             );
  1024.         } catch (SecurityError $e) {
  1025.             $e->setSourceContext($this->source);
  1026.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1027.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1028.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1029.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1030.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1031.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1032.             }
  1033.             throw $e;
  1034.         }
  1035.     }
  1036. }