<?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;
/* menubuilder/menu-builder.html.twig */
class __TwigTemplate_ac5830c45440667c0b370fcdb824e9e7 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 = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout/layout.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", "menubuilder/menu-builder.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "menubuilder/menu-builder.html.twig"));
$this->parent = $this->loadTemplate("layout/layout.html.twig", "menubuilder/menu-builder.html.twig", 1);
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 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
yield "
\t";
// line 7
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 7, $this->source); })())) {
// line 8
yield "
\t\t";
// line 9
yield "Recipe Categories";
yield "
\t\t";
// line 10
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "recipecategory", ["types" => ["object"], "subtypes" => ["object" => ["object"]], "classes" => ["recipecategory"]]);
// line 16
yield "
\t\t";
// line 18
yield "Recipe Brands";
yield "
\t\t";
// line 20
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "recipebrands", ["types" => ["object"], "subtypes" => ["object" => ["object"]], "classes" => ["brands"]]);
// line 26
yield "
\t";
}
// line 30
yield "\t";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content", ["allowed" => ["menu-builder-main-area"]]);
// line 35
yield "
\t<!--Start Product Box-->
\t";
// line 39
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 39, $this->source); })())) {
// line 40
yield "\t\t<section class=\"product-result-container recipe-result-container menu-builder\">
\t\t\t<div class=\"container container-sm\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-12 col-md-12 col-xl-3 filter-box\">
\t\t\t\t\t\t<h4 class=\"title\">";
// line 44
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Filters"), "html", null, true);
yield "</h4>
\t\t\t\t\t\t<div class=\"filder-options\">
\t\t\t\t\t\t\t<div class=\"input-holder\">
\t\t\t\t\t\t\t\t<input type=\"text\" placeholder=\"";
// line 47
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Search for product"), "html", null, true);
yield "\" class=\"form-control\" name=\"query\" id=\"search\" value=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 47, $this->source); })()), "query", [], "any", false, false, false, 47), "html", null, true);
yield ">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"filter-accordion\">
\t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter1\">
\t\t\t\t\t\t\t\t<div class=\"card-header\">
\t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse1\" aria-expanded=\"true\" aria-controls=\"collapse1\">
\t\t\t\t\t\t\t\t\t\t";
// line 55
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Category"), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"collapse1\" class=\"collapse show\" data-parent=\"#filter1\">
\t\t\t\t\t\t\t\t\t<div class=\"card-body\">
\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 62
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "recipecategory"));
foreach ($context['_seq'] as $context["_key"] => $context["recipecategories"]) {
// line 63
yield "\t\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox category_checkbox\" name='Category' id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["recipecategories"], "id", [], "any", false, false, false, 63), "html", null, true);
yield "\" type=\"checkbox\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["recipecategories"], "id", [], "any", false, false, false, 63), "html", null, true);
yield "\" ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["recipecategories"], "id", [], "any", false, false, false, 63), "html", null, true);
yield " ";
yield ((CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["recipecategories"], "id", [], "any", false, false, false, 63), CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 63, $this->source); })()), "category_ids", [], "any", false, false, false, 63))) ? ("checked") : (""));
yield ">
\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["recipecategories"], "id", [], "any", false, false, false, 64), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["recipecategories"], "recipecategoryname", [], "any", false, false, false, 64), "html", null, true);
yield "</label>
\t\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['recipecategories'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 67
yield "
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.category_checkbox')\">";
// line 70
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Clear Filter"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter2\">
\t\t\t\t\t\t\t\t<div class=\"card-header\">
\t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse2\" aria-expanded=\"true\" aria-controls=\"collapse2\">
\t\t\t\t\t\t\t\t\t\t";
// line 81
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Brands"), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"collapse2\" class=\"collapse show\" data-parent=\"#filter2\">
\t\t\t\t\t\t\t\t\t<div class=\"card-body\">
\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 88
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "recipebrands"));
foreach ($context['_seq'] as $context["_key"] => $context["recipe_brands"]) {
// line 89
yield "\t\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox brand_checkbox\" id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["recipe_brands"], "id", [], "any", false, false, false, 89), "html", null, true);
yield "\" type=\"checkbox\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["recipe_brands"], "id", [], "any", false, false, false, 89), "html", null, true);
yield "\" ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["recipe_brands"], "id", [], "any", false, false, false, 89), "html", null, true);
yield " ";
yield ((CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["recipe_brands"], "id", [], "any", false, false, false, 89), CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 89, $this->source); })()), "brand_ids", [], "any", false, false, false, 89))) ? ("checked") : (""));
yield ">
\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"";
// line 90
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["recipe_brands"], "id", [], "any", false, false, false, 90), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["recipe_brands"], "name", [], "any", false, false, false, 90), "html", null, true);
yield "</label>
\t\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['recipe_brands'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 93
yield "
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.brand_checkbox')\">";
// line 97
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Clear Filter"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter3\">
\t\t\t\t\t\t\t\t<div class=\"card-header\">
\t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse3\" aria-expanded=\"true\" aria-controls=\"collapse3\">
\t\t\t\t\t\t\t\t\t\t";
// line 108
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Type"), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"collapse3\" class=\"collapse show\" data-parent=\"#filter3\">
\t\t\t\t\t\t\t\t\t<div class=\"card-body\">
\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Lunch\" type=\"checkbox\" value=\"Lunch\" ";
// line 115
yield ((CoreExtension::inFilter("Lunch", CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 115, $this->source); })()), "meal_type", [], "any", false, false, false, 115))) ? ("checked") : (""));
yield ">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Lunch\">";
// line 116
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Lunch"), "html", null, true);
yield "</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Dinner\" type=\"checkbox\" value=\"Dinner\" ";
// line 118
yield ((CoreExtension::inFilter("Dinner", CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 118, $this->source); })()), "meal_type", [], "any", false, false, false, 118))) ? ("checked") : (""));
yield ">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Dinner\">";
// line 119
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dinner"), "html", null, true);
yield "</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Dessert\" type=\"checkbox\" value=\"Dessert\" ";
// line 121
yield ((CoreExtension::inFilter("Dessert", CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 121, $this->source); })()), "meal_type", [], "any", false, false, false, 121))) ? ("checked") : (""));
yield ">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Dessert\">";
// line 122
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dessert"), "html", null, true);
yield "</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Drink\" type=\"checkbox\" value=\"Drink\" ";
// line 124
yield ((CoreExtension::inFilter("Drink", CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 124, $this->source); })()), "meal_type", [], "any", false, false, false, 124))) ? ("checked") : (""));
yield ">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Drink\">";
// line 125
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Drink"), "html", null, true);
yield "</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Breakfast\" type=\"checkbox\" value=\"Breakfast\" ";
// line 127
yield ((CoreExtension::inFilter("Breakfast", CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 127, $this->source); })()), "meal_type", [], "any", false, false, false, 127))) ? ("checked") : (""));
yield ">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Breakfast\">";
// line 128
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Breakfast1"), "html", null, true);
yield "</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"snack\" type=\"checkbox\" value=\"snack\" ";
// line 130
yield ((CoreExtension::inFilter("snack", CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 130, $this->source); })()), "meal_type", [], "any", false, false, false, 130))) ? ("checked") : (""));
yield ">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"snack\">";
// line 131
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("snack"), "html", null, true);
yield "</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"bakery\" type=\"checkbox\" value=\"bakery\" ";
// line 133
yield ((CoreExtension::inFilter("bakery", CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 133, $this->source); })()), "meal_type", [], "any", false, false, false, 133))) ? ("checked") : (""));
yield ">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"bakery\">";
// line 134
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bakery"), "html", null, true);
yield "</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Appetizer\" type=\"checkbox\" value=\"Appetizer\" ";
// line 136
yield ((CoreExtension::inFilter("Appetizer", CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 136, $this->source); })()), "meal_type", [], "any", false, false, false, 136))) ? ("checked") : (""));
yield ">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Appetizer\">";
// line 137
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Appetizer"), "html", null, true);
yield "</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.type_checkbox')\">";
// line 141
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Clear Filter"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"apply-filter\">
\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" onclick=\"searchFilter(this)\" class=\"btn btn-custom btn-green\">";
// line 149
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Apply Filter"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-12 col-md-12 col-xl-9 product-results\">
\t\t\t\t\t\t<div class=\"recipe-box-holder\">
\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t";
// line 159
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["recipes"]) || array_key_exists("recipes", $context) ? $context["recipes"] : (function () { throw new RuntimeError('Variable "recipes" does not exist.', 159, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["menu_recipes"]) {
// line 160
yield "
\t\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 col-lg-4 product-result\">
\t\t\t\t\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/";
// line 164
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 164, $this->source); })()), "request", [], "any", false, false, false, 164), "locale", [], "any", false, false, false, 164), "html", null, true);
yield "/menu-builder/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "url", [], "any", false, false, false, 164), "html", null, true);
yield "\" tabindex=\"0\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<figure
\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"slide-img\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 168
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "featured_image", [], "any", false, false, false, 168)) {
// line 169
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "featured_image", [], "any", false, false, false, 169), "thumbnail", ["354x244"], "method", false, false, false, 169), "getHTML", [["imgAttributes" => ["class" => "", "alt" => CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "name", [], "any", false, false, false, 169)]]], "method", false, false, false, 169);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 171
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/";
// line 175
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 175, $this->source); })()), "request", [], "any", false, false, false, 175), "locale", [], "any", false, false, false, 175), "html", null, true);
yield "/menu-builder/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "url", [], "any", false, false, false, 175), "html", null, true);
yield "\" tabindex=\"0\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>";
// line 176
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "name", [], "any", false, false, false, 176), "html", null, true);
yield "</h3>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
// line 178
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "short_description", [], "any", false, false, false, 178), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 179
if (CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "featured_product", [], "any", false, false, false, 179)) {
// line 180
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"chef-names\">";
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["menu_recipes"], "featured_product", [], "any", false, false, false, 180), 0, [], "array", false, false, false, 180), "brands", [], "any", false, false, false, 180), "name", [], "any", false, false, false, 180), "html", null, true);
yield "</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 182
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled social-info recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 184
$context["user"] = 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.', 184, $this->source); })()), "session", [], "any", false, false, false, 184), "get", ["loginUserName"], "method", false, false, false, 184);
// line 185
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !(null === (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 185, $this->source); })()))) {
// line 186
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "id", [], "any", false, false, false, 186), (isset($context["LikedId"]) || array_key_exists("LikedId", $context) ? $context["LikedId"] : (function () { throw new RuntimeError('Variable "LikedId" does not exist.', 186, $this->source); })()))) {
// line 187
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class='liked'>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 188
$context["break"] = true;
// line 189
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 190
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like training_list\" onclick=\"loyaltyProgram(this,";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "id", [], "any", false, false, false, 190), "html", null, true);
yield ",'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "name", [], "any", false, false, false, 190), "html", null, true);
yield "',30,'Recipe','Like' , '";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 190, $this->source); })()), "request", [], "any", false, false, false, 190), "locale", [], "any", false, false, false, 190), "html", null, true);
yield "')\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 193
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 195
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like logged-out\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 197
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Recipe','";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((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.', 197, $this->source); })()), "request", [], "any", false, false, false, 197), "getSchemeAndHttpHost", [], "method", false, false, false, 197) . "/") . 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.', 197, $this->source); })()), "request", [], "any", false, false, false, 197), "locale", [], "any", false, false, false, 197)) . "/menu-builder/") . CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "url", [], "any", false, false, false, 197)), "html", null, true);
yield "' , '";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(" share goody recipe with your friends"), "html", null, true);
yield "')\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"loyaltyProgram(this,";
// line 198
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "id", [], "any", false, false, false, 198), "html", null, true);
yield ",'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menu_recipes"], "name", [], "any", false, false, false, 198), "html", null, true);
yield "',30,'Recipe','Share' , '";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 198, $this->source); })()), "request", [], "any", false, false, false, 198), "locale", [], "any", false, false, false, 198), "html", null, true);
yield "')\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 201
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 202
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['menu_recipes'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 208
yield "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!--Start pagination Section-->
\t\t\t\t\t\t";
// line 216
$context["page"] = 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.', 216, $this->source); })()), "request", [], "any", false, false, false, 216), "get", ["page"], "method", false, false, false, 216);
// line 217
yield "
\t\t\t\t\t\t<section class=\"pagination-section\">
\t\t\t\t\t\t\t<nav aria-label=\"Page navigation\" class=\"goody-navigation\">
\t\t\t\t\t\t\t\t<ul class=\"pagination justify-content-center\">
\t\t\t\t\t\t\t\t\t<li class=\"page-item\">
\t\t\t\t\t\t\t\t\t\t";
// line 225
if (((isset($context["total_pages"]) || array_key_exists("total_pages", $context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.', 225, $this->source); })()) > 1)) {
// line 226
yield "\t\t\t\t\t\t\t\t\t\t\t";
if ((((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 226, $this->source); })()) == 1) || ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 226, $this->source); })()) == ""))) {
// line 227
yield "
\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\">";
// line 228
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("First"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 231
yield "
\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"";
// line 232
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('pimcore_url')->getCallable()(["page" => 1]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("First"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 235
yield "\t\t\t\t\t\t\t\t\t\t";
}
// line 236
yield "\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t";
// line 238
if (((isset($context["total_pages"]) || array_key_exists("total_pages", $context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.', 238, $this->source); })()) > 1)) {
// line 239
yield "\t\t\t\t\t\t\t\t\t\t<li class=\"page-item ";
yield (((((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 239, $this->source); })()) == 1) || ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 239, $this->source); })()) == ""))) ? ("active") : (""));
yield "\">
\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"";
// line 240
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('pimcore_url')->getCallable()(["page" => 1]), "html", null, true);
yield "\" tabindex=\"-1\">1</a>
\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t";
}
// line 243
yield "
\t\t\t\t\t\t\t\t\t";
// line 244
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(range(1, (isset($context["total_pages"]) || array_key_exists("total_pages", $context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.', 244, $this->source); })())));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 245
yield "
\t\t\t\t\t\t\t\t\t\t";
// line 246
if ((($context["i"] != 1) && ($context["i"] != (isset($context["total_pages"]) || array_key_exists("total_pages", $context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.', 246, $this->source); })())))) {
// line 247
yield "\t\t\t\t\t\t\t\t\t\t\t<li class=\"page-item ";
yield (((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 247) == (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 247, $this->source); })()))) ? ("active") : (""));
yield "\">
\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"";
// line 248
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('pimcore_url')->getCallable()(["page" => $context["i"]]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["i"], "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t";
}
// line 251
yield "\t\t\t\t\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 252
yield "
\t\t\t\t\t\t\t\t\t";
// line 254
if (((isset($context["total_pages"]) || array_key_exists("total_pages", $context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.', 254, $this->source); })()) > 1)) {
// line 255
yield "\t\t\t\t\t\t\t\t\t\t<li class=\"page-item ";
yield ((((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 255, $this->source); })()) == (isset($context["total_pages"]) || array_key_exists("total_pages", $context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.', 255, $this->source); })()))) ? ("active") : (""));
yield "\">
\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"";
// line 256
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('pimcore_url')->getCallable()(["page" => (isset($context["total_pages"]) || array_key_exists("total_pages", $context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.', 256, $this->source); })())]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["total_pages"]) || array_key_exists("total_pages", $context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.', 256, $this->source); })()), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t<li class=\"page-item\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 261
if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 261, $this->source); })()) == (isset($context["total_pages"]) || array_key_exists("total_pages", $context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.', 261, $this->source); })()))) {
// line 262
yield "\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Last"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 264
yield "\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('pimcore_url')->getCallable()(["page" => (isset($context["total_pages"]) || array_key_exists("total_pages", $context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.', 264, $this->source); })())]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Last"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 266
yield "
\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t";
}
// line 269
yield "
\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t</nav>
\t\t\t\t\t\t</section>
\t\t\t\t\t\t<!--End pagination Section-->
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t";
}
// line 281
yield "\t<!--End Product Box-->
\t<!--Start GFS Loyalty Program-->
\t";
// line 285
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content-loyalty", ["allowed" => ["loyalty-banner"]]);
// line 290
yield "
\t<section class=\"menu-builder-loyalty d-none\">
\t\t<div class=\"info-media loyalty-program\">
\t\t\t<div class=\"container container-sm\">
\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t<h5>";
// line 295
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Loyalty Program"), "html", null, true);
yield "</h5>
\t\t\t\t\t<h4>";
// line 296
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, (isset($context["loyaltybanner"]) || array_key_exists("loyaltybanner", $context) ? $context["loyaltybanner"] : (function () { throw new RuntimeError('Variable "loyaltybanner" does not exist.', 296, $this->source); })()), "sliders", [], "any", false, false, false, 296), 0, [], "array", false, false, false, 296), "localizedfields", [], "any", false, false, false, 296), "data", [], "any", false, false, false, 296), "getLocalizedValue", ["heading"], "method", false, false, false, 296), "html", null, true);
yield "</h4>
\t\t\t\t\t<h3>";
// line 297
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, (isset($context["loyaltybanner"]) || array_key_exists("loyaltybanner", $context) ? $context["loyaltybanner"] : (function () { throw new RuntimeError('Variable "loyaltybanner" does not exist.', 297, $this->source); })()), "sliders", [], "any", false, false, false, 297), 0, [], "array", false, false, false, 297), "localizedfields", [], "any", false, false, false, 297), "data", [], "any", false, false, false, 297), "getLocalizedValue", ["heading1"], "method", false, false, false, 297), "html", null, true);
yield "</h3>
\t\t\t\t\t<p>";
// line 298
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, (isset($context["loyaltybanner"]) || array_key_exists("loyaltybanner", $context) ? $context["loyaltybanner"] : (function () { throw new RuntimeError('Variable "loyaltybanner" does not exist.', 298, $this->source); })()), "sliders", [], "any", false, false, false, 298), 0, [], "array", false, false, false, 298), "localizedfields", [], "any", false, false, false, 298), "data", [], "any", false, false, false, 298), "getLocalizedValue", ["description"], "method", false, false, false, 298), "html", null, true);
yield "</p>
\t\t\t\t\t<div class=\"btn-holder\">
\t\t\t\t\t\t<div class=\"btn-border\">
\t\t\t\t\t\t\t<a href=\"/";
// line 303
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 303, $this->source); })()), "request", [], "any", false, false, false, 303), "locale", [], "any", false, false, false, 303), "html", null, true);
yield "/loyalty-program\" class=\"btn btn-custom btn-green\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Discover More"), "html", null, true);
yield "</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"newsletter-subscribe\">
\t\t\t\t\t\t\t<h4 class=\"cstsmLP\">\"";
// line 306
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Coming Soon"), "html", null, true);
yield "\"</h4>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"btn-border btn-border-black d-none\">
\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-lg-o-black\">Sign-up Now!</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"media-section \">
\t\t\t\t\t<img src=\"";
// line 315
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, (isset($context["loyaltybanner"]) || array_key_exists("loyaltybanner", $context) ? $context["loyaltybanner"] : (function () { throw new RuntimeError('Variable "loyaltybanner" does not exist.', 315, $this->source); })()), "sliders", [], "any", false, false, false, 315), 0, [], "array", false, false, false, 315), "slider_image", [], "any", false, false, false, 315), "data", [], "any", false, false, false, 315), "html", null, true);
yield "\" alt=\"loyalty banner slide image\">
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</section>
\t";
// line 321
if ((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.', 321, $this->source); })()), "request", [], "any", false, false, false, 321), "locale", [], "any", false, false, false, 321) == "ar")) {
// line 322
yield "\t\t";
$context["topMenu"] = "/en/menu-builder";
// line 323
yield "\t";
} else {
// line 324
yield "\t\t";
$context["topMenu"] = "/ar/menu-builder";
// line 325
yield "\t";
}
// line 326
yield "\t<script>
\t\tvar _TopMenuLink = \"";
// line 327
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topMenu"]) || array_key_exists("topMenu", $context) ? $context["topMenu"] : (function () { throw new RuntimeError('Variable "topMenu" does not exist.', 327, $this->source); })()), "html", null, true);
yield "\";
\t</script>
\t<!--End GFS Loyalty Program-->
\t<script>
\t\t// ";
// line 336
yield "
\t\tfunction searchFilter(e) {
\t\tlet new_path = 'category_id=';
\t\tlet new_brand = '&brand_id=';
\t\tlet new_type = '&meal_type=';
\t\tlet category_count = 1
\t\tlet brand_count = 1
\t\tlet cuisine_count = 1
\t\tlet type_count = 1
\t\tlet query = '';
\t\t\$('.category_checkbox').each(function (index, value) {
\t\tif (\$(this).is(':checked')) {
\t\tif (category_count > 1) {
\t\tnew_path += '_';
\t\t}
\t\tnew_path += \$(this).val();
\t\tcategory_count++;
\t\t}
\t\t});
\t\t\$('.brand_checkbox').each(function (index, value) {
\t\tif (\$(this).is(':checked')) {
\t\tif (brand_count > 1) {
\t\tnew_brand += '_';
\t\t}
\t\tnew_brand += \$(this).val();
\t\tbrand_count++;
\t\t}
\t\t});
\t\t\$('.type_checkbox').each(function (index, value) {
\t\tif (\$(this).is(':checked')) {
\t\tif (type_count > 1) {
\t\tnew_type += '_';
\t\t}
\t\tnew_type += \$(this).val();
\t\ttype_count++;
\t\t}
\t\t});
\t\tif (\$('#search').val()) {
\t\tquery = '&query=' + \$('#search').val();
\t\t}
\t\twindow.location.href = '?' + new_path + new_brand + new_type + query;
\t\t}
\t\tfunction clearFilter(c) {
\t\t\$(c).each(function (index, value) {
\t\t\$(this).prop('checked', false);
\t\t});
\t\t}
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "menubuilder/menu-builder.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 757 => 336, 750 => 327, 747 => 326, 744 => 325, 741 => 324, 738 => 323, 735 => 322, 733 => 321, 724 => 315, 712 => 306, 704 => 303, 696 => 298, 692 => 297, 688 => 296, 684 => 295, 677 => 290, 675 => 285, 669 => 281, 655 => 269, 650 => 266, 642 => 264, 636 => 262, 634 => 261, 624 => 256, 619 => 255, 617 => 254, 613 => 252, 599 => 251, 591 => 248, 586 => 247, 584 => 246, 581 => 245, 564 => 244, 561 => 243, 555 => 240, 550 => 239, 548 => 238, 544 => 236, 541 => 235, 533 => 232, 530 => 231, 524 => 228, 521 => 227, 518 => 226, 516 => 225, 506 => 217, 504 => 216, 494 => 208, 483 => 202, 481 => 201, 470 => 198, 463 => 197, 457 => 195, 453 => 193, 440 => 190, 437 => 189, 435 => 188, 430 => 187, 427 => 186, 424 => 185, 422 => 184, 418 => 182, 412 => 180, 410 => 179, 406 => 178, 401 => 176, 395 => 175, 389 => 171, 383 => 169, 380 => 168, 372 => 164, 366 => 160, 362 => 159, 349 => 149, 338 => 141, 331 => 137, 327 => 136, 322 => 134, 318 => 133, 313 => 131, 309 => 130, 304 => 128, 300 => 127, 295 => 125, 291 => 124, 286 => 122, 282 => 121, 277 => 119, 273 => 118, 268 => 116, 264 => 115, 254 => 108, 240 => 97, 234 => 93, 223 => 90, 212 => 89, 208 => 88, 198 => 81, 184 => 70, 179 => 67, 168 => 64, 157 => 63, 153 => 62, 143 => 55, 130 => 47, 124 => 44, 118 => 40, 116 => 39, 110 => 35, 107 => 30, 101 => 26, 99 => 20, 94 => 18, 90 => 16, 88 => 10, 84 => 9, 81 => 8, 79 => 7, 76 => 6, 63 => 5, 40 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"layout/layout.html.twig\" %}
{# {% block title %}GFS::Menu Builder{% endblock %} #}
{% block content %}
\t{% if editmode %}
\t\t{{'Recipe Categories'}}
\t\t{{ pimcore_relations(\"recipecategory\", {
\t\t\t\"types\": [\"object\"],
\t\t\t\"subtypes\": {
\t\t\t\t\"object\": [\"object\"]
\t\t\t},
\t\t\t\"classes\": [\"recipecategory\"]
\t\t}) }}
\t\t{{'Recipe Brands'}}
\t\t{{ pimcore_relations(\"recipebrands\", {
\t\t\t\"types\": [\"object\"],
\t\t\t\"subtypes\": {
\t\t\t\t\"object\": [\"object\"]
\t\t\t},
\t\t\t\"classes\": [\"brands\"]
\t\t}) }}
\t{% endif %}
\t{{
\t\t\tpimcore_areablock(\"content\", {
\t\t\t\t\"allowed\": [\"menu-builder-main-area\"],
\t\t\t\t
\t\t\t})
\t}}
\t<!--Start Product Box-->
\t{% if not editmode %}
\t\t<section class=\"product-result-container recipe-result-container menu-builder\">
\t\t\t<div class=\"container container-sm\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-12 col-md-12 col-xl-3 filter-box\">
\t\t\t\t\t\t<h4 class=\"title\">{{'Filters'|trans}}</h4>
\t\t\t\t\t\t<div class=\"filder-options\">
\t\t\t\t\t\t\t<div class=\"input-holder\">
\t\t\t\t\t\t\t\t<input type=\"text\" placeholder=\"{{'Search for product'|trans}}\" class=\"form-control\" name=\"query\" id=\"search\" value={{ filters.query }}>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"filter-accordion\">
\t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter1\">
\t\t\t\t\t\t\t\t<div class=\"card-header\">
\t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse1\" aria-expanded=\"true\" aria-controls=\"collapse1\">
\t\t\t\t\t\t\t\t\t\t{{'Category'|trans}}
\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"collapse1\" class=\"collapse show\" data-parent=\"#filter1\">
\t\t\t\t\t\t\t\t\t<div class=\"card-body\">
\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
\t\t\t\t\t\t\t\t\t\t\t{% for recipecategories in pimcore_relations(\"recipecategory\") %}
\t\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox category_checkbox\" name='Category' id=\"{{recipecategories.id}}\" type=\"checkbox\" value=\"{{recipecategories.id}}\" {{recipecategories.id}} {{ (recipecategories.id in filters.category_ids) ? 'checked' : '' }}>
\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"{{recipecategories.id}}\">{{recipecategories.recipecategoryname}}</label>
\t\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.category_checkbox')\">{{'Clear Filter'|trans}}</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter2\">
\t\t\t\t\t\t\t\t<div class=\"card-header\">
\t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse2\" aria-expanded=\"true\" aria-controls=\"collapse2\">
\t\t\t\t\t\t\t\t\t\t{{'Brands'|trans}}
\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"collapse2\" class=\"collapse show\" data-parent=\"#filter2\">
\t\t\t\t\t\t\t\t\t<div class=\"card-body\">
\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
\t\t\t\t\t\t\t\t\t\t\t{% for recipe_brands in pimcore_relations(\"recipebrands\") %}
\t\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox brand_checkbox\" id=\"{{recipe_brands.id}}\" type=\"checkbox\" value=\"{{recipe_brands.id}}\" {{recipe_brands.id}} {{ (recipe_brands.id in filters.brand_ids) ? 'checked' : ''}}>
\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"{{recipe_brands.id}}\">{{recipe_brands.name}}</label>
\t\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.brand_checkbox')\">{{'Clear Filter'|trans}}</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter3\">
\t\t\t\t\t\t\t\t<div class=\"card-header\">
\t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse3\" aria-expanded=\"true\" aria-controls=\"collapse3\">
\t\t\t\t\t\t\t\t\t\t{{'Type'|trans}}
\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"collapse3\" class=\"collapse show\" data-parent=\"#filter3\">
\t\t\t\t\t\t\t\t\t<div class=\"card-body\">
\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Lunch\" type=\"checkbox\" value=\"Lunch\" {{ ('Lunch' in filters.meal_type) ? 'checked' : '' }}>
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Lunch\">{{'Lunch'|trans}}</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Dinner\" type=\"checkbox\" value=\"Dinner\" {{ ('Dinner' in filters.meal_type) ? 'checked' : '' }}>
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Dinner\">{{'Dinner'|trans}}</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Dessert\" type=\"checkbox\" value=\"Dessert\" {{ ('Dessert' in filters.meal_type) ? 'checked' : '' }}>
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Dessert\">{{'Dessert'|trans}}</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Drink\" type=\"checkbox\" value=\"Drink\" {{ ('Drink' in filters.meal_type) ? 'checked' : '' }}>
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Drink\">{{'Drink'|trans}}</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Breakfast\" type=\"checkbox\" value=\"Breakfast\" {{ ('Breakfast' in filters.meal_type) ? 'checked' : '' }}>
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Breakfast\">{{'Breakfast1'|trans}}</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"snack\" type=\"checkbox\" value=\"snack\" {{ ('snack' in filters.meal_type) ? 'checked' : '' }}>
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"snack\">{{'snack'|trans}}</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"bakery\" type=\"checkbox\" value=\"bakery\" {{ ('bakery' in filters.meal_type) ? 'checked' : '' }}>
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"bakery\">{{'bakery'|trans}}</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Appetizer\" type=\"checkbox\" value=\"Appetizer\" {{ ('Appetizer' in filters.meal_type) ? 'checked' : '' }}>
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Appetizer\">{{'Appetizer'|trans}}</label>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.type_checkbox')\">{{'Clear Filter'|trans}}</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"apply-filter\">
\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" onclick=\"searchFilter(this)\" class=\"btn btn-custom btn-green\">{{'Apply Filter'|trans}}</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-12 col-md-12 col-xl-9 product-results\">
\t\t\t\t\t\t<div class=\"recipe-box-holder\">
\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t{% for menu_recipes in recipes %}
\t\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 col-lg-4 product-result\">
\t\t\t\t\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/menu-builder/{{menu_recipes.url}}\" tabindex=\"0\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<figure
\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"slide-img\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{# <img src=\"{{menu_recipes.featured_image}}\" alt=\"{{menu_recipes.name}}\"> #}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if menu_recipes.featured_image %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ menu_recipes.featured_image.thumbnail('354x244').getHTML({imgAttributes: {class:'',alt: menu_recipes.name}})|raw }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/menu-builder/{{menu_recipes.url}}\" tabindex=\"0\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>{{menu_recipes.name}}</h3>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{menu_recipes.short_description}}</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if menu_recipes.featured_product %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"chef-names\">{{menu_recipes.featured_product[0].brands.name}}</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled social-info recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set user = app.session.get('loginUserName') %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if user is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if menu_recipes.id in LikedId %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class='liked'>{{'Like'|trans}}</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set break = true %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like training_list\" onclick=\"loyaltyProgram(this,{{menu_recipes.id}},'{{menu_recipes.name}}',30,'Recipe','Like' , '{{app.request.locale}}')\">{{'Like'|trans}}</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like logged-out\">{{'Like'|trans}}</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Recipe','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/menu-builder/' ~ menu_recipes.url}}' , '{{ \" share goody recipe with your friends\"|trans }}')\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"loyaltyProgram(this,{{menu_recipes.id}},'{{menu_recipes.name}}',30,'Recipe','Share' , '{{app.request.locale}}')\">{{'Share'|trans}}</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{# <li class=\"share\" onclick=\"sharemodal('Recipe','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/menu-builder/' ~ menu_recipes.url}}' , '{{ \"SHARE GOODY RECIPE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</li> #}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{# <li class=\"save\" id=\"save\">Save</li> #}
\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!--Start pagination Section-->
\t\t\t\t\t\t{% set page = app.request.get('page') %}
\t\t\t\t\t\t<section class=\"pagination-section\">
\t\t\t\t\t\t\t<nav aria-label=\"Page navigation\" class=\"goody-navigation\">
\t\t\t\t\t\t\t\t<ul class=\"pagination justify-content-center\">
\t\t\t\t\t\t\t\t\t<li class=\"page-item\">
\t\t\t\t\t\t\t\t\t\t{% if total_pages > 1 %}
\t\t\t\t\t\t\t\t\t\t\t{% if page == 1 or page == ''%}
\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\">{{\"First\"|trans}}</a>
\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"{{ pimcore_url({'page': 1}) }}\">{{\"First\"|trans}}</a>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t{% if total_pages > 1 %}
\t\t\t\t\t\t\t\t\t\t<li class=\"page-item {{ (page == 1 or page == '') ? 'active' : '' }}\">
\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"{{ pimcore_url({'page': 1}) }}\" tabindex=\"-1\">1</a>
\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{% for i in 1..total_pages %}
\t\t\t\t\t\t\t\t\t\t{% if i != 1 and i != total_pages %}
\t\t\t\t\t\t\t\t\t\t\t<li class=\"page-item {{ (loop.index == page) ? 'active' : '' }}\">
\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"{{ pimcore_url({'page': i}) }}\">{{i}}</a>
\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t{% if total_pages > 1 %}
\t\t\t\t\t\t\t\t\t\t<li class=\"page-item {{ (page == total_pages) ? 'active' : '' }}\">
\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"{{ pimcore_url({'page': total_pages}) }}\">{{total_pages}}</a>
\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t<li class=\"page-item\">
\t\t\t\t\t\t\t\t\t\t\t{% if page == total_pages %}
\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\">{{\"Last\"|trans}}</a>
\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"{{ pimcore_url({'page': total_pages}) }}\">{{\"Last\"|trans}}</a>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t</nav>
\t\t\t\t\t\t</section>
\t\t\t\t\t\t<!--End pagination Section-->
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t{% endif %}
\t<!--End Product Box-->
\t<!--Start GFS Loyalty Program-->
\t{{
\t\t\tpimcore_areablock(\"content-loyalty\", {
\t\t\t\t\"allowed\": [\"loyalty-banner\"],
\t\t\t\t
\t\t\t})
\t}}
\t<section class=\"menu-builder-loyalty d-none\">
\t\t<div class=\"info-media loyalty-program\">
\t\t\t<div class=\"container container-sm\">
\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t<h5>{{'Loyalty Program'|trans}}</h5>
\t\t\t\t\t<h4>{{ loyaltybanner.sliders[0].localizedfields.data.getLocalizedValue('heading')}}</h4>
\t\t\t\t\t<h3>{{ loyaltybanner.sliders[0].localizedfields.data.getLocalizedValue('heading1')}}</h3>
\t\t\t\t\t<p>{{ loyaltybanner.sliders[0].localizedfields.data.getLocalizedValue('description')}}</p>
\t\t\t\t\t<div class=\"btn-holder\">
\t\t\t\t\t\t<div class=\"btn-border\">
\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/loyalty-program\" class=\"btn btn-custom btn-green\">{{'Discover More'|trans}}</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"newsletter-subscribe\">
\t\t\t\t\t\t\t<h4 class=\"cstsmLP\">\"{{'Coming Soon'|trans}}\"</h4>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"btn-border btn-border-black d-none\">
\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-lg-o-black\">Sign-up Now!</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"media-section \">
\t\t\t\t\t<img src=\"{{loyaltybanner.sliders[0].slider_image.data}}\" alt=\"loyalty banner slide image\">
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</section>
\t{% if (app.request.locale =='ar') %}
\t\t{% set topMenu =\"/en/menu-builder\" %}
\t{% else %}
\t\t{% set topMenu =\"/ar/menu-builder\" %}
\t{% endif %}
\t<script>
\t\tvar _TopMenuLink = \"{{ topMenu }}\";
\t</script>
\t<!--End GFS Loyalty Program-->
\t<script>
\t\t// {# \$('.pagination li').on('click', function () {
\t\t// \$('.active').removeClass('active');
\t\t// \$(this).addClass('active');
\t\t// });
\t\t// #}
\t\tfunction searchFilter(e) {
\t\tlet new_path = 'category_id=';
\t\tlet new_brand = '&brand_id=';
\t\tlet new_type = '&meal_type=';
\t\tlet category_count = 1
\t\tlet brand_count = 1
\t\tlet cuisine_count = 1
\t\tlet type_count = 1
\t\tlet query = '';
\t\t\$('.category_checkbox').each(function (index, value) {
\t\tif (\$(this).is(':checked')) {
\t\tif (category_count > 1) {
\t\tnew_path += '_';
\t\t}
\t\tnew_path += \$(this).val();
\t\tcategory_count++;
\t\t}
\t\t});
\t\t\$('.brand_checkbox').each(function (index, value) {
\t\tif (\$(this).is(':checked')) {
\t\tif (brand_count > 1) {
\t\tnew_brand += '_';
\t\t}
\t\tnew_brand += \$(this).val();
\t\tbrand_count++;
\t\t}
\t\t});
\t\t\$('.type_checkbox').each(function (index, value) {
\t\tif (\$(this).is(':checked')) {
\t\tif (type_count > 1) {
\t\tnew_type += '_';
\t\t}
\t\tnew_type += \$(this).val();
\t\ttype_count++;
\t\t}
\t\t});
\t\tif (\$('#search').val()) {
\t\tquery = '&query=' + \$('#search').val();
\t\t}
\t\twindow.location.href = '?' + new_path + new_brand + new_type + query;
\t\t}
\t\tfunction clearFilter(c) {
\t\t\$(c).each(function (index, value) {
\t\t\$(this).prop('checked', false);
\t\t});
\t\t}
\t</script>
{% endblock %}
", "menubuilder/menu-builder.html.twig", "/var/www/vhosts/centric.ae/gcs.centric.ae/templates/menubuilder/menu-builder.html.twig");
}
}