var/cache/dev/twig/89/89864bbf7f767adbb658da00a7069095.php line 126

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @BoldrShop/shop.html.twig */
  16. class __TwigTemplate_245102590e7014d15f07e2109c3cd605 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'head' => [$this'block_head'],
  29.             'header_wrapper_content' => [$this'block_header_wrapper_content'],
  30.             'overlays' => [$this'block_overlays'],
  31.             'body' => [$this'block_body'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35.     {
  36.         // line 6
  37.         return "base.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = []): iterable
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BoldrShop/shop.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BoldrShop/shop.html.twig"));
  46.         // line 1
  47.         $context["assets"] = ((array_key_exists("assets"$context)) ? (Twig\Extension\CoreExtension::default((isset($context["assets"]) || array_key_exists("assets"$context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.'1$this->source); })()), $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getAssets($context))) : ($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getAssets($context)));
  48.         // line 2
  49.         CoreExtension::getAttribute($this->env$this->source, (isset($context["assets"]) || array_key_exists("assets"$context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.'2$this->source); })()), "addJsFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/shop.js")], "method"falsefalsefalse2);
  50.         // line 3
  51.         $context["cart"] = $this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->createCartView();
  52.         // line 4
  53.         $context["isShop"] = true;
  54.         // line 6
  55.         $this->parent $this->loadTemplate("base.html.twig""@BoldrShop/shop.html.twig"6);
  56.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.         
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  61.     }
  62.     // line 8
  63.     /**
  64.      * @return iterable<null|scalar|\Stringable>
  65.      */
  66.     public function block_head(array $context, array $blocks = []): iterable
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  73.         // line 9
  74.         yield "    ";
  75.         yield from $this->yieldParentBlock("head"$context$blocks);
  76.         yield "
  77.     <script>
  78.         let currentCurrency = ";
  79.         // line 11
  80.         yield json_encode($this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->getCurrency());
  81.         yield ";
  82.         const ALLERGEN_IMAGE_URL = '";
  83.         // line 12
  84.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("/assets/images/allergens/" CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'12$this->source); })()), "request", [], "any"falsefalsefalse12), "locale", [], "any"falsefalsefalse12)) . "/ALLERGEN.png")), "html"nulltrue);
  85.         yield "';
  86.     </script>
  87. ";
  88.         
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  90.         
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92.         yield from [];
  93.     }
  94.     // line 16
  95.     /**
  96.      * @return iterable<null|scalar|\Stringable>
  97.      */
  98.     public function block_header_wrapper_content(array $context, array $blocks = []): iterable
  99.     {
  100.         $macros $this->macros;
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_wrapper_content"));
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_wrapper_content"));
  105.         // line 17
  106.         yield "    ";
  107.         yield from $this->yieldParentBlock("header_wrapper_content"$context$blocks);
  108.         yield "
  109.     <div class=\"subheader-filter-search\">
  110.         <div class=\"subheader-filter-search-controls\">
  111.             <div class=\"subheader-filter\">
  112.                 ";
  113.         // line 22
  114.         yield "                <a href=\"#\" class=\"subheader-filter-button boldr-button boldr-button-outline-light\">
  115.                     <i class=\"icon-filter\"></i>
  116.                     <span class=\"boldr-button-text\">";
  117.         // line 24
  118.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("filter_by", [], "HelensBakery"), "html"nulltrue);
  119.         yield "</span>
  120.                     <i class=\"icon-chevron-down\"></i>
  121.                     <span class=\"subheader-filter-button-count\"></span>
  122.                 </a>
  123.                 <div class=\"subheader-filter-dropdown hide-past-scroll\">
  124.                     <div class=\"form-label-control\">
  125.                         <input id=\"subheader-filter-choice-beef\" type=\"checkbox\" data-property=\"beef\" />
  126.                         <label for=\"subheader-filter-choice-beef\"><i class=\"icon-rundvlees\"></i> ";
  127.         // line 31
  128.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("100percent_beef", [], "HelensBakery"), "html"nulltrue);
  129.         yield "</label>
  130.                     </div>
  131.                     <div class=\"form-label-control\">
  132.                         <input id=\"subheader-filter-choice-vegan\" type=\"checkbox\" data-property=\"vegan\" />
  133.                         <label for=\"subheader-filter-choice-vegan\"><i class=\"icon-vegan\"></i> ";
  134.         // line 35
  135.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vegan", [], "HelensBakery"), "html"nulltrue);
  136.         yield "</label>
  137.                     </div>
  138.                     <div class=\"form-label-control\">
  139.                         <input id=\"subheader-filter-choice-vegetarian\" type=\"checkbox\" data-property=\"vegetarian\" />
  140.                         <label for=\"subheader-filter-choice-vegetarian\"><i class=\"icon-vegetarian\"></i> ";
  141.         // line 39
  142.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vegetarian", [], "HelensBakery"), "html"nulltrue);
  143.         yield "</label>
  144.                     </div>
  145.                     ";
  146.         // line 45
  147.         yield "                    <div class=\"form-label-control\">
  148.                         <input id=\"subheader-filter-choice-homemade\" type=\"checkbox\" data-property=\"homemade\" />
  149.                         <label for=\"subheader-filter-choice-homemade\"><i class=\"icon-homemade\"></i></label>
  150.                     </div>
  151.                 </div>
  152.             </div>
  153.             ";
  154.         // line 52
  155.         yield "            <input type=\"search\" class=\"subheader-search-input\" placeholder=\"";
  156.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search", [], "HelensBakery"), "html"nulltrue);
  157.         yield "\" />
  158.         </div>
  159.         ";
  160.         // line 67
  161.         yield "    </div>
  162.     <div class=\"subheader-categories\">
  163.         ";
  164.         // line 71
  165.         yield "        ";
  166.         $context['_parent'] = $context;
  167.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'71$this->source); })()));
  168.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  169.             // line 72
  170.             yield "            ";
  171.             $context["categoryCatalogProducts"] = Twig\Extension\CoreExtension::filter($this->env, (isset($context["catalogProducts"]) || array_key_exists("catalogProducts"$context) ? $context["catalogProducts"] : (function () { throw new RuntimeError('Variable "catalogProducts" does not exist.'72$this->source); })()), function ($__catalogProduct__) use ($context$macros) { $context["catalogProduct"] = $__catalogProduct__; return CoreExtension::inFilter($context["category"], CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["catalogProduct"]) || array_key_exists("catalogProduct"$context) ? $context["catalogProduct"] : (function () { throw new RuntimeError('Variable "catalogProduct" does not exist.'72$this->source); })()), "product", [], "any"falsefalsefalse72), "categories", [], "any"falsefalsefalse72)); });
  172.             // line 73
  173.             yield "            ";
  174.             if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["categoryCatalogProducts"]) || array_key_exists("categoryCatalogProducts"$context) ? $context["categoryCatalogProducts"] : (function () { throw new RuntimeError('Variable "categoryCatalogProducts" does not exist.'73$this->source); })())) > 0)) {
  175.                 // line 74
  176.                 yield "                <a href=\"#\" data-id=\"";
  177.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse74), "html"nulltrue);
  178.                 yield "\">
  179.                     ";
  180.                 // line 75
  181.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse75), "html"nulltrue);
  182.                 yield "
  183.                 </a>
  184.             ";
  185.             }
  186.             // line 78
  187.             yield "        ";
  188.         }
  189.         $_parent $context['_parent'];
  190.         unset($context['_seq'], $context['_key'], $context['category'], $context['_parent']);
  191.         $context array_intersect_key($context$_parent) + $_parent;
  192.         // line 79
  193.         yield "    </div>
  194. ";
  195.         
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  197.         
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  199.         yield from [];
  200.     }
  201.     // line 82
  202.     /**
  203.      * @return iterable<null|scalar|\Stringable>
  204.      */
  205.     public function block_overlays(array $context, array $blocks = []): iterable
  206.     {
  207.         $macros $this->macros;
  208.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""overlays"));
  210.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  211.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""overlays"));
  212.         // line 83
  213.         yield "    <div class=\"overlay\" id=\"overlay-add-product\">
  214.         <a href=\"#\" class=\"overlay-close\">
  215.             <i class=\"icon-plus\"></i>
  216.         </a>
  217.         <div class=\"overlay-content overlay-add-product\">
  218.             ";
  219.         // line 88
  220.         if ( !CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'88$this->source); })()), "canItemsBeModified", [], "any"falsefalsefalse88)) {
  221.             // line 89
  222.             yield "                <div style=\"padding: 20px\">
  223.                     <p>
  224.                         ";
  225.             // line 91
  226.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cant_add_while_paying", [], "HelensBakery"), "html"nulltrue);
  227.             yield "
  228.                     </p>
  229.                     <div class=\"order-window-cart-next-states\">
  230.                         ";
  231.             // line 94
  232.             $context['_parent'] = $context;
  233.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'94$this->source); })()), "nextStates", [], "any"falsefalsefalse94));
  234.             foreach ($context['_seq'] as $context["_key"] => $context["nextState"]) {
  235.                 // line 95
  236.                 yield "                            <a href=\"";
  237.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["nextState"], "url", [], "any"falsefalsefalse95), "html"nulltrue);
  238.                 yield "\" class=\"order-window-cart-next-state boldr-button boldr-button-highlight\">
  239.                                 ";
  240.                 // line 96
  241.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["nextState"], "buttonText", [], "any"falsefalsefalse96), "html"nulltrue);
  242.                 yield "
  243.                             </a>
  244.                         ";
  245.             }
  246.             $_parent $context['_parent'];
  247.             unset($context['_seq'], $context['_key'], $context['nextState'], $context['_parent']);
  248.             $context array_intersect_key($context$_parent) + $_parent;
  249.             // line 99
  250.             yield "                    </div>
  251.                 </div>
  252.             ";
  253.         }
  254.         // line 102
  255.         yield "            <div class=\"overlay-add-product-content\" ";
  256.         yield (( !CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'102$this->source); })()), "canItemsBeModified", [], "any"falsefalsefalse102)) ? ("style=\"display: none\"") : (""));
  257.         yield ">
  258.                 <div class=\"overlay-add-product-info\">
  259.                     <div class=\"overlay-add-product-info-header\">
  260.                         <a class=\"overlay-add-product-info-header-close-mobile\">
  261.                             <i class=\"icon-arrow-left\"></i>
  262.                         </a>
  263.                         ";
  264.         // line 110
  265.         yield "                        <img class=\"overlay-add-product-info-header-image\" />
  266.                         <div class=\"overlay-add-product-info-header-allergens\">
  267.                             <div class=\"overlay-add-product-info-header-allergens-title\">";
  268.         // line 114
  269.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("allergen_information", [], "HelensBakery"), "html"nulltrue);
  270.         yield ":</div>
  271.                             <div class=\"overlay-add-product-info-header-allergens-list\">
  272.                                 ";
  273.         // line 116
  274.         $context['_parent'] = $context;
  275.         $context['_seq'] = CoreExtension::ensureTraversable(["celery""egg""fish""gluten""lupine""milk""mollusks""mustard""nuts""peanut""sesame""shellfish""soy""sulfites"]);
  276.         foreach ($context['_seq'] as $context["_key"] => $context["allergen"]) {
  277.             // line 117
  278.             yield "                                <img src=\"";
  279.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((((("/assets/images/allergens/" CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'117$this->source); })()), "request", [], "any"falsefalsefalse117), "locale", [], "any"falsefalsefalse117)) . "/") . $context["allergen"]) . ".png")), "html"nulltrue);
  280.             yield "\"  class=\"overlay-add-product-info-header-allergen\" data-name=\"";
  281.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["allergen"], "html"nulltrue);
  282.             yield "\">
  283.                             ";
  284.         }
  285.         $_parent $context['_parent'];
  286.         unset($context['_seq'], $context['_key'], $context['allergen'], $context['_parent']);
  287.         $context array_intersect_key($context$_parent) + $_parent;
  288.         // line 119
  289.         yield "                            </div>
  290.                         </div>
  291.                     </div>
  292.                     <div class=\"overlay-add-product-info-content\">
  293.                         ";
  294.         // line 127
  295.         yield "                        <span class=\"overlay-add-product-info-name\"></span>
  296.                         <span class=\"overlay-add-product-info-details\"></span>
  297.                         ";
  298.         // line 131
  299.         yield "                        <div class=\"overlay-add-product-info-options\"></div>
  300.                     </div>
  301.                 </div>
  302.                 <div class=\"overlay-add-product-extra\">
  303.                     <span class=\"overlay-add-product-extra-heading\">";
  304.         // line 135
  305.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("shop.add_extras"), "html"nulltrue);
  306.         yield "</span>
  307.                     ";
  308.         // line 136
  309.         $context['_parent'] = $context;
  310.         $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::filter($this->env, (isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'136$this->source); })()), function ($__category__) use ($context$macros) { $context["category"] = $__category__; return CoreExtension::getAttribute($this->env$this->source$context["category"], "hbVisibleInExtras", [], "any"falsefalsefalse136); }));
  311.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  312.             // line 137
  313.             yield "                        ";
  314.             $context["categoryCatalogProducts"] = Twig\Extension\CoreExtension::filter($this->env, (isset($context["catalogProducts"]) || array_key_exists("catalogProducts"$context) ? $context["catalogProducts"] : (function () { throw new RuntimeError('Variable "catalogProducts" does not exist.'137$this->source); })()), function ($__catalogProduct__) use ($context$macros) { $context["catalogProduct"] = $__catalogProduct__; return CoreExtension::inFilter($context["category"], CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["catalogProduct"]) || array_key_exists("catalogProduct"$context) ? $context["catalogProduct"] : (function () { throw new RuntimeError('Variable "catalogProduct" does not exist.'137$this->source); })()), "product", [], "any"falsefalsefalse137), "categories", [], "any"falsefalsefalse137)); });
  315.             // line 138
  316.             yield "                        ";
  317.             if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["categoryCatalogProducts"]) || array_key_exists("categoryCatalogProducts"$context) ? $context["categoryCatalogProducts"] : (function () { throw new RuntimeError('Variable "categoryCatalogProducts" does not exist.'138$this->source); })())) > 0)) {
  318.                 // line 139
  319.                 yield "                            <div class=\"overlay-add-product-extra-category\">
  320.                                 <span class=\"overlay-add-product-extra-category-selection-count\">
  321.                                     0
  322.                                 </span>
  323.                                 <div class=\"overlay-add-product-extra-category-heading\">
  324.                                     <span class=\"overlay-add-product-extra-category-name\">
  325.                                         ";
  326.                 // line 145
  327.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse145), "html"nulltrue);
  328.                 yield "
  329.                                     </span>
  330.                                     <a href=\"#\" class=\"overlay-add-product-extra-category-toggle\">
  331.                                         <i class=\"icon-plus\"></i>
  332.                                         <i class=\"icon-minus\"></i>
  333.                                     </a>
  334.                                 </div>
  335.                                 <div class=\"overlay-add-product-extra-category-products-wrapper\">
  336.                                     <div class=\"overlay-add-product-extra-category-products\">
  337.                                         ";
  338.                 // line 154
  339.                 $context['_parent'] = $context;
  340.                 $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::sort($this->env, (isset($context["categoryCatalogProducts"]) || array_key_exists("categoryCatalogProducts"$context) ? $context["categoryCatalogProducts"] : (function () { throw new RuntimeError('Variable "categoryCatalogProducts" does not exist.'154$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'154$this->source); })()), "product", [], "any"falsefalsefalse154), "name", [], "any"falsefalsefalse154) <=> CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'154$this->source); })()), "product", [], "any"falsefalsefalse154), "name", [], "any"falsefalsefalse154)); }));
  341.                 foreach ($context['_seq'] as $context["_key"] => $context["catalogProduct"]) {
  342.                     // line 155
  343.                     yield "                                            <div class=\"overlay-add-product-extra-product\" data-product-variant-id=\"";
  344.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "variants", [], "any"falsefalsefalse155), 0, [], "array"falsefalsefalse155), "productVariant", [], "any"falsefalsefalse155), "id", [], "any"falsefalsefalse155), "html"nulltrue);
  345.                     yield "\"
  346.                                                 data-product-id=\"";
  347.                     // line 156
  348.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse156), "id", [], "any"falsefalsefalse156), "html"nulltrue);
  349.                     yield "\"
  350.                                                 data-price=\"";
  351.                     // line 157
  352.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "variants", [], "any"falsefalsefalse157), 0, [], "array"falsefalsefalse157), "totalPrice", [], "any"falsefalsefalse157), "html"nulltrue);
  353.                     yield "\">
  354.                                                 <div class=\"overlay-add-product-extra-product-info\">
  355.                                                     <span class=\"overlay-add-product-extra-product-name\">
  356.                                                         ";
  357.                     // line 160
  358.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse160), "name", [], "any"falsefalsefalse160), "html"nulltrue);
  359.                     yield "
  360.                                                     </span>
  361.                                                     <span class=\"overlay-add-product-extra-product-price\">
  362.                                                         + ";
  363.                     // line 163
  364.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('boldr_shop_format_currency')->getCallable()(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "variants", [], "any"falsefalsefalse163), 0, [], "array"falsefalsefalse163), "totalPrice", [], "any"falsefalsefalse163), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "variants", [], "any"falsefalsefalse163), 0, [], "array"falsefalsefalse163), "currency", [], "any"falsefalsefalse163), "isoCode", [], "any"falsefalsefalse163)), "html"nulltrue);
  365.                     yield "
  366.                                                     </span>
  367.                                                 </div>
  368.                                                 <div class=\"overlay-add-product-extra-product-image-and-controls\">
  369.                                                     ";
  370.                     // line 167
  371.                     if ( !(null === CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse167), "primaryImage", [], "any"falsefalsefalse167))) {
  372.                         // line 168
  373.                         yield "                                                        <img src=\"";
  374.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse168), "primaryImage", [], "any"falsefalsefalse168), "attachment", [], "any"falsefalsefalse168), "Sizes", [], "any"falsefalsefalse168), "small", [], "any"falsefalsefalse168), "html"nulltrue);
  375.                         yield "\" class=\"overlay-add-product-extra-product-image\" />
  376.                                                     ";
  377.                     }
  378.                     // line 170
  379.                     yield "                                                    <div class=\"overlay-add-product-extra-product-controls\">
  380.                                                         <a href=\"#\" class=\"overlay-add-product-extra-product-minus\">
  381.                                                             <i class=\"icon-minus\"></i>
  382.                                                         </a>
  383.                                                         <span class=\"overlay-add-product-extra-product-quantity\">0</span>
  384.                                                         <a href=\"#\" class=\"overlay-add-product-extra-product-plus\">
  385.                                                             <i class=\"icon-plus\"></i>
  386.                                                         </a>
  387.                                                     </div>
  388.                                                 </div>
  389.                                             </div>
  390.                                         ";
  391.                 }
  392.                 $_parent $context['_parent'];
  393.                 unset($context['_seq'], $context['_key'], $context['catalogProduct'], $context['_parent']);
  394.                 $context array_intersect_key($context$_parent) + $_parent;
  395.                 // line 182
  396.                 yield "                                        <div class=\"overlay-add-product-extra-product-spacer\"></div>
  397.                                         <div class=\"overlay-add-product-extra-product-spacer\"></div>
  398.                                         <div class=\"overlay-add-product-extra-product-spacer\"></div>
  399.                                     </div>
  400.                                 </div>
  401.                             </div>
  402.                         ";
  403.             }
  404.             // line 189
  405.             yield "                    ";
  406.         }
  407.         $_parent $context['_parent'];
  408.         unset($context['_seq'], $context['_key'], $context['category'], $context['_parent']);
  409.         $context array_intersect_key($context$_parent) + $_parent;
  410.         // line 190
  411.         yield "                </div>
  412.             </div>
  413.             <div class=\"overlay-add-product-add\" ";
  414.         // line 192
  415.         yield (( !CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'192$this->source); })()), "canItemsBeModified", [], "any"falsefalsefalse192)) ? ("style=\"display: none\"") : (""));
  416.         yield ">
  417.                 <div class=\"overlay-add-product-add-prices\">
  418.                     <span class=\"overlay-add-product-add-price\">
  419.                         &euro;3.20
  420.                     </span>
  421.                     <span class=\"overlay-add-product-add-additional-price\">
  422.                     </span>
  423.                 </div>
  424.                 <a href=\"#\" class=\"boldr-button boldr-button-medium boldr-button-highlight overlay-add-product-add-button\">
  425.                     <span class=\"text-mobile\">";
  426.         // line 202
  427.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("add", [], "HelensBakery"), "html"nulltrue);
  428.         yield "</span>
  429.                     <span class=\"text-desktop\">";
  430.         // line 203
  431.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("add_to_cart", [], "HelensBakery"), "html"nulltrue);
  432.         yield "</span>
  433.                 </a>
  434.             </div>
  435.         </div>
  436.     </div>
  437. ";
  438.         
  439.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  440.         
  441.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  442.         yield from [];
  443.     }
  444.     // line 210
  445.     /**
  446.      * @return iterable<null|scalar|\Stringable>
  447.      */
  448.     public function block_body(array $context, array $blocks = []): iterable
  449.     {
  450.         $macros $this->macros;
  451.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  452.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  453.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  454.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  455.         // line 211
  456.         yield "    ";
  457.         // line 212
  458.         yield "    <div class=\"order-window ";
  459.         yield (((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'212$this->source); })()), "items", [], "any"falsefalsefalse212)) > 0)) ? ("order-window-cart-visible") : (""));
  460.         yield "\">
  461.         <div class=\"product-list-wrapper\">
  462.             <div class=\"product-list\">
  463.                 ";
  464.         // line 215
  465.         $context['_parent'] = $context;
  466.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'215$this->source); })()));
  467.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  468.             // line 216
  469.             yield "                    ";
  470.             $context["categoryCatalogProducts"] = Twig\Extension\CoreExtension::filter($this->env, (isset($context["catalogProducts"]) || array_key_exists("catalogProducts"$context) ? $context["catalogProducts"] : (function () { throw new RuntimeError('Variable "catalogProducts" does not exist.'216$this->source); })()), function ($__catalogProduct__) use ($context$macros) { $context["catalogProduct"] = $__catalogProduct__; return CoreExtension::inFilter($context["category"], CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["catalogProduct"]) || array_key_exists("catalogProduct"$context) ? $context["catalogProduct"] : (function () { throw new RuntimeError('Variable "catalogProduct" does not exist.'216$this->source); })()), "product", [], "any"falsefalsefalse216), "categories", [], "any"falsefalsefalse216)); });
  471.             // line 217
  472.             yield "                    ";
  473.             if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["categoryCatalogProducts"]) || array_key_exists("categoryCatalogProducts"$context) ? $context["categoryCatalogProducts"] : (function () { throw new RuntimeError('Variable "categoryCatalogProducts" does not exist.'217$this->source); })())) > 0)) {
  474.                 // line 218
  475.                 yield "                        <div class=\"product-list-category\" data-id=\"";
  476.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse218), "html"nulltrue);
  477.                 yield "\" data-show-extras=\"";
  478.                 yield ((CoreExtension::getAttribute($this->env$this->source$context["category"], "hbShowExtras", [], "any"falsefalsefalse218)) ? ("true") : ("false"));
  479.                 yield "\">
  480.                             <div class=\"product-list-category-header\">
  481.                                 ";
  482.                 // line 220
  483.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse220), "html"nulltrue);
  484.                 yield "
  485.                             </div>
  486.                             <div class=\"product-list-category-products\">
  487.                                 ";
  488.                 // line 223
  489.                 $context['_parent'] = $context;
  490.                 $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::sort($this->env, (isset($context["categoryCatalogProducts"]) || array_key_exists("categoryCatalogProducts"$context) ? $context["categoryCatalogProducts"] : (function () { throw new RuntimeError('Variable "categoryCatalogProducts" does not exist.'223$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (CoreExtension::getAttribute($this->env$this->sourceTwig\Extension\CoreExtension::split($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'223$this->source); })()), "product", [], "any"falsefalsefalse223), "name", [], "any"falsefalsefalse223), "."), 0, [], "array"falsefalsefalse223) <=> CoreExtension::getAttribute($this->env$this->sourceTwig\Extension\CoreExtension::split($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'223$this->source); })()), "product", [], "any"falsefalsefalse223), "name", [], "any"falsefalsefalse223), "."), 0, [], "array"falsefalsefalse223)); }));
  491.                 foreach ($context['_seq'] as $context["_key"] => $context["catalogProduct"]) {
  492.                     // line 224
  493.                     yield "                                    ";
  494.                     $context["variant"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "variants", [], "any"falsefalsefalse224), 0, [], "array"falsefalsefalse224);
  495.                     // line 225
  496.                     yield "                                    <div class=\"product-list-product\" data-product-variant-id=\"";
  497.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'225$this->source); })()), "productVariant", [], "any"falsefalsefalse225), "id", [], "any"falsefalsefalse225), "html"nulltrue);
  498.                     yield "\"
  499.                                         data-price=\"";
  500.                     // line 226
  501.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'226$this->source); })()), "totalPrice", [], "any"falsefalsefalse226), "html"nulltrue);
  502.                     yield "\"
  503.                                         data-new=\"";
  504.                     // line 227
  505.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse227), "new", [], "any"falsefalsefalse227)) ? ("true") : ("false"));
  506.                     yield "\"
  507.                                         data-homemade=\"";
  508.                     // line 228
  509.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse228), "homemade", [], "any"falsefalsefalse228)) ? ("true") : ("false"));
  510.                     yield "\"
  511.                                         data-vegan=\"";
  512.                     // line 229
  513.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse229), "vegan", [], "any"falsefalsefalse229)) ? ("true") : ("false"));
  514.                     yield "\"
  515.                                         data-vegetarian=\"";
  516.                     // line 230
  517.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse230), "vegetarian", [], "any"falsefalsefalse230)) ? ("true") : ("false"));
  518.                     yield "\"
  519.                                         data-fish=\"";
  520.                     // line 231
  521.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse231), "fish", [], "any"falsefalsefalse231)) ? ("true") : ("false"));
  522.                     yield "\"
  523.                                         data-beef=\"";
  524.                     // line 232
  525.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse232), "beef", [], "any"falsefalsefalse232)) ? ("true") : ("false"));
  526.                     yield "\"
  527.                                         data-image-large=\"";
  528.                     // line 233
  529.                     yield (( !(null === CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse233), "primaryImage", [], "any"falsefalsefalse233))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse233), "primaryImage", [], "any"falsefalsefalse233), "attachment", [], "any"falsefalsefalse233), "sizes", [], "any"falsefalsefalse233), "large", [], "any"falsefalsefalse233), "html"nulltrue)) : (""));
  530.                     yield "\"
  531.                                         data-allergen-gluten=\"";
  532.                     // line 234
  533.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'234$this->source); })()), "productVariant", [], "any"falsefalsefalse234), "allergens", [], "any"falsefalsefalse234), "gluten", [], "any"falsefalsefalse234)) ? ("true") : ("false"));
  534.                     yield "\"
  535.                                         data-allergen-egg=\"";
  536.                     // line 235
  537.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'235$this->source); })()), "productVariant", [], "any"falsefalsefalse235), "allergens", [], "any"falsefalsefalse235), "egg", [], "any"falsefalsefalse235)) ? ("true") : ("false"));
  538.                     yield "\"
  539.                                         data-allergen-fish=\"";
  540.                     // line 236
  541.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'236$this->source); })()), "productVariant", [], "any"falsefalsefalse236), "allergens", [], "any"falsefalsefalse236), "fish", [], "any"falsefalsefalse236)) ? ("true") : ("false"));
  542.                     yield "\"
  543.                                         data-allergen-peanut=\"";
  544.                     // line 237
  545.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'237$this->source); })()), "productVariant", [], "any"falsefalsefalse237), "allergens", [], "any"falsefalsefalse237), "peanut", [], "any"falsefalsefalse237)) ? ("true") : ("false"));
  546.                     yield "\"
  547.                                         data-allergen-nuts=\"";
  548.                     // line 238
  549.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'238$this->source); })()), "productVariant", [], "any"falsefalsefalse238), "allergens", [], "any"falsefalsefalse238), "nuts", [], "any"falsefalsefalse238)) ? ("true") : ("false"));
  550.                     yield "\"
  551.                                         data-allergen-soy=\"";
  552.                     // line 239
  553.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'239$this->source); })()), "productVariant", [], "any"falsefalsefalse239), "allergens", [], "any"falsefalsefalse239), "soy", [], "any"falsefalsefalse239)) ? ("true") : ("false"));
  554.                     yield "\"
  555.                                         data-allergen-milk=\"";
  556.                     // line 240
  557.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'240$this->source); })()), "productVariant", [], "any"falsefalsefalse240), "allergens", [], "any"falsefalsefalse240), "milk", [], "any"falsefalsefalse240)) ? ("true") : ("false"));
  558.                     yield "\"
  559.                                         data-allergen-shellfish=\"";
  560.                     // line 241
  561.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'241$this->source); })()), "productVariant", [], "any"falsefalsefalse241), "allergens", [], "any"falsefalsefalse241), "shellfish", [], "any"falsefalsefalse241)) ? ("true") : ("false"));
  562.                     yield "\"
  563.                                         data-allergen-mollusks=\"";
  564.                     // line 242
  565.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'242$this->source); })()), "productVariant", [], "any"falsefalsefalse242), "allergens", [], "any"falsefalsefalse242), "mollusks", [], "any"falsefalsefalse242)) ? ("true") : ("false"));
  566.                     yield "\"
  567.                                         data-allergen-celery=\"";
  568.                     // line 243
  569.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'243$this->source); })()), "productVariant", [], "any"falsefalsefalse243), "allergens", [], "any"falsefalsefalse243), "celery", [], "any"falsefalsefalse243)) ? ("true") : ("false"));
  570.                     yield "\"
  571.                                         data-allergen-mustard=\"";
  572.                     // line 244
  573.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'244$this->source); })()), "productVariant", [], "any"falsefalsefalse244), "allergens", [], "any"falsefalsefalse244), "mustard", [], "any"falsefalsefalse244)) ? ("true") : ("false"));
  574.                     yield "\"
  575.                                         data-allergen-sesame=\"";
  576.                     // line 245
  577.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'245$this->source); })()), "productVariant", [], "any"falsefalsefalse245), "allergens", [], "any"falsefalsefalse245), "sesame", [], "any"falsefalsefalse245)) ? ("true") : ("false"));
  578.                     yield "\"
  579.                                         data-allergen-sulfites=\"";
  580.                     // line 246
  581.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'246$this->source); })()), "productVariant", [], "any"falsefalsefalse246), "allergens", [], "any"falsefalsefalse246), "sulfites", [], "any"falsefalsefalse246)) ? ("true") : ("false"));
  582.                     yield "\"
  583.                                         data-allergen-lupine=\"";
  584.                     // line 247
  585.                     yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'247$this->source); })()), "productVariant", [], "any"falsefalsefalse247), "allergens", [], "any"falsefalsefalse247), "lupine", [], "any"falsefalsefalse247)) ? ("true") : ("false"));
  586.                     yield "\"
  587.                                     >
  588.                                         ";
  589.                     // line 249
  590.                     if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse249), "primaryImage", [], "any"falsefalsefalse249)) {
  591.                         // line 250
  592.                         yield "                                            <div class=\"product-list-product-header\">
  593.                                                 <img src=\"";
  594.                         // line 251
  595.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse251), "primaryImage", [], "any"falsefalsefalse251), "attachment", [], "any"falsefalsefalse251), "sizes", [], "any"falsefalsefalse251), "medium", [], "any"falsefalsefalse251), "html"nulltrue);
  596.                         yield "\" style=\"object-fit: ";
  597.                         yield ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse251), "primaryImage", [], "any"falsefalsefalse251), "cover", [], "any"falsefalsefalse251)) ? ("cover") : ("contain"));
  598.                         yield "; object-position: ";
  599.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse251), "primaryImage", [], "any"falsefalsefalse251), "positionX", [], "any"falsefalsefalse251) . " ") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse251), "primaryImage", [], "any"falsefalsefalse251), "positionY", [], "any"falsefalsefalse251)), "html"nulltrue);
  600.                         yield "\" class=\"product-list-product-image\" />
  601.                                                 ";
  602.                         // line 253
  603.                         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse253), "new", [], "any"falsefalsefalse253)) {
  604.                             // line 254
  605.                             yield "                                                    <span class=\"badge-new\">";
  606.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("new", [], "HelensBakery"), "html"nulltrue);
  607.                             yield "</span>
  608.                                                 ";
  609.                         }
  610.                         // line 256
  611.                         yield "
  612.                                                 <div class=\"product-list-product-variants\">
  613.                                                     ";
  614.                         // line 258
  615.                         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse258), "homemade", [], "any"falsefalsefalse258)) {
  616.                             // line 259
  617.                             yield "                                                        <i class=\"icon-homemade\" title=\"Homemade\"></i>
  618.                                                     ";
  619.                         }
  620.                         // line 261
  621.                         yield "                                                    ";
  622.                         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse261), "vegan", [], "any"falsefalsefalse261)) {
  623.                             // line 262
  624.                             yield "                                                        <i class=\"icon-vegan\" title=\"";
  625.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vegan", [], "HelensBakery"), "html"nulltrue);
  626.                             yield "\"></i>
  627.                                                     ";
  628.                         }
  629.                         // line 264
  630.                         yield "                                                    ";
  631.                         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse264), "vegetarian", [], "any"falsefalsefalse264)) {
  632.                             // line 265
  633.                             yield "                                                        <i class=\"icon-vegetarian\" title=\"";
  634.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vegetarian", [], "HelensBakery"), "html"nulltrue);
  635.                             yield "\"></i>
  636.                                                     ";
  637.                         }
  638.                         // line 267
  639.                         yield "                                                    ";
  640.                         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse267), "fish", [], "any"falsefalsefalse267)) {
  641.                             // line 268
  642.                             yield "                                                        <i class=\"icon-vis\" title=\"Vis\"></i>
  643.                                                     ";
  644.                         }
  645.                         // line 270
  646.                         yield "                                                    ";
  647.                         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse270), "beef", [], "any"falsefalsefalse270)) {
  648.                             // line 271
  649.                             yield "                                                        <i class=\"icon-rundvlees\" title=\"";
  650.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("100percent_beef", [], "HelensBakery"), "html"nulltrue);
  651.                             yield "\"></i>
  652.                                                     ";
  653.                         }
  654.                         // line 273
  655.                         yield "                                                </div>
  656.                                             </div>
  657.                                         ";
  658.                     }
  659.                     // line 277
  660.                     yield "                                        <div class=\"product-list-product-info\">
  661.                                             <span class=\"product-list-product-name\">
  662.                                                 ";
  663.                     // line 279
  664.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse279), "name", [], "any"falsefalsefalse279), "html"nulltrue);
  665.                     yield "
  666.                                                 ";
  667.                     // line 280
  668.                     if ( !CoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'280$this->source); })()), "inStock", [], "any"falsefalsefalse280)) {
  669.                         // line 281
  670.                         yield "                                                    ";
  671.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sold_out", [], "HelensBakery"), "html"nulltrue);
  672.                         yield "
  673.                                                 ";
  674.                     }
  675.                     // line 283
  676.                     yield "                                            </span>
  677.                                             <span class=\"product-list-product-details\">
  678.                                                 ";
  679.                     // line 285
  680.                     yield Twig\Extension\CoreExtension::striptags(((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsetruefalse285), "description", [], "any"truetruefalse285)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsetruefalse285), "description", [], "any"falsefalsefalse285), Twig\Extension\CoreExtension::join(Twig\Extension\CoreExtension::map($this->envCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse285), "ingredients", [], "any"falsefalsefalse285), function ($__ingredient__) use ($context$macros) { $context["ingredient"] = $__ingredient__; return CoreExtension::getAttribute($this->env$this->source, (isset($context["ingredient"]) || array_key_exists("ingredient"$context) ? $context["ingredient"] : (function () { throw new RuntimeError('Variable "ingredient" does not exist.'285$this->source); })()), "name", [], "any"falsefalsefalse285); }), ", "))) : (Twig\Extension\CoreExtension::join(Twig\Extension\CoreExtension::map($this->envCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["catalogProduct"], "product", [], "any"falsefalsefalse285), "ingredients", [], "any"falsefalsefalse285), function ($__ingredient__) use ($context$macros) { $context["ingredient"] = $__ingredient__; return CoreExtension::getAttribute($this->env$this->source, (isset($context["ingredient"]) || array_key_exists("ingredient"$context) ? $context["ingredient"] : (function () { throw new RuntimeError('Variable "ingredient" does not exist.'285$this->source); })()), "name", [], "any"falsefalsefalse285); }), ", "))));
  681.                     yield "
  682.                                             </span>
  683.                                             <span class=\"product-list-product-price\">
  684.                                                 ";
  685.                     // line 288
  686.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('boldr_shop_format_currency')->getCallable()(CoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'288$this->source); })()), "totalPrice", [], "any"falsefalsefalse288), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'288$this->source); })()), "currency", [], "any"falsefalsefalse288), "isoCode", [], "any"falsefalsefalse288)), "html"nulltrue);
  687.                     yield "
  688.                                             </span>
  689.                                         </div>
  690.                                         <a class=\"product-list-product-add\" href=\"#\">
  691.                                             <i class=\"icon-plus\"></i>
  692.                                         </a>
  693.                                     </div>
  694.                                 ";
  695.                 }
  696.                 $_parent $context['_parent'];
  697.                 unset($context['_seq'], $context['_key'], $context['catalogProduct'], $context['_parent']);
  698.                 $context array_intersect_key($context$_parent) + $_parent;
  699.                 // line 296
  700.                 yield "                                <div class=\"product-list-product-spacer\"></div>
  701.                                 <div class=\"product-list-product-spacer\"></div>
  702.                                 <div class=\"product-list-product-spacer\"></div>
  703.                             </div>
  704.                         </div>
  705.                     ";
  706.             }
  707.             // line 302
  708.             yield "                ";
  709.         }
  710.         $_parent $context['_parent'];
  711.         unset($context['_seq'], $context['_key'], $context['category'], $context['_parent']);
  712.         $context array_intersect_key($context$_parent) + $_parent;
  713.         // line 303
  714.         yield "                <div class=\"product-list-refine-search\">
  715.                     <span>";
  716.         // line 304
  717.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_no_products", [], "HelensBakery"), "html"nulltrue);
  718.         yield "</span>
  719.                     <a href=\"#\" class=\"product-list-refine-search-clear boldr-button boldr-button-filled\">";
  720.         // line 305
  721.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("show_all_products", [], "HelensBakery"), "html"nulltrue);
  722.         yield "</a>
  723.                 </div>
  724.             </div>
  725.         </div>
  726.         <div class=\"order-window-cart-wrapper\">
  727.             <div class=\"order-window-cart\">
  728.                 <div class=\"order-window-cart-body\">
  729.                     <div class=\"order-window-cart-title\">
  730.                         <span>";
  731.         // line 313
  732.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("my_order", [], "HelensBakery"), "html"nulltrue);
  733.         yield "</span>
  734.                         <i class=\"order-window-cart-title-close icon-chevron-down\"></i>
  735.                     </div>
  736.                     <div class=\"order-window-cart-products\">
  737.                         <div class=\"order-window-cart-mobile-empty\">
  738.                             <span class=\"order-window-cart-mobile-empty-text\">";
  739.         // line 318
  740.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no_products_in_cart", [], "HelensBakery"), "html"nulltrue);
  741.         yield "</span>
  742.                             <a id=\"order-window-cart-mobile-empty-close\" class=\"boldr-button boldr-button-filled\">
  743.                                 ";
  744.         // line 320
  745.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("add_product", [], "HelensBakery"), "html"nulltrue);
  746.         yield "
  747.                             </a>
  748.                         </div>
  749.                         ";
  750.         // line 323
  751.         $context['_parent'] = $context;
  752.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'323$this->source); })()), "items", [], "any"falsefalsefalse323));
  753.         foreach ($context['_seq'] as $context["_key"] => $context["orderItem"]) {
  754.             // line 324
  755.             yield "                            <div class=\"order-window-cart-product\" data-order-item-id=\"";
  756.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["orderItem"], "id", [], "any"falsefalsefalse324), "html"nulltrue);
  757.             yield "\" data-quantity=\"";
  758.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["orderItem"], "quantity", [], "any"falsefalsefalse324), "html"nulltrue);
  759.             yield "\">
  760.                                 <span class=\"order-window-cart-product-quantity\">";
  761.             // line 325
  762.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["orderItem"], "quantity", [], "any"falsefalsefalse325), "html"nulltrue);
  763.             yield "x</span>
  764.                                 <div class=\"order-window-cart-product-info\">
  765.                                     <div class=\"order-window-cart-product-name-price\">
  766.                                         <span class=\"order-window-cart-product-name\">";
  767.             // line 328
  768.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["orderItem"], "productVariant", [], "any"falsefalsefalse328), "name", [], "any"falsefalsefalse328), "html"nulltrue);
  769.             yield "</span>
  770.                                         <span class=\"order-window-cart-product-price\">
  771.                                             ";
  772.             // line 330
  773.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('boldr_shop_format_currency')->getCallable()(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["orderItem"], "price", [], "any"falsefalsefalse330), "totalPriceExcludingModifiers", [], "any"falsefalsefalse330), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'330$this->source); })()), "currency", [], "any"falsefalsefalse330), "isoCode", [], "any"falsefalsefalse330)), "html"nulltrue);
  774.             yield "
  775.                                         </span>
  776.                                     </div>
  777.                                     <div class=\"order-window-cart-product-modifiers\">
  778.                                         ";
  779.             // line 334
  780.             $context['_parent'] = $context;
  781.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["orderItem"], "price", [], "any"falsefalsefalse334), "modifiers", [], "any"falsefalsefalse334));
  782.             foreach ($context['_seq'] as $context["_key"] => $context["modifier"]) {
  783.                 // line 335
  784.                 yield "                                            <div class=\"order-window-cart-product-modifier\">
  785.                                                 <span class=\"order-window-cart-product-modifier-name\">
  786.                                                     ";
  787.                 // line 337
  788.                 yield (((CoreExtension::getAttribute($this->env$this->source$context["modifier"], "quantity", [], "any"falsefalsefalse337) > 1)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env$this->source$context["modifier"], "quantity", [], "any"falsefalsefalse337) . "x"), "html"nulltrue)) : (""));
  789.                 yield " ";
  790.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["modifier"], "name", [], "any"falsefalsefalse337), "html"nulltrue);
  791.                 yield "
  792.                                                 </span>
  793.                                                 <span class=\"order-window-cart-product-modifier-amount\">
  794.                                                     ";
  795.                 // line 340
  796.                 yield (((CoreExtension::getAttribute($this->env$this->source$context["modifier"], "amount", [], "any"falsefalsefalse340) < 0)) ? ("-") : ("+"));
  797.                 yield " ";
  798.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('boldr_shop_format_currency')->getCallable()(abs(CoreExtension::getAttribute($this->env$this->source$context["modifier"], "amount", [], "any"falsefalsefalse340)), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'340$this->source); })()), "currency", [], "any"falsefalsefalse340), "isoCode", [], "any"falsefalsefalse340)), "html"nulltrue);
  799.                 yield "
  800.                                                 </span>
  801.                                             </div>
  802.                                         ";
  803.             }
  804.             $_parent $context['_parent'];
  805.             unset($context['_seq'], $context['_key'], $context['modifier'], $context['_parent']);
  806.             $context array_intersect_key($context$_parent) + $_parent;
  807.             // line 344
  808.             yield "                                    </div>
  809.                                     <div class=\"order-window-cart-product-option-values\">
  810.                                         ";
  811.             // line 346
  812.             $context['_parent'] = $context;
  813.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["orderItem"], "optionValues", [], "any"falsefalsefalse346));
  814.             foreach ($context['_seq'] as $context["_key"] => $context["optionValue"]) {
  815.                 // line 347
  816.                 yield "                                            <div class=\"order-window-cart-product-option-value\">
  817.                                                 ";
  818.                 // line 348
  819.                 if (CoreExtension::getAttribute($this->env$this->source$context["optionValue"], "name", [], "any"falsefalsefalse348)) {
  820.                     // line 349
  821.                     yield "                                                    ";
  822.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["optionValue"], "name", [], "any"falsefalsefalse349), "html"nulltrue);
  823.                     yield ":
  824.                                                 ";
  825.                 }
  826.                 // line 351
  827.                 yield "                                                ";
  828.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["optionValue"], "text", [], "any"falsefalsefalse351), "html"nulltrue);
  829.                 yield "
  830.                                             </div>
  831.                                         ";
  832.             }
  833.             $_parent $context['_parent'];
  834.             unset($context['_seq'], $context['_key'], $context['optionValue'], $context['_parent']);
  835.             $context array_intersect_key($context$_parent) + $_parent;
  836.             // line 354
  837.             yield "                                    </div>
  838.                                     ";
  839.             // line 355
  840.             $context["allergens"] = ["celery""egg""fish""gluten""lupine""milk""mollusks""mustard""nuts""peanut""sesame""shellfish""soy""sulfites"];
  841.             // line 356
  842.             yield "                                    ";
  843.             $context["hasAllergens"] = Twig\Extension\CoreExtension::reduce($this->env, (isset($context["allergens"]) || array_key_exists("allergens"$context) ? $context["allergens"] : (function () { throw new RuntimeError('Variable "allergens" does not exist.'356$this->source); })()), function ($__c__$__v__) use ($context$macros) { $context["c"] = $__c__$context["v"] = $__v__; return ((isset($context["c"]) || array_key_exists("c"$context) ? $context["c"] : (function () { throw new RuntimeError('Variable "c" does not exist.'356$this->source); })()) || CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["orderItem"], "productVariant", [], "any"falsefalsefalse356), "allergens", [], "any"falsefalsefalse356), (isset($context["v"]) || array_key_exists("v"$context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.'356$this->source); })()), [], "any"falsefalsefalse356)); }, false);
  844.             // line 357
  845.             yield "                                    ";
  846.             if ((isset($context["hasAllergens"]) || array_key_exists("hasAllergens"$context) ? $context["hasAllergens"] : (function () { throw new RuntimeError('Variable "hasAllergens" does not exist.'357$this->source); })())) {
  847.                 // line 358
  848.                 yield "                                    <div class=\"order-window-cart-product-allergens\">
  849.                                         <span class=\"order-window-cart-product-allergens-label\">";
  850.                 // line 359
  851.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("allergen_information", [], "HelensBakery"), "html"nulltrue);
  852.                 yield ":</span>
  853.                                         ";
  854.                 // line 360
  855.                 $context['_parent'] = $context;
  856.                 $context['_seq'] = CoreExtension::ensureTraversable((isset($context["allergens"]) || array_key_exists("allergens"$context) ? $context["allergens"] : (function () { throw new RuntimeError('Variable "allergens" does not exist.'360$this->source); })()));
  857.                 foreach ($context['_seq'] as $context["_key"] => $context["allergen"]) {
  858.                     // line 361
  859.                     yield "                                            ";
  860.                     if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["orderItem"], "productVariant", [], "any"falsefalsefalse361), "allergens", [], "any"falsefalsefalse361), $context["allergen"], [], "any"falsefalsefalse361)) {
  861.                         // line 362
  862.                         yield "                                                <img src=\"";
  863.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((((("/assets/images/allergens/" CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'362$this->source); })()), "request", [], "any"falsefalsefalse362), "locale", [], "any"falsefalsefalse362)) . "/") . $context["allergen"]) . ".png")), "html"nulltrue);
  864.                         yield "\"  class=\"order-window-cart-product-allergen\" data-name=\"";
  865.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["allergen"], "html"nulltrue);
  866.                         yield "\">
  867.                                             ";
  868.                     }
  869.                     // line 364
  870.                     yield "                                        ";
  871.                 }
  872.                 $_parent $context['_parent'];
  873.                 unset($context['_seq'], $context['_key'], $context['allergen'], $context['_parent']);
  874.                 $context array_intersect_key($context$_parent) + $_parent;
  875.                 // line 365
  876.                 yield "                                    </div>
  877.                                     ";
  878.             }
  879.             // line 367
  880.             yield "                                    ";
  881.             if (CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'367$this->source); })()), "canItemsBeModified", [], "any"falsefalsefalse367)) {
  882.                 // line 368
  883.                 yield "                                    <div class=\"order-window-cart-product-quantity-buttons\">
  884.                                         <a href=\"#\" class=\"order-window-cart-product-quantity-remove\">
  885.                                             <i class=\"icon-minus\"></i>
  886.                                         </a>
  887.                                         <a href=\"#\" class=\"order-window-cart-product-quantity-add\">
  888.                                             <i class=\"icon-plus\"></i>
  889.                                         </a>
  890.                                     </div>
  891.                                     ";
  892.             }
  893.             // line 377
  894.             yield "                                </div>
  895.                             </div>
  896.                         ";
  897.         }
  898.         $_parent $context['_parent'];
  899.         unset($context['_seq'], $context['_key'], $context['orderItem'], $context['_parent']);
  900.         $context array_intersect_key($context$_parent) + $_parent;
  901.         // line 380
  902.         yield "                    </div>
  903.                     <div class=\"order-window-cart-subtotal-modifiers\" ";
  904.         // line 382
  905.         yield (((CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'382$this->source); })()), "total", [], "any"falsefalsefalse382) == CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'382$this->source); })()), "subtotal", [], "any"falsefalsefalse382))) ? ("style=\"display: none\"") : (""));
  906.         yield ">
  907.                         <div class=\"order-window-cart-subtotal\">
  908.                             <span class=\"order-window-cart-subtotal-text\">";
  909.         // line 384
  910.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sub_total", [], "HelensBakery"), "html"nulltrue);
  911.         yield "</span>
  912.                             <span id=\"order-window-cart-subtotal-amount\" class=\"order-window-cart-subtotal-amount\">";
  913.         // line 385
  914.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('boldr_shop_format_currency')->getCallable()(CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'385$this->source); })()), "subtotal", [], "any"falsefalsefalse385), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'385$this->source); })()), "currency", [], "any"falsefalsefalse385), "isoCode", [], "any"falsefalsefalse385)), "html"nulltrue);
  915.         yield "</span>
  916.                         </div>
  917.                         <div class=\"order-window-cart-modifiers\">
  918.                             ";
  919.         // line 388
  920.         $context['_parent'] = $context;
  921.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'388$this->source); })()), "price", [], "any"falsefalsefalse388), "modifiers", [], "any"falsefalsefalse388));
  922.         foreach ($context['_seq'] as $context["_key"] => $context["modifier"]) {
  923.             // line 389
  924.             yield "                                <div class=\"order-window-cart-subtotal\">
  925.                                     <span class=\"order-window-cart-subtotal-text\">";
  926.             // line 390
  927.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["modifier"], "name", [], "any"falsefalsefalse390), "html"nulltrue);
  928.             yield "</span>
  929.                                     <span class=\"order-window-cart-subtotal-amount\">";
  930.             // line 391
  931.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((CoreExtension::getAttribute($this->env$this->source$context["modifier"], "amount", [], "any"falsefalsefalse391) < 0)) ? ("- ") : ("")) . $this->env->getFunction('boldr_shop_format_currency')->getCallable()(abs(CoreExtension::getAttribute($this->env$this->source$context["modifier"], "amount", [], "any"falsefalsefalse391)), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'391$this->source); })()), "currency", [], "any"falsefalsefalse391), "isoCode", [], "any"falsefalsefalse391))), "html"nulltrue);
  932.             yield "</span>
  933.                                 </div>
  934.                             ";
  935.         }
  936.         $_parent $context['_parent'];
  937.         unset($context['_seq'], $context['_key'], $context['modifier'], $context['_parent']);
  938.         $context array_intersect_key($context$_parent) + $_parent;
  939.         // line 394
  940.         yield "                        </div>
  941.                     </div>
  942.                 </div>
  943.                 <div class=\"order-window-cart-footer\">
  944.                     <div class=\"order-window-cart-subtotal\">
  945.                         <span class=\"order-window-cart-subtotal-text\">";
  946.         // line 402
  947.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("total", [], "HelensBakery"), "html"nulltrue);
  948.         yield "</span>
  949.                         <span id=\"order-window-cart-total-amount\" class=\"order-window-cart-subtotal-amount\">";
  950.         // line 403
  951.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('boldr_shop_format_currency')->getCallable()(CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'403$this->source); })()), "total", [], "any"falsefalsefalse403), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'403$this->source); })()), "currency", [], "any"falsefalsefalse403), "isoCode", [], "any"falsefalsefalse403)), "html"nulltrue);
  952.         yield "</span>
  953.                     </div>
  954.                     ";
  955.         // line 406
  956.         if ( !CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'406$this->source); })()), "canItemsBeModified", [], "any"falsefalsefalse406)) {
  957.             // line 407
  958.             yield "                        <p>
  959.                             ";
  960.             // line 408
  961.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cant_add_while_paying", [], "HelensBakery"), "html"nulltrue);
  962.             yield "
  963.                         </p>
  964.                     ";
  965.         }
  966.         // line 411
  967.         yield "
  968.                     <div class=\"order-window-cart-next-states\">
  969.                         ";
  970.         // line 413
  971.         $context['_parent'] = $context;
  972.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'413$this->source); })()), "nextStates", [], "any"falsefalsefalse413));
  973.         foreach ($context['_seq'] as $context["_key"] => $context["nextState"]) {
  974.             // line 414
  975.             yield "                            <a href=\"";
  976.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["nextState"], "url", [], "any"falsefalsefalse414), "html"nulltrue);
  977.             yield "\" class=\"order-window-cart-next-state boldr-button boldr-button-highlight\">
  978.                                 ";
  979.             // line 415
  980.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["nextState"], "buttonText", [], "any"falsefalsefalse415), "html"nulltrue);
  981.             yield "
  982.                             </a>
  983.                         ";
  984.         }
  985.         $_parent $context['_parent'];
  986.         unset($context['_seq'], $context['_key'], $context['nextState'], $context['_parent']);
  987.         $context array_intersect_key($context$_parent) + $_parent;
  988.         // line 418
  989.         yield "                    </div>
  990.                 </div>
  991.             </div>
  992.         </div>
  993.     </div>
  994. ";
  995.         
  996.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  997.         
  998.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  999.         yield from [];
  1000.     }
  1001.     /**
  1002.      * @codeCoverageIgnore
  1003.      */
  1004.     public function getTemplateName(): string
  1005.     {
  1006.         return "@BoldrShop/shop.html.twig";
  1007.     }
  1008.     /**
  1009.      * @codeCoverageIgnore
  1010.      */
  1011.     public function isTraitable(): bool
  1012.     {
  1013.         return false;
  1014.     }
  1015.     /**
  1016.      * @codeCoverageIgnore
  1017.      */
  1018.     public function getDebugInfo(): array
  1019.     {
  1020.         return array (  1034 => 418,  1025 => 415,  1020 => 414,  1016 => 413,  1012 => 411,  1006 => 408,  1003 => 407,  1001 => 406,  995 => 403,  991 => 402,  981 => 394,  972 => 391,  968 => 390,  965 => 389,  961 => 388,  955 => 385,  951 => 384,  946 => 382,  942 => 380,  934 => 377,  923 => 368,  920 => 367,  916 => 365,  910 => 364,  902 => 362,  899 => 361,  895 => 360,  891 => 359,  888 => 358,  885 => 357,  882 => 356,  880 => 355,  877 => 354,  867 => 351,  861 => 349,  859 => 348,  856 => 347,  852 => 346,  848 => 344,  836 => 340,  828 => 337,  824 => 335,  820 => 334,  813 => 330,  808 => 328,  802 => 325,  795 => 324,  791 => 323,  785 => 320,  780 => 318,  772 => 313,  761 => 305,  757 => 304,  754 => 303,  748 => 302,  740 => 296,  726 => 288,  720 => 285,  716 => 283,  710 => 281,  708 => 280,  704 => 279,  700 => 277,  694 => 273,  688 => 271,  685 => 270,  681 => 268,  678 => 267,  672 => 265,  669 => 264,  663 => 262,  660 => 261,  656 => 259,  654 => 258,  650 => 256,  644 => 254,  642 => 253,  633 => 251,  630 => 250,  628 => 249,  623 => 247,  619 => 246,  615 => 245,  611 => 244,  607 => 243,  603 => 242,  599 => 241,  595 => 240,  591 => 239,  587 => 238,  583 => 237,  579 => 236,  575 => 235,  571 => 234,  567 => 233,  563 => 232,  559 => 231,  555 => 230,  551 => 229,  547 => 228,  543 => 227,  539 => 226,  534 => 225,  531 => 224,  527 => 223,  521 => 220,  513 => 218,  510 => 217,  507 => 216,  503 => 215,  496 => 212,  494 => 211,  481 => 210,  464 => 203,  460 => 202,  447 => 192,  443 => 190,  437 => 189,  428 => 182,  411 => 170,  405 => 168,  403 => 167,  396 => 163,  390 => 160,  384 => 157,  380 => 156,  375 => 155,  371 => 154,  359 => 145,  351 => 139,  348 => 138,  345 => 137,  341 => 136,  337 => 135,  331 => 131,  326 => 127,  317 => 119,  306 => 117,  302 => 116,  297 => 114,  291 => 110,  280 => 102,  275 => 99,  266 => 96,  261 => 95,  257 => 94,  251 => 91,  247 => 89,  245 => 88,  238 => 83,  225 => 82,  213 => 79,  207 => 78,  201 => 75,  196 => 74,  193 => 73,  190 => 72,  185 => 71,  180 => 67,  174 => 52,  166 => 45,  161 => 39,  154 => 35,  147 => 31,  137 => 24,  133 => 22,  125 => 17,  112 => 16,  98 => 12,  94 => 11,  88 => 9,  75 => 8,  64 => 6,  62 => 4,  60 => 3,  58 => 2,  56 => 1,  43 => 6,);
  1021.     }
  1022.     public function getSourceContext(): Source
  1023.     {
  1024.         return new Source("{% set assets = assets|default(boldr_cms_get_assets()) %}
  1025. {% do assets.addJsFile(asset('assets/js/shop.js')) %}
  1026. {% set cart = boldr_shop_get_cart() %}
  1027. {% set isShop = true %}
  1028. {% extends 'base.html.twig' %}
  1029. {% block head %}
  1030.     {{ parent() }}
  1031.     <script>
  1032.         let currentCurrency = {{ boldr_shop_get_currency()|json_encode|raw }};
  1033.         const ALLERGEN_IMAGE_URL = '{{ asset('/assets/images/allergens/' ~ app.request.locale ~ '/ALLERGEN.png') }}';
  1034.     </script>
  1035. {% endblock %}
  1036. {% block header_wrapper_content %}
  1037.     {{ parent() }}
  1038.     <div class=\"subheader-filter-search\">
  1039.         <div class=\"subheader-filter-search-controls\">
  1040.             <div class=\"subheader-filter\">
  1041.                 {# Filter op #}
  1042.                 <a href=\"#\" class=\"subheader-filter-button boldr-button boldr-button-outline-light\">
  1043.                     <i class=\"icon-filter\"></i>
  1044.                     <span class=\"boldr-button-text\">{{ 'filter_by'|trans({}, 'HelensBakery') }}</span>
  1045.                     <i class=\"icon-chevron-down\"></i>
  1046.                     <span class=\"subheader-filter-button-count\"></span>
  1047.                 </a>
  1048.                 <div class=\"subheader-filter-dropdown hide-past-scroll\">
  1049.                     <div class=\"form-label-control\">
  1050.                         <input id=\"subheader-filter-choice-beef\" type=\"checkbox\" data-property=\"beef\" />
  1051.                         <label for=\"subheader-filter-choice-beef\"><i class=\"icon-rundvlees\"></i> {{ '100percent_beef'|trans({}, 'HelensBakery') }}</label>
  1052.                     </div>
  1053.                     <div class=\"form-label-control\">
  1054.                         <input id=\"subheader-filter-choice-vegan\" type=\"checkbox\" data-property=\"vegan\" />
  1055.                         <label for=\"subheader-filter-choice-vegan\"><i class=\"icon-vegan\"></i> {{ 'vegan'|trans({}, 'HelensBakery') }}</label>
  1056.                     </div>
  1057.                     <div class=\"form-label-control\">
  1058.                         <input id=\"subheader-filter-choice-vegetarian\" type=\"checkbox\" data-property=\"vegetarian\" />
  1059.                         <label for=\"subheader-filter-choice-vegetarian\"><i class=\"icon-vegetarian\"></i> {{ 'vegetarian'|trans({}, 'HelensBakery') }}</label>
  1060.                     </div>
  1061.                     {# <div class=\"form-label-control\">
  1062.                         <input id=\"subheader-filter-choice-fish\" type=\"checkbox\" data-property=\"fish\" />
  1063.                         <label for=\"subheader-filter-choice-fish\"><i class=\"icon-vis\"></i> Vis</label>
  1064.                     </div> #}
  1065.                     <div class=\"form-label-control\">
  1066.                         <input id=\"subheader-filter-choice-homemade\" type=\"checkbox\" data-property=\"homemade\" />
  1067.                         <label for=\"subheader-filter-choice-homemade\"><i class=\"icon-homemade\"></i></label>
  1068.                     </div>
  1069.                 </div>
  1070.             </div>
  1071.             {# Zoeken #}
  1072.             <input type=\"search\" class=\"subheader-search-input\" placeholder=\"{{ 'search'|trans({}, 'HelensBakery') }}\" />
  1073.         </div>
  1074.         {#
  1075.         <div class=\"subheader-shop-switcher\">
  1076.             <a href=\"#\" class=\"subheader-shop-switcher-button boldr-button boldr-button-outline-light\">
  1077.                 <span class=\"boldr-button-text\">Locatie: {{ cart.shop.name }}</span>
  1078.                 <i class=\"icon-chevron-down\"></i>
  1079.             </a>
  1080.             <div class=\"subheader-shop-switcher-dropdown\">
  1081.                 {% for shop in boldr_multishop_get_shops() %}
  1082.                     <a data-id=\"{{ shop.id }}\">{{ shop.name }}</a>
  1083.                 {% endfor %}
  1084.             </div>
  1085.         </div>
  1086.         #}
  1087.     </div>
  1088.     <div class=\"subheader-categories\">
  1089.         {# Categories #}
  1090.         {% for category in categories %}
  1091.             {% set categoryCatalogProducts = catalogProducts|filter(catalogProduct => category in catalogProduct.product.categories) %}
  1092.             {% if categoryCatalogProducts|length > 0 %}
  1093.                 <a href=\"#\" data-id=\"{{ category.id }}\">
  1094.                     {{ category.name }}
  1095.                 </a>
  1096.             {% endif %}
  1097.         {% endfor %}
  1098.     </div>
  1099. {% endblock %}
  1100. {% block overlays %}
  1101.     <div class=\"overlay\" id=\"overlay-add-product\">
  1102.         <a href=\"#\" class=\"overlay-close\">
  1103.             <i class=\"icon-plus\"></i>
  1104.         </a>
  1105.         <div class=\"overlay-content overlay-add-product\">
  1106.             {% if not cart.canItemsBeModified %}
  1107.                 <div style=\"padding: 20px\">
  1108.                     <p>
  1109.                         {{ 'cant_add_while_paying'|trans({}, 'HelensBakery') }}
  1110.                     </p>
  1111.                     <div class=\"order-window-cart-next-states\">
  1112.                         {% for nextState in cart.nextStates %}
  1113.                             <a href=\"{{ nextState.url }}\" class=\"order-window-cart-next-state boldr-button boldr-button-highlight\">
  1114.                                 {{ nextState.buttonText }}
  1115.                             </a>
  1116.                         {% endfor %}
  1117.                     </div>
  1118.                 </div>
  1119.             {% endif %}
  1120.             <div class=\"overlay-add-product-content\" {{ not cart.canItemsBeModified ? 'style=\"display: none\"' }}>
  1121.                 <div class=\"overlay-add-product-info\">
  1122.                     <div class=\"overlay-add-product-info-header\">
  1123.                         <a class=\"overlay-add-product-info-header-close-mobile\">
  1124.                             <i class=\"icon-arrow-left\"></i>
  1125.                         </a>
  1126.                         {# Heading image #}
  1127.                         <img class=\"overlay-add-product-info-header-image\" />
  1128.                         <div class=\"overlay-add-product-info-header-allergens\">
  1129.                             <div class=\"overlay-add-product-info-header-allergens-title\">{{ 'allergen_information'|trans({}, 'HelensBakery') }}:</div>
  1130.                             <div class=\"overlay-add-product-info-header-allergens-list\">
  1131.                                 {% for allergen in ['celery', 'egg', 'fish', 'gluten', 'lupine', 'milk', 'mollusks', 'mustard', 'nuts', 'peanut', 'sesame', 'shellfish', 'soy', 'sulfites'] %}
  1132.                                 <img src=\"{{ asset('/assets/images/allergens/' ~ app.request.locale ~ '/' ~ allergen ~ '.png') }}\"  class=\"overlay-add-product-info-header-allergen\" data-name=\"{{ allergen }}\">
  1133.                             {% endfor %}
  1134.                             </div>
  1135.                         </div>
  1136.                     </div>
  1137.                     <div class=\"overlay-add-product-info-content\">
  1138.                         {# Product details #}
  1139.                         <span class=\"overlay-add-product-info-name\"></span>
  1140.                         <span class=\"overlay-add-product-info-details\"></span>
  1141.                         {# Options #}
  1142.                         <div class=\"overlay-add-product-info-options\"></div>
  1143.                     </div>
  1144.                 </div>
  1145.                 <div class=\"overlay-add-product-extra\">
  1146.                     <span class=\"overlay-add-product-extra-heading\">{{ 'shop.add_extras'|trans }}</span>
  1147.                     {% for category in categories|filter(category => category.hbVisibleInExtras) %}
  1148.                         {% set categoryCatalogProducts = catalogProducts|filter(catalogProduct => category in catalogProduct.product.categories) %}
  1149.                         {% if categoryCatalogProducts|length > 0 %}
  1150.                             <div class=\"overlay-add-product-extra-category\">
  1151.                                 <span class=\"overlay-add-product-extra-category-selection-count\">
  1152.                                     0
  1153.                                 </span>
  1154.                                 <div class=\"overlay-add-product-extra-category-heading\">
  1155.                                     <span class=\"overlay-add-product-extra-category-name\">
  1156.                                         {{ category.name }}
  1157.                                     </span>
  1158.                                     <a href=\"#\" class=\"overlay-add-product-extra-category-toggle\">
  1159.                                         <i class=\"icon-plus\"></i>
  1160.                                         <i class=\"icon-minus\"></i>
  1161.                                     </a>
  1162.                                 </div>
  1163.                                 <div class=\"overlay-add-product-extra-category-products-wrapper\">
  1164.                                     <div class=\"overlay-add-product-extra-category-products\">
  1165.                                         {% for catalogProduct in categoryCatalogProducts|sort((a, b) => a.product.name <=> b.product.name) %}
  1166.                                             <div class=\"overlay-add-product-extra-product\" data-product-variant-id=\"{{ catalogProduct.variants[0].productVariant.id }}\"
  1167.                                                 data-product-id=\"{{ catalogProduct.product.id }}\"
  1168.                                                 data-price=\"{{ catalogProduct.variants[0].totalPrice }}\">
  1169.                                                 <div class=\"overlay-add-product-extra-product-info\">
  1170.                                                     <span class=\"overlay-add-product-extra-product-name\">
  1171.                                                         {{ catalogProduct.product.name }}
  1172.                                                     </span>
  1173.                                                     <span class=\"overlay-add-product-extra-product-price\">
  1174.                                                         + {{ boldr_shop_format_currency(catalogProduct.variants[0].totalPrice, catalogProduct.variants[0].currency.isoCode) }}
  1175.                                                     </span>
  1176.                                                 </div>
  1177.                                                 <div class=\"overlay-add-product-extra-product-image-and-controls\">
  1178.                                                     {% if catalogProduct.product.primaryImage is not null %}
  1179.                                                         <img src=\"{{ catalogProduct.product.primaryImage.attachment.Sizes.small }}\" class=\"overlay-add-product-extra-product-image\" />
  1180.                                                     {% endif %}
  1181.                                                     <div class=\"overlay-add-product-extra-product-controls\">
  1182.                                                         <a href=\"#\" class=\"overlay-add-product-extra-product-minus\">
  1183.                                                             <i class=\"icon-minus\"></i>
  1184.                                                         </a>
  1185.                                                         <span class=\"overlay-add-product-extra-product-quantity\">0</span>
  1186.                                                         <a href=\"#\" class=\"overlay-add-product-extra-product-plus\">
  1187.                                                             <i class=\"icon-plus\"></i>
  1188.                                                         </a>
  1189.                                                     </div>
  1190.                                                 </div>
  1191.                                             </div>
  1192.                                         {% endfor %}
  1193.                                         <div class=\"overlay-add-product-extra-product-spacer\"></div>
  1194.                                         <div class=\"overlay-add-product-extra-product-spacer\"></div>
  1195.                                         <div class=\"overlay-add-product-extra-product-spacer\"></div>
  1196.                                     </div>
  1197.                                 </div>
  1198.                             </div>
  1199.                         {% endif %}
  1200.                     {% endfor %}
  1201.                 </div>
  1202.             </div>
  1203.             <div class=\"overlay-add-product-add\" {{ not cart.canItemsBeModified ? 'style=\"display: none\"' }}>
  1204.                 <div class=\"overlay-add-product-add-prices\">
  1205.                     <span class=\"overlay-add-product-add-price\">
  1206.                         &euro;3.20
  1207.                     </span>
  1208.                     <span class=\"overlay-add-product-add-additional-price\">
  1209.                     </span>
  1210.                 </div>
  1211.                 <a href=\"#\" class=\"boldr-button boldr-button-medium boldr-button-highlight overlay-add-product-add-button\">
  1212.                     <span class=\"text-mobile\">{{ 'add'|trans({}, 'HelensBakery') }}</span>
  1213.                     <span class=\"text-desktop\">{{ 'add_to_cart'|trans({}, 'HelensBakery') }}</span>
  1214.                 </a>
  1215.             </div>
  1216.         </div>
  1217.     </div>
  1218. {% endblock %}
  1219. {% block body %}
  1220.     {# Products #}
  1221.     <div class=\"order-window {{ cart.items|length > 0 ? 'order-window-cart-visible' }}\">
  1222.         <div class=\"product-list-wrapper\">
  1223.             <div class=\"product-list\">
  1224.                 {% for category in categories %}
  1225.                     {% set categoryCatalogProducts = catalogProducts|filter(catalogProduct => category in catalogProduct.product.categories) %}
  1226.                     {% if categoryCatalogProducts|length > 0 %}
  1227.                         <div class=\"product-list-category\" data-id=\"{{ category.id }}\" data-show-extras=\"{{ category.hbShowExtras ? 'true' : 'false' }}\">
  1228.                             <div class=\"product-list-category-header\">
  1229.                                 {{ category.name }}
  1230.                             </div>
  1231.                             <div class=\"product-list-category-products\">
  1232.                                 {% for catalogProduct in categoryCatalogProducts|sort((a, b) => a.product.name|split('.')[0] <=> b.product.name|split('.')[0]) %}
  1233.                                     {% set variant = catalogProduct.variants[0] %}
  1234.                                     <div class=\"product-list-product\" data-product-variant-id=\"{{ variant.productVariant.id }}\"
  1235.                                         data-price=\"{{ variant.totalPrice }}\"
  1236.                                         data-new=\"{{ catalogProduct.product.new ? 'true' : 'false' }}\"
  1237.                                         data-homemade=\"{{ catalogProduct.product.homemade ? 'true' : 'false' }}\"
  1238.                                         data-vegan=\"{{ catalogProduct.product.vegan ? 'true' : 'false' }}\"
  1239.                                         data-vegetarian=\"{{ catalogProduct.product.vegetarian ? 'true' : 'false' }}\"
  1240.                                         data-fish=\"{{ catalogProduct.product.fish ? 'true' : 'false' }}\"
  1241.                                         data-beef=\"{{ catalogProduct.product.beef ? 'true' : 'false' }}\"
  1242.                                         data-image-large=\"{{ catalogProduct.product.primaryImage is not null ? catalogProduct.product.primaryImage.attachment.sizes.large }}\"
  1243.                                         data-allergen-gluten=\"{{ variant.productVariant.allergens.gluten ? 'true' : 'false' }}\"
  1244.                                         data-allergen-egg=\"{{ variant.productVariant.allergens.egg ? 'true' : 'false' }}\"
  1245.                                         data-allergen-fish=\"{{ variant.productVariant.allergens.fish ? 'true' : 'false' }}\"
  1246.                                         data-allergen-peanut=\"{{ variant.productVariant.allergens.peanut ? 'true' : 'false' }}\"
  1247.                                         data-allergen-nuts=\"{{ variant.productVariant.allergens.nuts ? 'true' : 'false' }}\"
  1248.                                         data-allergen-soy=\"{{ variant.productVariant.allergens.soy ? 'true' : 'false' }}\"
  1249.                                         data-allergen-milk=\"{{ variant.productVariant.allergens.milk ? 'true' : 'false' }}\"
  1250.                                         data-allergen-shellfish=\"{{ variant.productVariant.allergens.shellfish ? 'true' : 'false' }}\"
  1251.                                         data-allergen-mollusks=\"{{ variant.productVariant.allergens.mollusks ? 'true' : 'false' }}\"
  1252.                                         data-allergen-celery=\"{{ variant.productVariant.allergens.celery ? 'true' : 'false' }}\"
  1253.                                         data-allergen-mustard=\"{{ variant.productVariant.allergens.mustard ? 'true' : 'false' }}\"
  1254.                                         data-allergen-sesame=\"{{ variant.productVariant.allergens.sesame ? 'true' : 'false' }}\"
  1255.                                         data-allergen-sulfites=\"{{ variant.productVariant.allergens.sulfites ? 'true' : 'false' }}\"
  1256.                                         data-allergen-lupine=\"{{ variant.productVariant.allergens.lupine ? 'true' : 'false' }}\"
  1257.                                     >
  1258.                                         {% if catalogProduct.product.primaryImage %}
  1259.                                             <div class=\"product-list-product-header\">
  1260.                                                 <img src=\"{{ catalogProduct.product.primaryImage.attachment.sizes.medium }}\" style=\"object-fit: {{ catalogProduct.product.primaryImage.cover ? 'cover' : 'contain' }}; object-position: {{ catalogProduct.product.primaryImage.positionX ~ ' ' ~ catalogProduct.product.primaryImage.positionY }}\" class=\"product-list-product-image\" />
  1261.                                                 {% if catalogProduct.product.new %}
  1262.                                                     <span class=\"badge-new\">{{ 'new'|trans({}, 'HelensBakery') }}</span>
  1263.                                                 {% endif %}
  1264.                                                 <div class=\"product-list-product-variants\">
  1265.                                                     {% if catalogProduct.product.homemade %}
  1266.                                                         <i class=\"icon-homemade\" title=\"Homemade\"></i>
  1267.                                                     {% endif %}
  1268.                                                     {% if catalogProduct.product.vegan %}
  1269.                                                         <i class=\"icon-vegan\" title=\"{{ 'vegan'|trans({}, 'HelensBakery') }}\"></i>
  1270.                                                     {% endif %}
  1271.                                                     {% if catalogProduct.product.vegetarian %}
  1272.                                                         <i class=\"icon-vegetarian\" title=\"{{ 'vegetarian'|trans({}, 'HelensBakery') }}\"></i>
  1273.                                                     {% endif %}
  1274.                                                     {% if catalogProduct.product.fish %}
  1275.                                                         <i class=\"icon-vis\" title=\"Vis\"></i>
  1276.                                                     {% endif %}
  1277.                                                     {% if catalogProduct.product.beef %}
  1278.                                                         <i class=\"icon-rundvlees\" title=\"{{ '100percent_beef'|trans({}, 'HelensBakery') }}\"></i>
  1279.                                                     {% endif %}
  1280.                                                 </div>
  1281.                                             </div>
  1282.                                         {% endif %}
  1283.                                         <div class=\"product-list-product-info\">
  1284.                                             <span class=\"product-list-product-name\">
  1285.                                                 {{ catalogProduct.product.name }}
  1286.                                                 {% if not variant.inStock %}
  1287.                                                     {{ 'sold_out'|trans({}, 'HelensBakery') }}
  1288.                                                 {% endif %}
  1289.                                             </span>
  1290.                                             <span class=\"product-list-product-details\">
  1291.                                                 {{ catalogProduct.product.description|default(catalogProduct.product.ingredients|map(ingredient => ingredient.name)|join(', '))|striptags|raw }}
  1292.                                             </span>
  1293.                                             <span class=\"product-list-product-price\">
  1294.                                                 {{ boldr_shop_format_currency(variant.totalPrice, variant.currency.isoCode) }}
  1295.                                             </span>
  1296.                                         </div>
  1297.                                         <a class=\"product-list-product-add\" href=\"#\">
  1298.                                             <i class=\"icon-plus\"></i>
  1299.                                         </a>
  1300.                                     </div>
  1301.                                 {% endfor %}
  1302.                                 <div class=\"product-list-product-spacer\"></div>
  1303.                                 <div class=\"product-list-product-spacer\"></div>
  1304.                                 <div class=\"product-list-product-spacer\"></div>
  1305.                             </div>
  1306.                         </div>
  1307.                     {% endif %}
  1308.                 {% endfor %}
  1309.                 <div class=\"product-list-refine-search\">
  1310.                     <span>{{ 'search_no_products'|trans({}, 'HelensBakery') }}</span>
  1311.                     <a href=\"#\" class=\"product-list-refine-search-clear boldr-button boldr-button-filled\">{{ 'show_all_products'|trans({}, 'HelensBakery') }}</a>
  1312.                 </div>
  1313.             </div>
  1314.         </div>
  1315.         <div class=\"order-window-cart-wrapper\">
  1316.             <div class=\"order-window-cart\">
  1317.                 <div class=\"order-window-cart-body\">
  1318.                     <div class=\"order-window-cart-title\">
  1319.                         <span>{{ 'my_order'|trans({}, 'HelensBakery') }}</span>
  1320.                         <i class=\"order-window-cart-title-close icon-chevron-down\"></i>
  1321.                     </div>
  1322.                     <div class=\"order-window-cart-products\">
  1323.                         <div class=\"order-window-cart-mobile-empty\">
  1324.                             <span class=\"order-window-cart-mobile-empty-text\">{{ 'no_products_in_cart'|trans({}, 'HelensBakery') }}</span>
  1325.                             <a id=\"order-window-cart-mobile-empty-close\" class=\"boldr-button boldr-button-filled\">
  1326.                                 {{ 'add_product'|trans({}, 'HelensBakery') }}
  1327.                             </a>
  1328.                         </div>
  1329.                         {% for orderItem in cart.items %}
  1330.                             <div class=\"order-window-cart-product\" data-order-item-id=\"{{ orderItem.id }}\" data-quantity=\"{{ orderItem.quantity }}\">
  1331.                                 <span class=\"order-window-cart-product-quantity\">{{ orderItem.quantity }}x</span>
  1332.                                 <div class=\"order-window-cart-product-info\">
  1333.                                     <div class=\"order-window-cart-product-name-price\">
  1334.                                         <span class=\"order-window-cart-product-name\">{{ orderItem.productVariant.name }}</span>
  1335.                                         <span class=\"order-window-cart-product-price\">
  1336.                                             {{ boldr_shop_format_currency(orderItem.price.totalPriceExcludingModifiers, cart.currency.isoCode) }}
  1337.                                         </span>
  1338.                                     </div>
  1339.                                     <div class=\"order-window-cart-product-modifiers\">
  1340.                                         {% for modifier in orderItem.price.modifiers %}
  1341.                                             <div class=\"order-window-cart-product-modifier\">
  1342.                                                 <span class=\"order-window-cart-product-modifier-name\">
  1343.                                                     {{ modifier.quantity > 1 ? modifier.quantity ~ 'x' }} {{ modifier.name }}
  1344.                                                 </span>
  1345.                                                 <span class=\"order-window-cart-product-modifier-amount\">
  1346.                                                     {{ modifier.amount < 0 ? '-' : '+' }} {{ boldr_shop_format_currency(modifier.amount|abs, cart.currency.isoCode) }}
  1347.                                                 </span>
  1348.                                             </div>
  1349.                                         {% endfor %}
  1350.                                     </div>
  1351.                                     <div class=\"order-window-cart-product-option-values\">
  1352.                                         {% for optionValue in orderItem.optionValues %}
  1353.                                             <div class=\"order-window-cart-product-option-value\">
  1354.                                                 {% if optionValue.name %}
  1355.                                                     {{ optionValue.name }}:
  1356.                                                 {% endif %}
  1357.                                                 {{ optionValue.text }}
  1358.                                             </div>
  1359.                                         {% endfor %}
  1360.                                     </div>
  1361.                                     {% set allergens = ['celery', 'egg', 'fish', 'gluten', 'lupine', 'milk', 'mollusks', 'mustard', 'nuts', 'peanut', 'sesame', 'shellfish', 'soy', 'sulfites']  %}
  1362.                                     {% set hasAllergens = allergens|reduce((c, v) => c or attribute(orderItem.productVariant.allergens, v), false) %}
  1363.                                     {% if hasAllergens %}
  1364.                                     <div class=\"order-window-cart-product-allergens\">
  1365.                                         <span class=\"order-window-cart-product-allergens-label\">{{ 'allergen_information'|trans({}, 'HelensBakery') }}:</span>
  1366.                                         {% for allergen in allergens %}
  1367.                                             {% if attribute(orderItem.productVariant.allergens, allergen) %}
  1368.                                                 <img src=\"{{ asset('/assets/images/allergens/' ~ app.request.locale ~ '/' ~ allergen ~ '.png') }}\"  class=\"order-window-cart-product-allergen\" data-name=\"{{ allergen }}\">
  1369.                                             {% endif %}
  1370.                                         {% endfor %}
  1371.                                     </div>
  1372.                                     {% endif %}
  1373.                                     {% if cart.canItemsBeModified %}
  1374.                                     <div class=\"order-window-cart-product-quantity-buttons\">
  1375.                                         <a href=\"#\" class=\"order-window-cart-product-quantity-remove\">
  1376.                                             <i class=\"icon-minus\"></i>
  1377.                                         </a>
  1378.                                         <a href=\"#\" class=\"order-window-cart-product-quantity-add\">
  1379.                                             <i class=\"icon-plus\"></i>
  1380.                                         </a>
  1381.                                     </div>
  1382.                                     {% endif %}
  1383.                                 </div>
  1384.                             </div>
  1385.                         {% endfor %}
  1386.                     </div>
  1387.                     <div class=\"order-window-cart-subtotal-modifiers\" {{ cart.total == cart.subtotal ? 'style=\"display: none\"' }}>
  1388.                         <div class=\"order-window-cart-subtotal\">
  1389.                             <span class=\"order-window-cart-subtotal-text\">{{ 'sub_total'|trans({}, 'HelensBakery') }}</span>
  1390.                             <span id=\"order-window-cart-subtotal-amount\" class=\"order-window-cart-subtotal-amount\">{{ boldr_shop_format_currency(cart.subtotal, cart.currency.isoCode) }}</span>
  1391.                         </div>
  1392.                         <div class=\"order-window-cart-modifiers\">
  1393.                             {% for modifier in cart.price.modifiers %}
  1394.                                 <div class=\"order-window-cart-subtotal\">
  1395.                                     <span class=\"order-window-cart-subtotal-text\">{{ modifier.name }}</span>
  1396.                                     <span class=\"order-window-cart-subtotal-amount\">{{ (modifier.amount < 0 ? '- ' : '') ~ boldr_shop_format_currency(modifier.amount|abs, cart.currency.isoCode) }}</span>
  1397.                                 </div>
  1398.                             {% endfor %}
  1399.                         </div>
  1400.                     </div>
  1401.                 </div>
  1402.                 <div class=\"order-window-cart-footer\">
  1403.                     <div class=\"order-window-cart-subtotal\">
  1404.                         <span class=\"order-window-cart-subtotal-text\">{{ 'total'|trans({}, 'HelensBakery') }}</span>
  1405.                         <span id=\"order-window-cart-total-amount\" class=\"order-window-cart-subtotal-amount\">{{ boldr_shop_format_currency(cart.total, cart.currency.isoCode) }}</span>
  1406.                     </div>
  1407.                     {% if not cart.canItemsBeModified %}
  1408.                         <p>
  1409.                             {{ 'cant_add_while_paying'|trans({}, 'HelensBakery') }}
  1410.                         </p>
  1411.                     {% endif %}
  1412.                     <div class=\"order-window-cart-next-states\">
  1413.                         {% for nextState in cart.nextStates %}
  1414.                             <a href=\"{{ nextState.url }}\" class=\"order-window-cart-next-state boldr-button boldr-button-highlight\">
  1415.                                 {{ nextState.buttonText }}
  1416.                             </a>
  1417.                         {% endfor %}
  1418.                     </div>
  1419.                 </div>
  1420.             </div>
  1421.         </div>
  1422.     </div>
  1423. {% endblock %}
  1424. ""@BoldrShop/shop.html.twig""/home/boldrdev/sites/hb/app/templates/bundles/BoldrShopBundle/shop.html.twig");
  1425.     }
  1426. }