<?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;
/* Products/category.html.twig */
class __TwigTemplate_45657d5a6813e9b3b87fe55f6cd0f059 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 = [
'title' => [$this, 'block_title'],
'metaDescription' => [$this, 'block_metaDescription'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
];
}
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", "Products/category.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Products/category.html.twig"));
$this->parent = $this->loadTemplate("layout/layout.html.twig", "Products/category.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 2
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 3
yield "\t";
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 3, $this->source); })()))) {
// line 4
yield "\t\tGFS -
\t\t";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 5, $this->source); })()), "breadcrumb", [], "any", false, false, false, 5), "html", null, true);
yield "
\t";
} else {
// line 7
yield "\t\t";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_page_meta_title"), "html", null, true);
yield "
\t";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 11
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_metaDescription(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", "metaDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
// line 12
yield "\t";
// line 15
yield "\t";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_page_meta_description"), "html", null, true);
yield "
\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 19
/**
* @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 20
yield "
\t<!--Start Main Slider-->
\t<section class=\"main-slider-section product-main-slider product-main-slider-section-banner denty\">
\t\t<div class=\"container container-lg\">
\t\t\t<div class=\"custom-slider singal-slider main-slider\">
\t\t\t\t";
// line 25
if (( !Twig\Extension\CoreExtension::testEmpty((isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 25, $this->source); })())) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 25, $this->source); })()), "slides", [], "any", false, false, false, 25)))) {
// line 26
yield "\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t<div class=\"slide-media slide-media-desktop\">
\t\t\t\t\t\t\t";
// line 28
if (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["products_head"] ?? null), "slides", [], "any", false, true, false, 28), 0, [], "array", false, true, false, 28), "localizedfields", [], "any", false, true, false, 28), "data", [], "any", false, true, false, 28), "getLocalizedValue", ["cb_image"], "method", true, true, false, 28)) {
// line 29
yield "\t\t\t\t\t\t\t\t<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, (isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 29, $this->source); })()), "slides", [], "any", false, false, false, 29), 0, [], "array", false, false, false, 29), "localizedfields", [], "any", false, false, false, 29), "data", [], "any", false, false, false, 29), "getLocalizedValue", ["cb_image"], "method", false, false, false, 29), "html", null, true);
yield "\"alt=\"desktop banner product\" class=\"desktop-banner\">
\t\t\t\t\t\t\t";
// line 31
yield "\t\t\t\t\t\t\t";
}
// line 32
yield "\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"slide-media slide-media-mobile\">
\t\t\t\t\t\t\t";
// line 34
if (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["products_head"] ?? null), "slides", [], "any", false, true, false, 34), 0, [], "array", false, true, false, 34), "localizedfields", [], "any", false, true, false, 34), "data", [], "any", false, true, false, 34), "getLocalizedValue", ["cb_image_mobile"], "method", true, true, false, 34)) {
// line 35
yield "\t\t\t\t\t\t\t\t";
// line 36
yield "\t\t\t\t\t\t\t\t<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, (isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 36, $this->source); })()), "slides", [], "any", false, false, false, 36), 0, [], "array", false, false, false, 36), "localizedfields", [], "any", false, false, false, 36), "data", [], "any", false, false, false, 36), "getLocalizedValue", ["cb_image_mobile"], "method", false, false, false, 36), "html", null, true);
yield "\" alt=\"mobile banner product\" class=\"mobile-banner\">
\t\t\t\t\t\t\t";
}
// line 38
yield "\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"silde-content-box\">
\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t<h1>
\t\t\t\t\t\t\t\t\t";
// line 42
if (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["products_head"] ?? null), "slides", [], "any", false, true, false, 42), 0, [], "array", false, true, false, 42), "localizedfields", [], "any", false, true, false, 42), "data", [], "any", false, true, false, 42), "getLocalizedValue", ["cb_title"], "method", true, true, false, 42)) {
// line 43
yield "\t\t\t\t\t\t\t\t\t\t<span class=\"title-sm d-block\">";
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["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 43, $this->source); })()), "slides", [], "any", false, false, false, 43), 0, [], "array", false, false, false, 43), "localizedfields", [], "any", false, false, false, 43), "data", [], "any", false, false, false, 43), "getLocalizedValue", ["cb_title"], "method", false, false, false, 43), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t\t\t";
}
// line 45
yield "\t\t\t\t\t\t\t\t\t";
if (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["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 45, $this->source); })()), "slides", [], "any", false, false, false, 45), 0, [], "array", false, false, false, 45), "localizedfields", [], "any", false, false, false, 45), "data", [], "any", false, false, false, 45), "getLocalizedValue", ["cb_link"], "method", false, false, false, 45)) {
// line 46
yield "\t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end d-block\">";
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["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 46, $this->source); })()), "slides", [], "any", false, false, false, 46), 0, [], "array", false, false, false, 46), "localizedfields", [], "any", false, false, false, 46), "data", [], "any", false, false, false, 46), "getLocalizedValue", ["cb_link"], "method", false, false, false, 46), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t\t\t";
} else {
// line 48
yield "\t\t\t\t\t\t\t\t\t\t<span class=\"title-lg\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("quality"), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t&
\t\t\t\t\t\t\t\t\t\t\t<u>";
// line 50
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("taste!"), "html", null, true);
yield "</u>
\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t";
}
// line 53
yield "\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 61
yield "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t";
} else {
// line 64
yield "\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["category_slider"]) || array_key_exists("category_slider", $context) ? $context["category_slider"] : (function () { throw new RuntimeError('Variable "category_slider" does not exist.', 64, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["slides"]) {
// line 65
yield "\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t<div class=\"slide-media slide-media-desktop\">
\t\t\t\t\t\t\t\t<img
\t\t\t\t\t\t\t\tsrc=\"";
// line 68
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["slides"], "slider_image", [], "any", false, false, false, 68), "data", [], "any", false, false, false, 68), "html", null, true);
yield "\" alt=\"category banner image desktop\" class=\"desktop-banner\">
\t\t\t\t\t\t\t";
// line 70
yield "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"slide-media slide-media-mobile\">
\t\t\t\t\t\t\t\t<img
\t\t\t\t\t\t\t\tsrc=\"";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["slides"], "slider_image_mobile", [], "any", false, false, false, 74), "data", [], "any", false, false, false, 74), "html", null, true);
yield "\" alt=\"category banner image mobile\" class=\"desktop-banner\">
\t\t\t\t\t\t\t";
// line 76
yield "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"silde-content-box \">
\t\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t\t<h1>
\t\t\t\t\t\t\t\t\t\t<span class=\"title-sm d-block\">";
// line 80
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["slides"], "localizedfields", [], "any", false, false, false, 80), "data", [], "any", false, false, false, 80), "getLocalizedValue", ["heading"], "method", false, false, false, 80), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end\">";
// line 81
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["slides"], "localizedfields", [], "any", false, false, false, 81), "data", [], "any", false, false, false, 81), "getLocalizedValue", ["heading1"], "method", false, false, false, 81), "html", null, true);
yield "</u>
\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 89
yield "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['slides'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 92
yield "\t\t\t";
}
// line 93
yield "\t\t</div>
\t</div>
</section>
<!--End Main Slider-->
<!--Start Breadcrumbs-->
<div class=\"breadcrumb-holder\">
\t<ol class=\"breadcrumb\">
\t\t<li class=\"breadcrumb-item\">
\t\t\t<a href=\"/";
// line 101
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.', 101, $this->source); })()), "request", [], "any", false, false, false, 101), "locale", [], "any", false, false, false, 101), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Home"), "html", null, true);
yield "</a>
\t\t</li>
\t\t";
// line 103
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 103, $this->source); })()))) {
// line 104
yield "\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t<a href=\"/";
// line 105
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.', 105, $this->source); })()), "request", [], "any", false, false, false, 105), "locale", [], "any", false, false, false, 105), "html", null, true);
yield "/products/\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Products"), "html", null, true);
yield "</a>
\t\t\t</li>
\t\t\t<li class=\"breadcrumb-item active\" aria-current=\"page\">";
// line 108
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 108, $this->source); })()), "breadcrumb", [], "any", false, false, false, 108), "html", null, true);
yield "</li>
\t\t";
} else {
// line 110
yield "\t\t\t";
// line 111
yield "\t\t\t<li class=\"breadcrumb-item\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Products"), "html", null, true);
yield "</li>
\t\t";
}
// line 114
yield "\t</ol>
</div>
<!--End Breadcrumbs-->
<!--Start Page Info Section-->
<section class=\"pageinfo-section\">
\t<div class=\"container container-sm\">
\t\t";
// line 121
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 121, $this->source); })()))) {
// line 122
yield "\t\t\t<h1 class=\"title\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 122, $this->source); })()), "name", [], "any", false, false, false, 122), "html", null, true);
yield "</h1>
\t\t\t";
// line 123
if ((((CoreExtension::getAttribute($this->env, $this->source, (isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 123, $this->source); })()), "id", [], "any", false, false, false, 123) != 263) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 123, $this->source); })()), "id", [], "any", false, false, false, 123) != 260)) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 123, $this->source); })()), "id", [], "any", false, false, false, 123) != 413))) {
// line 124
yield "\t\t\t\t<p>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 124, $this->source); })()), "Detail_desc", [], "any", false, false, false, 124), "html", null, true);
yield "</p>
\t\t\t";
} else {
// line 126
yield "\t\t\t\t<p>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["products_head"]) || array_key_exists("products_head", $context) ? $context["products_head"] : (function () { throw new RuntimeError('Variable "products_head" does not exist.', 126, $this->source); })()), "description", [], "any", false, false, false, 126), "html", null, true);
yield "</p>
\t\t\t";
}
// line 128
yield "\t\t";
} else {
// line 129
yield "\t\t\t<h1 class=\"title\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("allproducts"), "html", null, true);
yield "</h1>
\t\t\t<p>";
// line 130
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("allproductsdescription"), "html", null, true);
yield "</p>
\t\t";
}
// line 132
yield "\t</div>
</section>
<!--End Page Info Section-->
<!--Start Product Box-->
";
// line 150
yield "
<section class=\"product-result-container position-bg-product\">
\t<div class=\"container container-sm\">
\t\t<div class=\"row\">
\t\t<div class=\"col-sm-12 col-lg-4 col-xl-3 filter-box\">
\t\t\t<form name=\"filter-form\" id=\"filter-form\" method=\"get\">\t
\t\t\t\t\t<div class=\"filter-wrapper\">
\t\t\t\t\t\t<h4 class=\"title\">";
// line 157
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Filters"), "html", null, true);
yield "
\t\t\t\t\t\t\t<span class=\"filter-icon\"><img src=\"/static/assets/images/filter-dropdown.svg\" alt=\"filter-dropdown\"></span>
\t\t\t\t\t\t</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 162
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Search for product"), "html", null, true);
yield "\" 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.', 162, $this->source); })()), "query", [], "any", false, false, false, 162), "html", null, true);
yield "\" class=\"form-control\">
\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=\"filter-accordion hidden\">
\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter1\">
\t\t\t\t\t\t\t";
// line 168
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["filterDefinition"]) || array_key_exists("filterDefinition", $context) ? $context["filterDefinition"] : (function () { throw new RuntimeError('Variable "filterDefinition" does not exist.', 168, $this->source); })()), "filters", [], "any", false, false, false, 168)) > 0)) {
// line 169
yield "\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filterDefinition"]) || array_key_exists("filterDefinition", $context) ? $context["filterDefinition"] : (function () { throw new RuntimeError('Variable "filterDefinition" does not exist.', 169, $this->source); })()), "filters", [], "any", false, false, false, 169));
foreach ($context['_seq'] as $context["_key"] => $context["filter"]) {
yield "\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t";
// line 170
$context["filterMarkup"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["filterService"]) || array_key_exists("filterService", $context) ? $context["filterService"] : (function () { throw new RuntimeError('Variable "filterService" does not exist.', 170, $this->source); })()), "filterFrontend", [$context["filter"], (isset($context["productListing"]) || array_key_exists("productListing", $context) ? $context["productListing"] : (function () { throw new RuntimeError('Variable "productListing" does not exist.', 170, $this->source); })()), (isset($context["currentFilter"]) || array_key_exists("currentFilter", $context) ? $context["currentFilter"] : (function () { throw new RuntimeError('Variable "currentFilter" does not exist.', 170, $this->source); })())], "method", false, false, false, 170);
// line 171
yield "
\t\t\t\t\t\t\t\t\t";
// line 172
yield (isset($context["filterMarkup"]) || array_key_exists("filterMarkup", $context) ? $context["filterMarkup"] : (function () { throw new RuntimeError('Variable "filterMarkup" does not exist.', 172, $this->source); })());
yield "
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['filter'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 175
yield "\t\t\t\t\t\t\t";
}
// line 176
yield "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>\t\t\t\t\t
\t\t\t\t</form>
\t\t\t</div>
\t\t\t<div
\t\t\t\tclass=\"col-sm-12 col-lg-8 col-xl-9 product-results\">
\t\t\t\t<!--Start Product Small Banner-->
\t\t\t\t<div class=\"social-holder-box social-small-box catalog-download\">
\t\t\t\t\t<div class=\"social-holder-img slide-media-mobile\">
\t\t\t\t\t\t<img src=\"/static/assets/images/download_catalog_374x128_mobile.jpg\" alt=\"catalog mobile\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"social-holder-img slide-media-desktop\">
\t\t\t\t\t\t<img src=\"/static/assets/images/download_catalog_485x166_desktop.jpg\" alt=\"catalog desktop\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"social-holder-info\">
\t\t\t\t\t\t<p>";
// line 195
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download our latest product"), "html", null, true);
yield "</p>
\t\t\t\t\t\t<p>";
// line 196
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog with updated line-up"), "html", null, true);
yield "</p>
\t\t\t\t\t\t";
// line 204
yield "\t\t\t\t\t\t";
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.', 204, $this->source); })()), "request", [], "any", false, false, false, 204), "locale", [], "any", false, false, false, 204) == "ar")) {
// line 205
yield "\t\t\t\t\t\t\t<div class=\"btn-holder slide-media-desktop\">
\t\t\t\t\t\t\t\t<a href=\"/Catalog/2024/GCS_Catalog_Arabic_Desktop.pdf\" class=\"btn btn-custom btn-primary\" download>";
// line 206
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download Now!"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"btn-holder slide-media-mobile\">
\t\t\t\t\t\t\t\t<a href=\"/Catalog/2024/GCS_Catalog_Arabic_Mobile.pdf\" class=\"btn btn-custom btn-green\" download>";
// line 210
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download Now!"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
} else {
// line 213
yield "\t\t\t\t\t\t\t<div class=\"btn-holder slide-media-desktop\">
\t\t\t\t\t\t\t\t<a href=\"/Catalog/2024/GCS_Catalog_English_Desktop.pdf\" class=\"btn btn-custom btn-primary\" download>";
// line 214
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download Now!"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"btn-holder slide-media-mobile\">
\t\t\t\t\t\t\t\t<a href=\"/Catalog/2024/GCS_Catalog_English_Mobile.pdf\" class=\"btn btn-custom btn-green\" download>";
// line 218
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download Now!"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 221
yield "
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!--End Product Small Banner-->
\t\t\t\t<div class=\"product-box-holder\">
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t";
// line 227
if ((array_key_exists("products", $context) && !(null === (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 227, $this->source); })())))) {
// line 228
yield "\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 228, $this->source); })()));
$context['_iterated'] = false;
$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["product"]) {
// line 229
yield "\t\t\t\t\t\t\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "brands", [], "any", false, true, false, 229), "id", [], "any", true, true, false, 229)) {
// line 230
yield "\t\t\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "brands", [], "any", false, false, false, 230), "id", [], "any", false, false, false, 230) == 263)) {
// line 231
yield "\t\t\t\t\t\t\t\t\t\t";
$context["class"] = "slide-img-bg-brown";
// line 232
yield "\t\t\t\t\t\t\t\t\t";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "brands", [], "any", false, false, false, 232), "id", [], "any", false, false, false, 232) == 262)) {
// line 233
yield "\t\t\t\t\t\t\t\t\t\t";
$context["class"] = "slide-img-bg-blue";
// line 234
yield "\t\t\t\t\t\t\t\t\t";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "brands", [], "any", false, false, false, 234), "id", [], "any", false, false, false, 234) == 413)) {
// line 235
yield "\t\t\t\t\t\t\t\t\t\t";
$context["class"] = "slide-img-bg-purple";
// line 236
yield "\t\t\t\t\t\t\t\t\t";
} else {
// line 237
yield "\t\t\t\t\t\t\t\t\t\t";
$context["class"] = "slide-img-bg-green";
// line 238
yield "\t\t\t\t\t\t\t\t\t";
}
// line 239
yield "\t\t\t\t\t\t\t\t";
} else {
// line 240
yield "\t\t\t\t\t\t\t\t\t";
$context["class"] = "no-class";
// line 241
yield "\t\t\t\t\t\t\t\t";
}
// line 242
yield "\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 col-xl-4 product-result\">
\t\t\t\t\t\t\t\t\t";
// line 243
yield from $this->loadTemplate("/includes/product-card.html.twig", "Products/category.html.twig", 243)->unwrap()->yield(CoreExtension::merge($context, ["featured_product" => // line 244
$context["product"], "class" => // line 245
(isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 245, $this->source); })()), "LikedId" => // line 246
(isset($context["LikedId"]) || array_key_exists("LikedId", $context) ? $context["LikedId"] : (function () { throw new RuntimeError('Variable "LikedId" does not exist.', 246, $this->source); })())]));
// line 248
yield "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<!--Start GFS Loyalty Program-->
\t\t\t\t\t\t\t\t";
// line 251
yield "\t\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 251) == 6)) {
// line 252
yield "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
// line 253
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["mid_banner"]) || array_key_exists("mid_banner", $context) ? $context["mid_banner"] : (function () { throw new RuntimeError('Variable "mid_banner" does not exist.', 253, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["mid_banners"]) {
// line 254
yield "\t\t\t\t\t\t\t\t\t<div class=\"info-media loyalty-program loyalty-program-small d-none\">
\t\t\t\t\t\t\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t\t\t\t\t\t\t<h5>";
// line 256
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\t\t\t\t\t\t<h4>";
// line 257
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Join the"), "html", null, true);
yield "</h4>
\t\t\t\t\t\t\t\t\t\t\t<h3>";
// line 258
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["mid_banners"], "localizedfields", [], "any", false, false, false, 258), "data", [], "any", false, false, false, 258), "getLocalizedValue", ["heading"], "method", false, false, false, 258), "html", null, true);
yield "</h3>
\t\t\t\t\t\t\t\t\t\t\t<p>";
// line 259
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["mid_banners"], "localizedfields", [], "any", false, false, false, 259), "data", [], "any", false, false, false, 259), "getLocalizedValue", ["heading1"], "method", false, false, false, 259), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"btn-border\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/";
// line 264
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.', 264, $this->source); })()), "request", [], "any", false, false, false, 264), "locale", [], "any", false, false, false, 264), "html", null, true);
yield "/loyalty-program\" class=\"btn btn-custom btn-lg-o-white\">";
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\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 266
if ((null === 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.', 266, $this->source); })()), "session", [], "any", false, false, false, 266), "get", ["loginUserName"], "method", false, false, false, 266))) {
// line 267
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"btn-border btn-border-black \">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/";
// line 268
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.', 268, $this->source); })()), "request", [], "any", false, false, false, 268), "locale", [], "any", false, false, false, 268), "html", null, true);
yield "/signup\" class=\"btn btn-custom btn-lg-o-black\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Sign-up Now!"), "html", null, true);
yield "</a>
\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";
}
// line 271
yield "\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\t<div class=\"media-section\">
\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
// line 275
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["mid_banners"], "slider_image", [], "any", false, false, false, 275), "data", [], "any", false, false, false, 275), "html", null, true);
yield "\" alt=\"mid banner image\">
\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['mid_banners'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 279
yield "\t\t\t\t\t\t\t\t<div class=\"row new-div\">
\t\t\t\t\t\t\t\t";
}
// line 281
yield "\t\t\t\t\t\t\t\t<!--End GFS Loyalty Program-->
\t\t\t\t\t\t\t";
$context['_iterated'] = true;
++$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'];
}
}
if (!$context['_iterated']) {
// line 283
yield "\t\t\t\t\t\t\t\t<h2>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No Product Found"), "html", null, true);
yield "</h2>
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['product'], $context['_parent'], $context['_iterated'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 285
yield "\t\t\t\t\t\t";
}
// line 286
yield "\t\t\t\t\t</div>
\t\t\t\t\t";
// line 287
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 287, $this->source); })())) >= 12)) {
// line 288
yield "\t\t\t\t\t\t<div class=\"load-more\">
\t\t\t\t\t\t\t<button class=\"btn btn-custom btn-p-outline-blue\" id=\"load-more\" onclick=\"loadMoreProduct()\">";
// line 289
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Load more"), "html", null, true);
yield "</button>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 292
yield "
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t";
// line 302
yield from $this->loadTemplate("layout/baseimage.html.twig", "Products/category.html.twig", 302)->unwrap()->yield($context);
// line 303
yield "</section>
<!--End Product Box-->
<!--Start Recipes Using Our Products Section-->
<section class=\"featured-recipes-section inner-featured-recipe using-products using-products-home position-bg-img position-bg-product-2 recipe-using-products-product-section\">
\t<div class=\"container container-sm\">
\t\t";
// line 311
$context["newArray"] = [];
// line 312
yield "\t\t";
$context["recipesarray"] = [];
// line 313
yield "\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 313, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 314
yield "\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "recipes", [], "any", false, false, false, 314));
foreach ($context['_seq'] as $context["_key"] => $context["product_used_recipe"]) {
// line 315
yield "\t\t\t\t";
$context["recipesarray"] = Twig\Extension\CoreExtension::merge((isset($context["recipesarray"]) || array_key_exists("recipesarray", $context) ? $context["recipesarray"] : (function () { throw new RuntimeError('Variable "recipesarray" does not exist.', 315, $this->source); })()), [$context["product_used_recipe"]]);
// line 316
yield "\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['product_used_recipe'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 317
yield "\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['product'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 318
yield "\t\t";
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["recipesarray"]) || array_key_exists("recipesarray", $context) ? $context["recipesarray"] : (function () { throw new RuntimeError('Variable "recipesarray" does not exist.', 318, $this->source); })())) > 0)) {
// line 319
yield "\t\t\t<h2 class=\"heading\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Recipes Using Our Products"), "html", null, true);
yield "</h2>
\t\t";
}
// line 321
yield "\t\t<div class=\"featured-recipes\">
\t\t\t<div class=\"custom-slider featured-recipes-slider\">
\t\t\t\t";
// line 325
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 325, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 326
yield "\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "recipes", [], "any", false, false, false, 326));
foreach ($context['_seq'] as $context["_key"] => $context["product_used_recipe"]) {
// line 327
yield "\t\t\t\t\t\t";
if (!CoreExtension::inFilter($context["product_used_recipe"], (isset($context["newArray"]) || array_key_exists("newArray", $context) ? $context["newArray"] : (function () { throw new RuntimeError('Variable "newArray" does not exist.', 327, $this->source); })()))) {
// line 328
yield "\t\t\t\t\t\t\t";
$context["newArray"] = Twig\Extension\CoreExtension::merge((isset($context["newArray"]) || array_key_exists("newArray", $context) ? $context["newArray"] : (function () { throw new RuntimeError('Variable "newArray" does not exist.', 328, $this->source); })()), [$context["product_used_recipe"]]);
// line 329
yield "\t\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
\t\t\t\t\t\t\t\t\t<a href=\"/";
// line 331
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.', 331, $this->source); })()), "request", [], "any", false, false, false, 331), "locale", [], "any", false, false, false, 331), "html", null, true);
yield "/all-recipes/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product_used_recipe"], "url", [], "any", false, false, false, 331), "html", null, true);
yield "\" tabindex=\"0\">
\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
// line 333
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product_used_recipe"], "featured_image", [], "any", false, false, false, 333), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product_used_recipe"], "name", [], "any", false, false, false, 333), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 334
if (CoreExtension::getAttribute($this->env, $this->source, $context["product_used_recipe"], "banner_video", [], "any", false, false, false, 334)) {
// line 335
yield "\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-play-circle\"></i>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 337
yield "\t\t\t\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t\t\t<a href=\"/";
// line 340
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.', 340, $this->source); })()), "request", [], "any", false, false, false, 340), "locale", [], "any", false, false, false, 340), "html", null, true);
yield "/all-recipes/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product_used_recipe"], "url", [], "any", false, false, false, 340), "html", null, true);
yield "\" tabindex=\"0\">
\t\t\t\t\t\t\t\t\t\t\t<h3>";
// line 341
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product_used_recipe"], "name", [], "any", false, false, false, 341), "html", null, true);
yield "</h3>
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t<p>";
// line 343
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product_used_recipe"], "short_description", [], "any", false, false, false, 343), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t\t\t<div class=\"chef-names\"></div>
\t\t\t\t\t\t\t\t\t\t<ul
\t\t\t\t\t\t\t\t\t\t\tclass=\"list-unstyled recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 348
yield "\t\t\t\t\t\t\t\t\t\t\t<li class=\"orders\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No. Of"), "html", null, true);
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Serving"), "html", null, true);
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product_used_recipe"], "serves", [], "any", false, false, false, 348), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t\t\t\t\t<li class=\"time\">";
// line 349
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["product_used_recipe"], "typeofmeal", [], "any", false, false, false, 349)), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"btn-holder\">
\t\t\t\t\t\t\t\t\t\t<a href=\"/";
// line 353
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.', 353, $this->source); })()), "request", [], "any", false, false, false, 353), "locale", [], "any", false, false, false, 353), "html", null, true);
yield "/all-recipes/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product_used_recipe"], "url", [], "any", false, false, false, 353), "html", null, true);
yield "\" class=\"btn btn-custom btn-lg-o-black\" tabindex=\"0\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("View Recipe"), "html", null, true);
yield "</a>
\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";
}
// line 359
yield "\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['product_used_recipe'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 360
yield "\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['product'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 361
yield "
\t\t\t</div>
\t\t</div>
\t</div>
\t";
// line 367
yield from $this->loadTemplate("layout/baseimage.html.twig", "Products/category.html.twig", 367)->unwrap()->yield($context);
// line 368
yield "</section>
<script>
document.querySelectorAll('.filter-checkbox').forEach(function(checkbox) {
checkbox.addEventListener('change', function() {\t\t
document.forms[0].submit();
});
});
\tdocument.querySelector('input[name=\"query\"]').addEventListener('keydown', function(event) {
if (event.key === 'Enter') {
event.preventDefault();
document.forms[0].submit();
}
});
\tfunction clearFilter() {
\t\t\tdocument.querySelectorAll(\".filter-checkbox\").forEach(function(checkbox) {
\t\t\t\tcheckbox.checked = false;
\t\t\t});
\t\t\tdocument.forms[0].submit();
\t}
\twindow.addEventListener('load', function() {
document.querySelector('.product-result-container').scrollIntoView({ behavior: 'smooth' });
});
</script>
<!--End Recipes Using Our Products Section-->
<script>
let page = 1;
function loadMoreProduct() {
data = '';
if (typeof(\$('input[name=\"locationthemes\"]:checked').val()) !== 'undefined') {
var checked_val = \$('input[name=\"locationthemes\"]:checked').val();
data = {
'checked_val': checked_val
}
}
let add_query = '&';
if (!window.location.search) {
add_query = '?';
}
\$.ajax({
type: \"GET\",
url: window.location.href + add_query + 'page=' + page,
data: data,
cache: false,
beforeSend: function () {
\$('#load-more').addClass('btn-load');
},
complete: function () {
\$('#load-more').removeClass('btn-load');
},
success: function (data) {
if (data.success) {
\$('.product-box-holder .new-div').append(data.success);
page++;
}
if (data.success == '' || data.total_products < 11) {
\$('#load-more').hide();
}
}
});
}
</script>
";
// line 441
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.', 441, $this->source); })()), "request", [], "any", false, false, false, 441), "locale", [], "any", false, false, false, 441) == "ar")) {
// line 442
yield "\t";
$context["topMenu"] = Twig\Extension\CoreExtension::replace(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.', 442, $this->source); })()), "request", [], "any", false, false, false, 442), "requesturi", [], "any", false, false, false, 442), ["/ar/" => "/en/"]);
} else {
// line 444
yield "\t";
$context["topMenu"] = Twig\Extension\CoreExtension::replace(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.', 444, $this->source); })()), "request", [], "any", false, false, false, 444), "requesturi", [], "any", false, false, false, 444), ["/en/" => "/ar/"]);
}
// line 446
yield "
<script>
\tvar _TopMenuLink = \"";
// line 448
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.', 448, $this->source); })()), "html", null, true);
yield "\" + window.location.search;
</script>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 449
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_footer(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", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 450
yield from $this->loadTemplate("includes/footer.html.twig", "Products/category.html.twig", 450)->unwrap()->yield($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Products/category.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 983 => 450, 970 => 449, 957 => 448, 953 => 446, 949 => 444, 945 => 442, 943 => 441, 868 => 368, 866 => 367, 858 => 361, 852 => 360, 846 => 359, 833 => 353, 826 => 349, 819 => 348, 812 => 343, 807 => 341, 801 => 340, 796 => 337, 792 => 335, 790 => 334, 784 => 333, 777 => 331, 773 => 329, 770 => 328, 767 => 327, 762 => 326, 758 => 325, 752 => 321, 746 => 319, 743 => 318, 737 => 317, 731 => 316, 728 => 315, 723 => 314, 718 => 313, 715 => 312, 713 => 311, 703 => 303, 701 => 302, 689 => 292, 683 => 289, 680 => 288, 678 => 287, 675 => 286, 672 => 285, 663 => 283, 649 => 281, 645 => 279, 635 => 275, 629 => 271, 621 => 268, 618 => 267, 616 => 266, 609 => 264, 601 => 259, 597 => 258, 593 => 257, 589 => 256, 585 => 254, 581 => 253, 578 => 252, 575 => 251, 571 => 248, 569 => 246, 568 => 245, 567 => 244, 566 => 243, 563 => 242, 560 => 241, 557 => 240, 554 => 239, 551 => 238, 548 => 237, 545 => 236, 542 => 235, 539 => 234, 536 => 233, 533 => 232, 530 => 231, 527 => 230, 524 => 229, 505 => 228, 503 => 227, 495 => 221, 489 => 218, 482 => 214, 479 => 213, 473 => 210, 466 => 206, 463 => 205, 460 => 204, 456 => 196, 452 => 195, 431 => 176, 428 => 175, 419 => 172, 416 => 171, 414 => 170, 407 => 169, 405 => 168, 394 => 162, 386 => 157, 377 => 150, 369 => 132, 364 => 130, 359 => 129, 356 => 128, 350 => 126, 344 => 124, 342 => 123, 337 => 122, 335 => 121, 326 => 114, 319 => 111, 317 => 110, 312 => 108, 304 => 105, 301 => 104, 299 => 103, 292 => 101, 282 => 93, 279 => 92, 271 => 89, 263 => 81, 259 => 80, 253 => 76, 249 => 74, 243 => 70, 239 => 68, 234 => 65, 229 => 64, 224 => 61, 219 => 53, 213 => 50, 207 => 48, 201 => 46, 198 => 45, 192 => 43, 190 => 42, 184 => 38, 178 => 36, 176 => 35, 174 => 34, 170 => 32, 167 => 31, 162 => 29, 160 => 28, 156 => 26, 154 => 25, 147 => 20, 134 => 19, 120 => 15, 118 => 12, 105 => 11, 90 => 7, 85 => 5, 82 => 4, 79 => 3, 66 => 2, 43 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"layout/layout.html.twig\" %}
{% block title %}
\t{% if products_head is not empty %}
\t\tGFS -
\t\t{{products_head.breadcrumb}}
\t{% else %}
\t\t{{'product_page_meta_title'|trans}}
\t{% endif %}
{% endblock %}
{% block metaDescription %}
\t{# {% if products_head is not empty %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t GFS - {{products_head.breadcrumb}}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {% else %} #}
\t{{\"product_page_meta_description\"|trans}}
\t{# {% endif %} #}
{% endblock %}
{% block content %}
\t<!--Start Main Slider-->
\t<section class=\"main-slider-section product-main-slider product-main-slider-section-banner denty\">
\t\t<div class=\"container container-lg\">
\t\t\t<div class=\"custom-slider singal-slider main-slider\">
\t\t\t\t{% if products_head is not empty and products_head.slides is not empty %}
\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t<div class=\"slide-media slide-media-desktop\">
\t\t\t\t\t\t\t{% if products_head.slides[0].localizedfields.data.getLocalizedValue('cb_image') is defined %}
\t\t\t\t\t\t\t\t<img src=\"{{ products_head.slides[0].localizedfields.data.getLocalizedValue('cb_image') }}\"alt=\"desktop banner product\" class=\"desktop-banner\">
\t\t\t\t\t\t\t{# <img src=\"{{ products_head.slides[0].localizedfields.data.getLocalizedValue('cb_image_mobile') }}\" alt=\"\" class=\"mobile-banner\"> #}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"slide-media slide-media-mobile\">
\t\t\t\t\t\t\t{% if products_head.slides[0].localizedfields.data.getLocalizedValue('cb_image_mobile') is defined %}
\t\t\t\t\t\t\t\t{# <img src=\"{{ products_head.slides[0].localizedfields.data.getLocalizedValue('cb_image') }}\" alt=\"\" class=\"desktop-banner\"> #}
\t\t\t\t\t\t\t\t<img src=\"{{ products_head.slides[0].localizedfields.data.getLocalizedValue('cb_image_mobile') }}\" alt=\"mobile banner product\" class=\"mobile-banner\">
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"silde-content-box\">
\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t<h1>
\t\t\t\t\t\t\t\t\t{% if products_head.slides[0].localizedfields.data.getLocalizedValue('cb_title') is defined %}
\t\t\t\t\t\t\t\t\t\t<span class=\"title-sm d-block\">{{products_head.slides[0].localizedfields.data.getLocalizedValue('cb_title')}}</span>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{% if products_head.slides[0].localizedfields.data.getLocalizedValue('cb_link') %}
\t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end d-block\">{{products_head.slides[0].localizedfields.data.getLocalizedValue('cb_link')}}</span>
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t<span class=\"title-lg\">{{'quality'|trans}}
\t\t\t\t\t\t\t\t\t\t\t&
\t\t\t\t\t\t\t\t\t\t\t<u>{{'taste!'|trans}}</u>
\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{# {% if products_head.brand_logo is not empty %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <div class=\"product-brand\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <img src=\"{{products_head.brand_logo}}\" alt=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {% endif %} #}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t{% else %}
\t\t\t\t\t{% for slides in category_slider %}
\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t<div class=\"slide-media slide-media-desktop\">
\t\t\t\t\t\t\t\t<img
\t\t\t\t\t\t\t\tsrc=\"{{ slides.slider_image.data }}\" alt=\"category banner image desktop\" class=\"desktop-banner\">
\t\t\t\t\t\t\t{# <img src=\"{{ slides.slider_image.data }}\" alt=\"\" class=\"mobile-banner\"> #}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"slide-media slide-media-mobile\">
\t\t\t\t\t\t\t\t<img
\t\t\t\t\t\t\t\tsrc=\"{{ slides.slider_image_mobile.data }}\" alt=\"category banner image mobile\" class=\"desktop-banner\">
\t\t\t\t\t\t\t{# <img src=\"{{ slides.slider_image.data }}\" alt=\"\" class=\"mobile-banner\"> #}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"silde-content-box \">
\t\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t\t<h1>
\t\t\t\t\t\t\t\t\t\t<span class=\"title-sm d-block\">{{ slides.localizedfields.data.getLocalizedValue('heading') }}</span>
\t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end\">{{ slides.localizedfields.data.getLocalizedValue('heading1') }}</u>
\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{# <div class=\"product-brand\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <img src=\"/static/assets/images/goody_logo.png\" alt=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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{% endfor %}
\t\t\t{% endif %}
\t\t</div>
\t</div>
</section>
<!--End Main Slider-->
<!--Start Breadcrumbs-->
<div class=\"breadcrumb-holder\">
\t<ol class=\"breadcrumb\">
\t\t<li class=\"breadcrumb-item\">
\t\t\t<a href=\"/{{app.request.locale}}\">{{'Home'|trans}}</a>
\t\t</li>
\t\t{% if products_head is not empty %}
\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t<a href=\"/{{app.request.locale}}/products/\">{{'Products'|trans}}</a>
\t\t\t</li>
\t\t\t<li class=\"breadcrumb-item active\" aria-current=\"page\">{{products_head.breadcrumb}}</li>
\t\t{% else %}
\t\t\t{# <li class=\"breadcrumb-item active\" aria-current=\"page\">{{'allproducts'|trans}}</li> #}
\t\t\t<li class=\"breadcrumb-item\">{{'Products'|trans}}</li>
\t\t{% endif %}
\t</ol>
</div>
<!--End Breadcrumbs-->
<!--Start Page Info Section-->
<section class=\"pageinfo-section\">
\t<div class=\"container container-sm\">
\t\t{% if products_head is not empty %}
\t\t\t<h1 class=\"title\">{{products_head.name}}</h1>
\t\t\t{% if products_head.id != 263 and products_head.id != 260 and products_head.id != 413%}
\t\t\t\t<p>{{products_head.Detail_desc}}</p>
\t\t\t{% else %}
\t\t\t\t<p>{{products_head.description}}</p>
\t\t\t{% endif %}
\t\t{% else %}
\t\t\t<h1 class=\"title\">{{'allproducts'|trans}}</h1>
\t\t\t<p>{{'allproductsdescription'|trans}}</p>
\t\t{% endif %}
\t</div>
</section>
<!--End Page Info Section-->
<!--Start Product Box-->
{# {% if products_head is not empty %}
\t{% if products_head.id != 263 %}
\t\t{% else %}
\t\t\t<h2 class=\"text-center mt-3\">{{'Coming soon'|trans}}</h2>
\t\t\t<style>
\t\t\t\t.product-result-container,
\t\t\t\t.featured-recipes-section {
\t\t\t\t\tdisplay: none;
\t\t\t\t}
\t\t\t</style>
\t{% endif %}
{% endif %} #}
<section class=\"product-result-container position-bg-product\">
\t<div class=\"container container-sm\">
\t\t<div class=\"row\">
\t\t<div class=\"col-sm-12 col-lg-4 col-xl-3 filter-box\">
\t\t\t<form name=\"filter-form\" id=\"filter-form\" method=\"get\">\t
\t\t\t\t\t<div class=\"filter-wrapper\">
\t\t\t\t\t\t<h4 class=\"title\">{{'Filters'|trans}}
\t\t\t\t\t\t\t<span class=\"filter-icon\"><img src=\"/static/assets/images/filter-dropdown.svg\" alt=\"filter-dropdown\"></span>
\t\t\t\t\t\t</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}}\" name=\"query\" id=\"search\" value=\"{{ filters.query }}\" class=\"form-control\">
\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=\"filter-accordion hidden\">
\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter1\">
\t\t\t\t\t\t\t{% if(filterDefinition.filters|length > 0) %}
\t\t\t\t\t\t\t\t{% for filter in filterDefinition.filters %}\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t{% set filterMarkup = filterService.filterFrontend(filter, productListing, currentFilter) %}
\t\t\t\t\t\t\t\t\t{{ filterMarkup | raw }}
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>\t\t\t\t\t
\t\t\t\t</form>
\t\t\t</div>
\t\t\t<div
\t\t\t\tclass=\"col-sm-12 col-lg-8 col-xl-9 product-results\">
\t\t\t\t<!--Start Product Small Banner-->
\t\t\t\t<div class=\"social-holder-box social-small-box catalog-download\">
\t\t\t\t\t<div class=\"social-holder-img slide-media-mobile\">
\t\t\t\t\t\t<img src=\"/static/assets/images/download_catalog_374x128_mobile.jpg\" alt=\"catalog mobile\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"social-holder-img slide-media-desktop\">
\t\t\t\t\t\t<img src=\"/static/assets/images/download_catalog_485x166_desktop.jpg\" alt=\"catalog desktop\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"social-holder-info\">
\t\t\t\t\t\t<p>{{'Download our latest product'|trans}}</p>
\t\t\t\t\t\t<p>{{'catalog with updated line-up'|trans}}</p>
\t\t\t\t\t\t{# <div class=\"btn-holder slide-media-desktop\">
\t\t\t\t\t\t\t<a href=\"/Catalog/2022/Catalog_Full.pdf\" class=\"btn btn-custom btn-primary\" download>{{'Download Now!'|trans}}</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"btn-holder slide-media-mobile\">
\t\t\t\t\t\t\t<a href=\"/Catalog/2022/Catalog_Full_Mobile.pdf\" class=\"btn btn-custom btn-green\" download>{{'Download Now!'|trans}}</a>
\t\t\t\t\t\t</div> #}
\t\t\t\t\t\t{% if app.request.locale == 'ar' %}
\t\t\t\t\t\t\t<div class=\"btn-holder slide-media-desktop\">
\t\t\t\t\t\t\t\t<a href=\"/Catalog/2024/GCS_Catalog_Arabic_Desktop.pdf\" class=\"btn btn-custom btn-primary\" download>{{'Download Now!'|trans}}</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"btn-holder slide-media-mobile\">
\t\t\t\t\t\t\t\t<a href=\"/Catalog/2024/GCS_Catalog_Arabic_Mobile.pdf\" class=\"btn btn-custom btn-green\" download>{{'Download Now!'|trans}}</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<div class=\"btn-holder slide-media-desktop\">
\t\t\t\t\t\t\t\t<a href=\"/Catalog/2024/GCS_Catalog_English_Desktop.pdf\" class=\"btn btn-custom btn-primary\" download>{{'Download Now!'|trans}}</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"btn-holder slide-media-mobile\">
\t\t\t\t\t\t\t\t<a href=\"/Catalog/2024/GCS_Catalog_English_Mobile.pdf\" class=\"btn btn-custom btn-green\" download>{{'Download Now!'|trans}}</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!--End Product Small Banner-->
\t\t\t\t<div class=\"product-box-holder\">
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t{% if products is defined and products is not null %}
\t\t\t\t\t\t\t{% for product in products %}
\t\t\t\t\t\t\t\t{% if product.brands.id is defined %}
\t\t\t\t\t\t\t\t\t{% if product.brands.id == 263 %}
\t\t\t\t\t\t\t\t\t\t{% set class = \"slide-img-bg-brown\" %}
\t\t\t\t\t\t\t\t\t{% elseif product.brands.id == 262 %}
\t\t\t\t\t\t\t\t\t\t{% set class = \"slide-img-bg-blue\" %}
\t\t\t\t\t\t\t\t\t{% elseif product.brands.id == 413 %}
\t\t\t\t\t\t\t\t\t\t{% set class = \"slide-img-bg-purple\" %}
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t{% set class = \"slide-img-bg-green\" %}
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{% set class = \"no-class\" %}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 col-xl-4 product-result\">
\t\t\t\t\t\t\t\t\t{% include \"/includes/product-card.html.twig\" with {
\t\t\t\t\t\t\t\t\t\tfeatured_product: product,
\t\t\t\t\t\t\t\t\t\tclass: class,
\t\t\t\t\t\t\t\t\t\tLikedId : LikedId,
\t\t\t\t\t\t\t\t\t} %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<!--Start GFS Loyalty Program-->
\t\t\t\t\t\t\t\t{# {% if loop.index == 6 %} understaining purpose #}
\t\t\t\t\t\t\t\t{% if loop.index == 6 %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t{% for mid_banners in mid_banner %}
\t\t\t\t\t\t\t\t\t<div class=\"info-media loyalty-program loyalty-program-small d-none\">
\t\t\t\t\t\t\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t\t\t\t\t\t\t<h5>{{'loyalty program'|trans}}</h5>
\t\t\t\t\t\t\t\t\t\t\t<h4>{{'Join the'|trans}}</h4>
\t\t\t\t\t\t\t\t\t\t\t<h3>{{mid_banners.localizedfields.data.getLocalizedValue('heading')}}</h3>
\t\t\t\t\t\t\t\t\t\t\t<p>{{mid_banners.localizedfields.data.getLocalizedValue('heading1')}}</p>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"btn-border\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/loyalty-program\" class=\"btn btn-custom btn-lg-o-white\">{{'Discover More'|trans}}</a>
\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{% if app.session.get('loginUserName') is null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"btn-border btn-border-black \">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/signup\" class=\"btn btn-custom btn-lg-o-black\">{{'Sign-up Now!'|trans}}</a>
\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{% endif %}
\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\t<div class=\"media-section\">
\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{mid_banners.slider_image.data}}\" alt=\"mid banner image\">
\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\t<div class=\"row new-div\">
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t<!--End GFS Loyalty Program-->
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<h2>{{'No Product Found'|trans}}</h2>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t\t{% if products|length >= 12 %}
\t\t\t\t\t\t<div class=\"load-more\">
\t\t\t\t\t\t\t<button class=\"btn btn-custom btn-p-outline-blue\" id=\"load-more\" onclick=\"loadMoreProduct()\">{{'Load more'|trans}}</button>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t{% include \"layout/baseimage.html.twig\" %}
</section>
<!--End Product Box-->
<!--Start Recipes Using Our Products Section-->
<section class=\"featured-recipes-section inner-featured-recipe using-products using-products-home position-bg-img position-bg-product-2 recipe-using-products-product-section\">
\t<div class=\"container container-sm\">
\t\t{% set newArray = [] %}
\t\t{% set recipesarray = [] %}
\t\t{% for product in products %}
\t\t\t{% for product_used_recipe in product.recipes %}
\t\t\t\t{% set recipesarray = recipesarray|merge([product_used_recipe]) %}
\t\t\t{% endfor %}
\t\t{% endfor %}
\t\t{% if recipesarray|length > 0 %}
\t\t\t<h2 class=\"heading\">{{'Recipes Using Our Products'|trans}}</h2>
\t\t{% endif %}
\t\t<div class=\"featured-recipes\">
\t\t\t<div class=\"custom-slider featured-recipes-slider\">
\t\t\t\t{% for product in products %}
\t\t\t\t\t{% for product_used_recipe in product.recipes %}
\t\t\t\t\t\t{% if product_used_recipe not in newArray %}
\t\t\t\t\t\t\t{% set newArray = newArray|merge([product_used_recipe]) %}
\t\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/all-recipes/{{ product_used_recipe.url }}\" tabindex=\"0\">
\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{product_used_recipe.featured_image}}\" alt=\"{{product_used_recipe.name}}\">
\t\t\t\t\t\t\t\t\t\t\t{% if product_used_recipe.banner_video %}
\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-play-circle\"></i>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/all-recipes/{{ product_used_recipe.url }}\" tabindex=\"0\">
\t\t\t\t\t\t\t\t\t\t\t<h3>{{ product_used_recipe.name }}</h3>
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t<p>{{ product_used_recipe.short_description }}</p>
\t\t\t\t\t\t\t\t\t\t<div class=\"chef-names\"></div>
\t\t\t\t\t\t\t\t\t\t<ul
\t\t\t\t\t\t\t\t\t\t\tclass=\"list-unstyled recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t{# <li class=\"mins\">{{ product_used_recipe.time }}{{ \"mins\"|trans }}</li> #}
\t\t\t\t\t\t\t\t\t\t\t<li class=\"orders\">{{'No. Of'|trans}}{{'Serving'|trans}}{{ product_used_recipe.serves }}</li>
\t\t\t\t\t\t\t\t\t\t\t<li class=\"time\">{{ product_used_recipe.typeofmeal|trans }}</li>
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"btn-holder\">
\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/all-recipes/{{ product_used_recipe.url }}\" class=\"btn btn-custom btn-lg-o-black\" tabindex=\"0\">{{'View Recipe'|trans}}</a>
\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{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t</div>
\t</div>
\t{% include \"layout/baseimage.html.twig\" %}
</section>
<script>
document.querySelectorAll('.filter-checkbox').forEach(function(checkbox) {
checkbox.addEventListener('change', function() {\t\t
document.forms[0].submit();
});
});
\tdocument.querySelector('input[name=\"query\"]').addEventListener('keydown', function(event) {
if (event.key === 'Enter') {
event.preventDefault();
document.forms[0].submit();
}
});
\tfunction clearFilter() {
\t\t\tdocument.querySelectorAll(\".filter-checkbox\").forEach(function(checkbox) {
\t\t\t\tcheckbox.checked = false;
\t\t\t});
\t\t\tdocument.forms[0].submit();
\t}
\twindow.addEventListener('load', function() {
document.querySelector('.product-result-container').scrollIntoView({ behavior: 'smooth' });
});
</script>
<!--End Recipes Using Our Products Section-->
<script>
let page = 1;
function loadMoreProduct() {
data = '';
if (typeof(\$('input[name=\"locationthemes\"]:checked').val()) !== 'undefined') {
var checked_val = \$('input[name=\"locationthemes\"]:checked').val();
data = {
'checked_val': checked_val
}
}
let add_query = '&';
if (!window.location.search) {
add_query = '?';
}
\$.ajax({
type: \"GET\",
url: window.location.href + add_query + 'page=' + page,
data: data,
cache: false,
beforeSend: function () {
\$('#load-more').addClass('btn-load');
},
complete: function () {
\$('#load-more').removeClass('btn-load');
},
success: function (data) {
if (data.success) {
\$('.product-box-holder .new-div').append(data.success);
page++;
}
if (data.success == '' || data.total_products < 11) {
\$('#load-more').hide();
}
}
});
}
</script>
{% if (app.request.locale =='ar') %}
\t{% set topMenu = app.request.requesturi|replace({'/ar/': '/en/'}) %}
{% else %}
\t{% set topMenu = app.request.requesturi|replace({'/en/': '/ar/'}) %}
{% endif %}
<script>
\tvar _TopMenuLink = \"{{ topMenu }}\" + window.location.search;
</script>{% endblock %}{% block footer %}
{% include \"includes/footer.html.twig\" %}{% endblock %}
", "Products/category.html.twig", "/var/www/vhosts/centric.ae/gcs.centric.ae/templates/Products/category.html.twig");
}
}