var/cache/dev/twig/92/92561c19e873cd290ee881c8b6eafd9e.php line 50

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. /* products-detail.html.twig */
  14. class __TwigTemplate_08643f3329158c8cc9487716086f58ff 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.         ];
  25.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros = $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "products-detail.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "products-detail.html.twig"));
  40.         $this->parent = $this->loadTemplate("layout.html.twig", "products-detail.html.twig", 1);
  41.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros = $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  55.         // line 4
  56.         echo "
  57.     ";
  58.         // line 5
  59.         $this->loadTemplate("includes/breadcrumb.html.twig", "products-detail.html.twig", 5)->display($context);
  60.         // line 6
  61.         echo "
  62.     ";
  63.         // line 7
  64.         $context["category"] = ((twig_test_iterable(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.', 7, $this->source); })()), "categories", [], "any", false, false, true, 7))) ? (twig_first($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.', 7, $this->source); })()), "categories", [], "any", false, false, true, 7), 7, $this->source))) : (false));
  65.         // line 8
  66.         echo "
  67.     <section class=\"section-filter\">
  68.         <div class=\"container-fluid\">
  69.             <div class=\"row align-items-center\">
  70.                 <div class=\"col-auto\">
  71.                     ";
  72.         // line 13
  73.         if ((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 13, $this->source); })())) {
  74.             // line 14
  75.             echo "                        <p class=\"h1\">";
  76.             echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 14, $this->source); })()), "name", [], "any", false, false, true, 14), 14, $this->source), "html", null, true);
  77.             echo "</p>
  78.                     ";
  79.         }
  80.         // line 16
  81.         echo "                </div>
  82.                 ";
  83.         // line 37
  84.         echo "            </div><!--/ .row -->
  85.         </div><!--/ .container -->
  86.     </section>
  87.     <section class=\"section-products\">
  88.         <div class=\"container-fluid\">
  89.             <div class=\"container-inner\">
  90.                 <div class=\"row\">
  91.                     <div class=\"col-auto\">
  92.                         <h1 class=\"h2 mb-1\">";
  93.         // line 46
  94.         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.', 46, $this->source); })()), "name", [], "any", false, false, true, 46), 46, $this->source), "html", null, true);
  95.         echo "</h1>
  96.                         ";
  97.         // line 48
  98.         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.', 48, $this->source); })()), "onOrder", [], "any", false, false, true, 48)) {
  99.             // line 49
  100.             echo "                            <span class=\"badge bg-danger\">";
  101.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Op bestelling!"), "html", null, true);
  102.             echo "</span>
  103.                         ";
  104.         }
  105.         // line 51
  106.         echo "
  107.                         <p class=\"text-primary mb-5\">";
  108.         // line 52
  109.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Code"), "html", null, true);
  110.         echo ": ";
  111.         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.', 52, $this->source); })()), "code", [], "any", false, false, true, 52), 52, $this->source), "html", null, true);
  112.         echo " â€” ";
  113.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Merk"), "html", null, true);
  114.         echo ": ";
  115.         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.', 52, $this->source); })()), "brand", [], "any", false, false, true, 52), 52, $this->source), "html", null, true);
  116.         echo " ";
  117.         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.', 52, $this->source); })()), "categoryTypes", [], "any", false, false, true, 52)) {
  118.             echo " â€” ";
  119.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Categorietype"), "html", null, true);
  120.             echo ": ";
  121.             echo twig_escape_filter($this->env, twig_join_filter(twig_array_map($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.', 52, $this->source); })()), "categoryTypes", [], "any", false, false, true, 52), 52, $this->source), function ($__t__) use ($context, $macros) { $context["t"] = $__t__; return twig_get_attribute($this->env, $this->source, (isset($context["t"]) || array_key_exists("t", $context) ? $context["t"] : (function () { throw new RuntimeError('Variable "t" does not exist.', 52, $this->source); })()), "name", [], "any", false, false, true, 52); }), ", "), "html", null, true);
  122.         }
  123.         echo "</p>
  124.                     </div>
  125.                     <div class=\"col-auto ms-auto\">
  126.                         <favorite-button
  127.                             product-id=\"";
  128.         // line 57
  129.         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.', 57, $this->source); })()), "id", [], "any", false, false, true, 57), 57, $this->source), "html", null, true);
  130.         echo "\"
  131.                             :is-current-favorite=\"";
  132.         // line 58
  133.         echo ((twig_in_filter(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.', 58, $this->source); })()), "id", [], "any", false, false, true, 58), (isset($context["favoriteIds"]) || array_key_exists("favoriteIds", $context) ? $context["favoriteIds"] : (function () { throw new RuntimeError('Variable "favoriteIds" does not exist.', 58, $this->source); })()))) ? ("true") : ("false"));
  134.         echo "\"
  135.                         ></favorite-button>
  136.                     </div>
  137.                     <favorite-modal></favorite-modal>
  138.                 </div>
  139.                 <div class=\"row\">
  140.                     <div class=\"col-lg-3\">
  141.                         ";
  142.         // line 68
  143.         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.', 68, $this->source); })()), "images", [], "any", false, false, true, 68)) {
  144.             // line 69
  145.             echo "                        ";
  146.             $context["imageList"] = $this->extensions['App\Twig\Extension\GeneralExtension']->jsonDecode($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.', 69, $this->source); })()), "images", [], "any", false, false, true, 69), 69, $this->source));
  147.             // line 70
  148.             echo "
  149.                         <div class=\"product-detail-images\">
  150.                             <!-- swiper -->
  151.                             <div id=\"detail-slider\" class=\"swiper swiper--detail\">
  152.                                 <div class=\"swiper-wrapper\">
  153.                                         ";
  154.             // line 75
  155.             $context['_parent'] = $context;
  156.             $context['_seq'] = twig_ensure_traversable((isset($context["imageList"]) || array_key_exists("imageList", $context) ? $context["imageList"] : (function () { throw new RuntimeError('Variable "imageList" does not exist.', 75, $this->source); })()));
  157.             foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
  158.                 // line 76
  159.                 echo "                                            <div class=\"swiper-slide\">
  160.                                                 <a href=\"";
  161.                 // line 77
  162.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["photo"], "lightboxImage", [], "any", false, false, true, 77), 77, $this->source), "html", null, true);
  163.                 echo "\" class=\"product-lightbox\"
  164.                                                    data-glightbox=\"type: image\">
  165.                                                     <img class=\"img-fluid\" src=\"";
  166.                 // line 79
  167.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["photo"], "thumbnailImage", [], "any", false, false, true, 79), 79, $this->source), "html", null, true);
  168.                 echo "\" alt=\"\">
  169.                                                 </a>
  170.                                             </div>
  171.                                         ";
  172.             }
  173.             $_parent = $context['_parent'];
  174.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
  175.             $context = array_intersect_key($context, $_parent) + $_parent;
  176.             // line 83
  177.             echo "                                </div>
  178.                                 <div class=\"swiper-button-prev\"></div>
  179.                                 <div class=\"swiper-button-next\"></div>
  180.                             </div><!--/ .swiper -->
  181.                             <!-- swiper -->
  182.                             <div class=\"swiper swiper--detail-thumbs\" id=\"detail-thumbs-slider\">
  183.                                 <div class=\"swiper-wrapper\">
  184.                                     ";
  185.             // line 92
  186.             $context['_parent'] = $context;
  187.             $context['_seq'] = twig_ensure_traversable((isset($context["imageList"]) || array_key_exists("imageList", $context) ? $context["imageList"] : (function () { throw new RuntimeError('Variable "imageList" does not exist.', 92, $this->source); })()));
  188.             foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
  189.                 // line 93
  190.                 echo "
  191.                                         <div class=\"swiper-slide\">
  192.                                             <img class=\"img-fluid\" src=\"";
  193.                 // line 95
  194.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["photo"], "thumbnailImage", [], "any", false, false, true, 95), 95, $this->source), "html", null, true);
  195.                 echo "\" alt=\"\">
  196.                                         </div>
  197.                                     ";
  198.             }
  199.             $_parent = $context['_parent'];
  200.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
  201.             $context = array_intersect_key($context, $_parent) + $_parent;
  202.             // line 98
  203.             echo "                                </div>
  204.                             </div><!--/ .swiper -->
  205.                         </div>
  206.                         ";
  207.         } else {
  208.             // line 102
  209.             echo "
  210.                             <div class=\"img-wrapper placeholder-img\">
  211.                                 <img src=\"";
  212.             // line 104
  213.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/placeholder.png"), "html", null, true);
  214.             echo "\" alt=\"\" class=\"img-fluid w-100\">
  215.                             </div>
  216.                         ";
  217.         }
  218.         // line 107
  219.         echo "
  220.                         ";
  221.         // line 108
  222.         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.', 108, $this->source); })()), "productsheet", [], "any", false, false, true, 108)) {
  223.             // line 109
  224.             echo "                            <div class=\"row\">
  225.                                     <div class=\"productsheet\">
  226.                                         <a class=\"btn btn-hyperlink icon-link\" href=\"";
  227.             // line 111
  228.             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.', 111, $this->source); })()), "productsheet", [], "any", false, false, true, 111), 111, $this->source), "html", null, true);
  229.             echo "\" target=\"_blank\">
  230.                                             ";
  231.             // line 112
  232.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk productfiche"), "html", null, true);
  233.             echo "
  234.                                             <i class=\"icon-link-ext\"></i>
  235.                                         </a>
  236.                                     </div>
  237.                             </div><!--/ .row -->
  238.                         ";
  239.         }
  240.         // line 118
  241.         echo "                    </div>
  242.                     <div class=\"col-lg-8 offset-lg-1\">
  243.                         <div class=\"row\">
  244.                             <div class=\"col-auto\">
  245.                                 <div class=\"product-detail-price\">
  246.                                     ";
  247.         // line 124
  248.         if ( !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 124, $this->source); })()), "OSPrice", [], "any", false, false, true, 124), "getAmount", [], "any", false, false, true, 124), "isZero", [], "any", false, false, true, 124)) {
  249.             // line 125
  250.             echo "                                        <div class=\"price ";
  251.             if ((((twig_get_attribute($this->env, $this->source,             // line 126
  252. (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 126, $this->source); })()), "promoDate1", [], "any", false, false, true, 126) && 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.', 126, $this->source); })()), "promoDate2", [], "any", false, false, true, 126)) && (twig_date_converter($this->env, twig_get_attribute($this->env, $this->source,             // line 127
  253. (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 127, $this->source); })()), "promoDate1", [], "any", false, false, true, 127)) < twig_date_converter($this->env))) && (twig_date_converter($this->env, 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.', 127, $this->source); })()), "promoDate2", [], "any", false, false, true, 127)) > twig_date_converter($this->env)))) {
  254.                 // line 128
  255.                 echo "                                price--promo
  256.                             ";
  257.             }
  258.             // line 129
  259.             echo "\">";
  260.             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.', 129, $this->source); })()), "OSPrice", [], "any", false, false, true, 129), 129, $this->source), "html", null, true);
  261.             echo "<small class=\"price-unit\">/";
  262.             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.', 129, $this->source); })()), "unit", [], "any", false, false, true, 129), 129, $this->source), "html", null, true);
  263.             echo "</small>
  264.                                         </div>
  265.                                         ";
  266.             // line 131
  267.             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.', 131, $this->source); })()), "discount", [], "any", false, false, true, 131)) {
  268.                 // line 132
  269.                 echo "                                            ";
  270.                 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.', 132, $this->source); })()), "OSPrice", [], "any", false, false, true, 132) != 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.', 132, $this->source); })()), "OSDefaultPrice", [], "any", false, false, true, 132))) {
  271.                     // line 133
  272.                     echo "                                                <p class=\"old-price\">";
  273.                     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.', 133, $this->source); })()), "OSDefaultPrice", [], "any", false, false, true, 133), 133, $this->source), "html", null, true);
  274.                     echo "</p>
  275.                                             ";
  276.                 }
  277.                 // line 135
  278.                 echo "                                            <div class=\"promo\">-";
  279.                 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.', 135, $this->source); })()), "discount", [], "any", false, false, true, 135), 135, $this->source), "html", null, true);
  280.                 echo "%</div>
  281.                                         ";
  282.             }
  283.             // line 137
  284.             echo "
  285.                                     ";
  286.         }
  287.         // line 139
  288.         echo "                                    ";
  289.         if ((((twig_get_attribute($this->env, $this->source,         // line 140
  290. (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 140, $this->source); })()), "promoDate1", [], "any", false, false, true, 140) && 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.', 140, $this->source); })()), "promoDate2", [], "any", false, false, true, 140)) && (twig_date_converter($this->env, twig_get_attribute($this->env, $this->source,         // line 141
  291. (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 141, $this->source); })()), "promoDate1", [], "any", false, false, true, 141)) < twig_date_converter($this->env))) && (twig_date_converter($this->env, 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.', 141, $this->source); })()), "promoDate2", [], "any", false, false, true, 141)) > twig_date_converter($this->env)))) {
  292.             // line 142
  293.             echo "                                        ";
  294.             // line 143
  295.             echo "                                        ";
  296.             if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 143, $this->source); })()), "OSPrice", [], "any", false, false, true, 143), "getAmount", [], "any", false, false, true, 143), "isZero", [], "any", false, false, true, 143)) {
  297.                 // line 144
  298.                 echo "                                            ";
  299.                 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.', 144, $this->source); })()), "promoPrice", [], "any", false, false, true, 144)) {
  300.                     // line 145
  301.                     echo "                                                <div class=\"price price--promo\">";
  302.                     echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\CurrencyExtension']->format($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.', 145, $this->source); })()), "promoPrice", [], "any", false, false, true, 145), 145, $this->source)), "html", null, true);
  303.                     echo "
  304.                                                     <small class=\"price-unit\">/";
  305.                     // line 146
  306.                     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.', 146, $this->source); })()), "unit", [], "any", false, false, true, 146), 146, $this->source), "html", null, true);
  307.                     echo "</small></div>
  308.                                             ";
  309.                 }
  310.                 // line 148
  311.                 echo "                                            ";
  312.                 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.', 148, $this->source); })()), "promoPercentage", [], "any", false, false, true, 148)) {
  313.                     // line 149
  314.                     echo "                                                <div class=\"promo\">-";
  315.                     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.', 149, $this->source); })()), "promoPercentage", [], "any", false, false, true, 149), 149, $this->source), "html", null, true);
  316.                     echo "%</div>
  317.                                             ";
  318.                 }
  319.                 // line 151
  320.                 echo "                                        ";
  321.             }
  322.             // line 152
  323.             echo "
  324.                                         <p class=\"date\">
  325.                                             (";
  326.             // line 154
  327.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Promotie vanaf"), "html", null, true);
  328.             echo " ";
  329.             echo twig_escape_filter($this->env, twig_date_format_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.', 154, $this->source); })()), "promoDate1", [], "any", false, false, true, 154), 154, $this->source), "d/m/Y"), "html", null, true);
  330.             echo " ";
  331.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tot"), "html", null, true);
  332.             echo " ";
  333.             echo twig_escape_filter($this->env, twig_date_format_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.', 154, $this->source); })()), "promoDate2", [], "any", false, false, true, 154), 154, $this->source), "d/m/Y"), "html", null, true);
  334.             echo "
  335.                                             )</p>
  336.                                     ";
  337.         }
  338.         // line 157
  339.         echo "                                </div>
  340.                             </div>
  341.                             <div class=\"col-auto ms-auto\">
  342.                                 <add-to-cart
  343.                                     product-id=\"";
  344.         // line 162
  345.         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", false, false, true, 162), 162, $this->source), "html", null, true);
  346.         echo "\"
  347.                                     unit=\"";
  348.         // line 163
  349.         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.', 163, $this->source); })()), "unit", [], "any", false, false, true, 163), 163, $this->source), "html", null, true);
  350.         echo "\"
  351.                                     minimum-unit=\"";
  352.         // line 164
  353.         echo twig_escape_filter($this->env, (0 + 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.', 164, $this->source); })()), "unitMinimum", [], "any", false, false, true, 164)), "html", null, true);
  354.         echo "\"
  355.                                     amount-in-cart=\"";
  356.         // line 165
  357.         (((twig_get_attribute($this->env, $this->source, ($context["cartItems"] ?? null), 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.', 165, $this->source); })()), "id", [], "any", false, false, true, 165), [], "array", true, true, true, 165) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["cartItems"] ?? null), 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.', 165, $this->source); })()), "id", [], "any", false, false, true, 165), [], "array", false, false, true, 165)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["cartItems"] ?? null), 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.', 165, $this->source); })()), "id", [], "any", false, false, true, 165), [], "array", false, false, true, 165), "html", null, true))) : (print (0)));
  358.         echo "\"
  359.                                 ></add-to-cart>
  360.                             </div>
  361.                         </div><!--/ .row -->
  362.                         ";
  363.         // line 170
  364.         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.', 170, $this->source); })()), "onOrder", [], "any", false, false, true, 170)) {
  365.             // line 171
  366.             echo "                            ";
  367.             $context["orderMessage"] = $this->extensions['App\Twig\Extension\ProductRankingExtension']->getProductOrderMessage($this->sandbox->ensureToStringAllowed((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 171, $this->source); })()), 171, $this->source));
  368.             // line 172
  369.             echo "                            ";
  370.             if ((isset($context["orderMessage"]) || array_key_exists("orderMessage", $context) ? $context["orderMessage"] : (function () { throw new RuntimeError('Variable "orderMessage" does not exist.', 172, $this->source); })())) {
  371.                 // line 173
  372.                 echo "                                <div class=\"alert alert-warning d-flex align-items-start\" role=\"alert\">
  373.                                     <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 16 16\" fill=\"currentColor\" class=\"flex-shrink-0 me-2 mt-1\" aria-hidden=\"true\">
  374.                                         <path d=\"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.286.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z\"/>
  375.                                     </svg>
  376.                                     <span style=\"white-space: pre-wrap;\">";
  377.                 // line 177
  378.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["orderMessage"]) || array_key_exists("orderMessage", $context) ? $context["orderMessage"] : (function () { throw new RuntimeError('Variable "orderMessage" does not exist.', 177, $this->source); })()), 177, $this->source), "html", null, true);
  379.                 echo "</span>
  380.                                 </div>
  381.                             ";
  382.             }
  383.             // line 180
  384.             echo "                        ";
  385.         }
  386.         // line 181
  387.         echo "
  388.                         ";
  389.         // line 182
  390.         $context["default_tab"] = null;
  391.         // line 183
  392.         echo "
  393.                         <ul class=\"nav nav--tabs\" id=\"nav-tab\" role=\"tablist\">
  394.                             ";
  395.         // line 185
  396.         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.', 185, $this->source); })()), "ingredients", [], "any", false, false, true, 185)) {
  397.             // line 186
  398.             echo "                                ";
  399.             $context["default_tab"] = 1;
  400.             // line 187
  401.             echo "                                <li class=\"nav-item\">
  402.                                     <button class=\"nav-link ";
  403.             // line 188
  404.             echo ((((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 188, $this->source); })()) == 1)) ? ("active") : (""));
  405.             echo "\" id=\"nav-tab-1\"
  406.                                             data-bs-toggle=\"tab\" data-bs-target=\"#tab-1\" role=\"tab\"
  407.                                             aria-selected=\"true\">";
  408.             // line 190
  409.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ingrediënten"), "html", null, true);
  410.             echo "</button>
  411.                                 </li>
  412.                             ";
  413.         }
  414.         // line 193
  415.         echo "
  416.                             ";
  417.         // line 194
  418.         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.', 194, $this->source); })()), "description", [], "any", false, false, true, 194)) {
  419.             // line 195
  420.             echo "                                ";
  421.             $context["default_tab"] = (((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 195, $this->source); })())) ? ((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 195, $this->source); })())) : (2));
  422.             // line 196
  423.             echo "                                <li class=\"nav-item\">
  424.                                     <button class=\"nav-link ";
  425.             // line 197
  426.             echo ((((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 197, $this->source); })()) == 2)) ? ("active") : (""));
  427.             echo "\" id=\"nav-tab-2\"
  428.                                             data-bs-toggle=\"tab\" data-bs-target=\"#tab-2\" role=\"tab\"
  429.                                             aria-selected=\"true\">";
  430.             // line 199
  431.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Omschrijving"), "html", null, true);
  432.             echo "</button>
  433.                                 </li>
  434.                             ";
  435.         }
  436.         // line 202
  437.         echo "
  438.                             ";
  439.         // line 203
  440.         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.', 203, $this->source); })()), "nutrients", [], "any", false, false, true, 203)) {
  441.             // line 204
  442.             echo "                                ";
  443.             $context["default_tab"] = (((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 204, $this->source); })())) ? ((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 204, $this->source); })())) : (3));
  444.             // line 205
  445.             echo "                                <li class=\"nav-item\">
  446.                                     <button class=\"nav-link ";
  447.             // line 206
  448.             echo ((((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 206, $this->source); })()) == 3)) ? ("active") : (""));
  449.             echo "\" id=\"nav-tab-3\"
  450.                                             data-bs-toggle=\"tab\" data-bs-target=\"#tab-3\" role=\"tab\"
  451.                                             aria-selected=\"false\">";
  452.             // line 208
  453.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Voedingswaarde"), "html", null, true);
  454.             echo "</button>
  455.                                 </li>
  456.                             ";
  457.         }
  458.         // line 211
  459.         echo "
  460.                             ";
  461.         // line 212
  462.         if (((isset($context["allergens"]) || array_key_exists("allergens", $context) ? $context["allergens"] : (function () { throw new RuntimeError('Variable "allergens" does not exist.', 212, $this->source); })()) && (twig_length_filter($this->env, (isset($context["allergens"]) || array_key_exists("allergens", $context) ? $context["allergens"] : (function () { throw new RuntimeError('Variable "allergens" does not exist.', 212, $this->source); })())) > 0))) {
  463.             // line 213
  464.             echo "                                ";
  465.             $context["default_tab"] = (((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 213, $this->source); })())) ? ((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 213, $this->source); })())) : (4));
  466.             // line 214
  467.             echo "                                <li class=\"nav-item\">
  468.                                     <button class=\"nav-link ";
  469.             // line 215
  470.             echo ((((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 215, $this->source); })()) == 4)) ? ("active") : (""));
  471.             echo "\" id=\"nav-tab-4\"
  472.                                             data-bs-toggle=\"tab\" data-bs-target=\"#tab-4\" role=\"tab\"
  473.                                             aria-selected=\"false\">";
  474.             // line 217
  475.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Wettelijke allergenen"), "html", null, true);
  476.             echo "</button>
  477.                                 </li>
  478.                             ";
  479.         }
  480.         // line 220
  481.         echo "
  482.                             ";
  483.         // line 221
  484.         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.', 221, $this->source); })()), "psinfoodDocuments", [], "any", false, false, true, 221)) {
  485.             // line 222
  486.             echo "                                ";
  487.             $context["default_tab"] = (((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 222, $this->source); })())) ? ((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 222, $this->source); })())) : (5));
  488.             // line 223
  489.             echo "                                <li class=\"nav-item\">
  490.                                     <button class=\"nav-link ";
  491.             // line 224
  492.             echo ((((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 224, $this->source); })()) == 5)) ? ("active") : (""));
  493.             echo "\" id=\"nav-tab-5\"
  494.                                             data-bs-toggle=\"tab\" data-bs-target=\"#tab-5\" role=\"tab\"
  495.                                             aria-selected=\"false\">";
  496.             // line 226
  497.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Documenten"), "html", null, true);
  498.             echo "</button>
  499.                                 </li>
  500.                             ";
  501.         }
  502.         // line 229
  503.         echo "                        </ul>
  504.                         <div class=\"tab-content\" id=\"tab-content\">
  505.                             ";
  506.         // line 232
  507.         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.', 232, $this->source); })()), "ingredients", [], "any", false, false, true, 232)) {
  508.             // line 233
  509.             echo "                                <div class=\"tab-pane fade ";
  510.             echo ((((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 233, $this->source); })()) == 1)) ? ("show active") : (""));
  511.             echo "\" id=\"tab-1\"
  512.                                      aria-labelledby=\"nav-tab-1\" role=\"tabpanel\">
  513.                                     ";
  514.             // line 235
  515.             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.', 235, $this->source); })()), "ingredients", [], "any", false, false, true, 235), 235, $this->source), "html", null, true);
  516.             echo "
  517.                                 </div>
  518.                             ";
  519.         }
  520.         // line 238
  521.         echo "
  522.                             ";
  523.         // line 239
  524.         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.', 239, $this->source); })()), "description", [], "any", false, false, true, 239)) {
  525.             // line 240
  526.             echo "                                <div class=\"tab-pane fade ";
  527.             echo ((((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 240, $this->source); })()) == 2)) ? ("show active") : (""));
  528.             echo "\" id=\"tab-2\"
  529.                                      aria-labelledby=\"nav-tab-2\" role=\"tabpanel\">
  530.                                     ";
  531.             // line 242
  532.             echo twig_nl2br($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.', 242, $this->source); })()), "description", [], "any", false, false, true, 242), 242, $this->source));
  533.             echo "
  534.                                 </div>
  535.                             ";
  536.         }
  537.         // line 245
  538.         echo "
  539.                             ";
  540.         // line 246
  541.         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.', 246, $this->source); })()), "nutrients", [], "any", false, false, true, 246)) {
  542.             // line 247
  543.             echo "                                <div class=\"tab-pane fade ";
  544.             echo ((((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 247, $this->source); })()) == 3)) ? ("show active") : (""));
  545.             echo "\" id=\"tab-3\"
  546.                                      aria-labelledby=\"nav-tab-3\" role=\"tabpanel\">
  547.                                     <table class=\"table\">
  548.                                         ";
  549.             // line 250
  550.             $context['_parent'] = $context;
  551.             $context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\Extension\GeneralExtension']->jsonDecode(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.', 250, $this->source); })()), "nutrients", [], "any", false, false, true, 250)));
  552.             foreach ($context['_seq'] as $context["_key"] => $context["nutrient"]) {
  553.                 // line 251
  554.                 echo "                                            <tr>
  555.                                                 <td>";
  556.                 // line 252
  557.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["nutrient"], "name", [], "any", false, false, true, 252), 252, $this->source), "html", null, true);
  558.                 echo ":</td>
  559.                                                 <td class=\"text-end\">";
  560.                 // line 253
  561.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["nutrient"], "value", [], "any", false, false, true, 253), 253, $this->source), "html", null, true);
  562.                 echo " ";
  563.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["nutrient"], "unit", [], "any", false, false, true, 253), 253, $this->source), "html", null, true);
  564.                 echo "</td>
  565.                                             </tr>
  566.                                         ";
  567.             }
  568.             $_parent = $context['_parent'];
  569.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['nutrient'], $context['_parent'], $context['loop']);
  570.             $context = array_intersect_key($context, $_parent) + $_parent;
  571.             // line 256
  572.             echo "                                    </table>
  573.                                 </div>
  574.                             ";
  575.         }
  576.         // line 259
  577.         echo "
  578.                             ";
  579.         // line 260
  580.         if ((isset($context["allergens"]) || array_key_exists("allergens", $context) ? $context["allergens"] : (function () { throw new RuntimeError('Variable "allergens" does not exist.', 260, $this->source); })())) {
  581.             // line 261
  582.             echo "                                <div class=\"tab-pane fade ";
  583.             echo ((((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 261, $this->source); })()) == 4)) ? ("show active") : (""));
  584.             echo "\" id=\"tab-4\"
  585.                                      aria-labelledby=\"nav-tab-4\" role=\"tabpanel\">
  586.                                     ";
  587.             // line 263
  588.             $context["counter"] = 0;
  589.             // line 264
  590.             echo "
  591.                                     ";
  592.             // line 265
  593.             $context['_parent'] = $context;
  594.             $context['_seq'] = twig_ensure_traversable((isset($context["allergens"]) || array_key_exists("allergens", $context) ? $context["allergens"] : (function () { throw new RuntimeError('Variable "allergens" does not exist.', 265, $this->source); })()));
  595.             foreach ($context['_seq'] as $context["_key"] => $context["allergen_type"]) {
  596.                 // line 266
  597.                 echo "                                        ";
  598.                 if (($context["allergen_type"] && twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["allergen_type"], "fields", [], "any", false, false, true, 266)))) {
  599.                     // line 267
  600.                     echo "                                            ";
  601.                     $context["counter"] = ((isset($context["counter"]) || array_key_exists("counter", $context) ? $context["counter"] : (function () { throw new RuntimeError('Variable "counter" does not exist.', 267, $this->source); })()) + 1);
  602.                     // line 268
  603.                     echo "                                            <p><strong>";
  604.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["allergen_type"], "title", [], "array", false, false, true, 268), 268, $this->source), "html", null, true);
  605.                     echo ":</strong></p>
  606.                                             <ul class=\"ingredients\">
  607.                                                 ";
  608.                     // line 271
  609.                     $context['_parent'] = $context;
  610.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["allergen_type"], "fields", [], "any", false, false, true, 271));
  611.                     foreach ($context['_seq'] as $context["_key"] => $context["allergen"]) {
  612.                         // line 272
  613.                         echo "                                                    <li>";
  614.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["allergen"], 272, $this->source), "html", null, true);
  615.                         echo "</li>
  616.                                                 ";
  617.                     }
  618.                     $_parent = $context['_parent'];
  619.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['allergen'], $context['_parent'], $context['loop']);
  620.                     $context = array_intersect_key($context, $_parent) + $_parent;
  621.                     // line 274
  622.                     echo "                                            </ul>
  623.                                         ";
  624.                 }
  625.                 // line 276
  626.                 echo "                                    ";
  627.             }
  628.             $_parent = $context['_parent'];
  629.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['allergen_type'], $context['_parent'], $context['loop']);
  630.             $context = array_intersect_key($context, $_parent) + $_parent;
  631.             // line 277
  632.             echo "
  633.                                     ";
  634.             // line 278
  635.             if (((isset($context["counter"]) || array_key_exists("counter", $context) ? $context["counter"] : (function () { throw new RuntimeError('Variable "counter" does not exist.', 278, $this->source); })()) == 0)) {
  636.                 // line 279
  637.                 echo "                                        <p>";
  638.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Geen allergeeninformatie beschikbaar voor dit product"), "html", null, true);
  639.                 echo "</p>
  640.                                     ";
  641.             }
  642.             // line 281
  643.             echo "                                </div>
  644.                             ";
  645.         }
  646.         // line 283
  647.         echo "
  648.                             ";
  649.         // line 284
  650.         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.', 284, $this->source); })()), "psinfoodDocuments", [], "any", false, false, true, 284)) {
  651.             // line 285
  652.             echo "                                <div class=\"tab-pane fade ";
  653.             echo ((((isset($context["default_tab"]) || array_key_exists("default_tab", $context) ? $context["default_tab"] : (function () { throw new RuntimeError('Variable "default_tab" does not exist.', 285, $this->source); })()) == 5)) ? ("show active") : (""));
  654.             echo "\" id=\"tab-5\"
  655.                                      aria-labelledby=\"nav-tab-5\" role=\"tabpanel\">
  656.                                     <ul class=\"ingredients\">
  657.                                         ";
  658.             // line 288
  659.             $context['_parent'] = $context;
  660.             $context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\Extension\GeneralExtension']->jsonDecode(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.', 288, $this->source); })()), "psinfoodDocuments", [], "any", false, false, true, 288)));
  661.             foreach ($context['_seq'] as $context["_key"] => $context["document"]) {
  662.                 // line 289
  663.                 echo "                                            <li>
  664.                                                 <a href=\"";
  665.                 // line 290
  666.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["document"], "downloadurl", [], "any", false, false, true, 290), 290, $this->source), "html", null, true);
  667.                 echo "\">
  668.                                                     ";
  669.                 // line 291
  670.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["document"], "labelname", [], "any", false, false, true, 291), "value", [], "any", false, false, true, 291), 291, $this->source), "html", null, true);
  671.                 echo "
  672.                                                     ";
  673.                 // line 292
  674.                 if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["document"], "title", [], "any", false, false, true, 292), "value", [], "any", false, false, true, 292) === "string")) {
  675.                     // line 293
  676.                     echo "                                                        ";
  677.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["document"], "title", [], "any", false, false, true, 293), "value", [], "any", false, false, true, 293), 293, $this->source), "html", null, true);
  678.                     echo "
  679.                                                     ";
  680.                 }
  681.                 // line 295
  682.                 echo "                                                </a>
  683.                                             </li>
  684.                                         ";
  685.             }
  686.             $_parent = $context['_parent'];
  687.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['document'], $context['_parent'], $context['loop']);
  688.             $context = array_intersect_key($context, $_parent) + $_parent;
  689.             // line 298
  690.             echo "                                    </ul>
  691.                                 </div>
  692.                             ";
  693.         }
  694.         // line 301
  695.         echo "                        </div>
  696.                     </div>
  697.                 </div><!--/ .row -->
  698.             </div>
  699.         </div><!--/ .container-fluid -->
  700.     </section>
  701. ";
  702.         
  703.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  704.         
  705.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  706.     }
  707.     public function getTemplateName()
  708.     {
  709.         return "products-detail.html.twig";
  710.     }
  711.     public function isTraitable()
  712.     {
  713.         return false;
  714.     }
  715.     public function getDebugInfo()
  716.     {
  717.         return array (  723 => 301,  718 => 298,  710 => 295,  704 => 293,  702 => 292,  698 => 291,  694 => 290,  691 => 289,  687 => 288,  680 => 285,  678 => 284,  675 => 283,  671 => 281,  665 => 279,  663 => 278,  660 => 277,  654 => 276,  650 => 274,  641 => 272,  637 => 271,  630 => 268,  627 => 267,  624 => 266,  620 => 265,  617 => 264,  615 => 263,  609 => 261,  607 => 260,  604 => 259,  599 => 256,  588 => 253,  584 => 252,  581 => 251,  577 => 250,  570 => 247,  568 => 246,  565 => 245,  559 => 242,  553 => 240,  551 => 239,  548 => 238,  542 => 235,  536 => 233,  534 => 232,  529 => 229,  523 => 226,  518 => 224,  515 => 223,  512 => 222,  510 => 221,  507 => 220,  501 => 217,  496 => 215,  493 => 214,  490 => 213,  488 => 212,  485 => 211,  479 => 208,  474 => 206,  471 => 205,  468 => 204,  466 => 203,  463 => 202,  457 => 199,  452 => 197,  449 => 196,  446 => 195,  444 => 194,  441 => 193,  435 => 190,  430 => 188,  427 => 187,  424 => 186,  422 => 185,  418 => 183,  416 => 182,  413 => 181,  410 => 180,  404 => 177,  398 => 173,  395 => 172,  392 => 171,  390 => 170,  382 => 165,  378 => 164,  374 => 163,  370 => 162,  363 => 157,  351 => 154,  347 => 152,  344 => 151,  338 => 149,  335 => 148,  330 => 146,  325 => 145,  322 => 144,  319 => 143,  317 => 142,  315 => 141,  314 => 140,  312 => 139,  308 => 137,  302 => 135,  296 => 133,  293 => 132,  291 => 131,  283 => 129,  279 => 128,  277 => 127,  276 => 126,  274 => 125,  272 => 124,  264 => 118,  255 => 112,  251 => 111,  247 => 109,  245 => 108,  242 => 107,  236 => 104,  232 => 102,  226 => 98,  217 => 95,  213 => 93,  209 => 92,  198 => 83,  188 => 79,  183 => 77,  180 => 76,  176 => 75,  169 => 70,  166 => 69,  164 => 68,  151 => 58,  147 => 57,  126 => 52,  123 => 51,  117 => 49,  115 => 48,  110 => 46,  99 => 37,  95 => 16,  89 => 14,  87 => 13,  80 => 8,  78 => 7,  75 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  718.     }
  719.     public function getSourceContext()
  720.     {
  721.         return new Source("{% extends 'layout.html.twig' %}
  722. {% block content %}
  723.     {% include 'includes/breadcrumb.html.twig' %}
  724.     {% set category = product.categories is iterable ? product.categories|first : false %}
  725.     <section class=\"section-filter\">
  726.         <div class=\"container-fluid\">
  727.             <div class=\"row align-items-center\">
  728.                 <div class=\"col-auto\">
  729.                     {% if category %}
  730.                         <p class=\"h1\">{{ category.name }}</p>
  731.                     {% endif %}
  732.                 </div>
  733.                 {#
  734.                 <div class=\"col-auto ms-auto\">
  735.                     <select name=\"\" id=\"\" class=\"form-select\">
  736.                         <option value=\"\">Toon als thumbnails</option>
  737.                     </select>
  738.                 </div>
  739.                 <div class=\"col-auto\">
  740.                     <select name=\"\" id=\"\" class=\"form-select\">
  741.                         <option value=\"\">Sorteer op productgroep</option>
  742.                     </select>
  743.                 </div>
  744.                 <div class=\"col-auto\">
  745.                     <select name=\"\" id=\"\" class=\"form-select\">
  746.                         <option value=\"\">Toon aantal (9)</option>
  747.                     </select>
  748.                 </div>
  749.                 #}
  750.             </div><!--/ .row -->
  751.         </div><!--/ .container -->
  752.     </section>
  753.     <section class=\"section-products\">
  754.         <div class=\"container-fluid\">
  755.             <div class=\"container-inner\">
  756.                 <div class=\"row\">
  757.                     <div class=\"col-auto\">
  758.                         <h1 class=\"h2 mb-1\">{{ product.name }}</h1>
  759.                         {% if product.onOrder %}
  760.                             <span class=\"badge bg-danger\">{{ 'Op bestelling!'|trans }}</span>
  761.                         {% endif %}
  762.                         <p class=\"text-primary mb-5\">{{ 'Code'|trans }}: {{ product.code }} â€” {{ 'Merk'|trans }}: {{ product.brand }} {% if product.categoryTypes %} â€” {{ 'Categorietype'|trans }}: {{ product.categoryTypes|map(t => t.name)|join(', ') }}{% endif %}</p>
  763.                     </div>
  764.                     <div class=\"col-auto ms-auto\">
  765.                         <favorite-button
  766.                             product-id=\"{{ product.id }}\"
  767.                             :is-current-favorite=\"{{ product.id in favoriteIds ? 'true' : 'false' }}\"
  768.                         ></favorite-button>
  769.                     </div>
  770.                     <favorite-modal></favorite-modal>
  771.                 </div>
  772.                 <div class=\"row\">
  773.                     <div class=\"col-lg-3\">
  774.                         {% if product.images %}
  775.                         {% set imageList = product.images|json_decode %}
  776.                         <div class=\"product-detail-images\">
  777.                             <!-- swiper -->
  778.                             <div id=\"detail-slider\" class=\"swiper swiper--detail\">
  779.                                 <div class=\"swiper-wrapper\">
  780.                                         {% for photo in imageList %}
  781.                                             <div class=\"swiper-slide\">
  782.                                                 <a href=\"{{ photo.lightboxImage }}\" class=\"product-lightbox\"
  783.                                                    data-glightbox=\"type: image\">
  784.                                                     <img class=\"img-fluid\" src=\"{{ photo.thumbnailImage }}\" alt=\"\">
  785.                                                 </a>
  786.                                             </div>
  787.                                         {% endfor %}
  788.                                 </div>
  789.                                 <div class=\"swiper-button-prev\"></div>
  790.                                 <div class=\"swiper-button-next\"></div>
  791.                             </div><!--/ .swiper -->
  792.                             <!-- swiper -->
  793.                             <div class=\"swiper swiper--detail-thumbs\" id=\"detail-thumbs-slider\">
  794.                                 <div class=\"swiper-wrapper\">
  795.                                     {% for photo in imageList %}
  796.                                         <div class=\"swiper-slide\">
  797.                                             <img class=\"img-fluid\" src=\"{{ photo.thumbnailImage }}\" alt=\"\">
  798.                                         </div>
  799.                                     {% endfor %}
  800.                                 </div>
  801.                             </div><!--/ .swiper -->
  802.                         </div>
  803.                         {% else %}
  804.                             <div class=\"img-wrapper placeholder-img\">
  805.                                 <img src=\"{{ asset('/img/placeholder.png') }}\" alt=\"\" class=\"img-fluid w-100\">
  806.                             </div>
  807.                         {% endif %}
  808.                         {% if product.productsheet %}
  809.                             <div class=\"row\">
  810.                                     <div class=\"productsheet\">
  811.                                         <a class=\"btn btn-hyperlink icon-link\" href=\"{{ product.productsheet }}\" target=\"_blank\">
  812.                                             {{ 'Bekijk productfiche'|trans }}
  813.                                             <i class=\"icon-link-ext\"></i>
  814.                                         </a>
  815.                                     </div>
  816.                             </div><!--/ .row -->
  817.                         {% endif %}
  818.                     </div>
  819.                     <div class=\"col-lg-8 offset-lg-1\">
  820.                         <div class=\"row\">
  821.                             <div class=\"col-auto\">
  822.                                 <div class=\"product-detail-price\">
  823.                                     {% if not product.OSPrice.getAmount.isZero %}
  824.                                         <div class=\"price {% if
  825.                                             product.promoDate1 and product.promoDate2 and
  826.                                             date(product.promoDate1) < date() and date(product.promoDate2) > date() %}
  827.                                 price--promo
  828.                             {% endif %}\">{{ product.OSPrice }}<small class=\"price-unit\">/{{ product.unit }}</small>
  829.                                         </div>
  830.                                         {% if( product.discount ) %}
  831.                                             {% if( product.OSPrice != product.OSDefaultPrice ) %}
  832.                                                 <p class=\"old-price\">{{ product.OSDefaultPrice }}</p>
  833.                                             {% endif %}
  834.                                             <div class=\"promo\">-{{ product.discount }}%</div>
  835.                                         {% endif %}
  836.                                     {% endif %}
  837.                                     {% if
  838.                                         product.promoDate1 and product.promoDate2 and
  839.                                         date(product.promoDate1) < date() and date(product.promoDate2) > date() %}
  840.                                         {# Show promo price even when prices should not show #}
  841.                                         {% if product.OSPrice.getAmount.isZero %}
  842.                                             {% if product.promoPrice %}
  843.                                                 <div class=\"price price--promo\">{{ product.promoPrice | currency }}
  844.                                                     <small class=\"price-unit\">/{{ product.unit }}</small></div>
  845.                                             {% endif %}
  846.                                             {% if( product.promoPercentage ) %}
  847.                                                 <div class=\"promo\">-{{ product.promoPercentage }}%</div>
  848.                                             {% endif %}
  849.                                         {% endif %}
  850.                                         <p class=\"date\">
  851.                                             ({{ 'Promotie vanaf'|trans }} {{ product.promoDate1|date('d/m/Y') }} {{ 'tot'|trans }} {{ product.promoDate2|date('d/m/Y') }}
  852.                                             )</p>
  853.                                     {% endif %}
  854.                                 </div>
  855.                             </div>
  856.                             <div class=\"col-auto ms-auto\">
  857.                                 <add-to-cart
  858.                                     product-id=\"{{ product.id }}\"
  859.                                     unit=\"{{ product.unit }}\"
  860.                                     minimum-unit=\"{{ 0 + product.unitMinimum }}\"
  861.                                     amount-in-cart=\"{{ cartItems[product.id] ?? 0 }}\"
  862.                                 ></add-to-cart>
  863.                             </div>
  864.                         </div><!--/ .row -->
  865.                         {% if product.onOrder %}
  866.                             {% set orderMessage = product_order_message(product) %}
  867.                             {% if orderMessage %}
  868.                                 <div class=\"alert alert-warning d-flex align-items-start\" role=\"alert\">
  869.                                     <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 16 16\" fill=\"currentColor\" class=\"flex-shrink-0 me-2 mt-1\" aria-hidden=\"true\">
  870.                                         <path d=\"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.286.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z\"/>
  871.                                     </svg>
  872.                                     <span style=\"white-space: pre-wrap;\">{{ orderMessage }}</span>
  873.                                 </div>
  874.                             {% endif %}
  875.                         {% endif %}
  876.                         {% set default_tab = null %}
  877.                         <ul class=\"nav nav--tabs\" id=\"nav-tab\" role=\"tablist\">
  878.                             {% if product.ingredients %}
  879.                                 {% set default_tab = 1 %}
  880.                                 <li class=\"nav-item\">
  881.                                     <button class=\"nav-link {{ default_tab == 1 ? 'active' : '' }}\" id=\"nav-tab-1\"
  882.                                             data-bs-toggle=\"tab\" data-bs-target=\"#tab-1\" role=\"tab\"
  883.                                             aria-selected=\"true\">{{ 'Ingrediënten'|trans }}</button>
  884.                                 </li>
  885.                             {% endif %}
  886.                             {% if product.description %}
  887.                                 {% set default_tab = default_tab ? default_tab : 2 %}
  888.                                 <li class=\"nav-item\">
  889.                                     <button class=\"nav-link {{ default_tab == 2 ? 'active': '' }}\" id=\"nav-tab-2\"
  890.                                             data-bs-toggle=\"tab\" data-bs-target=\"#tab-2\" role=\"tab\"
  891.                                             aria-selected=\"true\">{{ 'Omschrijving'|trans }}</button>
  892.                                 </li>
  893.                             {% endif %}
  894.                             {% if product.nutrients %}
  895.                                 {% set default_tab = default_tab ? default_tab : 3 %}
  896.                                 <li class=\"nav-item\">
  897.                                     <button class=\"nav-link {{ default_tab == 3 ? 'active' : '' }}\" id=\"nav-tab-3\"
  898.                                             data-bs-toggle=\"tab\" data-bs-target=\"#tab-3\" role=\"tab\"
  899.                                             aria-selected=\"false\">{{ 'Voedingswaarde'|trans }}</button>
  900.                                 </li>
  901.                             {% endif %}
  902.                             {% if allergens and (allergens|length) > 0 %}
  903.                                 {% set default_tab = default_tab ? default_tab : 4 %}
  904.                                 <li class=\"nav-item\">
  905.                                     <button class=\"nav-link {{ default_tab == 4 ? 'active' : '' }}\" id=\"nav-tab-4\"
  906.                                             data-bs-toggle=\"tab\" data-bs-target=\"#tab-4\" role=\"tab\"
  907.                                             aria-selected=\"false\">{{ 'Wettelijke allergenen'|trans }}</button>
  908.                                 </li>
  909.                             {% endif %}
  910.                             {% if product.psinfoodDocuments %}
  911.                                 {% set default_tab = default_tab ? default_tab : 5 %}
  912.                                 <li class=\"nav-item\">
  913.                                     <button class=\"nav-link {{ default_tab == 5 ? 'active' : '' }}\" id=\"nav-tab-5\"
  914.                                             data-bs-toggle=\"tab\" data-bs-target=\"#tab-5\" role=\"tab\"
  915.                                             aria-selected=\"false\">{{ 'Documenten'|trans }}</button>
  916.                                 </li>
  917.                             {% endif %}
  918.                         </ul>
  919.                         <div class=\"tab-content\" id=\"tab-content\">
  920.                             {% if product.ingredients %}
  921.                                 <div class=\"tab-pane fade {{ default_tab == 1 ? 'show active' : '' }}\" id=\"tab-1\"
  922.                                      aria-labelledby=\"nav-tab-1\" role=\"tabpanel\">
  923.                                     {{ product.ingredients }}
  924.                                 </div>
  925.                             {% endif %}
  926.                             {% if product.description %}
  927.                                 <div class=\"tab-pane fade {{ default_tab == 2 ? 'show active' : '' }}\" id=\"tab-2\"
  928.                                      aria-labelledby=\"nav-tab-2\" role=\"tabpanel\">
  929.                                     {{ product.description|raw|nl2br }}
  930.                                 </div>
  931.                             {% endif %}
  932.                             {% if product.nutrients %}
  933.                                 <div class=\"tab-pane fade {{ default_tab == 3 ? 'show active' : '' }}\" id=\"tab-3\"
  934.                                      aria-labelledby=\"nav-tab-3\" role=\"tabpanel\">
  935.                                     <table class=\"table\">
  936.                                         {% for nutrient in product.nutrients|json_decode %}
  937.                                             <tr>
  938.                                                 <td>{{ nutrient.name }}:</td>
  939.                                                 <td class=\"text-end\">{{ nutrient.value }} {{ nutrient.unit }}</td>
  940.                                             </tr>
  941.                                         {% endfor %}
  942.                                     </table>
  943.                                 </div>
  944.                             {% endif %}
  945.                             {% if allergens %}
  946.                                 <div class=\"tab-pane fade {{ default_tab == 4 ? 'show active' : '' }}\" id=\"tab-4\"
  947.                                      aria-labelledby=\"nav-tab-4\" role=\"tabpanel\">
  948.                                     {% set counter = 0 %}
  949.                                     {% for allergen_type in allergens %}
  950.                                         {% if allergen_type and allergen_type.fields|length %}
  951.                                             {% set counter = counter + 1 %}
  952.                                             <p><strong>{{ allergen_type['title'] }}:</strong></p>
  953.                                             <ul class=\"ingredients\">
  954.                                                 {% for allergen in allergen_type.fields %}
  955.                                                     <li>{{ allergen }}</li>
  956.                                                 {% endfor %}
  957.                                             </ul>
  958.                                         {% endif %}
  959.                                     {% endfor %}
  960.                                     {% if counter == 0 %}
  961.                                         <p>{{ 'Geen allergeeninformatie beschikbaar voor dit product'|trans }}</p>
  962.                                     {% endif %}
  963.                                 </div>
  964.                             {% endif %}
  965.                             {% if product.psinfoodDocuments %}
  966.                                 <div class=\"tab-pane fade {{ default_tab == 5 ? 'show active' : '' }}\" id=\"tab-5\"
  967.                                      aria-labelledby=\"nav-tab-5\" role=\"tabpanel\">
  968.                                     <ul class=\"ingredients\">
  969.                                         {% for document in product.psinfoodDocuments|json_decode %}
  970.                                             <li>
  971.                                                 <a href=\"{{ document.downloadurl }}\">
  972.                                                     {{ document.labelname.value }}
  973.                                                     {% if document.title.value is same as('string') %}
  974.                                                         {{ document.title.value }}
  975.                                                     {% endif %}
  976.                                                 </a>
  977.                                             </li>
  978.                                         {% endfor %}
  979.                                     </ul>
  980.                                 </div>
  981.                             {% endif %}
  982.                         </div>
  983.                     </div>
  984.                 </div><!--/ .row -->
  985.             </div>
  986.         </div><!--/ .container-fluid -->
  987.     </section>
  988. {% endblock %}", "products-detail.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/products-detail.html.twig");
  989.     }
  990.     
  991.     public function checkSecurity()
  992.     {
  993.         static $tags = array("include" => 5, "set" => 7, "if" => 13, "for" => 75);
  994.         static $filters = array("first" => 7, "escape" => 14, "trans" => 49, "join" => 52, "map" => 52, "json_decode" => 69, "currency" => 145, "date" => 154, "length" => 212, "nl2br" => 242, "raw" => 242);
  995.         static $functions = array("asset" => 104, "date" => 127, "product_order_message" => 171);
  996.         try {
  997.             $this->sandbox->checkSecurity(
  998.                 ['include', 'set', 'if', 'for'],
  999.                 ['first', 'escape', 'trans', 'join', 'map', 'json_decode', 'currency', 'date', 'length', 'nl2br', 'raw'],
  1000.                 ['asset', 'date', 'product_order_message']
  1001.             );
  1002.         } catch (SecurityError $e) {
  1003.             $e->setSourceContext($this->source);
  1004.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1005.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1006.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1007.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1008.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1009.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1010.             }
  1011.             throw $e;
  1012.         }
  1013.     }
  1014. }