<?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;
/* Resources/resources.html.twig */
class __TwigTemplate_04318dff465a5dabc3f5219b8dc6e711 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'],
'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", "Resources/resources.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Resources/resources.html.twig"));
$this->parent = $this->loadTemplate("layout/layout.html.twig", "Resources/resources.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"));
yield "GFS - Resources
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// 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<!--Start Main Slider-->
\t";
// line 8
if (CoreExtension::getAttribute($this->env, $this->source, ($context["current_category"] ?? null), "sliders", [], "any", true, true, false, 8)) {
// line 9
yield "\t\t<section class=\"main-slider-section product-main-slider resources-section-slider\">
\t\t\t<div class=\"container container-lg\">
\t\t\t\t<div class=\"custom-slider singal-slider main-slider\">
\t\t\t\t\t";
// line 12
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_category"]) || array_key_exists("current_category", $context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.', 12, $this->source); })()), "sliders", [], "any", false, false, false, 12));
foreach ($context['_seq'] as $context["_key"] => $context["slide"]) {
// line 13
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 src=\"";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["slide"], "sliderimages", [], "any", false, false, false, 15), "data", [], "any", false, false, false, 15), "html", null, true);
yield "\" alt=\"resource banner\"/>
\t\t\t\t\t\t\t\t
\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 src=\"";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["slide"], "sliderimages_mobile", [], "any", false, false, false, 20), "data", [], "any", false, false, false, 20), "html", null, true);
yield "\" alt=\"resource banner mobile\"/>
\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 25
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["slide"], "localizedfields", [], "any", false, false, false, 25), "data", [], "any", false, false, false, 25), "getLocalizedValue", ["slidertitle"], "method", false, false, false, 25), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end\">";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_category"]) || array_key_exists("current_category", $context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.', 26, $this->source); })()), "name", [], "any", false, false, false, 26), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"product-brand d-none\">
\t\t\t\t\t\t\t\t\t<img src=\"";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["slide"], "sliderbrandlogo", [], "any", false, false, false, 30), "html", null, true);
yield "\" alt=\"slide banner logo\"/>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['slide'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
yield "\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t";
}
// line 39
yield "\t<!--End Main Slider-->
\t<!--Start Breadcrumbs-->
\t<div class=\"breadcrumb-holder\">
\t\t<ol class=\"breadcrumb\">
\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t<a href=\"/";
// line 45
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.', 45, $this->source); })()), "request", [], "any", false, false, false, 45), "locale", [], "any", false, false, false, 45), "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\t</li>
\t\t\t<li class=\"breadcrumb-item\">";
// line 47
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Resources"), "html", null, true);
yield "</li>
\t\t\t<li class=\"breadcrumb-item active\" aria-current=\"page\">
\t\t\t\t";
// line 49
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_category"]) || array_key_exists("current_category", $context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.', 49, $this->source); })()), "name", [], "any", false, false, false, 49), "html", null, true);
yield "
\t\t\t</li>
\t\t</ol>
\t</div>
\t<!--End Breadcrumbs-->
\t<!--Start Info Media-->
\t";
// line 56
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_category"]) || array_key_exists("current_category", $context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.', 56, $this->source); })()), "bannerimage", [], "any", false, false, false, 56) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_category"]) || array_key_exists("current_category", $context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.', 56, $this->source); })()), "name", [], "any", false, false, false, 56))) {
// line 57
yield "\t\t<section class=\"training-media-box info-media res-listing-tech\">
\t\t\t";
// line 58
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_category"]) || array_key_exists("current_category", $context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.', 58, $this->source); })()), "name", ["en"], "method", false, false, false, 58) == "Business")) {
// line 59
yield "\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["most"]) || array_key_exists("most", $context) ? $context["most"] : (function () { throw new RuntimeError('Variable "most" does not exist.', 59, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["popular"]) {
// line 60
yield "\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "url", [], "any", false, false, false, 60) == "the-future-of-the-hospitality-industry-in-saudi-arabia")) {
// line 61
yield "\t\t\t\t\t\t<div class=\"container container-sm\">
\t\t\t\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t\t\t\t<h5>";
// line 63
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_category"]) || array_key_exists("current_category", $context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.', 63, $this->source); })()), "name", [], "any", false, false, false, 63), "html", null, true);
yield "</h5>
\t\t\t\t\t\t\t\t<h4>";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "name", [], "any", false, false, false, 64), "html", null, true);
yield "</h4>
\t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">";
// line 65
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "main_description", [], "any", false, false, false, 65), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">";
// line 66
yield (((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "main_description", [], "any", false, false, false, 66)) > 150)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "main_description", [], "any", false, false, false, 66), 0, 150) . "..."), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "main_description", [], "any", false, false, false, 66), "html", null, true)));
yield "
\t\t\t\t\t\t\t\t\t<div class=\"\">
\t\t\t\t\t\t\t\t\t\t<a href=\"/";
// line 68
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.', 68, $this->source); })()), "request", [], "any", false, false, false, 68), "locale", [], "any", false, false, false, 68), "html", null, true);
yield "/resource/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "url", [], "any", false, false, false, 68), "html", null, true);
yield "\" class=\"btn btn-custom btn-green\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read More"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
\t\t\t\t\t\t\t\t<video
\t\t\t\t\t\t\t\t\tposter=\"";
// line 76
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "image", [], "any", false, false, false, 76), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t";
// line 78
yield "
\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
\t\t\t\t\t\t\t\t</video>
\t\t\t\t\t\t\t\t";
// line 85
yield "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
\t\t\t\t\t\t\t\t<video
\t\t\t\t\t\t\t\t\tposter=\"";
// line 89
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "image", [], "any", false, false, false, 89), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t";
// line 91
yield "\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
\t\t\t\t\t\t\t\t</video>
\t\t\t\t\t\t\t\t";
// line 97
yield "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 100
yield "\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['popular'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 101
yield "
\t\t\t";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 102
(isset($context["current_category"]) || array_key_exists("current_category", $context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.', 102, $this->source); })()), "name", ["en"], "method", false, false, false, 102) == "Management")) {
// line 103
yield "
\t\t\t\t";
// line 104
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["most"]) || array_key_exists("most", $context) ? $context["most"] : (function () { throw new RuntimeError('Variable "most" does not exist.', 104, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["popular"]) {
// line 105
yield "\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "url", [], "any", false, false, false, 105) == "waste-management-in-the-kitchen")) {
// line 106
yield "\t\t\t\t\t\t<div class=\"container container-sm\">
\t\t\t\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t\t\t\t<h5>";
// line 108
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_category"]) || array_key_exists("current_category", $context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.', 108, $this->source); })()), "name", [], "any", false, false, false, 108), "html", null, true);
yield "</h5>
\t\t\t\t\t\t\t\t<h4>";
// line 109
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "name", [], "any", false, false, false, 109), "html", null, true);
yield "</h4>
\t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">";
// line 110
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "main_description", [], "any", false, false, false, 110), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">";
// line 111
yield (((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "main_description", [], "any", false, false, false, 111)) > 150)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "main_description", [], "any", false, false, false, 111), 0, 150) . "..."), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "main_description", [], "any", false, false, false, 111), "html", null, true)));
yield "
\t\t\t\t\t\t\t\t\t<div class=\"\">
\t\t\t\t\t\t\t\t\t\t<a href=\"/";
// line 113
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.', 113, $this->source); })()), "request", [], "any", false, false, false, 113), "locale", [], "any", false, false, false, 113), "html", null, true);
yield "/resource/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "url", [], "any", false, false, false, 113), "html", null, true);
yield "\" class=\"btn btn-custom btn-green\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read More"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
\t\t\t\t\t\t\t\t<video
\t\t\t\t\t\t\t\t\tposter=\"";
// line 120
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "image", [], "any", false, false, false, 120), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t";
// line 122
yield "\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
\t\t\t\t\t\t\t\t</video>
\t\t\t\t\t\t\t\t";
// line 128
yield "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
\t\t\t\t\t\t\t\t<video
\t\t\t\t\t\t\t\t\tposter=\"";
// line 132
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "image", [], "any", false, false, false, 132), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t";
// line 134
yield "\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
\t\t\t\t\t\t\t\t</video>
\t\t\t\t\t\t\t\t";
// line 140
yield "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 143
yield "\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['popular'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 144
yield "\t\t\t";
}
// line 145
yield "\t\t</section>
\t";
}
// line 148
yield "\t<!--End Info Media-->
\t<!--Start Featured Recipes Section-->
\t";
// line 151
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["most"]) || array_key_exists("most", $context) ? $context["most"] : (function () { throw new RuntimeError('Variable "most" does not exist.', 151, $this->source); })()))) {
// line 152
yield "\t\t<section class=\"featured-recipes-section inner-frecipes-section event-detail-slider resources-center\">
\t\t\t<div class=\"container container-sm\">
\t\t\t\t";
// line 154
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["most"]) || array_key_exists("most", $context) ? $context["most"] : (function () { throw new RuntimeError('Variable "most" does not exist.', 154, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["popular"]) {
// line 155
yield "\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "url", [], "any", false, false, false, 155) != "waste-management-in-the-kitchen")) {
// line 156
yield "\t\t\t\t\t\t";
if (($context["key"] == 1)) {
// line 157
yield "\t\t\t\t\t\t\t<h2 class=\"heading\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Most Popular"), "html", null, true);
yield "</h2>
\t\t\t\t\t\t\t";
// line 159
yield "\t\t\t\t\t\t";
}
// line 160
yield "\t\t\t\t\t";
}
// line 161
yield "\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['key'], $context['popular'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 162
yield "\t\t\t\t<div class=\"featured-recipes\">
\t\t\t\t\t<div class=\"custom-slider custom-event-slider\">
\t\t\t\t\t\t";
// line 164
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["most"]) || array_key_exists("most", $context) ? $context["most"] : (function () { throw new RuntimeError('Variable "most" does not exist.', 164, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["popular"]) {
// line 165
yield "\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "url", [], "any", false, false, false, 165) != "waste-management-in-the-kitchen")) {
// line 166
yield "\t\t\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
\t\t\t\t\t\t\t\t\t\t<a href=\"/";
// line 168
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.', 168, $this->source); })()), "request", [], "any", false, false, false, 168), "locale", [], "any", false, false, false, 168), "html", null, true);
yield "/resource/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "url", [], "any", false, false, false, 168), "html", null, true);
yield "\">
\t\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\t";
// line 170
if (CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "image", [], "any", true, true, false, 170)) {
// line 171
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "image", [], "any", false, false, false, 171), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "name", [], "any", false, false, false, 171), "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\t\t\t";
}
// line 174
yield "\t\t\t\t\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t\t\t\t\t</a>
\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<div class=\"frecipes-box\">
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/";
// line 178
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.', 178, $this->source); })()), "request", [], "any", false, false, false, 178), "locale", [], "any", false, false, false, 178), "html", null, true);
yield "/resource/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "url", [], "any", false, false, false, 178), "html", null, true);
yield "\" class=\"text-decoration-none\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>";
// line 179
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "name", [], "any", false, false, false, 179), "html", null, true);
yield "</h3>
\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";
// line 181
if ((CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "main_description", [], "any", true, true, false, 181) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "main_description", [], "any", false, false, false, 181)))) {
// line 182
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "main_description", [], "any", false, false, false, 182), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 184
yield "\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t";
// line 185
$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.', 185, $this->source); })()), "session", [], "any", false, false, false, 185), "get", ["loginUserName"], "method", false, false, false, 185);
// line 186
yield "\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.', 186, $this->source); })()))) {
// line 187
yield "\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"loyaltyProgram(this,";
// line 188
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "id", [], "any", false, false, false, 188), "html", null, true);
yield ",'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "name", [], "any", false, false, false, 188), "html", null, true);
yield "',50,'Article','Share')\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"sharemodal('Article','";
// line 189
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.', 189, $this->source); })()), "request", [], "any", false, false, false, 189), "getSchemeAndHttpHost", [], "method", false, false, false, 189) . "/") . 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.', 189, $this->source); })()), "request", [], "any", false, false, false, 189), "locale", [], "any", false, false, false, 189)) . "/resource/") . CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "url", [], "any", false, false, false, 189)), "html", null, true);
yield "' ,'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "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</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 191
if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "id", [], "any", false, false, false, 191), (isset($context["Liked_most_popular_Id"]) || array_key_exists("Liked_most_popular_Id", $context) ? $context["Liked_most_popular_Id"] : (function () { throw new RuntimeError('Variable "Liked_most_popular_Id" does not exist.', 191, $this->source); })()))) {
// line 192
yield "\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";
} else {
// line 194
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like most_popular\" onclick=\"loyaltyProgram(this,";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "id", [], "any", false, false, false, 194), "html", null, true);
yield ",'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "name", [], "any", false, false, false, 194), "html", null, true);
yield "',30,'Article','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.', 194, $this->source); })()), "request", [], "any", false, false, false, 194), "locale", [], "any", false, false, false, 194), "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";
}
// line 196
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"download-black d-none\" onclick=\"loyaltyProgram(this,";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "id", [], "any", false, false, false, 196), "html", null, true);
yield ",'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "name", [], "any", false, false, false, 196), "html", null, true);
yield "',20,'Article','Save')\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 199
yield "\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Article','";
// line 200
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.', 200, $this->source); })()), "request", [], "any", false, false, false, 200), "getSchemeAndHttpHost", [], "method", false, false, false, 200) . "/") . 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.', 200, $this->source); })()), "request", [], "any", false, false, false, 200), "locale", [], "any", false, false, false, 200)) . "/resource/") . CoreExtension::getAttribute($this->env, $this->source, $context["popular"], "url", [], "any", false, false, false, 200)), "html", null, true);
yield "','";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "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 "</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like logged-out\">";
// line 201
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<li class=\"download-black d-none\">";
// line 202
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 205
yield "\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";
}
// line 209
yield "\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['popular'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 210
yield "\t\t\t\t\t</div>
\t\t\t\t\t";
// line 214
yield "\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t";
}
// line 218
yield "\t<!--End Featured Recipes Section-->
\t<!--Start Product Box-->
\t<section class=\"product-result-container resources-cat\">
\t\t<div class=\"container container-sm\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-12 col-md-12 col-xl-3 filter-box\">
\t\t\t\t\t<h4 class=\"title\">";
// line 225
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<div class=\"filder-options\">
\t\t\t\t\t\t<div class=\"input-holder\">
\t\t\t\t\t\t\t<input type=\"text\" placeholder=\"";
// line 228
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(""), "html", null, true);
yield "\" 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.', 228, $this->source); })()), "query", [], "any", false, false, false, 228), "html", null, true);
yield "\" class=\"form-control\"/>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"filter-accordion\">
\t\t\t\t\t\t";
// line 232
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 232, $this->source); })()))) {
// line 233
yield "\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 236
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 243
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 243, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 244
yield "\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<input class=\"styled-checkbox category_checkbox\" id=\"";
// line 245
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 245), "html", null, true);
yield "\" type=\"checkbox\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 245), "html", null, true);
yield "\" ";
yield ((CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 245), 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.', 245, $this->source); })()), "category_ids", [], "any", false, false, false, 245))) ? ("checked") : (""));
yield "/>
\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"";
// line 246
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 246), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 246), "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['category'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 249
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<button class=\"btn btn-link\" onclick=\"clearFilter('.category_checkbox')\">";
// line 251
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Clear Filter"), "html", null, true);
yield "</button>
\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";
}
// line 257
yield "\t\t\t\t\t\t<div class=\"apply-filter\">
\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-green\" onclick=\"searchFilter(this)\">";
// line 258
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</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-12 col-md-12 col-xl-9 product-results\">
\t\t\t\t\t<h2 class=\"heading all-articles-heading-text\">";
// line 263
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All Articles"), "html", null, true);
yield "</h2>
\t\t\t\t\t<!--End Product Small Banner-->
\t\t\t\t\t<div
\t\t\t\t\t\tclass=\"product-box-holder\">
\t\t\t\t\t\t<!--Start Featured Recipes Section-->
\t\t\t\t\t\t<section class=\"featured-recipes-section inner-frecipes-section all-training-section resource-listing-grid\">
\t\t\t\t\t\t\t<div class=\"featured-recipes\">
\t\t\t\t\t\t\t\t<div class=\"all-training-recip\">
\t\t\t\t\t\t\t\t\t";
// line 272
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 272, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["resource"]) {
// line 273
yield "\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 275
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.', 275, $this->source); })()), "request", [], "any", false, false, false, 275), "locale", [], "any", false, false, false, 275), "html", null, true);
yield "/resource/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "url", [], "any", false, false, false, 275), "html", null, true);
yield "\">
\t\t\t\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\t\t\t<img src=\"";
// line 277
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "image", [], "any", false, false, false, 277), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "name", [], "any", false, false, false, 277), "html", null, true);
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 282
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.', 282, $this->source); })()), "request", [], "any", false, false, false, 282), "locale", [], "any", false, false, false, 282), "html", null, true);
yield "/resource/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "url", [], "any", false, false, false, 282), "html", null, true);
yield "\" class=\"text-decoration-none\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>";
// line 283
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "name", [], "any", false, false, false, 283), "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";
// line 285
if ((CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "main_description", [], "any", true, true, false, 285) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "main_description", [], "any", false, false, false, 285)))) {
// line 286
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
yield CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "main_description", [], "any", false, false, false, 286);
yield "</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 288
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";
// line 289
$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.', 289, $this->source); })()), "session", [], "any", false, false, false, 289), "get", ["loginUserName"], "method", false, false, false, 289);
// line 290
yield "\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.', 290, $this->source); })()))) {
// line 291
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"loyaltyProgram(this,";
// line 293
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "id", [], "any", false, false, false, 293), "html", null, true);
yield ",'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "name", [], "any", false, false, false, 293), "html", null, true);
yield "',10,'Article','Share')\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"sharemodal('Article','";
// line 294
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.', 294, $this->source); })()), "request", [], "any", false, false, false, 294), "getSchemeAndHttpHost", [], "method", false, false, false, 294) . "/") . 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.', 294, $this->source); })()), "request", [], "any", false, false, false, 294), "locale", [], "any", false, false, false, 294)) . "/resource/") . CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "url", [], "any", false, false, false, 294)), "html", null, true);
yield "' ,'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "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></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 295
if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "id", [], "any", false, false, false, 295), (isset($context["Liked_all_recource_Id"]) || array_key_exists("Liked_all_recource_Id", $context) ? $context["Liked_all_recource_Id"] : (function () { throw new RuntimeError('Variable "Liked_all_recource_Id" does not exist.', 295, $this->source); })()))) {
// line 296
yield "\t\t\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\t";
} else {
// line 298
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like all_article\" onclick=\"loyaltyProgram(this,";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "id", [], "any", false, false, false, 298), "html", null, true);
yield ",'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "name", [], "any", false, false, false, 298), "html", null, true);
yield "',10,'Article','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.', 298, $this->source); })()), "request", [], "any", false, false, false, 298), "locale", [], "any", false, false, false, 298), "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\t\t";
}
// line 300
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"download d-none\" onclick=\"loyaltyProgram(this,";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "id", [], "any", false, false, false, 300), "html", null, true);
yield ",'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "name", [], "any", false, false, false, 300), "html", null, true);
yield "',10,'Article','Save')\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html", null, true);
yield "</li>
\t\t\t\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\t\t\t";
} else {
// line 304
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Article','";
// line 307
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.', 307, $this->source); })()), "request", [], "any", false, false, false, 307), "getSchemeAndHttpHost", [], "method", false, false, false, 307) . "/") . 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.', 307, $this->source); })()), "request", [], "any", false, false, false, 307), "locale", [], "any", false, false, false, 307)) . "/resource/") . CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "url", [], "any", false, false, false, 307)), "html", null, true);
yield "') ,'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "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 "</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like logged-out\">";
// line 308
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\t<li class=\"download d-none\">";
// line 309
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html", null, true);
yield "</li>
\t\t\t\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\t\t\t";
}
// line 312
yield "\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</div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['resource'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 316
yield "\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</section>
\t\t\t\t\t\t\t\t<!--End Featured Recipes Section-->
\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</div>
\t\t\t</section>
\t\t\t<!--End Product Box-->
\t\t\t<!-- Resource Listing More Topics Start-->
\t\t\t<section class=\"featured-categories resource-featured-categories\">
\t\t\t\t<div class=\"container container-sm\">
\t\t\t\t\t<div class=\"featured-categories-section\">
\t\t\t\t\t\t<h2 class=\"heading\">";
// line 331
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("More Topics"), "html", null, true);
yield "</h2>
\t\t\t\t\t\t<div class=\"featured-categories-section-wrapper\">
\t\t\t\t\t\t\t";
// line 333
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["more_topics"]) || array_key_exists("more_topics", $context) ? $context["more_topics"] : (function () { throw new RuntimeError('Variable "more_topics" does not exist.', 333, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["topic"]) {
// line 334
yield "\t\t\t\t\t\t\t\t<div class=\"featured-categories-section-wrapper-item\">
\t\t\t\t\t\t\t\t\t<a href=\"";
// line 335
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["topic"], "url", [], "any", false, false, false, 335), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t<figure class=\"featured-categories-section-wrapper-item-video\">
\t\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\t<video poster=\"";
// line 338
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["topic"], "image", [], "any", false, false, false, 338), "html", null, true);
yield "\" playsinline>
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 339
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["topic"], "video", [], "any", false, true, false, 339), "data", [], "any", true, true, false, 339)) {
// line 340
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<source src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["topic"], "video", [], "any", false, false, false, 340), "data", [], "any", false, false, false, 340), "html", null, true);
yield "\" type=\"video/mp4\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 342
yield "\t\t\t\t\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
\t\t\t\t\t\t\t\t\t\t\t\t</video>
\t\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</div>
\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=\"featured-categories-section-wrapper-item-content\">
\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 352
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["topic"], "url", [], "any", false, false, false, 352), "html", null, true);
yield "\" class=\"featured-categories-section-wrapper-item-content-btn\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 353
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["topic"], "name", [], "any", false, false, false, 353), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t</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";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['topic'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 359
yield "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</section>
\t\t\t
\t\t\t<script>
\t\t\t\tfunction searchFilter(e) {
\t\t\t\t\tlet new_path = 'sub_category_id=';
\t\t\t\t\tlet query = '';
\t\t\t\t\tlet category_count = 1
\t\t\t\t\t\$('.category_checkbox').each(function (index, value) {
\t\t\t\t\t\tif (\$(this).is(':checked')) {
\t\t\t\t\t\t\t
\t\t\t\t\t\t\tif (category_count > 1) {
\t\t\t\t\t\t\t\tnew_path += '_';
\t\t\t\t\t\t\t}
\t\t\t\t\t\t\tnew_path += \$(this).val();
\t\t\t\t\t\t\tcategory_count++;
\t\t\t\t\t\t}
\t\t\t\t\t});
\t\t\t\t\tif (\$('#search').val()) {
\t\t\t\t\t\tquery = '&query=' + \$('#search').val();
\t\t\t\t\t}
\t\t\t\t\twindow.location.href = '?' + new_path + query;
\t\t\t\t}
\t\t\t\tfunction clearFilter(c) {
\t\t\t\t\t\$(c).each(function (index, value) {
\t\t\t\t\t\t\$(this).prop('checked', false);
\t\t\t\t\t});
\t\t\t\t}
\t\t\t\tlet page = 1;
\t\t\t\tfunction loadMoreProduct() {
\t\t\t\t\tlet add_query = '&';
\t\t\t\t\tif (!window.location.search) {
\t\t\t\t\t\tadd_query = '?';
\t\t\t\t\t}
\t\t\t\t\t\$.ajax({
\t\t\t\t\ttype: \"GET\",
\t\t\t\t\turl: window.location.href + add_query + 'page=' + page,
\t\t\t\t\tdata: '',
\t\t\t\t\tcache: false,
\t\t\t\t\tbeforeSend: function () {
\t\t\t\t\t\t\$('.btn-load').css('padding-left', '50px');
\t\t\t\t\t\t\$('.btn-load').css('background-image', 'url(/static/assets/images/loader.gif)');
\t\t\t\t\t},
\t\t\t\t\tcomplete: function () {
\t\t\t\t\t\t\$('.btn-load').css('padding-left', '15px');
\t\t\t\t\t\t\$('.btn-load').css('background-image', 'inherit');
\t\t\t\t\t},
\t\t\t\t\tsuccess: function (data) {
\t\t\t\t\t\tif (data.success) {
\t\t\t\t\t\t\t\$('.product-box-holder .new-div').append(data.success);
\t\t\t\t\t\t\tpage++;
\t\t\t\t\t\t} else if (data.success == '') {
\t\t\t\t\t\t\t\$('.btn-load').hide();
\t\t\t\t\t\t}
\t\t\t\t\t}
\t\t\t\t\t});
\t\t\t\t}
\t\t\t\t//function explore() {
\t\t\t\t//let add_query = '&';
\t\t\t\t//if (!window.location.search) {
\t\t\t\t//add_query = '?';
\t\t\t\t//}
\t\t\t\t//window.location.href = add_query + 'most=1';
\t\t\t\t//}
\t\t\t</script>
\t\t\t";
// line 439
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.', 439, $this->source); })()), "request", [], "any", false, false, false, 439), "locale", [], "any", false, false, false, 439) == "ar")) {
// line 440
yield "\t\t\t\t";
$context["topMenu"] = ("/en/resources/" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_category"]) || array_key_exists("current_category", $context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.', 440, $this->source); })()), "url", ["en"], "method", false, false, false, 440));
// line 441
yield "\t\t\t";
} else {
// line 442
yield "\t\t\t\t";
$context["topMenu"] = ("/ar/resources/" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_category"]) || array_key_exists("current_category", $context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.', 442, $this->source); })()), "url", ["ar"], "method", false, false, false, 442));
// line 443
yield "\t\t\t";
}
// line 444
yield "\t\t\t<script>
\t\t\t\tvar _TopMenuLink = \"";
// line 445
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.', 445, $this->source); })()), "html", null, true);
yield "\";
\t\t\t</script>
\t\t\t<!-- Resource Listing More Topics End -->
\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Resources/resources.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 974 => 445, 971 => 444, 968 => 443, 965 => 442, 962 => 441, 959 => 440, 957 => 439, 875 => 359, 863 => 353, 859 => 352, 853 => 348, 849 => 342, 843 => 340, 841 => 339, 837 => 338, 831 => 335, 828 => 334, 824 => 333, 819 => 331, 802 => 316, 793 => 312, 787 => 309, 783 => 308, 775 => 307, 770 => 304, 758 => 300, 746 => 298, 740 => 296, 738 => 295, 730 => 294, 724 => 293, 720 => 291, 717 => 290, 715 => 289, 712 => 288, 706 => 286, 704 => 285, 699 => 283, 693 => 282, 683 => 277, 676 => 275, 672 => 273, 668 => 272, 656 => 263, 648 => 258, 645 => 257, 636 => 251, 632 => 249, 621 => 246, 613 => 245, 610 => 244, 606 => 243, 596 => 236, 591 => 233, 589 => 232, 580 => 228, 574 => 225, 565 => 218, 559 => 214, 556 => 210, 550 => 209, 544 => 205, 538 => 202, 534 => 201, 526 => 200, 523 => 199, 512 => 196, 500 => 194, 494 => 192, 492 => 191, 483 => 189, 477 => 188, 474 => 187, 471 => 186, 469 => 185, 466 => 184, 460 => 182, 458 => 181, 453 => 179, 447 => 178, 441 => 174, 432 => 171, 430 => 170, 423 => 168, 419 => 166, 416 => 165, 412 => 164, 408 => 162, 402 => 161, 399 => 160, 396 => 159, 391 => 157, 388 => 156, 385 => 155, 381 => 154, 377 => 152, 375 => 151, 370 => 148, 365 => 145, 362 => 144, 356 => 143, 351 => 140, 347 => 134, 343 => 132, 337 => 128, 333 => 122, 329 => 120, 315 => 113, 310 => 111, 306 => 110, 302 => 109, 298 => 108, 294 => 106, 291 => 105, 287 => 104, 284 => 103, 282 => 102, 279 => 101, 273 => 100, 268 => 97, 264 => 91, 260 => 89, 254 => 85, 249 => 78, 245 => 76, 230 => 68, 225 => 66, 221 => 65, 217 => 64, 213 => 63, 209 => 61, 206 => 60, 201 => 59, 199 => 58, 196 => 57, 194 => 56, 184 => 49, 179 => 47, 172 => 45, 164 => 39, 158 => 35, 147 => 30, 140 => 26, 136 => 25, 128 => 20, 120 => 15, 116 => 13, 112 => 12, 107 => 9, 105 => 8, 101 => 6, 88 => 5, 64 => 2, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"layout/layout.html.twig\" %}
{% block title %}GFS - Resources
{% endblock %}
{% block content %}
\t<!--Start Main Slider-->
\t{% if current_category.sliders is defined %}
\t\t<section class=\"main-slider-section product-main-slider resources-section-slider\">
\t\t\t<div class=\"container container-lg\">
\t\t\t\t<div class=\"custom-slider singal-slider main-slider\">
\t\t\t\t\t{% for slide in current_category.sliders %}
\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 src=\"{{slide.sliderimages.data}}\" alt=\"resource banner\"/>
\t\t\t\t\t\t\t\t
\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 src=\"{{slide.sliderimages_mobile.data}}\" alt=\"resource banner mobile\"/>
\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\">{{ slide.localizedfields.data.getLocalizedValue('slidertitle') }}</span>
\t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end\">{{current_category.name}}</span>
\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"product-brand d-none\">
\t\t\t\t\t\t\t\t\t<img src=\"{{slide.sliderbrandlogo}}\" alt=\"slide banner logo\"/>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endfor %}
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t{% endif %}
\t<!--End Main Slider-->
\t<!--Start Breadcrumbs-->
\t<div class=\"breadcrumb-holder\">
\t\t<ol class=\"breadcrumb\">
\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t<a href=\"/{{app.request.locale}}\">{{'Home'|trans}}</a>
\t\t\t</li>
\t\t\t<li class=\"breadcrumb-item\">{{'Resources'|trans}}</li>
\t\t\t<li class=\"breadcrumb-item active\" aria-current=\"page\">
\t\t\t\t{{current_category.name}}
\t\t\t</li>
\t\t</ol>
\t</div>
\t<!--End Breadcrumbs-->
\t<!--Start Info Media-->
\t{% if current_category.bannerimage and current_category.name %}
\t\t<section class=\"training-media-box info-media res-listing-tech\">
\t\t\t{% if current_category.name(\"en\") == \"Business\" %}
\t\t\t\t{% for popular in most %}
\t\t\t\t\t{% if popular.url == \"the-future-of-the-hospitality-industry-in-saudi-arabia\" %}
\t\t\t\t\t\t<div class=\"container container-sm\">
\t\t\t\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t\t\t\t<h5>{{current_category.name}}</h5>
\t\t\t\t\t\t\t\t<h4>{{popular.name}}</h4>
\t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">{{popular.main_description}}</p>
\t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">{{ popular.main_description|length > 150 ? popular.main_description|slice(0, 150) ~ '...' : popular.main_description }}
\t\t\t\t\t\t\t\t\t<div class=\"\">
\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/resource/{{popular.url}}\" class=\"btn btn-custom btn-green\">{{'Read More'|trans}}</a>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
\t\t\t\t\t\t\t\t<video
\t\t\t\t\t\t\t\t\tposter=\"{{popular.image}}\">
\t\t\t\t\t\t\t\t\t{# <source src=\"{{current_category.bannervideo.data}}\" type=\"video/mp4\" /> #}
\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
\t\t\t\t\t\t\t\t</video>
\t\t\t\t\t\t\t\t{# <div class=\"control-options\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <i class=\"fas fa-pause-circle\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
\t\t\t\t\t\t\t\t<video
\t\t\t\t\t\t\t\t\tposter=\"{{popular.image}}\">
\t\t\t\t\t\t\t\t\t{# <source src=\"{{current_category.bannervideo.data}}\" type=\"video/mp4\" /> #}
\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
\t\t\t\t\t\t\t\t</video>
\t\t\t\t\t\t\t\t{# <div class=\"control-options\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <i class=\"fas fa-pause-circle\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t{% endfor %}
\t\t\t{% elseif current_category.name(\"en\") == \"Management\" %}
\t\t\t\t{% for popular in most %}
\t\t\t\t\t{% if popular.url == \"waste-management-in-the-kitchen\" %}
\t\t\t\t\t\t<div class=\"container container-sm\">
\t\t\t\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t\t\t\t<h5>{{current_category.name}}</h5>
\t\t\t\t\t\t\t\t<h4>{{popular.name}}</h4>
\t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">{{popular.main_description}}</p>
\t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">{{ popular.main_description|length > 150 ? popular.main_description|slice(0, 150) ~ '...' : popular.main_description }}
\t\t\t\t\t\t\t\t\t<div class=\"\">
\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/resource/{{popular.url}}\" class=\"btn btn-custom btn-green\">{{'Read More'|trans}}</a>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
\t\t\t\t\t\t\t\t<video
\t\t\t\t\t\t\t\t\tposter=\"{{popular.image}}\">
\t\t\t\t\t\t\t\t\t{# <source src=\"{{current_category.bannervideo.data}}\" type=\"video/mp4\" /> #}
\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
\t\t\t\t\t\t\t\t</video>
\t\t\t\t\t\t\t\t{# <div class=\"control-options\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <i class=\"fas fa-pause-circle\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
\t\t\t\t\t\t\t\t<video
\t\t\t\t\t\t\t\t\tposter=\"{{popular.image}}\">
\t\t\t\t\t\t\t\t\t{# <source src=\"{{current_category.bannervideo.data}}\" type=\"video/mp4\" /> #}
\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
\t\t\t\t\t\t\t\t</video>
\t\t\t\t\t\t\t\t{# <div class=\"control-options\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <i class=\"fas fa-pause-circle\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t{% endfor %}
\t\t\t{% endif %}
\t\t</section>
\t{% endif %}
\t<!--End Info Media-->
\t<!--Start Featured Recipes Section-->
\t{% if most is not empty %}
\t\t<section class=\"featured-recipes-section inner-frecipes-section event-detail-slider resources-center\">
\t\t\t<div class=\"container container-sm\">
\t\t\t\t{% for key , popular in most %}
\t\t\t\t\t{% if popular.url != \"waste-management-in-the-kitchen\" %}
\t\t\t\t\t\t{% if key == 1 %}
\t\t\t\t\t\t\t<h2 class=\"heading\">{{'Most Popular'|trans}}</h2>
\t\t\t\t\t\t\t{# break #}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% endfor %}
\t\t\t\t<div class=\"featured-recipes\">
\t\t\t\t\t<div class=\"custom-slider custom-event-slider\">
\t\t\t\t\t\t{% for popular in most %}
\t\t\t\t\t\t\t{% if popular.url != \"waste-management-in-the-kitchen\" %}
\t\t\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/resource/{{popular.url}}\">
\t\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\t{% if popular.image is defined %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ popular.image }}\" alt=\"{{popular.name}}\">
\t\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\t\t\t\t\t</figure>
\t\t\t\t\t\t\t\t\t\t</a>
\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<div class=\"frecipes-box\">
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/resource/{{popular.url}}\" class=\"text-decoration-none\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>{{popular.name}}</h3>
\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{% if popular.main_description is defined and popular.main_description is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{popular.main_description}}</p>
\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\t{% set user = app.session.get('loginUserName') %}
\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<ul class=\"list-unstyled recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"loyaltyProgram(this,{{ popular.id }},'{{ popular.name }}',50,'Article','Share')\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ popular.url}}' ,'{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</span>
\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{% if popular.id in Liked_most_popular_Id %}
\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{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like most_popular\" onclick=\"loyaltyProgram(this,{{ popular.id }},'{{ popular.name }}',30,'Article','Like', '{{app.request.locale}}')\">{{'Like'|trans}}</li>
\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<li class=\"download-black d-none\" onclick=\"loyaltyProgram(this,{{ popular.id }},'{{ popular.name }}',20,'Article','Save')\">{{'Download'|trans}}</li>
\t\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ popular.url}}','{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</li>
\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<li class=\"download-black d-none\">{{'Download'|trans}}</li>
\t\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\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{% endif %}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</div>
\t\t\t\t\t{# <div class=\"btn-border\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <button class=\"btn btn-custom btn-lg-o-black\" onclick=\"explore()\">Explore More</button>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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</div>
\t\t\t</div>
\t\t</section>
\t{% endif %}
\t<!--End Featured Recipes Section-->
\t<!--Start Product Box-->
\t<section class=\"product-result-container resources-cat\">
\t\t<div class=\"container container-sm\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-12 col-md-12 col-xl-3 filter-box\">
\t\t\t\t\t<h4 class=\"title\">{{'Filters'|trans}}</h4>
\t\t\t\t\t<div class=\"filder-options\">
\t\t\t\t\t\t<div class=\"input-holder\">
\t\t\t\t\t\t\t<input type=\"text\" placeholder=\"{{''|trans}}\" id=\"search\" value=\"{{filters.query}}\" class=\"form-control\"/>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"filter-accordion\">
\t\t\t\t\t\t{% if categories is not empty %}
\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 category in categories %}
\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<input class=\"styled-checkbox category_checkbox\" id=\"{{category.name}}\" type=\"checkbox\" value=\"{{category.id}}\" {{ (category.id in filters.category_ids) ? 'checked' : '' }}/>
\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"{{category.name}}\">{{category.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<button class=\"btn btn-link\" onclick=\"clearFilter('.category_checkbox')\">{{'Clear Filter'|trans}}</button>
\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{% endif %}
\t\t\t\t\t\t<div class=\"apply-filter\">
\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-green\" onclick=\"searchFilter(this)\">{{'Apply Filter'|trans}}</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=\"col-12 col-md-12 col-xl-9 product-results\">
\t\t\t\t\t<h2 class=\"heading all-articles-heading-text\">{{'All Articles'|trans}}</h2>
\t\t\t\t\t<!--End Product Small Banner-->
\t\t\t\t\t<div
\t\t\t\t\t\tclass=\"product-box-holder\">
\t\t\t\t\t\t<!--Start Featured Recipes Section-->
\t\t\t\t\t\t<section class=\"featured-recipes-section inner-frecipes-section all-training-section resource-listing-grid\">
\t\t\t\t\t\t\t<div class=\"featured-recipes\">
\t\t\t\t\t\t\t\t<div class=\"all-training-recip\">
\t\t\t\t\t\t\t\t\t{% for resource in resources %}
\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}}/resource/{{resource.url}}\">
\t\t\t\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\t\t\t<img src=\"{{resource.image}}\" alt=\"{{ resource.name }}\"/>
\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}}/resource/{{resource.url}}\" class=\"text-decoration-none\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>{{ resource.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{% if resource.main_description is defined and resource.main_description is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{resource.main_description|raw}}</p>
\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{% set user = app.session.get('loginUserName') %}
\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<ul class=\"list-unstyled recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"loyaltyProgram(this,{{ resource.id }},'{{ resource.name }}',10,'Article','Share')\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ resource.url}}' ,'{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}<span></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if resource.id in Liked_all_recource_Id %}
\t\t\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\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like all_article\" onclick=\"loyaltyProgram(this,{{ resource.id }},'{{ resource.name }}',10,'Article','Like', '{{app.request.locale}}')\">{{'Like'|trans}}</li>
\t\t\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\t\t\t<li class=\"download d-none\" onclick=\"loyaltyProgram(this,{{ resource.id }},'{{ resource.name }}',10,'Article','Save')\">{{'Download'|trans}}</li>
\t\t\t\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\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ resource.url}}') ,'{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}'\">{{'Share'|trans}}</li>
\t\t\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\t\t\t<li class=\"download d-none\">{{'Download'|trans}}</li>
\t\t\t\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\t\t\t{% endif %}
\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</div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\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</section>
\t\t\t\t\t\t\t\t<!--End Featured Recipes Section-->
\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</div>
\t\t\t</section>
\t\t\t<!--End Product Box-->
\t\t\t<!-- Resource Listing More Topics Start-->
\t\t\t<section class=\"featured-categories resource-featured-categories\">
\t\t\t\t<div class=\"container container-sm\">
\t\t\t\t\t<div class=\"featured-categories-section\">
\t\t\t\t\t\t<h2 class=\"heading\">{{'More Topics'|trans}}</h2>
\t\t\t\t\t\t<div class=\"featured-categories-section-wrapper\">
\t\t\t\t\t\t\t{% for topic in more_topics %}
\t\t\t\t\t\t\t\t<div class=\"featured-categories-section-wrapper-item\">
\t\t\t\t\t\t\t\t\t<a href=\"{{topic.url}}\">
\t\t\t\t\t\t\t\t\t\t<figure class=\"featured-categories-section-wrapper-item-video\">
\t\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\t<video poster=\"{{topic.image}}\" playsinline>
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if topic.video.data is defined %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<source src=\"{{ topic.video.data }}\" type=\"video/mp4\">
\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\tYour browser does not support the video tag.
\t\t\t\t\t\t\t\t\t\t\t\t</video>
\t\t\t\t\t\t\t\t\t\t\t\t{# <div class=\"control-options\">
\t\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\t\t<i class=\"fas fa-pause-circle\"></i>
\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</figure>
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t<div class=\"featured-categories-section-wrapper-item-content\">
\t\t\t\t\t\t\t\t\t\t<a href=\"{{topic.url}}\" class=\"featured-categories-section-wrapper-item-content-btn\">
\t\t\t\t\t\t\t\t\t\t\t{{topic.name}}
\t\t\t\t\t\t\t\t\t\t</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{% endfor %}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</section>
\t\t\t
\t\t\t<script>
\t\t\t\tfunction searchFilter(e) {
\t\t\t\t\tlet new_path = 'sub_category_id=';
\t\t\t\t\tlet query = '';
\t\t\t\t\tlet category_count = 1
\t\t\t\t\t\$('.category_checkbox').each(function (index, value) {
\t\t\t\t\t\tif (\$(this).is(':checked')) {
\t\t\t\t\t\t\t
\t\t\t\t\t\t\tif (category_count > 1) {
\t\t\t\t\t\t\t\tnew_path += '_';
\t\t\t\t\t\t\t}
\t\t\t\t\t\t\tnew_path += \$(this).val();
\t\t\t\t\t\t\tcategory_count++;
\t\t\t\t\t\t}
\t\t\t\t\t});
\t\t\t\t\tif (\$('#search').val()) {
\t\t\t\t\t\tquery = '&query=' + \$('#search').val();
\t\t\t\t\t}
\t\t\t\t\twindow.location.href = '?' + new_path + query;
\t\t\t\t}
\t\t\t\tfunction clearFilter(c) {
\t\t\t\t\t\$(c).each(function (index, value) {
\t\t\t\t\t\t\$(this).prop('checked', false);
\t\t\t\t\t});
\t\t\t\t}
\t\t\t\tlet page = 1;
\t\t\t\tfunction loadMoreProduct() {
\t\t\t\t\tlet add_query = '&';
\t\t\t\t\tif (!window.location.search) {
\t\t\t\t\t\tadd_query = '?';
\t\t\t\t\t}
\t\t\t\t\t\$.ajax({
\t\t\t\t\ttype: \"GET\",
\t\t\t\t\turl: window.location.href + add_query + 'page=' + page,
\t\t\t\t\tdata: '',
\t\t\t\t\tcache: false,
\t\t\t\t\tbeforeSend: function () {
\t\t\t\t\t\t\$('.btn-load').css('padding-left', '50px');
\t\t\t\t\t\t\$('.btn-load').css('background-image', 'url(/static/assets/images/loader.gif)');
\t\t\t\t\t},
\t\t\t\t\tcomplete: function () {
\t\t\t\t\t\t\$('.btn-load').css('padding-left', '15px');
\t\t\t\t\t\t\$('.btn-load').css('background-image', 'inherit');
\t\t\t\t\t},
\t\t\t\t\tsuccess: function (data) {
\t\t\t\t\t\tif (data.success) {
\t\t\t\t\t\t\t\$('.product-box-holder .new-div').append(data.success);
\t\t\t\t\t\t\tpage++;
\t\t\t\t\t\t} else if (data.success == '') {
\t\t\t\t\t\t\t\$('.btn-load').hide();
\t\t\t\t\t\t}
\t\t\t\t\t}
\t\t\t\t\t});
\t\t\t\t}
\t\t\t\t//function explore() {
\t\t\t\t//let add_query = '&';
\t\t\t\t//if (!window.location.search) {
\t\t\t\t//add_query = '?';
\t\t\t\t//}
\t\t\t\t//window.location.href = add_query + 'most=1';
\t\t\t\t//}
\t\t\t</script>
\t\t\t{% if (app.request.locale =='ar') %}
\t\t\t\t{% set topMenu =\"/en/resources/\" ~ current_category.url('en') %}
\t\t\t{% else %}
\t\t\t\t{% set topMenu =\"/ar/resources/\" ~ current_category.url('ar') %}
\t\t\t{% endif %}
\t\t\t<script>
\t\t\t\tvar _TopMenuLink = \"{{ topMenu }}\";
\t\t\t</script>
\t\t\t<!-- Resource Listing More Topics End -->
\t\t{% endblock %}
", "Resources/resources.html.twig", "/var/www/vhosts/centric.ae/gcs.centric.ae/templates/Resources/resources.html.twig");
}
}