var/cache/dev/twig/b1/b119af1dee6995c25bd8315e6bcacb73.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_144be3ca7993eeb827e315101a4053d7 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.                         <form id=\"shop_add_to_cart_form_";
  245.         // line 159
  246.         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.'159$this->source); })()), "id", [], "any"falsefalsetrue159), 159$this->source), "html"nulltrue);
  247.         echo "\" method=\"post\" action=\"";
  248.         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.'159$this->source); })()), "id", [], "any"falsefalsetrue159)]), "html"nulltrue);
  249.         echo "\">
  250.                             <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  251.         // line 160
  252.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("addToCart"), "html"nulltrue);
  253.         echo "\">
  254.                             <a href=\"#\"
  255.                                onclick=\"document.getElementById('shop_add_to_cart_form_";
  256.         // line 162
  257.         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.'162$this->source); })()), "id", [], "any"falsefalsetrue162), 162$this->source), "html"nulltrue);
  258.         echo "').submit();\"
  259.                                class=\"btn btn-success btn-block\">";
  260.         // line 163
  261.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.add-to-cart"), "html"nulltrue);
  262.         echo "</a>
  263.                         </form>
  264.                     </div>
  265.                 </div>
  266.             </div>
  267.             <hr>
  268.             ";
  269.         // line 174
  270.         $this->displayBlock('description'$context$blocks);
  271.         // line 184
  272.         echo "
  273.             ";
  274.         // line 185
  275.         $this->displayBlock('attributes'$context$blocks);
  276.         // line 284
  277.         echo "
  278.             ";
  279.         // line 285
  280.         $this->displayBlock('productrelations'$context$blocks);
  281.         // line 309
  282.         echo "
  283.         </div>
  284.     </div>
  285. ";
  286.         
  287.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  288.         
  289.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  290.     }
  291.     // line 31
  292.     public function block_additionalimages($context, array $blocks = [])
  293.     {
  294.         $macros $this->macros;
  295.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  296.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""additionalimages"));
  297.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  298.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""additionalimages"));
  299.         // line 32
  300.         echo "                                ";
  301.         $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);
  302.         // line 33
  303.         echo "                                ";
  304.         if ((isset($context["additionalImages"]) || array_key_exists("additionalImages"$context) ? $context["additionalImages"] : (function () { throw new RuntimeError('Variable "additionalImages" does not exist.'33$this->source); })())) {
  305.             // line 34
  306.             echo "
  307.                                     <div class=\"row\">
  308.                                         ";
  309.             // line 37
  310.             $context['_parent'] = $context;
  311.             $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); })()));
  312.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  313.                 // line 38
  314.                 echo "
  315.                                             <div class=\"col-4 mt-3\">
  316.                                                 <a href=\"";
  317.                 // line 41
  318.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "getThumbnail", [=> "galleryLightbox"], "method"falsefalsetrue41), 41$this->source);
  319.                 echo "\" class=\"thumbnail\">
  320.                                                     ";
  321.                 // line 42
  322.                 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);
  323.                 echo "
  324.                                                 </a>
  325.                                             </div>
  326.                                         ";
  327.             }
  328.             $_parent $context['_parent'];
  329.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  330.             $context array_intersect_key($context$_parent) + $_parent;
  331.             // line 48
  332.             echo "
  333.                                     </div>
  334.                                 ";
  335.         }
  336.         // line 52
  337.         echo "                            ";
  338.         
  339.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  340.         
  341.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  342.     }
  343.     // line 72
  344.     public function block_colorvariants($context, array $blocks = [])
  345.     {
  346.         $macros $this->macros;
  347.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  348.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""colorvariants"));
  349.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  350.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""colorvariants"));
  351.         // line 73
  352.         echo "                                <dl class=\"item-property col-12\">
  353.                                     <dt>";
  354.         // line 74
  355.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.color"), "html"nulltrue);
  356.         echo "</dt>
  357.                                     <dd>
  358.                                         ";
  359.         // line 76
  360.         $context['_parent'] = $context;
  361.         $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));
  362.         foreach ($context['_seq'] as $context["_key"] => $context["colorVariant"]) {
  363.             // line 77
  364.             echo "                                            <a href=\"";
  365.             echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\ProductPageExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["colorVariant"], 77$this->source)), "html"nulltrue);
  366.             echo "\"
  367.                                                class=\"btn ";
  368.             // line 78
  369.             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"));
  370.             echo "\">
  371.                                                 ";
  372.             // line 79
  373.             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);
  374.             echo "
  375.                                             </a>
  376.                                         ";
  377.         }
  378.         $_parent $context['_parent'];
  379.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['colorVariant'], $context['_parent'], $context['loop']);
  380.         $context array_intersect_key($context$_parent) + $_parent;
  381.         // line 82
  382.         echo "                                    </dd>
  383.                                 </dl>
  384.                             ";
  385.         
  386.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  387.         
  388.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  389.     }
  390.     // line 87
  391.     public function block_detailinfos($context, array $blocks = [])
  392.     {
  393.         $macros $this->macros;
  394.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  395.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""detailinfos"));
  396.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  397.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""detailinfos"));
  398.         // line 88
  399.         echo "                                ";
  400.         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)) {
  401.             // line 89
  402.             echo "                                    <dl class=\"item-property col-6\">
  403.                                         <dt>";
  404.             // line 90
  405.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.body-style"), "html"nulltrue);
  406.             echo "</dt>
  407.                                         <dd>";
  408.             // line 91
  409.             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);
  410.             echo "</dd>
  411.                                     </dl>
  412.                                 ";
  413.         }
  414.         // line 94
  415.         echo "
  416.                                 <dl class=\"item-property col-6\">
  417.                                     <dt>";
  418.         // line 96
  419.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.car-class"), "html"nulltrue);
  420.         echo "</dt>
  421.                                     <dd>";
  422.         // line 97
  423.         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);
  424.         echo "</dd>
  425.                                 </dl>
  426.                             ";
  427.         
  428.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  429.         
  430.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  431.     }
  432.     // line 101
  433.     public function block_salesinfos($context, array $blocks = [])
  434.     {
  435.         $macros $this->macros;
  436.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  437.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""salesinfos"));
  438.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  439.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""salesinfos"));
  440.         // line 102
  441.         echo "
  442.                                 ";
  443.         // line 103
  444.         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)) {
  445.             // line 104
  446.             echo "
  447.                                     <dl class=\"item-property col-6 mb-0\">
  448.                                         <dt>";
  449.             // line 106
  450.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.condition"), "html"nulltrue);
  451.             echo "</dt>
  452.                                         <dd>";
  453.             // line 107
  454.             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);
  455.             echo "</dd>
  456.                                     </dl>
  457.                                     <dl class=\"item-property col-6 mb-0\">
  458.                                         <dt>";
  459.             // line 111
  460.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.milage"), "html"nulltrue);
  461.             echo "</dt>
  462.                                         <dd>";
  463.             // line 112
  464.             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);
  465.             echo "</dd>
  466.                                     </dl>
  467.                                 ";
  468.         }
  469.         // line 116
  470.         echo "                            ";
  471.         
  472.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  473.         
  474.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  475.     }
  476.     // line 174
  477.     public function block_description($context, array $blocks = [])
  478.     {
  479.         $macros $this->macros;
  480.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  481.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  482.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  483.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  484.         // line 175
  485.         echo "                <div class=\"mt-5 col-12 text-center\">
  486.                     <h4 class=\"text-center\">";
  487.         // line 176
  488.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.additional-information"), "html"nulltrue);
  489.         echo "</h4>
  490.                     ";
  491.         // line 178
  492.         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.'178$this->source); })()), "description", [], "any"falsefalsetrue178)) {
  493.             // line 179
  494.             echo "                        <p>";
  495.             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.'179$this->source); })()), "description", [], "any"falsefalsetrue179), 179$this->source);
  496.             echo "</p>
  497.                     ";
  498.         }
  499.         // line 181
  500.         echo "
  501.                 </div>
  502.             ";
  503.         
  504.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  505.         
  506.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  507.     }
  508.     // line 185
  509.     public function block_attributes($context, array $blocks = [])
  510.     {
  511.         $macros $this->macros;
  512.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  513.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""attributes"));
  514.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  515.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""attributes"));
  516.         // line 186
  517.         echo "                <div class=\"col-12\">
  518.                 <ul class=\"nav nav-tabs\" id=\"attributes\" role=\"tablist\">
  519.                     <li class=\"nav-item\">
  520.                         <a class=\"nav-link active\" id=\"home-tab\" data-toggle=\"tab\" href=\"#home\" role=\"tab\" aria-controls=\"home\" aria-selected=\"true\">";
  521.         // line 190
  522.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.general"), "html"nulltrue);
  523.         echo "</a>
  524.                     </li>
  525.                     ";
  526.         // line 192
  527.         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.'192$this->source); })()), "attributes", [], "any"falsefalsetrue192), "dimensions", [], "any"falsefalsetrue192) || 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.'192$this->source); })()), "attributes", [], "any"falsefalsetrue192), "bodywork", [], "any"falsefalsetrue192))) {
  528.             // line 193
  529.             echo "                        <li class=\"nav-item\">
  530.                             <a class=\"nav-link\" id=\"dimensions-tab\" data-toggle=\"tab\" href=\"#dimensions\" role=\"tab\" aria-controls=\"dimensions\" aria-selected=\"false\">";
  531.             // line 194
  532.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.dimensions"), "html"nulltrue);
  533.             echo "</a>
  534.                         </li>
  535.                     ";
  536.         }
  537.         // line 197
  538.         echo "                    ";
  539.         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.'197$this->source); })()), "attributes", [], "any"falsefalsetrue197), "engine", [], "any"falsefalsetrue197) || 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.'197$this->source); })()), "attributes", [], "any"falsefalsetrue197), "transmission", [], "any"falsefalsetrue197))) {
  540.             // line 198
  541.             echo "                        <li class=\"nav-item\">
  542.                             <a class=\"nav-link\" id=\"engine-tab\" data-toggle=\"tab\" href=\"#engine\" role=\"tab\" aria-controls=\"engine\" aria-selected=\"false\">";
  543.             // line 199
  544.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.engine"), "html"nulltrue);
  545.             echo "</a>
  546.                         </li>
  547.                     ";
  548.         }
  549.         // line 202
  550.         echo "                </ul>
  551.                 <div class=\"tab-content\" id=\"myTabContent\">
  552.                     <div class=\"tab-pane fade show active\" id=\"home\" role=\"tabpanel\" aria-labelledby=\"home-tab\">
  553.                         <div class=\"m-3\">
  554.                             <div class=\"row\">
  555.                                 ";
  556.         // line 210
  557.         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.'210$this->source); })()), "manufacturer", [], "any"falsefalsetrue210)) {
  558.             // line 211
  559.             echo "                                    <dl class=\"item-property col-6 col-md-3\">
  560.                                         <dt>";
  561.             // line 212
  562.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.manufacturer"), "html"nulltrue);
  563.             echo "</dt>
  564.                                         <dd>";
  565.             // line 213
  566.             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.'213$this->source); })()), "manufacturer", [], "any"falsefalsetrue213), "name", [], "any"falsefalsetrue213), 213$this->source), "html"nulltrue);
  567.             echo "</dd>
  568.                                     </dl>
  569.                                 ";
  570.         }
  571.         // line 216
  572.         echo "
  573.                                 ";
  574.         // line 217
  575.         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.'217$this->source); })()), "productionYear", [], "any"falsefalsetrue217), "general.productionYear"], 217$context$this->getSourceContext());
  576.         echo "
  577.                                 ";
  578.         // line 219
  579.         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.'219$this->source); })()), "country", [], "any"falsefalsetrue219)) {
  580.             // line 220
  581.             echo "                                    <dl class=\"item-property col-6 col-md-3\">
  582.                                         <dt>";
  583.             // line 221
  584.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.country"), "html"nulltrue);
  585.             echo "</dt>
  586.                                         <dd>";
  587.             // line 222
  588.             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.'222$this->source); })()), "country", [], "any"falsefalsetrue222), 222$this->source)), "html"nulltrue);
  589.             echo "</dd>
  590.                                     </dl>
  591.                                 ";
  592.         }
  593.         // line 225
  594.         echo "
  595.                             </div>
  596.                         </div>
  597.                     </div>
  598.                     ";
  599.         // line 231
  600.         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.'231$this->source); })()), "attributes", [], "any"falsefalsetrue231), "dimensions", [], "any"falsefalsetrue231) || 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.'231$this->source); })()), "attributes", [], "any"falsefalsetrue231), "bodywork", [], "any"falsefalsetrue231))) {
  601.             // line 232
  602.             echo "                        <div class=\"tab-pane fade\" id=\"dimensions\" role=\"tabpanel\" aria-labelledby=\"dimensions-tab\">
  603.                             <div class=\"m-3\">
  604.                                 <div class=\"row\">
  605.                                     ";
  606.             // line 238
  607.             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.'238$this->source); })()), "attributes", [], "any"falsefalsetrue238), "dimensions", [], "any"falsefalsetrue238)) {
  608.                 // line 239
  609.                 echo "                                        ";
  610.                 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.'239$this->source); })()), "attributes", [], "any"falsefalsetrue239), "dimensions", [], "any"falsefalsetrue239), "length", [], "any"falsefalsetrue239), "general.length"], 239$context$this->getSourceContext());
  611.                 echo "
  612.                                         ";
  613.                 // line 240
  614.                 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.'240$this->source); })()), "attributes", [], "any"falsefalsetrue240), "dimensions", [], "any"falsefalsetrue240), "width", [], "any"falsefalsetrue240), "general.width"], 240$context$this->getSourceContext());
  615.                 echo "
  616.                                         ";
  617.                 // line 241
  618.                 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.'241$this->source); })()), "attributes", [], "any"falsefalsetrue241), "dimensions", [], "any"falsefalsetrue241), "wheelbase", [], "any"falsefalsetrue241), "general.wheelbase"], 241$context$this->getSourceContext());
  619.                 echo "
  620.                                         ";
  621.                 // line 242
  622.                 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), "dimensions", [], "any"falsefalsetrue242), "weight", [], "any"falsefalsetrue242), "general.weight"], 242$context$this->getSourceContext());
  623.                 echo "
  624.                                     ";
  625.             }
  626.             // line 244
  627.             echo "
  628.                                     ";
  629.             // line 245
  630.             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.'245$this->source); })()), "attributes", [], "any"falsefalsetrue245), "bodywork", [], "any"falsefalsetrue245)) {
  631.                 // line 246
  632.                 echo "                                        ";
  633.                 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.'246$this->source); })()), "attributes", [], "any"falsefalsetrue246), "bodywork", [], "any"falsefalsetrue246), "numberOfDoors", [], "any"falsefalsetrue246), "general.numberOfDoors"], 246$context$this->getSourceContext());
  634.                 echo "
  635.                                         ";
  636.                 // line 247
  637.                 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.'247$this->source); })()), "attributes", [], "any"falsefalsetrue247), "bodywork", [], "any"falsefalsetrue247), "numberOfSeats", [], "any"falsefalsetrue247), "general.numberOfSeats"], 247$context$this->getSourceContext());
  638.                 echo "
  639.                                     ";
  640.             }
  641.             // line 249
  642.             echo "
  643.                                 </div>
  644.                             </div>
  645.                         </div>
  646.                     ";
  647.         }
  648.         // line 256
  649.         echo "                    ";
  650.         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.'256$this->source); })()), "attributes", [], "any"falsefalsetrue256), "engine", [], "any"falsefalsetrue256) || 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.'256$this->source); })()), "attributes", [], "any"falsefalsetrue256), "transmission", [], "any"falsefalsetrue256))) {
  651.             // line 257
  652.             echo "                        <div class=\"tab-pane fade\" id=\"engine\" role=\"tabpanel\" aria-labelledby=\"engine-tab\">
  653.                             <div class=\"m-3\">
  654.                                 <div class=\"row\">
  655.                                     ";
  656.             // line 263
  657.             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.'263$this->source); })()), "attributes", [], "any"falsefalsetrue263), "engine", [], "any"falsefalsetrue263)) {
  658.                 // line 264
  659.                 echo "                                        ";
  660.                 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.'264$this->source); })()), "attributes", [], "any"falsefalsetrue264), "engine", [], "any"falsefalsetrue264), "cylinders", [], "any"falsefalsetrue264), "general.cylinders"], 264$context$this->getSourceContext());
  661.                 echo "
  662.                                         ";
  663.                 // line 265
  664.                 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.'265$this->source); })()), "attributes", [], "any"falsefalsetrue265), "engine", [], "any"falsefalsetrue265), "capacity", [], "any"falsefalsetrue265), "general.capacity"], 265$context$this->getSourceContext());
  665.                 echo "
  666.                                         ";
  667.                 // line 266
  668.                 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.'266$this->source); })()), "attributes", [], "any"falsefalsetrue266), "engine", [], "any"falsefalsetrue266), "power", [], "any"falsefalsetrue266), "general.power"], 266$context$this->getSourceContext());
  669.                 echo "
  670.                                         ";
  671.                 // line 267
  672.                 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), "engine", [], "any"falsefalsetrue267), "engineLocation", [], "any"falsefalsetrue267), "general.engineLocation"], 267$context$this->getSourceContext());
  673.                 echo "
  674.                                     ";
  675.             }
  676.             // line 269
  677.             echo "
  678.                                     ";
  679.             // line 270
  680.             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.'270$this->source); })()), "attributes", [], "any"falsefalsetrue270), "transmission", [], "any"falsefalsetrue270)) {
  681.                 // line 271
  682.                 echo "                                        ";
  683.                 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.'271$this->source); })()), "attributes", [], "any"falsefalsetrue271), "transmission", [], "any"falsefalsetrue271), "wheelDrive", [], "any"falsefalsetrue271), "general.wheelDrive"true"attribute."], 271$context$this->getSourceContext());
  684.                 echo "
  685.                                     ";
  686.             }
  687.             // line 273
  688.             echo "
  689.                                 </div>
  690.                             </div>
  691.                         </div>
  692.                     ";
  693.         }
  694.         // line 280
  695.         echo "                </div>
  696.             </div>
  697.             ";
  698.         
  699.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  700.         
  701.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  702.     }
  703.     // line 285
  704.     public function block_productrelations($context, array $blocks = [])
  705.     {
  706.         $macros $this->macros;
  707.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  708.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""productrelations"));
  709.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  710.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""productrelations"));
  711.         // line 286
  712.         echo "                ";
  713.         $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.'286$this->source); })()), "accessories", [], "any"falsefalsetrue286);
  714.         // line 287
  715.         echo "
  716.                 ";
  717.         // line 288
  718.         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.'288$this->source); })()), "count", [], "any"falsefalsetrue288)) {
  719.             // line 289
  720.             echo "
  721.                     <hr>
  722.                     <div class=\"mt-5 col-12\">
  723.                         <h4 class=\"text-center\">";
  724.             // line 293
  725.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.accessories"), "html"nulltrue);
  726.             echo "</h4>
  727.                         <div class=\"row\">
  728.                             ";
  729.             // line 296
  730.             $context['_parent'] = $context;
  731.             $context['_seq'] = twig_ensure_traversable((isset($context["accessories"]) || array_key_exists("accessories"$context) ? $context["accessories"] : (function () { throw new RuntimeError('Variable "accessories" does not exist.'296$this->source); })()));
  732.             $context['loop'] = [
  733.               'parent' => $context['_parent'],
  734.               'index0' => 0,
  735.               'index'  => 1,
  736.               'first'  => true,
  737.             ];
  738.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  739.                 $length count($context['_seq']);
  740.                 $context['loop']['revindex0'] = $length 1;
  741.                 $context['loop']['revindex'] = $length;
  742.                 $context['loop']['length'] = $length;
  743.                 $context['loop']['last'] = === $length;
  744.             }
  745.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  746.                 // line 297
  747.                 echo "
  748.                                 <div class=\"col-md-3 d-flex align-items-stretch\">
  749.                                     ";
  750.                 // line 299
  751.                 $this->loadTemplate("product/product_teaser.html.twig""product/detail.html.twig"299)->display(twig_array_merge($context, ["product" => $context["item"]]));
  752.                 // line 300
  753.                 echo "                                </div>
  754.                             ";
  755.                 ++$context['loop']['index0'];
  756.                 ++$context['loop']['index'];
  757.                 $context['loop']['first'] = false;
  758.                 if (isset($context['loop']['length'])) {
  759.                     --$context['loop']['revindex0'];
  760.                     --$context['loop']['revindex'];
  761.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  762.                 }
  763.             }
  764.             $_parent $context['_parent'];
  765.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  766.             $context array_intersect_key($context$_parent) + $_parent;
  767.             // line 303
  768.             echo "                        </div>
  769.                     </div>
  770.                 ";
  771.         }
  772.         // line 308
  773.         echo "            ";
  774.         
  775.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  776.         
  777.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  778.     }
  779.     public function getTemplateName()
  780.     {
  781.         return "product/detail.html.twig";
  782.     }
  783.     public function isTraitable()
  784.     {
  785.         return false;
  786.     }
  787.     public function getDebugInfo()
  788.     {
  789.         return array (  875 => 308,  868 => 303,  852 => 300,  850 => 299,  846 => 297,  829 => 296,  823 => 293,  817 => 289,  815 => 288,  812 => 287,  809 => 286,  799 => 285,  786 => 280,  777 => 273,  771 => 271,  769 => 270,  766 => 269,  761 => 267,  757 => 266,  753 => 265,  748 => 264,  746 => 263,  738 => 257,  735 => 256,  726 => 249,  721 => 247,  716 => 246,  714 => 245,  711 => 244,  706 => 242,  702 => 241,  698 => 240,  693 => 239,  691 => 238,  683 => 232,  681 => 231,  673 => 225,  667 => 222,  663 => 221,  660 => 220,  658 => 219,  653 => 217,  650 => 216,  644 => 213,  640 => 212,  637 => 211,  635 => 210,  625 => 202,  619 => 199,  616 => 198,  613 => 197,  607 => 194,  604 => 193,  602 => 192,  597 => 190,  591 => 186,  581 => 185,  569 => 181,  563 => 179,  561 => 178,  556 => 176,  553 => 175,  543 => 174,  533 => 116,  526 => 112,  522 => 111,  515 => 107,  511 => 106,  507 => 104,  505 => 103,  502 => 102,  492 => 101,  479 => 97,  475 => 96,  471 => 94,  465 => 91,  461 => 90,  458 => 89,  455 => 88,  445 => 87,  432 => 82,  423 => 79,  419 => 78,  414 => 77,  410 => 76,  405 => 74,  402 => 73,  392 => 72,  382 => 52,  376 => 48,  364 => 42,  360 => 41,  355 => 38,  351 => 37,  346 => 34,  343 => 33,  340 => 32,  330 => 31,  316 => 309,  314 => 285,  311 => 284,  309 => 185,  306 => 184,  304 => 174,  290 => 163,  286 => 162,  281 => 160,  275 => 159,  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,);
  790.     }
  791.     public function getSourceContext()
  792.     {
  793.         return new Source("{# @var product \\App\\Model\\Product\\Car #}
  794. {% import 'product/macros.html.twig' as macros %}
  795. {% extends 'layouts/layout.html.twig' %}
  796. {% block content %}
  797.     <div id=\"main-content\" class=\"main-content\">
  798.         <div class=\"d-md-none mt-3\">
  799.             {% if(product.manufacturer and product.manufacturer.logo)  %}
  800.                 {{ product.manufacturer.logo.thumbnail('product_detail_manufacturer').getHTML({imgAttributes: {class: 'img-fluid float-right'}})|raw }}
  801.             {%  endif  %}
  802.             <div class=\"page-header\">
  803.                 <h1>{{ product.oSName }}</h1>
  804.             </div>
  805.         </div>
  806.         <div class=\"bg-white my-3\">
  807.             <div class=\"row\">
  808.                 <div class=\"col-md-6 mb-4\">
  809.                     {% if(product.mainImage) %}
  810.                         <div class=\"p-3\">
  811.                             <a href=\"{{ product.mainImage.getThumbnail('galleryLightbox')|raw }}\" class=\"thumbnail\">
  812.                                 {{ product.mainImage.thumbnail('product_detail').getHTML({imgAttributes: {class: 'img-thumbnail1 img-fluid'}})|raw }}
  813.                             </a>
  814.                             {% block additionalimages %}
  815.                                 {% set additionalImages = product.additionalImages %}
  816.                                 {%  if(additionalImages) %}
  817.                                     <div class=\"row\">
  818.                                         {% for image in additionalImages %}
  819.                                             <div class=\"col-4 mt-3\">
  820.                                                 <a href=\"{{ image.getThumbnail('galleryLightbox')|raw }}\" class=\"thumbnail\">
  821.                                                     {{ image.thumbnail('product_detail_small').getHTML({imgAttributes: {class: 'img-thumbnail1 img-fluid'}})|raw }}
  822.                                                 </a>
  823.                                             </div>
  824.                                         {% endfor %}
  825.                                     </div>
  826.                                 {%  endif %}
  827.                             {% endblock %}
  828.                         </div>
  829.                     {% endif %}
  830.                 </div>
  831.                 <div class=\"col-md-6 mb-4\">
  832.                     <div class=\"p-3 pt-4\">
  833.                         <div class=\"row d-none d-md-block mb-3\">
  834.                             <div class=\"col-12\">
  835.                                 {% if(product.manufacturer and product.manufacturer.logo)  %}
  836.                                     {{ product.manufacturer.logo.thumbnail('product_detail_manufacturer').getHTML({imgAttributes: {class: 'img-fluid float-right'}})|raw }}
  837.                                 {%  endif  %}
  838.                                 <h2 class=\"\">{{ product.oSName }}</h2>
  839.                             </div>
  840.                         </div>
  841.                         <div class=\"row\">
  842.                             {% block colorvariants %}
  843.                                 <dl class=\"item-property col-12\">
  844.                                     <dt>{{ 'general.color' | trans }}</dt>
  845.                                     <dd>
  846.                                         {% for colorVariant in product.colorVariants %}
  847.                                             <a href=\"{{ app_product_detaillink(colorVariant) }}\"
  848.                                                class=\"btn {{ product.id == colorVariant.id ? 'btn-primary' : 'btn-outline-primary' }}\">
  849.                                                 {{ colorVariant.color | colorname }}
  850.                                             </a>
  851.                                         {% endfor %}
  852.                                     </dd>
  853.                                 </dl>
  854.                             {% endblock %}
  855.                             {% block detailinfos %}
  856.                                 {% if(product.bodyStyle) %}
  857.                                     <dl class=\"item-property col-6\">
  858.                                         <dt>{{ 'general.body-style' | trans }}</dt>
  859.                                         <dd>{{ product.bodyStyle.name }}</dd>
  860.                                     </dl>
  861.                                 {% endif %}
  862.                                 <dl class=\"item-property col-6\">
  863.                                     <dt>{{ 'general.car-class' | trans }}</dt>
  864.                                     <dd>{{ ('attribute.' ~ product.carClass) | lower | trans }}</dd>
  865.                                 </dl>
  866.                             {% endblock %}
  867.                             {% block salesinfos %}
  868.                                 {% if product.saleInformation.saleInformation %}
  869.                                     <dl class=\"item-property col-6 mb-0\">
  870.                                         <dt>{{ 'general.condition' | trans }}</dt>
  871.                                         <dd>{{ ('attribute.' ~ product.saleInformation.saleInformation.condition) | lower | trans}}</dd>
  872.                                     </dl>
  873.                                     <dl class=\"item-property col-6 mb-0\">
  874.                                         <dt>{{ 'general.milage' | trans }}</dt>
  875.                                         <dd>{{ product.saleInformation.saleInformation.milage}}</dd>
  876.                                     </dl>
  877.                                 {% endif %}
  878.                             {% endblock %}
  879.                         </div>
  880.                         <hr/>
  881.                         <div class=\"mt-4 text-center\">
  882.                             {% set priceInfo = product.oSPriceInfo %}
  883.                             {% set price = product.oSPrice %}
  884.                             {% if(priceInfo.rules) %}
  885.                                 <div class=\"alert alert-success mb-4\" role=\"alert\">
  886.                                     <p class=\"small mb-2\"><strong>{{ 'general.your-benefits' | trans }}</strong></p>
  887.                                     <ul class=\"list-unstyled mb-0 small\">
  888.                                         {% for rule in priceInfo.rules %}
  889.                                             <li>{{ rule.label }}</li>
  890.                                         {% endfor %}
  891.                                     </ul>
  892.                                 </div>
  893.                             {% endif %}
  894.                             {% if(priceInfo.hasDiscount) %}
  895.                                 <p class=\"detail-price original mb-3\">{{ priceInfo.originalPrice }}</p>
  896.                             {% endif %}
  897.                             <p class=\"detail-price mb-2\">{{ price }}</p>
  898.                             <div class=\"detail-tax text-muted\">
  899.                                 <ul class=\"list-unstyled\">
  900.                                     {% for taxEntry in price.taxEntries %}
  901.                                         <li>{{ taxEntry.entry.name }}: {{ taxEntry.percent }}% ({{ taxEntry.amount.asNumeric | currency(price.currency.shortName) }})</li>
  902.                                     {% endfor %}
  903.                                 </ul>
  904.                             </div>
  905.                             {% if product.saleInformation.saleInformation %}
  906.                                 <p class=\"small text-muted mt-1\">{{ 'general.available-in' | trans }} {{ ('attribute.' ~ product.saleInformation.saleInformation.availabilityType) | lower | trans }}</p>
  907.                             {% endif %}
  908.                         </div>
  909.                         <form id=\"shop_add_to_cart_form_{{ product.id }}\" method=\"post\" action=\"{{ path('shop-add-to-cart', { id: product.id }) }}\">
  910.                             <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('addToCart') }}\">
  911.                             <a href=\"#\"
  912.                                onclick=\"document.getElementById('shop_add_to_cart_form_{{ product.id }}').submit();\"
  913.                                class=\"btn btn-success btn-block\">{{ 'general.add-to-cart' | trans }}</a>
  914.                         </form>
  915.                     </div>
  916.                 </div>
  917.             </div>
  918.             <hr>
  919.             {% block description %}
  920.                 <div class=\"mt-5 col-12 text-center\">
  921.                     <h4 class=\"text-center\">{{ 'general.additional-information' | trans }}</h4>
  922.                     {% if(product.description) %}
  923.                         <p>{{ product.description | raw }}</p>
  924.                     {% endif %}
  925.                 </div>
  926.             {% endblock %}
  927.             {% block attributes %}
  928.                 <div class=\"col-12\">
  929.                 <ul class=\"nav nav-tabs\" id=\"attributes\" role=\"tablist\">
  930.                     <li class=\"nav-item\">
  931.                         <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>
  932.                     </li>
  933.                     {% if(product.attributes.dimensions or product.attributes.bodywork) %}
  934.                         <li class=\"nav-item\">
  935.                             <a class=\"nav-link\" id=\"dimensions-tab\" data-toggle=\"tab\" href=\"#dimensions\" role=\"tab\" aria-controls=\"dimensions\" aria-selected=\"false\">{{ 'general.dimensions' | trans }}</a>
  936.                         </li>
  937.                     {% endif %}
  938.                     {% if(product.attributes.engine or product.attributes.transmission) %}
  939.                         <li class=\"nav-item\">
  940.                             <a class=\"nav-link\" id=\"engine-tab\" data-toggle=\"tab\" href=\"#engine\" role=\"tab\" aria-controls=\"engine\" aria-selected=\"false\">{{ 'general.engine' | trans }}</a>
  941.                         </li>
  942.                     {%  endif %}
  943.                 </ul>
  944.                 <div class=\"tab-content\" id=\"myTabContent\">
  945.                     <div class=\"tab-pane fade show active\" id=\"home\" role=\"tabpanel\" aria-labelledby=\"home-tab\">
  946.                         <div class=\"m-3\">
  947.                             <div class=\"row\">
  948.                                 {% if(product.manufacturer) %}
  949.                                     <dl class=\"item-property col-6 col-md-3\">
  950.                                         <dt>{{ 'general.manufacturer' | trans }}</dt>
  951.                                         <dd>{{ product.manufacturer.name }}</dd>
  952.                                     </dl>
  953.                                 {% endif %}
  954.                                 {{ macros.attribute(product.productionYear, 'general.productionYear') }}
  955.                                 {% if(product.country) %}
  956.                                     <dl class=\"item-property col-6 col-md-3\">
  957.                                         <dt>{{ 'general.country' | trans }}</dt>
  958.                                         <dd>{{ product.country | country }}</dd>
  959.                                     </dl>
  960.                                 {% endif %}
  961.                             </div>
  962.                         </div>
  963.                     </div>
  964.                     {% if(product.attributes.dimensions or product.attributes.bodywork) %}
  965.                         <div class=\"tab-pane fade\" id=\"dimensions\" role=\"tabpanel\" aria-labelledby=\"dimensions-tab\">
  966.                             <div class=\"m-3\">
  967.                                 <div class=\"row\">
  968.                                     {% if(product.attributes.dimensions) %}
  969.                                         {{ macros.attribute(product.attributes.dimensions.length, 'general.length') }}
  970.                                         {{ macros.attribute(product.attributes.dimensions.width, 'general.width') }}
  971.                                         {{ macros.attribute(product.attributes.dimensions.wheelbase, 'general.wheelbase') }}
  972.                                         {{ macros.attribute(product.attributes.dimensions.weight, 'general.weight') }}
  973.                                     {%  endif %}
  974.                                     {% if(product.attributes.bodywork) %}
  975.                                         {{ macros.attribute(product.attributes.bodywork.numberOfDoors, 'general.numberOfDoors') }}
  976.                                         {{ macros.attribute(product.attributes.bodywork.numberOfSeats, 'general.numberOfSeats') }}
  977.                                     {%  endif %}
  978.                                 </div>
  979.                             </div>
  980.                         </div>
  981.                     {%  endif %}
  982.                     {% if(product.attributes.engine or product.attributes.transmission) %}
  983.                         <div class=\"tab-pane fade\" id=\"engine\" role=\"tabpanel\" aria-labelledby=\"engine-tab\">
  984.                             <div class=\"m-3\">
  985.                                 <div class=\"row\">
  986.                                     {% if(product.attributes.engine) %}
  987.                                         {{ macros.attribute(product.attributes.engine.cylinders, 'general.cylinders') }}
  988.                                         {{ macros.attribute(product.attributes.engine.capacity, 'general.capacity') }}
  989.                                         {{ macros.attribute(product.attributes.engine.power, 'general.power') }}
  990.                                         {{ macros.attribute(product.attributes.engine.engineLocation, 'general.engineLocation') }}
  991.                                     {%  endif %}
  992.                                     {% if(product.attributes.transmission) %}
  993.                                         {{ macros.attribute(product.attributes.transmission.wheelDrive, 'general.wheelDrive', true, 'attribute.') }}
  994.                                     {%  endif %}
  995.                                 </div>
  996.                             </div>
  997.                         </div>
  998.                     {%  endif %}
  999.                 </div>
  1000.             </div>
  1001.             {% endblock %}
  1002.             {% block productrelations %}
  1003.                 {% set accessories = product.accessories %}
  1004.                 {%  if(accessories.count) %}
  1005.                     <hr>
  1006.                     <div class=\"mt-5 col-12\">
  1007.                         <h4 class=\"text-center\">{{ 'general.accessories' | trans }}</h4>
  1008.                         <div class=\"row\">
  1009.                             {% for item in accessories %}
  1010.                                 <div class=\"col-md-3 d-flex align-items-stretch\">
  1011.                                     {% include 'product/product_teaser.html.twig' with {'product': item} %}
  1012.                                 </div>
  1013.                             {% endfor %}
  1014.                         </div>
  1015.                     </div>
  1016.                 {% endif %}
  1017.             {% endblock %}
  1018.         </div>
  1019.     </div>
  1020. {% endblock %}""product/detail.html.twig""/var/www/www-data/data/www/pimcore.dev2.nowmedia.ru/templates/product/detail.html.twig");
  1021.     }
  1022.     
  1023.     public function checkSecurity()
  1024.     {
  1025.         static $tags = array("import" => 3"if" => 12"block" => 31"set" => 122"for" => 132"include" => 299);
  1026.         static $filters = array("raw" => 13"escape" => 16"trans" => 129"currency" => 150"lower" => 156"colorname" => 79"country" => 222);
  1027.         static $functions = array("path" => 159"csrf_token" => 160"app_product_detaillink" => 77);
  1028.         try {
  1029.             $this->sandbox->checkSecurity(
  1030.                 ['import''if''block''set''for''include'],
  1031.                 ['raw''escape''trans''currency''lower''colorname''country'],
  1032.                 ['path''csrf_token''app_product_detaillink']
  1033.             );
  1034.         } catch (SecurityError $e) {
  1035.             $e->setSourceContext($this->source);
  1036.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1037.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1038.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1039.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1040.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1041.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1042.             }
  1043.             throw $e;
  1044.         }
  1045.     }
  1046. }