<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* product/suboverview.html.twig */
class __TwigTemplate_fdd9dc6a602174b24c525c5ebbd8bc0c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "product/suboverview.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "product/suboverview.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "product/suboverview.html.twig"));
// line 3
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 3, $this->source); })()), "oms", [], "any", false, false, true, 3)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 3, $this->source); })()), "oms", [], "any", false, false, true, 3)))) {
// line 4
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 4, $this->source); })()), "combinedCategoryName", [], "any", false, false, true, 4))) {
// line 5
$context["categorieName"] = twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 5, $this->source); })()), "combinedCategoryName", [], "any", false, false, true, 5), 5, $this->source));
} else {
// line 7
$context["categorieName"] = twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 7, $this->source); })()), "oms", [], "any", false, false, true, 7), 7, $this->source));
}
// line 10
$context["head_title"] = (($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 10, $this->source); })()), "oms", [], "any", false, false, true, 10), 10, $this->source) . " | ") . $this->sandbox->ensureToStringAllowed((isset($context["categorieName"]) || array_key_exists("categorieName", $context) ? $context["categorieName"] : (function () { throw new RuntimeError('Variable "categorieName" does not exist.', 10, $this->source); })()), 10, $this->source));
}
// line 1
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 13
public function block_content($context, array $blocks = [])
{
$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 14
echo " ";
if (array_key_exists("category", $context)) {
// line 15
echo " <script>
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle=\"tooltip\"]')
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))
</script>
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12 col-md-5 col-lg-4 mb-5\">
<div class=\"area-col h-auto\">
<div class=\"area-col-inner position-relative area-shape-responsive area-shape-default bg-light-grey bg-opacity-50 p-5 submenu my-3\">
<h3 class=\"mb-3 text-secondary\">";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Filters"), "html", null, true);
echo "</h3>
<hr>
<div class=\"ms-3\">
";
// line 29
if ((twig_length_filter($this->env, (isset($context["merken"]) || array_key_exists("merken", $context) ? $context["merken"] : (function () { throw new RuntimeError('Variable "merken" does not exist.', 29, $this->source); })())) > 0)) {
// line 30
echo " <div class=\"my-3\">
<h4>";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Merken"), "html", null, true);
echo "</h4>
<ul class=\"list-group\">
";
// line 33
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["merken"]) || array_key_exists("merken", $context) ? $context["merken"] : (function () { throw new RuntimeError('Variable "merken" does not exist.', 33, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["merk"]) {
// line 34
echo " <li class=\"form-check\">
<input class=\"form-check-input me-1 filtermerk\" type=\"checkbox\" value=\"";
// line 35
if (($context["merk"] == "Overige merken")) {
} else {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["merk"], 35, $this->source), "html", null, true);
}
echo "\" id=\"flexCheck";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 35), 35, $this->source), "html", null, true);
echo "\">
<label class=\"form-check-label\" for=\"flexCheck";
// line 36
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 36), 36, $this->source), "html", null, true);
echo "\">
";
// line 37
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["merk"], 37, $this->source), "html", null, true);
echo "
</label>
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['merk'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo " </ul>
</div>
";
}
// line 44
echo " <div class=\"my-3\">
<h4>";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Stock Status"), "html", null, true);
echo "</h4>
<ul class=\"list-group\">
<li class=\"form-check\">
<input class=\"form-check-input filterstock\" type=\"checkbox\" value=\"2\" id=\"stockCheck1\">
<label class=\"form-check-label\" for=\"stockCheck1\">
<span class=\"stockgroen ms-1\">
<i class=\"fas fa-xs fa-circle\"></i> ";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Op voorraad"), "html", null, true);
echo "
</span>
</label>
</li>
<li class=\"form-check\">
<input class=\"form-check-input filterstock\" type=\"checkbox\" value=\"1\" id=\"stockCheck2\">
<label class=\"form-check-label\" for=\"stockCheck2\">
<span class=\"stockoranje ms-1\">
<i class=\"fas fa-xs fa-circle\"></i> ";
// line 59
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bijna uitverkocht"), "html", null, true);
echo "
</span>
</label>
</li>
<li class=\"form-check\">
<input class=\"form-check-input filterstock\" type=\"checkbox\" value=\"0\" id=\"stockCheck3\">
<label class=\"form-check-label\" for=\"stockCheck3\">
<span class=\"stockrood ms-1\">
<i class=\"fas fa-xs fa-circle\"></i> ";
// line 68
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Uitverkocht"), "html", null, true);
echo "
</span>
</label>
</li>
</ul>
</div>
<div class=\"my-3\">
<h4>";
// line 76
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Prijs"), "html", null, true);
echo "</h4>
<div class=\"form-check\">
<input class=\"form-check-input filterprice\" type=\"checkbox\" value=\"down\" id=\"flexCheckPriceDown\">
<label class=\"form-check-label\" for=\"flexCheckPriceDown\">
";
// line 80
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Laag - Hoog"), "html", null, true);
echo "
</label>
</div>
<div class=\"form-check\">
<input class=\"form-check-input filterprice\" type=\"checkbox\" value=\"up\" id=\"flexCheckPriceUp\">
<label class=\"form-check-label\" for=\"flexCheckPriceUp\">
";
// line 86
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Hoog - Laag"), "html", null, true);
echo "
</label>
</div>
</div>
</div>
<svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
<clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapeyellow\">
<path
d=\"M0.536,0.991 s-0.414,0.038,-0.47,-0.038 C0.013,0.879,-0.009,0.825,0.004,0.696 s0.013,-0.268,0.013,-0.376 C0.018,0.133,0.026,0.017,0.269,0.006 C0.512,-0.005,0.731,-0.001,0.854,0.023 c0.121,0.023,0.14,0.05,0.143,0.241 c0.003,0.192,0.017,0.613,-0.062,0.688 c-0.054,0.051,-0.125,0.042,-0.399,0.038\"></path>
</clipPath>
</svg>
</div>
</div>
<div class=\"area-col h-auto\">
<div class=\"area-col-inner position-relative area-shape-responsive area-shape-default bg-light-grey bg-opacity-50 p-5 submenu\">
<h3 class=\"mb-3 text-secondary\">";
// line 102
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Categorieën"), "html", null, true);
echo "</h3>
";
// line 103
if (array_key_exists("subcategoryList", $context)) {
// line 104
echo " <ul class=\"list-unstyled\">
";
// line 105
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["subcategoryList"]) || array_key_exists("subcategoryList", $context) ? $context["subcategoryList"] : (function () { throw new RuntimeError('Variable "subcategoryList" does not exist.', 105, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["subcat"]) {
// line 106
echo " ";
$context["detailLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateSubGroupLink($this->sandbox->ensureToStringAllowed((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 106, $this->source); })()), 106, $this->source), $this->sandbox->ensureToStringAllowed($context["subcat"], 106, $this->source));
// line 107
echo " <li class=\"mb-3\">
<a href=\"";
// line 108
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["detailLink"]) || array_key_exists("detailLink", $context) ? $context["detailLink"] : (function () { throw new RuntimeError('Variable "detailLink" does not exist.', 108, $this->source); })()), 108, $this->source), "html", null, true);
echo "\"
class=\"position-relative ";
// line 109
if ((twig_get_attribute($this->env, $this->source, $context["subcat"], "id", [], "any", false, false, true, 109) == twig_get_attribute($this->env, $this->source, (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 109, $this->source); })()), "id", [], "any", false, false, true, 109))) {
echo "active";
}
echo "\">";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["subcat"], "oms", [], "any", false, false, true, 109), 109, $this->source)), "html", null, true);
echo "
<span class=\"material-symbols-outlined inline-icon text-secondary\">
chevron_right
</span></a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subcat'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 115
echo " </ul>
";
}
// line 117
echo " <svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
<clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapeyellow\">
<path
d=\"M0.536,0.991 s-0.414,0.038,-0.47,-0.038 C0.013,0.879,-0.009,0.825,0.004,0.696 s0.013,-0.268,0.013,-0.376 C0.018,0.133,0.026,0.017,0.269,0.006 C0.512,-0.005,0.731,-0.001,0.854,0.023 c0.121,0.023,0.14,0.05,0.143,0.241 c0.003,0.192,0.017,0.613,-0.062,0.688 c-0.054,0.051,-0.125,0.042,-0.399,0.038\"></path>
</clipPath>
</svg>
</div>
</div>
</div>
<div class=\"col-12 col-md-7 col-lg-8\">
<div class=\"row mb-5\">
<div class=\"col-8 mb-3 pt-5 position-relative\">
";
// line 131
$context["categoryLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateGroupLink($this->sandbox->ensureToStringAllowed((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 131, $this->source); })()), 131, $this->source));
// line 132
echo " <h1>
";
// line 133
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 133, $this->source); })()), "combinedCategoryName", [], "any", false, false, true, 133))) {
// line 134
echo " ";
$context["categorieName"] = twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 134, $this->source); })()), "combinedCategoryName", [], "any", false, false, true, 134), 134, $this->source));
// line 135
echo " ";
} else {
// line 136
echo " ";
$context["categorieName"] = twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 136, $this->source); })()), "oms", [], "any", false, false, true, 136), 136, $this->source));
// line 137
echo " ";
}
// line 138
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["categorieName"]) || array_key_exists("categorieName", $context) ? $context["categorieName"] : (function () { throw new RuntimeError('Variable "categorieName" does not exist.', 138, $this->source); })()), 138, $this->source), "html", null, true);
echo "
</h1>
<span class=\"position-absolute top-0 pt-3\">
<a href=\"";
// line 141
if ($this->extensions['App\Twig\Extension\CheckwebsiteSettingExtension']->getCheckWebsitesetting("product_document", "document")) {
echo twig_escape_filter($this->env, $this->extensions['MultilingualBundle\Twig\Extension\InotherlangExtension']->getInotherlang("LocalizedDocument", $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("product_document")), "html", null, true);
}
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Aanbod"), "html", null, true);
echo "</a>
/
<a href=\"";
// line 143
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["categoryLink"]) || array_key_exists("categoryLink", $context) ? $context["categoryLink"] : (function () { throw new RuntimeError('Variable "categoryLink" does not exist.', 143, $this->source); })()), 143, $this->source), "html", null, true);
echo "\">
";
// line 144
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 144, $this->source); })()), "combinedCategoryName", [], "any", false, false, true, 144))) {
// line 145
echo " ";
$context["categorieName"] = twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 145, $this->source); })()), "combinedCategoryName", [], "any", false, false, true, 145), 145, $this->source));
// line 146
echo " ";
} else {
// line 147
echo " ";
$context["categorieName"] = twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 147, $this->source); })()), "oms", [], "any", false, false, true, 147), 147, $this->source));
// line 148
echo " ";
}
// line 149
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["categorieName"]) || array_key_exists("categorieName", $context) ? $context["categorieName"] : (function () { throw new RuntimeError('Variable "categorieName" does not exist.', 149, $this->source); })()), 149, $this->source), "html", null, true);
echo "
</a>
/
<span class=\"text-primary\">";
// line 152
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 152, $this->source); })()), "oms", [], "any", false, false, true, 152), 152, $this->source)), "html", null, true);
echo "</span>
</span>
</div>
<p class=\"text-black\">";
// line 155
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 155, $this->source); })()), "infoProductGroup", [], "any", false, false, true, 155), 155, $this->source), "html", null, true);
echo "</p>
<h2 class=\"text-primary\">";
// line 156
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 156, $this->source); })()), "oms", [], "any", false, false, true, 156), 156, $this->source)), "html", null, true);
echo "</h2>
<p class=\"text-black\">";
// line 157
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 157, $this->source); })()), "infoProductSubGroup", [], "any", false, false, true, 157), 157, $this->source), "html", null, true);
echo "</p>
</div>
<div class=\"row g-5 mb-5 row-cols-2 row-cols-md-3 row-cols-lg-4 productoverview\">
";
// line 161
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["productlist"]) || array_key_exists("productlist", $context) ? $context["productlist"] : (function () { throw new RuntimeError('Variable "productlist" does not exist.', 161, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 162
echo "
";
// line 163
$context["detailLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateArticleLink($this->sandbox->ensureToStringAllowed((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 163, $this->source); })()), 163, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["subcategory"]) || array_key_exists("subcategory", $context) ? $context["subcategory"] : (function () { throw new RuntimeError('Variable "subcategory" does not exist.', 163, $this->source); })()), 163, $this->source), $this->sandbox->ensureToStringAllowed($context["product"], 163, $this->source));
// line 164
echo "
";
// line 165
if ((twig_get_attribute($this->env, $this->source, $context["product"], "promotion", [], "any", false, false, true, 165) != true)) {
// line 166
echo " <div class=\"col\">
<div class=\"media-body text-center\">
<a href=\"";
// line 168
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["detailLink"]) || array_key_exists("detailLink", $context) ? $context["detailLink"] : (function () { throw new RuntimeError('Variable "detailLink" does not exist.', 168, $this->source); })()), 168, $this->source), "html", null, true);
echo "\">
";
// line 169
if (twig_get_attribute($this->env, $this->source, $context["product"], "getFotos", [], "method", true, true, true, 169)) {
// line 170
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["product"], "getFotos", [], "method", false, false, true, 170)) {
// line 171
echo " <div class=\"position-relative\">
<img src=\"";
// line 172
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "getFotos", [], "method", false, false, true, 172), "getThumbnail", [0 => "prod-thumb"], "method", false, false, true, 172), 172, $this->source), "html", null, true);
echo "\"
class=\"img-fluid\">
</div>
";
} else {
// line 180
echo " <div>
<img src=\"/static/img/noimage.png\" class=\"img-fluid\">
</div>
";
}
// line 184
echo " ";
}
// line 185
echo "
<div class=\"fw-bold pt-3\">
";
// line 187
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "oms", [], "any", false, false, true, 187), 187, $this->source), "html", null, true);
echo "
</div>
</a>
<div class=\"d-inline-block\">
";
// line 192
if (twig_get_attribute($this->env, $this->source, $context["product"], "prijs", [], "any", true, true, true, 192)) {
// line 193
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["product"], "prijs", [], "any", true, true, true, 193)) {
// line 194
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["product"], "productAPE", [], "any", false, false, true, 194)) {
// line 195
echo " € ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "prijs", [], "any", false, false, true, 195), 195, $this->source), 2, ",", " "), "html", null, true);
echo " / ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "APEeenheid", [], "any", false, false, true, 195), 195, $this->source)), "html", null, true);
echo "
";
} else {
// line 197
echo " € ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "prijs", [], "any", false, false, true, 197), 197, $this->source), 2, ",", " "), "html", null, true);
echo "
";
}
// line 199
echo " ";
}
// line 200
echo " ";
}
// line 201
echo " </div>
<div class=\"d-inline-block\">
";
// line 205
if ((twig_get_attribute($this->env, $this->source, $context["product"], "stock", [], "any", false, false, true, 205) <= 0)) {
// line 206
echo " <span class=\"stockrood ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"";
// line 207
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("momenteel niet voorradig"), "html", null, true);
echo "\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a>
</span>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 210
$context["product"], "stock", [], "any", false, false, true, 210) <= twig_get_attribute($this->env, $this->source, $context["product"], "aantalVerkochtLaatsteMaand", [], "any", false, false, true, 210))) {
// line 211
echo " <span class=\"stockoranje ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"";
// line 212
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("beperkte voorraad"), "html", null, true);
echo "\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a></span>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 214
$context["product"], "stock", [], "any", false, false, true, 214) > twig_get_attribute($this->env, $this->source, $context["product"], "aantalVerkochtLaatsteMaand", [], "any", false, false, true, 214))) {
// line 215
echo " <span class=\"stockgroen ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"";
// line 216
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("voldoende vooraad"), "html", null, true);
echo "\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a></span>
";
}
// line 219
echo " </div>
";
// line 224
echo " </div>
</div>
";
} else {
// line 227
echo " <div class=\"col\">
<div class=\"media-body text-center\">
<a href=\"";
// line 229
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["detailLink"]) || array_key_exists("detailLink", $context) ? $context["detailLink"] : (function () { throw new RuntimeError('Variable "detailLink" does not exist.', 229, $this->source); })()), 229, $this->source), "html", null, true);
echo "\">
";
// line 230
if (twig_get_attribute($this->env, $this->source, $context["product"], "getFotos", [], "method", true, true, true, 230)) {
// line 231
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["product"], "getFotos", [], "method", false, false, true, 231)) {
// line 232
echo " <div class=\"position-relative\">
<img src=\"";
// line 233
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "getFotos", [], "method", false, false, true, 233), "getThumbnail", [0 => "prod-thumb"], "method", false, false, true, 233), 233, $this->source), "html", null, true);
echo "\"
class=\"img-fluid\">
</div>
";
} else {
// line 241
echo " <div>
<img src=\"/static/img/noimage.png\" class=\"img-fluid\">
</div>
";
}
// line 245
echo " ";
}
// line 246
echo "
<div class=\"fw-bold pt-3\">
";
// line 248
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "oms", [], "any", false, false, true, 248), 248, $this->source), "html", null, true);
echo "
</div>
</a>
<div class=\"d-inline-block\">
";
// line 254
if (twig_get_attribute($this->env, $this->source, $context["product"], "promoprijs", [], "any", true, true, true, 254)) {
// line 255
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["product"], "promoprijs", [], "any", false, false, true, 255) > 0)) {
// line 256
echo " <div class=\"promoprijs\">
<div class=\"d-inline-block\">
";
// line 258
if (twig_get_attribute($this->env, $this->source, $context["product"], "productAPE", [], "any", false, false, true, 258)) {
// line 259
echo " ";
$context["APE"] = (twig_get_attribute($this->env, $this->source, $context["product"], "prijs", [], "any", false, false, true, 259) * twig_get_attribute($this->env, $this->source, $context["product"], "AantalPerEenheid", [], "any", false, false, true, 259));
// line 260
echo " ";
$context["APEpromo"] = (twig_get_attribute($this->env, $this->source, $context["product"], "promoprijs", [], "any", false, false, true, 260) * twig_get_attribute($this->env, $this->source, $context["product"], "AantalPerEenheid", [], "any", false, false, true, 260));
// line 261
echo " <strike>€ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["APE"]) || array_key_exists("APE", $context) ? $context["APE"] : (function () { throw new RuntimeError('Variable "APE" does not exist.', 261, $this->source); })()), 261, $this->source), 2, ",", " "), "html", null, true);
echo "</strike> <span>€ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["APEpromo"]) || array_key_exists("APEpromo", $context) ? $context["APEpromo"] : (function () { throw new RuntimeError('Variable "APEpromo" does not exist.', 261, $this->source); })()), 261, $this->source), 2, ",", " "), "html", null, true);
echo "</span>
";
} else {
// line 263
echo " <strike>€ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "prijs", [], "any", false, false, true, 263), 263, $this->source), 2, ",", " "), "html", null, true);
echo "</strike> <span>€ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "promoprijs", [], "any", false, false, true, 263), 263, $this->source), 2, ",", " "), "html", null, true);
echo "</span>
";
}
// line 265
echo " </div>
</div>
";
} else {
// line 268
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["product"], "productAPE", [], "any", false, false, true, 268)) {
// line 269
echo " ";
$context["APE"] = (twig_get_attribute($this->env, $this->source, $context["product"], "prijs", [], "any", false, false, true, 269) * twig_get_attribute($this->env, $this->source, $context["product"], "AantalPerEenheid", [], "any", false, false, true, 269));
// line 270
echo " <br>€ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["APE"]) || array_key_exists("APE", $context) ? $context["APE"] : (function () { throw new RuntimeError('Variable "APE" does not exist.', 270, $this->source); })()), 270, $this->source), 2, ",", " "), "html", null, true);
echo "
";
} else {
// line 272
echo " <br>€ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "prijs", [], "any", false, false, true, 272), 272, $this->source), 2, ",", " "), "html", null, true);
echo "
";
}
// line 274
echo " ";
}
// line 275
echo " ";
}
// line 276
echo " </div>
<div class=\"d-inline-block\">
";
// line 280
if ((twig_get_attribute($this->env, $this->source, $context["product"], "stock", [], "any", false, false, true, 280) <= 0)) {
// line 281
echo " <span class=\"stockrood ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"";
// line 282
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("momenteel niet voorradig"), "html", null, true);
echo "\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a>
</span>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 285
$context["product"], "stock", [], "any", false, false, true, 285) <= twig_get_attribute($this->env, $this->source, $context["product"], "aantalVerkochtLaatsteMaand", [], "any", false, false, true, 285))) {
// line 286
echo " <span class=\"stockoranje ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"";
// line 287
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("beperkte voorraad"), "html", null, true);
echo "\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a></span>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 289
$context["product"], "stock", [], "any", false, false, true, 289) > twig_get_attribute($this->env, $this->source, $context["product"], "aantalVerkochtLaatsteMaand", [], "any", false, false, true, 289))) {
// line 290
echo " <span class=\"stockgroen ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"";
// line 291
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("voldoende vooraad"), "html", null, true);
echo "\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a></span>
";
}
// line 294
echo " </div>
";
// line 299
echo " </div>
</div>
";
}
// line 302
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 304
echo " </div>
<div class=\"row\">
<div class=\"col-12 pagination\">
";
// line 308
$this->loadTemplate("includes/pagination-product-ajax.html.twig", "product/suboverview.html.twig", 308)->display($context);
// line 309
echo " </div>
</div>
<div class=\"row mb-5\">
<div class=\"col-12 text-center\">
";
// line 314
$context["categoryLink"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateGroupLink($this->sandbox->ensureToStringAllowed((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 314, $this->source); })()), 314, $this->source));
// line 315
echo " <a class=\"btn btn-outline-secondary\"
href=\"";
// line 316
if ($this->extensions['App\Twig\Extension\CheckwebsiteSettingExtension']->getCheckWebsitesetting("product_document", "document")) {
echo twig_escape_filter($this->env, $this->extensions['MultilingualBundle\Twig\Extension\InotherlangExtension']->getInotherlang("LocalizedDocument", $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("product_document")), "html", null, true);
}
echo "\">
<span class=\"material-symbols-outlined inline-icon\">
chevron_left
</span> ";
// line 319
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Terug naar aanbod"), "html", null, true);
// line 320
echo " </a>
</div>
</div>
</div>
</div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "product/suboverview.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 726 => 320, 724 => 319, 716 => 316, 713 => 315, 711 => 314, 704 => 309, 702 => 308, 696 => 304, 689 => 302, 684 => 299, 679 => 294, 673 => 291, 670 => 290, 668 => 289, 663 => 287, 660 => 286, 658 => 285, 652 => 282, 649 => 281, 647 => 280, 641 => 276, 638 => 275, 635 => 274, 629 => 272, 623 => 270, 620 => 269, 617 => 268, 612 => 265, 604 => 263, 596 => 261, 593 => 260, 590 => 259, 588 => 258, 584 => 256, 581 => 255, 579 => 254, 570 => 248, 566 => 246, 563 => 245, 557 => 241, 546 => 233, 543 => 232, 540 => 231, 538 => 230, 534 => 229, 530 => 227, 525 => 224, 520 => 219, 514 => 216, 511 => 215, 509 => 214, 504 => 212, 501 => 211, 499 => 210, 493 => 207, 490 => 206, 488 => 205, 482 => 201, 479 => 200, 476 => 199, 470 => 197, 462 => 195, 459 => 194, 456 => 193, 454 => 192, 446 => 187, 442 => 185, 439 => 184, 433 => 180, 422 => 172, 419 => 171, 416 => 170, 414 => 169, 410 => 168, 406 => 166, 404 => 165, 401 => 164, 399 => 163, 396 => 162, 392 => 161, 385 => 157, 381 => 156, 377 => 155, 371 => 152, 364 => 149, 361 => 148, 358 => 147, 355 => 146, 352 => 145, 350 => 144, 346 => 143, 337 => 141, 330 => 138, 327 => 137, 324 => 136, 321 => 135, 318 => 134, 316 => 133, 313 => 132, 311 => 131, 295 => 117, 291 => 115, 275 => 109, 271 => 108, 268 => 107, 265 => 106, 261 => 105, 258 => 104, 256 => 103, 252 => 102, 233 => 86, 224 => 80, 217 => 76, 206 => 68, 194 => 59, 183 => 51, 174 => 45, 171 => 44, 166 => 41, 148 => 37, 144 => 36, 135 => 35, 132 => 34, 115 => 33, 110 => 31, 107 => 30, 105 => 29, 99 => 26, 86 => 15, 83 => 14, 73 => 13, 63 => 1, 60 => 10, 57 => 7, 54 => 5, 52 => 4, 50 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% if category.oms is not empty and subcategory.oms is not empty %}
{% if category.combinedCategoryName is not empty %}
{% set categorieName = category.combinedCategoryName|capitalize %}
{% else %}
{% set categorieName = category.oms|capitalize %}
{% endif %}
{% set head_title = subcategory.oms ~ ' | ' ~ categorieName %}
{% endif %}
{% block content %}
{% if category is defined %}
<script>
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle=\"tooltip\"]')
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))
</script>
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12 col-md-5 col-lg-4 mb-5\">
<div class=\"area-col h-auto\">
<div class=\"area-col-inner position-relative area-shape-responsive area-shape-default bg-light-grey bg-opacity-50 p-5 submenu my-3\">
<h3 class=\"mb-3 text-secondary\">{{ 'Filters'|trans }}</h3>
<hr>
<div class=\"ms-3\">
{% if merken|length > 0 %}
<div class=\"my-3\">
<h4>{{ 'Merken'|trans }}</h4>
<ul class=\"list-group\">
{% for merk in merken %}
<li class=\"form-check\">
<input class=\"form-check-input me-1 filtermerk\" type=\"checkbox\" value=\"{% if merk == 'Overige merken' %}{% else %}{{ merk }}{% endif %}\" id=\"flexCheck{{ loop.index }}\">
<label class=\"form-check-label\" for=\"flexCheck{{ loop.index }}\">
{{ merk }}
</label>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
<div class=\"my-3\">
<h4>{{ 'Stock Status'|trans }}</h4>
<ul class=\"list-group\">
<li class=\"form-check\">
<input class=\"form-check-input filterstock\" type=\"checkbox\" value=\"2\" id=\"stockCheck1\">
<label class=\"form-check-label\" for=\"stockCheck1\">
<span class=\"stockgroen ms-1\">
<i class=\"fas fa-xs fa-circle\"></i> {{ 'Op voorraad'|trans }}
</span>
</label>
</li>
<li class=\"form-check\">
<input class=\"form-check-input filterstock\" type=\"checkbox\" value=\"1\" id=\"stockCheck2\">
<label class=\"form-check-label\" for=\"stockCheck2\">
<span class=\"stockoranje ms-1\">
<i class=\"fas fa-xs fa-circle\"></i> {{ 'Bijna uitverkocht'|trans }}
</span>
</label>
</li>
<li class=\"form-check\">
<input class=\"form-check-input filterstock\" type=\"checkbox\" value=\"0\" id=\"stockCheck3\">
<label class=\"form-check-label\" for=\"stockCheck3\">
<span class=\"stockrood ms-1\">
<i class=\"fas fa-xs fa-circle\"></i> {{ 'Uitverkocht'|trans }}
</span>
</label>
</li>
</ul>
</div>
<div class=\"my-3\">
<h4>{{ 'Prijs'|trans }}</h4>
<div class=\"form-check\">
<input class=\"form-check-input filterprice\" type=\"checkbox\" value=\"down\" id=\"flexCheckPriceDown\">
<label class=\"form-check-label\" for=\"flexCheckPriceDown\">
{{ 'Laag - Hoog'|trans }}
</label>
</div>
<div class=\"form-check\">
<input class=\"form-check-input filterprice\" type=\"checkbox\" value=\"up\" id=\"flexCheckPriceUp\">
<label class=\"form-check-label\" for=\"flexCheckPriceUp\">
{{ 'Hoog - Laag'|trans }}
</label>
</div>
</div>
</div>
<svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
<clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapeyellow\">
<path
d=\"M0.536,0.991 s-0.414,0.038,-0.47,-0.038 C0.013,0.879,-0.009,0.825,0.004,0.696 s0.013,-0.268,0.013,-0.376 C0.018,0.133,0.026,0.017,0.269,0.006 C0.512,-0.005,0.731,-0.001,0.854,0.023 c0.121,0.023,0.14,0.05,0.143,0.241 c0.003,0.192,0.017,0.613,-0.062,0.688 c-0.054,0.051,-0.125,0.042,-0.399,0.038\"></path>
</clipPath>
</svg>
</div>
</div>
<div class=\"area-col h-auto\">
<div class=\"area-col-inner position-relative area-shape-responsive area-shape-default bg-light-grey bg-opacity-50 p-5 submenu\">
<h3 class=\"mb-3 text-secondary\">{{ 'Categorieën'|trans }}</h3>
{% if subcategoryList is defined %}
<ul class=\"list-unstyled\">
{% for subcat in subcategoryList %}
{% set detailLink = app_product_subgrouplink(category,subcat) %}
<li class=\"mb-3\">
<a href=\"{{ detailLink }}\"
class=\"position-relative {% if subcat.id == subcategory.id %}active{% endif %}\">{{ subcat.oms|capitalize }}
<span class=\"material-symbols-outlined inline-icon text-secondary\">
chevron_right
</span></a>
</li>
{% endfor %}
</ul>
{% endif %}
<svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
<clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapeyellow\">
<path
d=\"M0.536,0.991 s-0.414,0.038,-0.47,-0.038 C0.013,0.879,-0.009,0.825,0.004,0.696 s0.013,-0.268,0.013,-0.376 C0.018,0.133,0.026,0.017,0.269,0.006 C0.512,-0.005,0.731,-0.001,0.854,0.023 c0.121,0.023,0.14,0.05,0.143,0.241 c0.003,0.192,0.017,0.613,-0.062,0.688 c-0.054,0.051,-0.125,0.042,-0.399,0.038\"></path>
</clipPath>
</svg>
</div>
</div>
</div>
<div class=\"col-12 col-md-7 col-lg-8\">
<div class=\"row mb-5\">
<div class=\"col-8 mb-3 pt-5 position-relative\">
{% set categoryLink = app_product_grouplink(category) %}
<h1>
{% if category.combinedCategoryName is not empty %}
{% set categorieName = category.combinedCategoryName|capitalize %}
{% else %}
{% set categorieName = category.oms|capitalize %}
{% endif %}
{{ categorieName }}
</h1>
<span class=\"position-absolute top-0 pt-3\">
<a href=\"{% if check_websitesetting('product_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('product_document')) }}{% endif %}\">{{ 'Aanbod'|trans }}</a>
/
<a href=\"{{ categoryLink }}\">
{% if category.combinedCategoryName is not empty %}
{% set categorieName = category.combinedCategoryName|capitalize %}
{% else %}
{% set categorieName = category.oms|capitalize %}
{% endif %}
{{ categorieName }}
</a>
/
<span class=\"text-primary\">{{ subcategory.oms|capitalize }}</span>
</span>
</div>
<p class=\"text-black\">{{ category.infoProductGroup }}</p>
<h2 class=\"text-primary\">{{ subcategory.oms|capitalize }}</h2>
<p class=\"text-black\">{{ subcategory.infoProductSubGroup }}</p>
</div>
<div class=\"row g-5 mb-5 row-cols-2 row-cols-md-3 row-cols-lg-4 productoverview\">
{% for product in productlist %}
{% set detailLink = app_product_articlelink(category,subcategory,product) %}
{% if product.promotion != true %}
<div class=\"col\">
<div class=\"media-body text-center\">
<a href=\"{{ detailLink }}\">
{% if product.getFotos() is defined %}
{% if product.getFotos() %}
<div class=\"position-relative\">
<img src=\"{{ product.getFotos().getThumbnail('prod-thumb') }}\"
class=\"img-fluid\">
</div>
{% else %}
<div>
<img src=\"/static/img/noimage.png\" class=\"img-fluid\">
</div>
{% endif %}
{% endif %}
<div class=\"fw-bold pt-3\">
{{ product.oms }}
</div>
</a>
<div class=\"d-inline-block\">
{% if product.prijs is defined %}
{% if product.prijs is defined %}
{% if product.productAPE %}
€ {{ product.prijs|number_format(2, ',', ' ') }} / {{ product.APEeenheid | trans}}
{% else %}
€ {{ product.prijs|number_format(2, ',', ' ') }}
{% endif %}
{% endif %}
{% endif %}
</div>
<div class=\"d-inline-block\">
{% if product.stock <= 0 %}
<span class=\"stockrood ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"{{ 'momenteel niet voorradig'|trans }}\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a>
</span>
{% elseif product.stock <= product.aantalVerkochtLaatsteMaand %}
<span class=\"stockoranje ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"{{ 'beperkte voorraad'|trans }}\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a></span>
{% elseif product.stock > product.aantalVerkochtLaatsteMaand %}
<span class=\"stockgroen ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"{{ 'voldoende vooraad'|trans }}\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a></span>
{% endif %}
</div>
{#
<a href=\"{{ detailLink }}\" class=\"btn btn-primary\">{{ 'Meer lezen'|trans }}</a> #}
</div>
</div>
{% else %}
<div class=\"col\">
<div class=\"media-body text-center\">
<a href=\"{{ detailLink }}\">
{% if product.getFotos() is defined %}
{% if product.getFotos() %}
<div class=\"position-relative\">
<img src=\"{{ product.getFotos().getThumbnail('prod-thumb') }}\"
class=\"img-fluid\">
</div>
{% else %}
<div>
<img src=\"/static/img/noimage.png\" class=\"img-fluid\">
</div>
{% endif %}
{% endif %}
<div class=\"fw-bold pt-3\">
{{ product.oms }}
</div>
</a>
<div class=\"d-inline-block\">
{% if product.promoprijs is defined %}
{% if product.promoprijs > 0 %}
<div class=\"promoprijs\">
<div class=\"d-inline-block\">
{% if product.productAPE %}
{% set APE = product.prijs * product.AantalPerEenheid %}
{% set APEpromo = product.promoprijs * product.AantalPerEenheid %}
<strike>€ {{ APE|number_format(2, ',', ' ') }}</strike> <span>€ {{ APEpromo|number_format(2, ',', ' ') }}</span>
{% else %}
<strike>€ {{ product.prijs|number_format(2, ',', ' ') }}</strike> <span>€ {{ product.promoprijs|number_format(2, ',', ' ') }}</span>
{% endif %}
</div>
</div>
{% else %}
{% if product.productAPE %}
{% set APE = product.prijs * product.AantalPerEenheid %}
<br>€ {{ APE|number_format(2, ',', ' ') }}
{% else %}
<br>€ {{ product.prijs|number_format(2, ',', ' ') }}
{% endif %}
{% endif %}
{% endif %}
</div>
<div class=\"d-inline-block\">
{% if product.stock <= 0 %}
<span class=\"stockrood ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"{{ 'momenteel niet voorradig'|trans }}\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a>
</span>
{% elseif product.stock <= product.aantalVerkochtLaatsteMaand %}
<span class=\"stockoranje ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"{{ 'beperkte voorraad'|trans }}\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a></span>
{% elseif product.stock > product.aantalVerkochtLaatsteMaand %}
<span class=\"stockgroen ms-1\">
<a href=\"#\" data-bs-toggle=\"tooltip\" data-bs-title=\"{{ 'voldoende vooraad'|trans }}\"
data-bs-placement=\"right\"><i class=\"fas fa-xs fa-circle\"></i></a></span>
{% endif %}
</div>
{#
<a href=\"{{ detailLink }}\" class=\"btn btn-primary\">{{ 'Meer lezen'|trans }}</a> #}
</div>
</div>
{% endif %}
{% endfor %}
</div>
<div class=\"row\">
<div class=\"col-12 pagination\">
{% include 'includes/pagination-product-ajax.html.twig' %}
</div>
</div>
<div class=\"row mb-5\">
<div class=\"col-12 text-center\">
{% set categoryLink = app_product_grouplink(category) %}
<a class=\"btn btn-outline-secondary\"
href=\"{% if check_websitesetting('product_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('product_document')) }}{% endif %}\">
<span class=\"material-symbols-outlined inline-icon\">
chevron_left
</span> {{ 'Terug naar aanbod'|trans }}{# {{ category.oms }} #}
</a>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}", "product/suboverview.html.twig", "/var/www/clients/client2/web42/web/pc/templates/product/suboverview.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 3, "set" => 5, "for" => 33, "include" => 308);
static $filters = array("capitalize" => 5, "escape" => 26, "trans" => 26, "length" => 29, "number_format" => 195);
static $functions = array("app_product_subgrouplink" => 106, "app_product_grouplink" => 131, "check_websitesetting" => 141, "inotherlang" => 141, "pimcore_website_config" => 141, "app_product_articlelink" => 163, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'for', 'include'],
['capitalize', 'escape', 'trans', 'length', 'number_format'],
['app_product_subgrouplink', 'app_product_grouplink', 'check_websitesetting', 'inotherlang', 'pimcore_website_config', 'app_product_articlelink', 'base_layout']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}