<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* @BoldrShop/shop.html.twig */
class __TwigTemplate_245102590e7014d15f07e2109c3cd605 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'head' => [$this, 'block_head'],
'header_wrapper_content' => [$this, 'block_header_wrapper_content'],
'overlays' => [$this, 'block_overlays'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 6
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BoldrShop/shop.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BoldrShop/shop.html.twig"));
// line 1
$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)));
// line 2
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", false, false, false, 2);
// line 3
$context["cart"] = $this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->createCartView();
// line 4
$context["isShop"] = true;
// line 6
$this->parent = $this->loadTemplate("base.html.twig", "@BoldrShop/shop.html.twig", 6);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 8
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_head(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 9
yield " ";
yield from $this->yieldParentBlock("head", $context, $blocks);
yield "
<script>
let currentCurrency = ";
// line 11
yield json_encode($this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->getCurrency());
yield ";
const ALLERGEN_IMAGE_URL = '";
// line 12
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("/assets/images/allergens/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 12), "locale", [], "any", false, false, false, 12)) . "/ALLERGEN.png")), "html", null, true);
yield "';
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 16
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_wrapper_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_wrapper_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_wrapper_content"));
// line 17
yield " ";
yield from $this->yieldParentBlock("header_wrapper_content", $context, $blocks);
yield "
<div class=\"subheader-filter-search\">
<div class=\"subheader-filter-search-controls\">
<div class=\"subheader-filter\">
";
// line 22
yield " <a href=\"#\" class=\"subheader-filter-button boldr-button boldr-button-outline-light\">
<i class=\"icon-filter\"></i>
<span class=\"boldr-button-text\">";
// line 24
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("filter_by", [], "HelensBakery"), "html", null, true);
yield "</span>
<i class=\"icon-chevron-down\"></i>
<span class=\"subheader-filter-button-count\"></span>
</a>
<div class=\"subheader-filter-dropdown hide-past-scroll\">
<div class=\"form-label-control\">
<input id=\"subheader-filter-choice-beef\" type=\"checkbox\" data-property=\"beef\" />
<label for=\"subheader-filter-choice-beef\"><i class=\"icon-rundvlees\"></i> ";
// line 31
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("100percent_beef", [], "HelensBakery"), "html", null, true);
yield "</label>
</div>
<div class=\"form-label-control\">
<input id=\"subheader-filter-choice-vegan\" type=\"checkbox\" data-property=\"vegan\" />
<label for=\"subheader-filter-choice-vegan\"><i class=\"icon-vegan\"></i> ";
// line 35
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vegan", [], "HelensBakery"), "html", null, true);
yield "</label>
</div>
<div class=\"form-label-control\">
<input id=\"subheader-filter-choice-vegetarian\" type=\"checkbox\" data-property=\"vegetarian\" />
<label for=\"subheader-filter-choice-vegetarian\"><i class=\"icon-vegetarian\"></i> ";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vegetarian", [], "HelensBakery"), "html", null, true);
yield "</label>
</div>
";
// line 45
yield " <div class=\"form-label-control\">
<input id=\"subheader-filter-choice-homemade\" type=\"checkbox\" data-property=\"homemade\" />
<label for=\"subheader-filter-choice-homemade\"><i class=\"icon-homemade\"></i></label>
</div>
</div>
</div>
";
// line 52
yield " <input type=\"search\" class=\"subheader-search-input\" placeholder=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search", [], "HelensBakery"), "html", null, true);
yield "\" />
</div>
";
// line 67
yield " </div>
<div class=\"subheader-categories\">
";
// line 71
yield " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 72
yield " ";
$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->source, CoreExtension::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", false, false, false, 72), "categories", [], "any", false, false, false, 72)); });
// line 73
yield " ";
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)) {
// line 74
yield " <a href=\"#\" data-id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 74), "html", null, true);
yield "\">
";
// line 75
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 75), "html", null, true);
yield "
</a>
";
}
// line 78
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['category'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 79
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 82
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_overlays(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "overlays"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "overlays"));
// line 83
yield " <div class=\"overlay\" id=\"overlay-add-product\">
<a href=\"#\" class=\"overlay-close\">
<i class=\"icon-plus\"></i>
</a>
<div class=\"overlay-content overlay-add-product\">
";
// line 88
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", false, false, false, 88)) {
// line 89
yield " <div style=\"padding: 20px\">
<p>
";
// line 91
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cant_add_while_paying", [], "HelensBakery"), "html", null, true);
yield "
</p>
<div class=\"order-window-cart-next-states\">
";
// line 94
$context['_parent'] = $context;
$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", false, false, false, 94));
foreach ($context['_seq'] as $context["_key"] => $context["nextState"]) {
// line 95
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["nextState"], "url", [], "any", false, false, false, 95), "html", null, true);
yield "\" class=\"order-window-cart-next-state boldr-button boldr-button-highlight\">
";
// line 96
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["nextState"], "buttonText", [], "any", false, false, false, 96), "html", null, true);
yield "
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['nextState'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 99
yield " </div>
</div>
";
}
// line 102
yield " <div class=\"overlay-add-product-content\" ";
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", false, false, false, 102)) ? ("style=\"display: none\"") : (""));
yield ">
<div class=\"overlay-add-product-info\">
<div class=\"overlay-add-product-info-header\">
<a class=\"overlay-add-product-info-header-close-mobile\">
<i class=\"icon-arrow-left\"></i>
</a>
";
// line 110
yield " <img class=\"overlay-add-product-info-header-image\" />
<div class=\"overlay-add-product-info-header-allergens\">
<div class=\"overlay-add-product-info-header-allergens-title\">";
// line 114
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("allergen_information", [], "HelensBakery"), "html", null, true);
yield ":</div>
<div class=\"overlay-add-product-info-header-allergens-list\">
";
// line 116
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(["celery", "egg", "fish", "gluten", "lupine", "milk", "mollusks", "mustard", "nuts", "peanut", "sesame", "shellfish", "soy", "sulfites"]);
foreach ($context['_seq'] as $context["_key"] => $context["allergen"]) {
// line 117
yield " <img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((((("/assets/images/allergens/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 117), "locale", [], "any", false, false, false, 117)) . "/") . $context["allergen"]) . ".png")), "html", null, true);
yield "\" class=\"overlay-add-product-info-header-allergen\" data-name=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["allergen"], "html", null, true);
yield "\">
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['allergen'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 119
yield " </div>
</div>
</div>
<div class=\"overlay-add-product-info-content\">
";
// line 127
yield " <span class=\"overlay-add-product-info-name\"></span>
<span class=\"overlay-add-product-info-details\"></span>
";
// line 131
yield " <div class=\"overlay-add-product-info-options\"></div>
</div>
</div>
<div class=\"overlay-add-product-extra\">
<span class=\"overlay-add-product-extra-heading\">";
// line 135
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("shop.add_extras"), "html", null, true);
yield "</span>
";
// line 136
$context['_parent'] = $context;
$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", false, false, false, 136); }));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 137
yield " ";
$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->source, CoreExtension::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", false, false, false, 137), "categories", [], "any", false, false, false, 137)); });
// line 138
yield " ";
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)) {
// line 139
yield " <div class=\"overlay-add-product-extra-category\">
<span class=\"overlay-add-product-extra-category-selection-count\">
0
</span>
<div class=\"overlay-add-product-extra-category-heading\">
<span class=\"overlay-add-product-extra-category-name\">
";
// line 145
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 145), "html", null, true);
yield "
</span>
<a href=\"#\" class=\"overlay-add-product-extra-category-toggle\">
<i class=\"icon-plus\"></i>
<i class=\"icon-minus\"></i>
</a>
</div>
<div class=\"overlay-add-product-extra-category-products-wrapper\">
<div class=\"overlay-add-product-extra-category-products\">
";
// line 154
$context['_parent'] = $context;
$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->source, CoreExtension::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", false, false, false, 154), "name", [], "any", false, false, false, 154) <=> CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 154), "name", [], "any", false, false, false, 154)); }));
foreach ($context['_seq'] as $context["_key"] => $context["catalogProduct"]) {
// line 155
yield " <div class=\"overlay-add-product-extra-product\" data-product-variant-id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "variants", [], "any", false, false, false, 155), 0, [], "array", false, false, false, 155), "productVariant", [], "any", false, false, false, 155), "id", [], "any", false, false, false, 155), "html", null, true);
yield "\"
data-product-id=\"";
// line 156
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 156), "id", [], "any", false, false, false, 156), "html", null, true);
yield "\"
data-price=\"";
// line 157
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "variants", [], "any", false, false, false, 157), 0, [], "array", false, false, false, 157), "totalPrice", [], "any", false, false, false, 157), "html", null, true);
yield "\">
<div class=\"overlay-add-product-extra-product-info\">
<span class=\"overlay-add-product-extra-product-name\">
";
// line 160
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 160), "name", [], "any", false, false, false, 160), "html", null, true);
yield "
</span>
<span class=\"overlay-add-product-extra-product-price\">
+ ";
// line 163
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('boldr_shop_format_currency')->getCallable()(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "variants", [], "any", false, false, false, 163), 0, [], "array", false, false, false, 163), "totalPrice", [], "any", false, false, false, 163), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "variants", [], "any", false, false, false, 163), 0, [], "array", false, false, false, 163), "currency", [], "any", false, false, false, 163), "isoCode", [], "any", false, false, false, 163)), "html", null, true);
yield "
</span>
</div>
<div class=\"overlay-add-product-extra-product-image-and-controls\">
";
// line 167
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 167), "primaryImage", [], "any", false, false, false, 167))) {
// line 168
yield " <img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 168), "primaryImage", [], "any", false, false, false, 168), "attachment", [], "any", false, false, false, 168), "Sizes", [], "any", false, false, false, 168), "small", [], "any", false, false, false, 168), "html", null, true);
yield "\" class=\"overlay-add-product-extra-product-image\" />
";
}
// line 170
yield " <div class=\"overlay-add-product-extra-product-controls\">
<a href=\"#\" class=\"overlay-add-product-extra-product-minus\">
<i class=\"icon-minus\"></i>
</a>
<span class=\"overlay-add-product-extra-product-quantity\">0</span>
<a href=\"#\" class=\"overlay-add-product-extra-product-plus\">
<i class=\"icon-plus\"></i>
</a>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['catalogProduct'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 182
yield " <div class=\"overlay-add-product-extra-product-spacer\"></div>
<div class=\"overlay-add-product-extra-product-spacer\"></div>
<div class=\"overlay-add-product-extra-product-spacer\"></div>
</div>
</div>
</div>
";
}
// line 189
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['category'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 190
yield " </div>
</div>
<div class=\"overlay-add-product-add\" ";
// line 192
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", false, false, false, 192)) ? ("style=\"display: none\"") : (""));
yield ">
<div class=\"overlay-add-product-add-prices\">
<span class=\"overlay-add-product-add-price\">
€3.20
</span>
<span class=\"overlay-add-product-add-additional-price\">
</span>
</div>
<a href=\"#\" class=\"boldr-button boldr-button-medium boldr-button-highlight overlay-add-product-add-button\">
<span class=\"text-mobile\">";
// line 202
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("add", [], "HelensBakery"), "html", null, true);
yield "</span>
<span class=\"text-desktop\">";
// line 203
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("add_to_cart", [], "HelensBakery"), "html", null, true);
yield "</span>
</a>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 210
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 211
yield " ";
// line 212
yield " <div class=\"order-window ";
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", false, false, false, 212)) > 0)) ? ("order-window-cart-visible") : (""));
yield "\">
<div class=\"product-list-wrapper\">
<div class=\"product-list\">
";
// line 215
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 216
yield " ";
$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->source, CoreExtension::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", false, false, false, 216), "categories", [], "any", false, false, false, 216)); });
// line 217
yield " ";
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)) {
// line 218
yield " <div class=\"product-list-category\" data-id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 218), "html", null, true);
yield "\" data-show-extras=\"";
yield ((CoreExtension::getAttribute($this->env, $this->source, $context["category"], "hbShowExtras", [], "any", false, false, false, 218)) ? ("true") : ("false"));
yield "\">
<div class=\"product-list-category-header\">
";
// line 220
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 220), "html", null, true);
yield "
</div>
<div class=\"product-list-category-products\">
";
// line 223
$context['_parent'] = $context;
$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->source, Twig\Extension\CoreExtension::split($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 223), "name", [], "any", false, false, false, 223), "."), 0, [], "array", false, false, false, 223) <=> CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::split($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 223), "name", [], "any", false, false, false, 223), "."), 0, [], "array", false, false, false, 223)); }));
foreach ($context['_seq'] as $context["_key"] => $context["catalogProduct"]) {
// line 224
yield " ";
$context["variant"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "variants", [], "any", false, false, false, 224), 0, [], "array", false, false, false, 224);
// line 225
yield " <div class=\"product-list-product\" data-product-variant-id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 225, $this->source); })()), "productVariant", [], "any", false, false, false, 225), "id", [], "any", false, false, false, 225), "html", null, true);
yield "\"
data-price=\"";
// line 226
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", false, false, false, 226), "html", null, true);
yield "\"
data-new=\"";
// line 227
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 227), "new", [], "any", false, false, false, 227)) ? ("true") : ("false"));
yield "\"
data-homemade=\"";
// line 228
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 228), "homemade", [], "any", false, false, false, 228)) ? ("true") : ("false"));
yield "\"
data-vegan=\"";
// line 229
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 229), "vegan", [], "any", false, false, false, 229)) ? ("true") : ("false"));
yield "\"
data-vegetarian=\"";
// line 230
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 230), "vegetarian", [], "any", false, false, false, 230)) ? ("true") : ("false"));
yield "\"
data-fish=\"";
// line 231
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 231), "fish", [], "any", false, false, false, 231)) ? ("true") : ("false"));
yield "\"
data-beef=\"";
// line 232
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 232), "beef", [], "any", false, false, false, 232)) ? ("true") : ("false"));
yield "\"
data-image-large=\"";
// line 233
yield (( !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 233), "primaryImage", [], "any", false, false, false, 233))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 233), "primaryImage", [], "any", false, false, false, 233), "attachment", [], "any", false, false, false, 233), "sizes", [], "any", false, false, false, 233), "large", [], "any", false, false, false, 233), "html", null, true)) : (""));
yield "\"
data-allergen-gluten=\"";
// line 234
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 234, $this->source); })()), "productVariant", [], "any", false, false, false, 234), "allergens", [], "any", false, false, false, 234), "gluten", [], "any", false, false, false, 234)) ? ("true") : ("false"));
yield "\"
data-allergen-egg=\"";
// line 235
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 235, $this->source); })()), "productVariant", [], "any", false, false, false, 235), "allergens", [], "any", false, false, false, 235), "egg", [], "any", false, false, false, 235)) ? ("true") : ("false"));
yield "\"
data-allergen-fish=\"";
// line 236
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 236, $this->source); })()), "productVariant", [], "any", false, false, false, 236), "allergens", [], "any", false, false, false, 236), "fish", [], "any", false, false, false, 236)) ? ("true") : ("false"));
yield "\"
data-allergen-peanut=\"";
// line 237
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 237, $this->source); })()), "productVariant", [], "any", false, false, false, 237), "allergens", [], "any", false, false, false, 237), "peanut", [], "any", false, false, false, 237)) ? ("true") : ("false"));
yield "\"
data-allergen-nuts=\"";
// line 238
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 238, $this->source); })()), "productVariant", [], "any", false, false, false, 238), "allergens", [], "any", false, false, false, 238), "nuts", [], "any", false, false, false, 238)) ? ("true") : ("false"));
yield "\"
data-allergen-soy=\"";
// line 239
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 239, $this->source); })()), "productVariant", [], "any", false, false, false, 239), "allergens", [], "any", false, false, false, 239), "soy", [], "any", false, false, false, 239)) ? ("true") : ("false"));
yield "\"
data-allergen-milk=\"";
// line 240
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 240, $this->source); })()), "productVariant", [], "any", false, false, false, 240), "allergens", [], "any", false, false, false, 240), "milk", [], "any", false, false, false, 240)) ? ("true") : ("false"));
yield "\"
data-allergen-shellfish=\"";
// line 241
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 241, $this->source); })()), "productVariant", [], "any", false, false, false, 241), "allergens", [], "any", false, false, false, 241), "shellfish", [], "any", false, false, false, 241)) ? ("true") : ("false"));
yield "\"
data-allergen-mollusks=\"";
// line 242
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 242, $this->source); })()), "productVariant", [], "any", false, false, false, 242), "allergens", [], "any", false, false, false, 242), "mollusks", [], "any", false, false, false, 242)) ? ("true") : ("false"));
yield "\"
data-allergen-celery=\"";
// line 243
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 243, $this->source); })()), "productVariant", [], "any", false, false, false, 243), "allergens", [], "any", false, false, false, 243), "celery", [], "any", false, false, false, 243)) ? ("true") : ("false"));
yield "\"
data-allergen-mustard=\"";
// line 244
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 244, $this->source); })()), "productVariant", [], "any", false, false, false, 244), "allergens", [], "any", false, false, false, 244), "mustard", [], "any", false, false, false, 244)) ? ("true") : ("false"));
yield "\"
data-allergen-sesame=\"";
// line 245
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 245, $this->source); })()), "productVariant", [], "any", false, false, false, 245), "allergens", [], "any", false, false, false, 245), "sesame", [], "any", false, false, false, 245)) ? ("true") : ("false"));
yield "\"
data-allergen-sulfites=\"";
// line 246
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 246, $this->source); })()), "productVariant", [], "any", false, false, false, 246), "allergens", [], "any", false, false, false, 246), "sulfites", [], "any", false, false, false, 246)) ? ("true") : ("false"));
yield "\"
data-allergen-lupine=\"";
// line 247
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 247, $this->source); })()), "productVariant", [], "any", false, false, false, 247), "allergens", [], "any", false, false, false, 247), "lupine", [], "any", false, false, false, 247)) ? ("true") : ("false"));
yield "\"
>
";
// line 249
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 249), "primaryImage", [], "any", false, false, false, 249)) {
// line 250
yield " <div class=\"product-list-product-header\">
<img src=\"";
// line 251
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 251), "primaryImage", [], "any", false, false, false, 251), "attachment", [], "any", false, false, false, 251), "sizes", [], "any", false, false, false, 251), "medium", [], "any", false, false, false, 251), "html", null, true);
yield "\" style=\"object-fit: ";
yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 251), "primaryImage", [], "any", false, false, false, 251), "cover", [], "any", false, false, false, 251)) ? ("cover") : ("contain"));
yield "; object-position: ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 251), "primaryImage", [], "any", false, false, false, 251), "positionX", [], "any", false, false, false, 251) . " ") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 251), "primaryImage", [], "any", false, false, false, 251), "positionY", [], "any", false, false, false, 251)), "html", null, true);
yield "\" class=\"product-list-product-image\" />
";
// line 253
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 253), "new", [], "any", false, false, false, 253)) {
// line 254
yield " <span class=\"badge-new\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("new", [], "HelensBakery"), "html", null, true);
yield "</span>
";
}
// line 256
yield "
<div class=\"product-list-product-variants\">
";
// line 258
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 258), "homemade", [], "any", false, false, false, 258)) {
// line 259
yield " <i class=\"icon-homemade\" title=\"Homemade\"></i>
";
}
// line 261
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 261), "vegan", [], "any", false, false, false, 261)) {
// line 262
yield " <i class=\"icon-vegan\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vegan", [], "HelensBakery"), "html", null, true);
yield "\"></i>
";
}
// line 264
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 264), "vegetarian", [], "any", false, false, false, 264)) {
// line 265
yield " <i class=\"icon-vegetarian\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vegetarian", [], "HelensBakery"), "html", null, true);
yield "\"></i>
";
}
// line 267
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 267), "fish", [], "any", false, false, false, 267)) {
// line 268
yield " <i class=\"icon-vis\" title=\"Vis\"></i>
";
}
// line 270
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 270), "beef", [], "any", false, false, false, 270)) {
// line 271
yield " <i class=\"icon-rundvlees\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("100percent_beef", [], "HelensBakery"), "html", null, true);
yield "\"></i>
";
}
// line 273
yield " </div>
</div>
";
}
// line 277
yield " <div class=\"product-list-product-info\">
<span class=\"product-list-product-name\">
";
// line 279
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 279), "name", [], "any", false, false, false, 279), "html", null, true);
yield "
";
// line 280
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", false, false, false, 280)) {
// line 281
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sold_out", [], "HelensBakery"), "html", null, true);
yield "
";
}
// line 283
yield " </span>
<span class=\"product-list-product-details\">
";
// line 285
yield Twig\Extension\CoreExtension::striptags(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, true, false, 285), "description", [], "any", true, true, false, 285)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, true, false, 285), "description", [], "any", false, false, false, 285), Twig\Extension\CoreExtension::join(Twig\Extension\CoreExtension::map($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 285), "ingredients", [], "any", false, false, false, 285), 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", false, false, false, 285); }), ", "))) : (Twig\Extension\CoreExtension::join(Twig\Extension\CoreExtension::map($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["catalogProduct"], "product", [], "any", false, false, false, 285), "ingredients", [], "any", false, false, false, 285), 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", false, false, false, 285); }), ", "))));
yield "
</span>
<span class=\"product-list-product-price\">
";
// line 288
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", false, false, false, 288), CoreExtension::getAttribute($this->env, $this->source, 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); })()), "currency", [], "any", false, false, false, 288), "isoCode", [], "any", false, false, false, 288)), "html", null, true);
yield "
</span>
</div>
<a class=\"product-list-product-add\" href=\"#\">
<i class=\"icon-plus\"></i>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['catalogProduct'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 296
yield " <div class=\"product-list-product-spacer\"></div>
<div class=\"product-list-product-spacer\"></div>
<div class=\"product-list-product-spacer\"></div>
</div>
</div>
";
}
// line 302
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['category'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 303
yield " <div class=\"product-list-refine-search\">
<span>";
// line 304
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_no_products", [], "HelensBakery"), "html", null, true);
yield "</span>
<a href=\"#\" class=\"product-list-refine-search-clear boldr-button boldr-button-filled\">";
// line 305
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("show_all_products", [], "HelensBakery"), "html", null, true);
yield "</a>
</div>
</div>
</div>
<div class=\"order-window-cart-wrapper\">
<div class=\"order-window-cart\">
<div class=\"order-window-cart-body\">
<div class=\"order-window-cart-title\">
<span>";
// line 313
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("my_order", [], "HelensBakery"), "html", null, true);
yield "</span>
<i class=\"order-window-cart-title-close icon-chevron-down\"></i>
</div>
<div class=\"order-window-cart-products\">
<div class=\"order-window-cart-mobile-empty\">
<span class=\"order-window-cart-mobile-empty-text\">";
// line 318
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no_products_in_cart", [], "HelensBakery"), "html", null, true);
yield "</span>
<a id=\"order-window-cart-mobile-empty-close\" class=\"boldr-button boldr-button-filled\">
";
// line 320
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("add_product", [], "HelensBakery"), "html", null, true);
yield "
</a>
</div>
";
// line 323
$context['_parent'] = $context;
$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", false, false, false, 323));
foreach ($context['_seq'] as $context["_key"] => $context["orderItem"]) {
// line 324
yield " <div class=\"order-window-cart-product\" data-order-item-id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["orderItem"], "id", [], "any", false, false, false, 324), "html", null, true);
yield "\" data-quantity=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["orderItem"], "quantity", [], "any", false, false, false, 324), "html", null, true);
yield "\">
<span class=\"order-window-cart-product-quantity\">";
// line 325
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["orderItem"], "quantity", [], "any", false, false, false, 325), "html", null, true);
yield "x</span>
<div class=\"order-window-cart-product-info\">
<div class=\"order-window-cart-product-name-price\">
<span class=\"order-window-cart-product-name\">";
// line 328
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["orderItem"], "productVariant", [], "any", false, false, false, 328), "name", [], "any", false, false, false, 328), "html", null, true);
yield "</span>
<span class=\"order-window-cart-product-price\">
";
// line 330
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('boldr_shop_format_currency')->getCallable()(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["orderItem"], "price", [], "any", false, false, false, 330), "totalPriceExcludingModifiers", [], "any", false, false, false, 330), CoreExtension::getAttribute($this->env, $this->source, 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.', 330, $this->source); })()), "currency", [], "any", false, false, false, 330), "isoCode", [], "any", false, false, false, 330)), "html", null, true);
yield "
</span>
</div>
<div class=\"order-window-cart-product-modifiers\">
";
// line 334
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["orderItem"], "price", [], "any", false, false, false, 334), "modifiers", [], "any", false, false, false, 334));
foreach ($context['_seq'] as $context["_key"] => $context["modifier"]) {
// line 335
yield " <div class=\"order-window-cart-product-modifier\">
<span class=\"order-window-cart-product-modifier-name\">
";
// line 337
yield (((CoreExtension::getAttribute($this->env, $this->source, $context["modifier"], "quantity", [], "any", false, false, false, 337) > 1)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["modifier"], "quantity", [], "any", false, false, false, 337) . "x"), "html", null, true)) : (""));
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["modifier"], "name", [], "any", false, false, false, 337), "html", null, true);
yield "
</span>
<span class=\"order-window-cart-product-modifier-amount\">
";
// line 340
yield (((CoreExtension::getAttribute($this->env, $this->source, $context["modifier"], "amount", [], "any", false, false, false, 340) < 0)) ? ("-") : ("+"));
yield " ";
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", false, false, false, 340)), CoreExtension::getAttribute($this->env, $this->source, 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.', 340, $this->source); })()), "currency", [], "any", false, false, false, 340), "isoCode", [], "any", false, false, false, 340)), "html", null, true);
yield "
</span>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['modifier'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 344
yield " </div>
<div class=\"order-window-cart-product-option-values\">
";
// line 346
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["orderItem"], "optionValues", [], "any", false, false, false, 346));
foreach ($context['_seq'] as $context["_key"] => $context["optionValue"]) {
// line 347
yield " <div class=\"order-window-cart-product-option-value\">
";
// line 348
if (CoreExtension::getAttribute($this->env, $this->source, $context["optionValue"], "name", [], "any", false, false, false, 348)) {
// line 349
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["optionValue"], "name", [], "any", false, false, false, 349), "html", null, true);
yield ":
";
}
// line 351
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["optionValue"], "text", [], "any", false, false, false, 351), "html", null, true);
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['optionValue'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 354
yield " </div>
";
// line 355
$context["allergens"] = ["celery", "egg", "fish", "gluten", "lupine", "milk", "mollusks", "mustard", "nuts", "peanut", "sesame", "shellfish", "soy", "sulfites"];
// line 356
yield " ";
$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->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["orderItem"], "productVariant", [], "any", false, false, false, 356), "allergens", [], "any", false, false, false, 356), (isset($context["v"]) || array_key_exists("v", $context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.', 356, $this->source); })()), [], "any", false, false, false, 356)); }, false);
// line 357
yield " ";
if ((isset($context["hasAllergens"]) || array_key_exists("hasAllergens", $context) ? $context["hasAllergens"] : (function () { throw new RuntimeError('Variable "hasAllergens" does not exist.', 357, $this->source); })())) {
// line 358
yield " <div class=\"order-window-cart-product-allergens\">
<span class=\"order-window-cart-product-allergens-label\">";
// line 359
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("allergen_information", [], "HelensBakery"), "html", null, true);
yield ":</span>
";
// line 360
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["allergen"]) {
// line 361
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["orderItem"], "productVariant", [], "any", false, false, false, 361), "allergens", [], "any", false, false, false, 361), $context["allergen"], [], "any", false, false, false, 361)) {
// line 362
yield " <img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((((("/assets/images/allergens/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 362), "locale", [], "any", false, false, false, 362)) . "/") . $context["allergen"]) . ".png")), "html", null, true);
yield "\" class=\"order-window-cart-product-allergen\" data-name=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["allergen"], "html", null, true);
yield "\">
";
}
// line 364
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['allergen'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 365
yield " </div>
";
}
// line 367
yield " ";
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", false, false, false, 367)) {
// line 368
yield " <div class=\"order-window-cart-product-quantity-buttons\">
<a href=\"#\" class=\"order-window-cart-product-quantity-remove\">
<i class=\"icon-minus\"></i>
</a>
<a href=\"#\" class=\"order-window-cart-product-quantity-add\">
<i class=\"icon-plus\"></i>
</a>
</div>
";
}
// line 377
yield " </div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['orderItem'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 380
yield " </div>
<div class=\"order-window-cart-subtotal-modifiers\" ";
// line 382
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", false, false, false, 382) == 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", false, false, false, 382))) ? ("style=\"display: none\"") : (""));
yield ">
<div class=\"order-window-cart-subtotal\">
<span class=\"order-window-cart-subtotal-text\">";
// line 384
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sub_total", [], "HelensBakery"), "html", null, true);
yield "</span>
<span id=\"order-window-cart-subtotal-amount\" class=\"order-window-cart-subtotal-amount\">";
// line 385
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", false, false, false, 385), CoreExtension::getAttribute($this->env, $this->source, 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); })()), "currency", [], "any", false, false, false, 385), "isoCode", [], "any", false, false, false, 385)), "html", null, true);
yield "</span>
</div>
<div class=\"order-window-cart-modifiers\">
";
// line 388
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, 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.', 388, $this->source); })()), "price", [], "any", false, false, false, 388), "modifiers", [], "any", false, false, false, 388));
foreach ($context['_seq'] as $context["_key"] => $context["modifier"]) {
// line 389
yield " <div class=\"order-window-cart-subtotal\">
<span class=\"order-window-cart-subtotal-text\">";
// line 390
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["modifier"], "name", [], "any", false, false, false, 390), "html", null, true);
yield "</span>
<span class=\"order-window-cart-subtotal-amount\">";
// line 391
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((CoreExtension::getAttribute($this->env, $this->source, $context["modifier"], "amount", [], "any", false, false, false, 391) < 0)) ? ("- ") : ("")) . $this->env->getFunction('boldr_shop_format_currency')->getCallable()(abs(CoreExtension::getAttribute($this->env, $this->source, $context["modifier"], "amount", [], "any", false, false, false, 391)), CoreExtension::getAttribute($this->env, $this->source, 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.', 391, $this->source); })()), "currency", [], "any", false, false, false, 391), "isoCode", [], "any", false, false, false, 391))), "html", null, true);
yield "</span>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['modifier'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 394
yield " </div>
</div>
</div>
<div class=\"order-window-cart-footer\">
<div class=\"order-window-cart-subtotal\">
<span class=\"order-window-cart-subtotal-text\">";
// line 402
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("total", [], "HelensBakery"), "html", null, true);
yield "</span>
<span id=\"order-window-cart-total-amount\" class=\"order-window-cart-subtotal-amount\">";
// line 403
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", false, false, false, 403), CoreExtension::getAttribute($this->env, $this->source, 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); })()), "currency", [], "any", false, false, false, 403), "isoCode", [], "any", false, false, false, 403)), "html", null, true);
yield "</span>
</div>
";
// line 406
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", false, false, false, 406)) {
// line 407
yield " <p>
";
// line 408
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cant_add_while_paying", [], "HelensBakery"), "html", null, true);
yield "
</p>
";
}
// line 411
yield "
<div class=\"order-window-cart-next-states\">
";
// line 413
$context['_parent'] = $context;
$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", false, false, false, 413));
foreach ($context['_seq'] as $context["_key"] => $context["nextState"]) {
// line 414
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["nextState"], "url", [], "any", false, false, false, 414), "html", null, true);
yield "\" class=\"order-window-cart-next-state boldr-button boldr-button-highlight\">
";
// line 415
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["nextState"], "buttonText", [], "any", false, false, false, 415), "html", null, true);
yield "
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['nextState'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 418
yield " </div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@BoldrShop/shop.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% set assets = assets|default(boldr_cms_get_assets()) %}
{% do assets.addJsFile(asset('assets/js/shop.js')) %}
{% set cart = boldr_shop_get_cart() %}
{% set isShop = true %}
{% extends 'base.html.twig' %}
{% block head %}
{{ parent() }}
<script>
let currentCurrency = {{ boldr_shop_get_currency()|json_encode|raw }};
const ALLERGEN_IMAGE_URL = '{{ asset('/assets/images/allergens/' ~ app.request.locale ~ '/ALLERGEN.png') }}';
</script>
{% endblock %}
{% block header_wrapper_content %}
{{ parent() }}
<div class=\"subheader-filter-search\">
<div class=\"subheader-filter-search-controls\">
<div class=\"subheader-filter\">
{# Filter op #}
<a href=\"#\" class=\"subheader-filter-button boldr-button boldr-button-outline-light\">
<i class=\"icon-filter\"></i>
<span class=\"boldr-button-text\">{{ 'filter_by'|trans({}, 'HelensBakery') }}</span>
<i class=\"icon-chevron-down\"></i>
<span class=\"subheader-filter-button-count\"></span>
</a>
<div class=\"subheader-filter-dropdown hide-past-scroll\">
<div class=\"form-label-control\">
<input id=\"subheader-filter-choice-beef\" type=\"checkbox\" data-property=\"beef\" />
<label for=\"subheader-filter-choice-beef\"><i class=\"icon-rundvlees\"></i> {{ '100percent_beef'|trans({}, 'HelensBakery') }}</label>
</div>
<div class=\"form-label-control\">
<input id=\"subheader-filter-choice-vegan\" type=\"checkbox\" data-property=\"vegan\" />
<label for=\"subheader-filter-choice-vegan\"><i class=\"icon-vegan\"></i> {{ 'vegan'|trans({}, 'HelensBakery') }}</label>
</div>
<div class=\"form-label-control\">
<input id=\"subheader-filter-choice-vegetarian\" type=\"checkbox\" data-property=\"vegetarian\" />
<label for=\"subheader-filter-choice-vegetarian\"><i class=\"icon-vegetarian\"></i> {{ 'vegetarian'|trans({}, 'HelensBakery') }}</label>
</div>
{# <div class=\"form-label-control\">
<input id=\"subheader-filter-choice-fish\" type=\"checkbox\" data-property=\"fish\" />
<label for=\"subheader-filter-choice-fish\"><i class=\"icon-vis\"></i> Vis</label>
</div> #}
<div class=\"form-label-control\">
<input id=\"subheader-filter-choice-homemade\" type=\"checkbox\" data-property=\"homemade\" />
<label for=\"subheader-filter-choice-homemade\"><i class=\"icon-homemade\"></i></label>
</div>
</div>
</div>
{# Zoeken #}
<input type=\"search\" class=\"subheader-search-input\" placeholder=\"{{ 'search'|trans({}, 'HelensBakery') }}\" />
</div>
{#
<div class=\"subheader-shop-switcher\">
<a href=\"#\" class=\"subheader-shop-switcher-button boldr-button boldr-button-outline-light\">
<span class=\"boldr-button-text\">Locatie: {{ cart.shop.name }}</span>
<i class=\"icon-chevron-down\"></i>
</a>
<div class=\"subheader-shop-switcher-dropdown\">
{% for shop in boldr_multishop_get_shops() %}
<a data-id=\"{{ shop.id }}\">{{ shop.name }}</a>
{% endfor %}
</div>
</div>
#}
</div>
<div class=\"subheader-categories\">
{# Categories #}
{% for category in categories %}
{% set categoryCatalogProducts = catalogProducts|filter(catalogProduct => category in catalogProduct.product.categories) %}
{% if categoryCatalogProducts|length > 0 %}
<a href=\"#\" data-id=\"{{ category.id }}\">
{{ category.name }}
</a>
{% endif %}
{% endfor %}
</div>
{% endblock %}
{% block overlays %}
<div class=\"overlay\" id=\"overlay-add-product\">
<a href=\"#\" class=\"overlay-close\">
<i class=\"icon-plus\"></i>
</a>
<div class=\"overlay-content overlay-add-product\">
{% if not cart.canItemsBeModified %}
<div style=\"padding: 20px\">
<p>
{{ 'cant_add_while_paying'|trans({}, 'HelensBakery') }}
</p>
<div class=\"order-window-cart-next-states\">
{% for nextState in cart.nextStates %}
<a href=\"{{ nextState.url }}\" class=\"order-window-cart-next-state boldr-button boldr-button-highlight\">
{{ nextState.buttonText }}
</a>
{% endfor %}
</div>
</div>
{% endif %}
<div class=\"overlay-add-product-content\" {{ not cart.canItemsBeModified ? 'style=\"display: none\"' }}>
<div class=\"overlay-add-product-info\">
<div class=\"overlay-add-product-info-header\">
<a class=\"overlay-add-product-info-header-close-mobile\">
<i class=\"icon-arrow-left\"></i>
</a>
{# Heading image #}
<img class=\"overlay-add-product-info-header-image\" />
<div class=\"overlay-add-product-info-header-allergens\">
<div class=\"overlay-add-product-info-header-allergens-title\">{{ 'allergen_information'|trans({}, 'HelensBakery') }}:</div>
<div class=\"overlay-add-product-info-header-allergens-list\">
{% for allergen in ['celery', 'egg', 'fish', 'gluten', 'lupine', 'milk', 'mollusks', 'mustard', 'nuts', 'peanut', 'sesame', 'shellfish', 'soy', 'sulfites'] %}
<img src=\"{{ asset('/assets/images/allergens/' ~ app.request.locale ~ '/' ~ allergen ~ '.png') }}\" class=\"overlay-add-product-info-header-allergen\" data-name=\"{{ allergen }}\">
{% endfor %}
</div>
</div>
</div>
<div class=\"overlay-add-product-info-content\">
{# Product details #}
<span class=\"overlay-add-product-info-name\"></span>
<span class=\"overlay-add-product-info-details\"></span>
{# Options #}
<div class=\"overlay-add-product-info-options\"></div>
</div>
</div>
<div class=\"overlay-add-product-extra\">
<span class=\"overlay-add-product-extra-heading\">{{ 'shop.add_extras'|trans }}</span>
{% for category in categories|filter(category => category.hbVisibleInExtras) %}
{% set categoryCatalogProducts = catalogProducts|filter(catalogProduct => category in catalogProduct.product.categories) %}
{% if categoryCatalogProducts|length > 0 %}
<div class=\"overlay-add-product-extra-category\">
<span class=\"overlay-add-product-extra-category-selection-count\">
0
</span>
<div class=\"overlay-add-product-extra-category-heading\">
<span class=\"overlay-add-product-extra-category-name\">
{{ category.name }}
</span>
<a href=\"#\" class=\"overlay-add-product-extra-category-toggle\">
<i class=\"icon-plus\"></i>
<i class=\"icon-minus\"></i>
</a>
</div>
<div class=\"overlay-add-product-extra-category-products-wrapper\">
<div class=\"overlay-add-product-extra-category-products\">
{% for catalogProduct in categoryCatalogProducts|sort((a, b) => a.product.name <=> b.product.name) %}
<div class=\"overlay-add-product-extra-product\" data-product-variant-id=\"{{ catalogProduct.variants[0].productVariant.id }}\"
data-product-id=\"{{ catalogProduct.product.id }}\"
data-price=\"{{ catalogProduct.variants[0].totalPrice }}\">
<div class=\"overlay-add-product-extra-product-info\">
<span class=\"overlay-add-product-extra-product-name\">
{{ catalogProduct.product.name }}
</span>
<span class=\"overlay-add-product-extra-product-price\">
+ {{ boldr_shop_format_currency(catalogProduct.variants[0].totalPrice, catalogProduct.variants[0].currency.isoCode) }}
</span>
</div>
<div class=\"overlay-add-product-extra-product-image-and-controls\">
{% if catalogProduct.product.primaryImage is not null %}
<img src=\"{{ catalogProduct.product.primaryImage.attachment.Sizes.small }}\" class=\"overlay-add-product-extra-product-image\" />
{% endif %}
<div class=\"overlay-add-product-extra-product-controls\">
<a href=\"#\" class=\"overlay-add-product-extra-product-minus\">
<i class=\"icon-minus\"></i>
</a>
<span class=\"overlay-add-product-extra-product-quantity\">0</span>
<a href=\"#\" class=\"overlay-add-product-extra-product-plus\">
<i class=\"icon-plus\"></i>
</a>
</div>
</div>
</div>
{% endfor %}
<div class=\"overlay-add-product-extra-product-spacer\"></div>
<div class=\"overlay-add-product-extra-product-spacer\"></div>
<div class=\"overlay-add-product-extra-product-spacer\"></div>
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
<div class=\"overlay-add-product-add\" {{ not cart.canItemsBeModified ? 'style=\"display: none\"' }}>
<div class=\"overlay-add-product-add-prices\">
<span class=\"overlay-add-product-add-price\">
€3.20
</span>
<span class=\"overlay-add-product-add-additional-price\">
</span>
</div>
<a href=\"#\" class=\"boldr-button boldr-button-medium boldr-button-highlight overlay-add-product-add-button\">
<span class=\"text-mobile\">{{ 'add'|trans({}, 'HelensBakery') }}</span>
<span class=\"text-desktop\">{{ 'add_to_cart'|trans({}, 'HelensBakery') }}</span>
</a>
</div>
</div>
</div>
{% endblock %}
{% block body %}
{# Products #}
<div class=\"order-window {{ cart.items|length > 0 ? 'order-window-cart-visible' }}\">
<div class=\"product-list-wrapper\">
<div class=\"product-list\">
{% for category in categories %}
{% set categoryCatalogProducts = catalogProducts|filter(catalogProduct => category in catalogProduct.product.categories) %}
{% if categoryCatalogProducts|length > 0 %}
<div class=\"product-list-category\" data-id=\"{{ category.id }}\" data-show-extras=\"{{ category.hbShowExtras ? 'true' : 'false' }}\">
<div class=\"product-list-category-header\">
{{ category.name }}
</div>
<div class=\"product-list-category-products\">
{% for catalogProduct in categoryCatalogProducts|sort((a, b) => a.product.name|split('.')[0] <=> b.product.name|split('.')[0]) %}
{% set variant = catalogProduct.variants[0] %}
<div class=\"product-list-product\" data-product-variant-id=\"{{ variant.productVariant.id }}\"
data-price=\"{{ variant.totalPrice }}\"
data-new=\"{{ catalogProduct.product.new ? 'true' : 'false' }}\"
data-homemade=\"{{ catalogProduct.product.homemade ? 'true' : 'false' }}\"
data-vegan=\"{{ catalogProduct.product.vegan ? 'true' : 'false' }}\"
data-vegetarian=\"{{ catalogProduct.product.vegetarian ? 'true' : 'false' }}\"
data-fish=\"{{ catalogProduct.product.fish ? 'true' : 'false' }}\"
data-beef=\"{{ catalogProduct.product.beef ? 'true' : 'false' }}\"
data-image-large=\"{{ catalogProduct.product.primaryImage is not null ? catalogProduct.product.primaryImage.attachment.sizes.large }}\"
data-allergen-gluten=\"{{ variant.productVariant.allergens.gluten ? 'true' : 'false' }}\"
data-allergen-egg=\"{{ variant.productVariant.allergens.egg ? 'true' : 'false' }}\"
data-allergen-fish=\"{{ variant.productVariant.allergens.fish ? 'true' : 'false' }}\"
data-allergen-peanut=\"{{ variant.productVariant.allergens.peanut ? 'true' : 'false' }}\"
data-allergen-nuts=\"{{ variant.productVariant.allergens.nuts ? 'true' : 'false' }}\"
data-allergen-soy=\"{{ variant.productVariant.allergens.soy ? 'true' : 'false' }}\"
data-allergen-milk=\"{{ variant.productVariant.allergens.milk ? 'true' : 'false' }}\"
data-allergen-shellfish=\"{{ variant.productVariant.allergens.shellfish ? 'true' : 'false' }}\"
data-allergen-mollusks=\"{{ variant.productVariant.allergens.mollusks ? 'true' : 'false' }}\"
data-allergen-celery=\"{{ variant.productVariant.allergens.celery ? 'true' : 'false' }}\"
data-allergen-mustard=\"{{ variant.productVariant.allergens.mustard ? 'true' : 'false' }}\"
data-allergen-sesame=\"{{ variant.productVariant.allergens.sesame ? 'true' : 'false' }}\"
data-allergen-sulfites=\"{{ variant.productVariant.allergens.sulfites ? 'true' : 'false' }}\"
data-allergen-lupine=\"{{ variant.productVariant.allergens.lupine ? 'true' : 'false' }}\"
>
{% if catalogProduct.product.primaryImage %}
<div class=\"product-list-product-header\">
<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\" />
{% if catalogProduct.product.new %}
<span class=\"badge-new\">{{ 'new'|trans({}, 'HelensBakery') }}</span>
{% endif %}
<div class=\"product-list-product-variants\">
{% if catalogProduct.product.homemade %}
<i class=\"icon-homemade\" title=\"Homemade\"></i>
{% endif %}
{% if catalogProduct.product.vegan %}
<i class=\"icon-vegan\" title=\"{{ 'vegan'|trans({}, 'HelensBakery') }}\"></i>
{% endif %}
{% if catalogProduct.product.vegetarian %}
<i class=\"icon-vegetarian\" title=\"{{ 'vegetarian'|trans({}, 'HelensBakery') }}\"></i>
{% endif %}
{% if catalogProduct.product.fish %}
<i class=\"icon-vis\" title=\"Vis\"></i>
{% endif %}
{% if catalogProduct.product.beef %}
<i class=\"icon-rundvlees\" title=\"{{ '100percent_beef'|trans({}, 'HelensBakery') }}\"></i>
{% endif %}
</div>
</div>
{% endif %}
<div class=\"product-list-product-info\">
<span class=\"product-list-product-name\">
{{ catalogProduct.product.name }}
{% if not variant.inStock %}
{{ 'sold_out'|trans({}, 'HelensBakery') }}
{% endif %}
</span>
<span class=\"product-list-product-details\">
{{ catalogProduct.product.description|default(catalogProduct.product.ingredients|map(ingredient => ingredient.name)|join(', '))|striptags|raw }}
</span>
<span class=\"product-list-product-price\">
{{ boldr_shop_format_currency(variant.totalPrice, variant.currency.isoCode) }}
</span>
</div>
<a class=\"product-list-product-add\" href=\"#\">
<i class=\"icon-plus\"></i>
</a>
</div>
{% endfor %}
<div class=\"product-list-product-spacer\"></div>
<div class=\"product-list-product-spacer\"></div>
<div class=\"product-list-product-spacer\"></div>
</div>
</div>
{% endif %}
{% endfor %}
<div class=\"product-list-refine-search\">
<span>{{ 'search_no_products'|trans({}, 'HelensBakery') }}</span>
<a href=\"#\" class=\"product-list-refine-search-clear boldr-button boldr-button-filled\">{{ 'show_all_products'|trans({}, 'HelensBakery') }}</a>
</div>
</div>
</div>
<div class=\"order-window-cart-wrapper\">
<div class=\"order-window-cart\">
<div class=\"order-window-cart-body\">
<div class=\"order-window-cart-title\">
<span>{{ 'my_order'|trans({}, 'HelensBakery') }}</span>
<i class=\"order-window-cart-title-close icon-chevron-down\"></i>
</div>
<div class=\"order-window-cart-products\">
<div class=\"order-window-cart-mobile-empty\">
<span class=\"order-window-cart-mobile-empty-text\">{{ 'no_products_in_cart'|trans({}, 'HelensBakery') }}</span>
<a id=\"order-window-cart-mobile-empty-close\" class=\"boldr-button boldr-button-filled\">
{{ 'add_product'|trans({}, 'HelensBakery') }}
</a>
</div>
{% for orderItem in cart.items %}
<div class=\"order-window-cart-product\" data-order-item-id=\"{{ orderItem.id }}\" data-quantity=\"{{ orderItem.quantity }}\">
<span class=\"order-window-cart-product-quantity\">{{ orderItem.quantity }}x</span>
<div class=\"order-window-cart-product-info\">
<div class=\"order-window-cart-product-name-price\">
<span class=\"order-window-cart-product-name\">{{ orderItem.productVariant.name }}</span>
<span class=\"order-window-cart-product-price\">
{{ boldr_shop_format_currency(orderItem.price.totalPriceExcludingModifiers, cart.currency.isoCode) }}
</span>
</div>
<div class=\"order-window-cart-product-modifiers\">
{% for modifier in orderItem.price.modifiers %}
<div class=\"order-window-cart-product-modifier\">
<span class=\"order-window-cart-product-modifier-name\">
{{ modifier.quantity > 1 ? modifier.quantity ~ 'x' }} {{ modifier.name }}
</span>
<span class=\"order-window-cart-product-modifier-amount\">
{{ modifier.amount < 0 ? '-' : '+' }} {{ boldr_shop_format_currency(modifier.amount|abs, cart.currency.isoCode) }}
</span>
</div>
{% endfor %}
</div>
<div class=\"order-window-cart-product-option-values\">
{% for optionValue in orderItem.optionValues %}
<div class=\"order-window-cart-product-option-value\">
{% if optionValue.name %}
{{ optionValue.name }}:
{% endif %}
{{ optionValue.text }}
</div>
{% endfor %}
</div>
{% set allergens = ['celery', 'egg', 'fish', 'gluten', 'lupine', 'milk', 'mollusks', 'mustard', 'nuts', 'peanut', 'sesame', 'shellfish', 'soy', 'sulfites'] %}
{% set hasAllergens = allergens|reduce((c, v) => c or attribute(orderItem.productVariant.allergens, v), false) %}
{% if hasAllergens %}
<div class=\"order-window-cart-product-allergens\">
<span class=\"order-window-cart-product-allergens-label\">{{ 'allergen_information'|trans({}, 'HelensBakery') }}:</span>
{% for allergen in allergens %}
{% if attribute(orderItem.productVariant.allergens, allergen) %}
<img src=\"{{ asset('/assets/images/allergens/' ~ app.request.locale ~ '/' ~ allergen ~ '.png') }}\" class=\"order-window-cart-product-allergen\" data-name=\"{{ allergen }}\">
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if cart.canItemsBeModified %}
<div class=\"order-window-cart-product-quantity-buttons\">
<a href=\"#\" class=\"order-window-cart-product-quantity-remove\">
<i class=\"icon-minus\"></i>
</a>
<a href=\"#\" class=\"order-window-cart-product-quantity-add\">
<i class=\"icon-plus\"></i>
</a>
</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
<div class=\"order-window-cart-subtotal-modifiers\" {{ cart.total == cart.subtotal ? 'style=\"display: none\"' }}>
<div class=\"order-window-cart-subtotal\">
<span class=\"order-window-cart-subtotal-text\">{{ 'sub_total'|trans({}, 'HelensBakery') }}</span>
<span id=\"order-window-cart-subtotal-amount\" class=\"order-window-cart-subtotal-amount\">{{ boldr_shop_format_currency(cart.subtotal, cart.currency.isoCode) }}</span>
</div>
<div class=\"order-window-cart-modifiers\">
{% for modifier in cart.price.modifiers %}
<div class=\"order-window-cart-subtotal\">
<span class=\"order-window-cart-subtotal-text\">{{ modifier.name }}</span>
<span class=\"order-window-cart-subtotal-amount\">{{ (modifier.amount < 0 ? '- ' : '') ~ boldr_shop_format_currency(modifier.amount|abs, cart.currency.isoCode) }}</span>
</div>
{% endfor %}
</div>
</div>
</div>
<div class=\"order-window-cart-footer\">
<div class=\"order-window-cart-subtotal\">
<span class=\"order-window-cart-subtotal-text\">{{ 'total'|trans({}, 'HelensBakery') }}</span>
<span id=\"order-window-cart-total-amount\" class=\"order-window-cart-subtotal-amount\">{{ boldr_shop_format_currency(cart.total, cart.currency.isoCode) }}</span>
</div>
{% if not cart.canItemsBeModified %}
<p>
{{ 'cant_add_while_paying'|trans({}, 'HelensBakery') }}
</p>
{% endif %}
<div class=\"order-window-cart-next-states\">
{% for nextState in cart.nextStates %}
<a href=\"{{ nextState.url }}\" class=\"order-window-cart-next-state boldr-button boldr-button-highlight\">
{{ nextState.buttonText }}
</a>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}
", "@BoldrShop/shop.html.twig", "/home/boldrdev/sites/hb/app/templates/bundles/BoldrShopBundle/shop.html.twig");
}
}