<?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;
/* ECommerce/App/Product/index.html.twig */
class __TwigTemplate_02dc2919c8b39ed257ad0181afdd6bb3 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 = [
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ECommerce/App/Product/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ECommerce/App/Product/index.html.twig"));
// line 5
$macros["͜macros"] = $this->macros["͜macros"] = $this->load("ECommerce/App/Product/macros.html.twig", 5)->unwrap();
// line 1
$this->parent = $this->load("base.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 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 8
yield " <div class=\"container-fluid\">
<div class=\"row\">
<div class=\"container\">
<div class=\"content\">
<div class=\"container\">
<div class=\"row position-relative\">
<div class=\"col product-index-col pr-0\">
<div class=\"row p-0 blog-post-content align-items-start\">
<div class=\"p-0 product-index-table border-left-2 w-100\">
<div class=\"row p-0 pl-5 position-relative\">
<img src=\"";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/static/shop-hero.png"), "html", null, true);
yield "\" class=\"img-fluid w-100\" alt=\"Shop Hero\" />
<div class=\"shop-hero-captions\">
<h1>";
// line 23
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.shop-hero-title", [], "ECommerceBundle"), "html", null, true);
yield "</h1>
</div>
</div>
<div class=\"row table-headline p-0 pl-3 pb-5\">
";
// line 27
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 27, $this->source); })()), 'form_start');
yield "
<div class=\"col-2 p-0 sidebar-part\">
<button class=\"sidebar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#sidebar-part\" aria-controls=\"sidebar-part\" aria-expanded=\"false\" aria-label=\"Toggle sidebar part\">
<span class=\"sidebar-toggler-icon\"></span>";
// line 31
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.filters", [], "ECommerceBundle"), "html", null, true);
yield "
</button>
<div class=\"row p-0 pr-3 collapse sidebar-collapse\" id=\"sidebar-part\">
<h3 class=\"font-24 line-height-113 font-weight-bold pt-53 mb-4 w-100 border-bottom-2-black pb-4 text-uppercase\">";
// line 34
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("categories", [], "ECommerceBundle"), "html", null, true);
yield "</h3>
<h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">";
// line 35
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.categories", [], "ECommerceBundle"), "html", null, true);
yield "</h4>
";
// line 36
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 36, $this->source); })()), "categories", [], "any", false, false, false, 36), 'widget', ["attr" => ["class" => "accordion-content max-vh-15 mb-5 w-100"]]);
yield "
<h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.price_range", [], "ECommerceBundle"), "html", null, true);
yield "</h4>
<div class=\"accordion-content range-slider\">
<div class=\"sliders\">
</div>
<div class=\"manual-input-values\">
<span class=\"font-21 line-height-113\">
";
// line 45
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 45, $this->source); })()), "min", [], "any", false, false, false, 45), 'widget');
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Service\ECommerce\ProductTwigExtension']->currencyCodeFunction(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); })()), "user", [], "any", false, false, false, 45)), "html", null, true);
yield "
</span>
<span class=\"font-21 line-height-113\">
";
// line 48
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 48, $this->source); })()), "max", [], "any", false, false, false, 48), 'widget', ["attr" => ["max" => $this->extensions['Twig\Extension\CoreExtension']->formatNumber($this->extensions['App\Service\ECommerce\ProductTwigExtension']->getGlobalMaxPrice(CoreExtension::getAttribute($this->env, $this->source, // line 51
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 51, $this->source); })()), "user", [], "any", false, false, false, 51)), 0, ".", "")]]);
// line 54
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Service\ECommerce\ProductTwigExtension']->currencyCodeFunction(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.', 54, $this->source); })()), "user", [], "any", false, false, false, 54)), "html", null, true);
yield "
</span>
</div>
</div>
<h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">";
// line 60
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.manufacturer", [], "ECommerceBundle"), "html", null, true);
yield "</h4>
";
// line 61
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 61, $this->source); })()), "manufacturers", [], "any", false, false, false, 61), 'widget', ["attr" => ["class" => "accordion-content max-vh-15 mb-5 w-100"]]);
yield "
<h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">";
// line 63
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.sub_categories", [], "ECommerceBundle"), "html", null, true);
yield "</h4>
";
// line 64
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 64, $this->source); })()), "subCategories", [], "any", false, false, false, 64), 'widget', ["attr" => ["class" => "accordion-content max-vh-15 mb-5 w-100"]]);
yield "
</div>
</div>
<div class=\"form-inline flex-nowrap\">
";
// line 68
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 68, $this->source); })()), "sortBy", [], "any", false, false, false, 68), 'widget');
yield "
";
// line 70
$context["largeIconView"] = "assets/static/large-icon-view.svg";
// line 71
yield " ";
$context["listView"] = "assets/static/list-view-selected.svg";
// line 72
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, 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.', 72, $this->source); })()), "request", [], "any", false, false, false, 72), "query", [], "any", false, false, false, 72), "get", ["view"], "method", false, false, false, 72) == "large-icons")) {
// line 73
yield " ";
$context["largeIconView"] = "assets/static/large-icon-view-selected.svg";
// line 74
yield " ";
$context["listView"] = "assets/static/list-view.svg";
// line 75
yield " ";
}
// line 76
yield "
<a class=\"list-view text-decoration-none\"
href=\"";
// line 78
yield $this->extensions['App\Service\App\PublicTwig']->pathFunction(CoreExtension::getAttribute($this->env, $this->source, 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.', 78, $this->source); })()), "request", [], "any", false, false, false, 78), "attributes", [], "any", false, false, false, 78), "get", ["_route"], "method", false, false, false, 78), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, 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.', 78, $this->source); })()), "request", [], "any", false, false, false, 78), "query", [], "any", false, false, false, 78), "all", [], "any", false, false, false, 78), ["view" => "list"]));
yield "\">
<img src=\"";
// line 79
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["listView"]) || array_key_exists("listView", $context) ? $context["listView"] : (function () { throw new RuntimeError('Variable "listView" does not exist.', 79, $this->source); })())), "html", null, true);
yield "\" alt=\"List View\">
</a>
<a class=\"large-icon-view text-decoration-none ml-2\"
href=\"";
// line 82
yield $this->extensions['App\Service\App\PublicTwig']->pathFunction(CoreExtension::getAttribute($this->env, $this->source, 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.', 82, $this->source); })()), "request", [], "any", false, false, false, 82), "attributes", [], "any", false, false, false, 82), "get", ["_route"], "method", false, false, false, 82), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, 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.', 82, $this->source); })()), "request", [], "any", false, false, false, 82), "query", [], "any", false, false, false, 82), "all", [], "any", false, false, false, 82), ["view" => "large-icons"]));
yield "\">
<img src=\"";
// line 83
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["largeIconView"]) || array_key_exists("largeIconView", $context) ? $context["largeIconView"] : (function () { throw new RuntimeError('Variable "largeIconView" does not exist.', 83, $this->source); })())), "html", null, true);
yield "\" alt=\"Large Icon View\">
</a>
</div>
";
// line 86
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, 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.', 86, $this->source); })()), "request", [], "any", false, false, false, 86), "query", [], "any", false, false, false, 86), "get", ["view"], "method", false, false, false, 86)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 87
yield " <input type=\"hidden\" name=\"view\" value=\"";
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, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 87, $this->source); })()), "request", [], "any", false, false, false, 87), "query", [], "any", false, false, false, 87), "get", ["view"], "method", false, false, false, 87), "html", null, true);
yield "\">
";
}
// line 89
yield "
";
// line 90
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 90, $this->source); })()), 'form_end');
yield "
</div>
<div class=\"row p-0 pl-3\">
<div class=\"col-12 product-tale-like with-photos p-0 without-pagination\">";
// line 95
yield $macros["͜macros"]->getTemplateForMacro("macro_product_depot_table_header", $context, 95, $this->getSourceContext())->macro_product_depot_table_header(...[]);
// line 96
yield $macros["͜macros"]->getTemplateForMacro("macro_depot_product_table_body", $context, 96, $this->getSourceContext())->macro_depot_product_table_body(...[(isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 96, $this->source); })()), ""]);
// line 98
yield "<div class=\"navigation d-flex justify-content-end ml-auto product-index-navigation\">
<div class=\"row pl-0 pr-0\">
<div class=\"col-12 \">
";
// line 101
yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 101, $this->source); })()));
yield "
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"row justify-content-center w-100\">
<div class=\"synonym-products\">
<div id=\"interchange-wrapper\" class=\"mt-3 mb-5\">
<div class=\"row justify-content-center\">
<div class=\"col-12 mb-5 text-center\">
<h1>";
// line 117
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.interchange_button_title", [], "ECommerceBundle"), "html", null, true);
yield "</h1>
<a class=\"btn btn-primary mt-4\"
href=\"";
// line 119
yield $this->extensions['App\Service\App\PublicTwig']->pathFunction("mdl_app_synonym_product_find", ["title" => Twig\Extension\CoreExtension::trim("*", "*", "left")]);
yield "\"
data-intro=\"";
// line 120
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("intro.interchange", [], "ECommerceBundle"), "html", null, true);
yield "\"
data-toggle=\"replace\"
data-trigger=\"#interchange-wrapper\">
<span class=\"text-capitalize font-21 font-weight-normal\">";
// line 123
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.interchange_button_search", [], "ECommerceBundle"), "html", null, true);
yield "</span>
<img src=\"";
// line 124
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/static/arrows-both-way.svg"), "html", null, true);
yield "\" class=\"img-fluid ml-5\"
alt=\"found in interchange catalogue\">
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 140
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 141
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
";
// line 142
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app/twoInputSlider");
yield "
";
// line 143
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app/submitFormOnChange");
yield "
";
// line 144
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app/showHideToggle");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "ECommerce/App/Product/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 347 => 144, 343 => 143, 339 => 142, 334 => 141, 321 => 140, 295 => 124, 291 => 123, 285 => 120, 281 => 119, 276 => 117, 257 => 101, 252 => 98, 250 => 96, 248 => 95, 241 => 90, 238 => 89, 232 => 87, 230 => 86, 224 => 83, 220 => 82, 214 => 79, 210 => 78, 206 => 76, 203 => 75, 200 => 74, 197 => 73, 194 => 72, 191 => 71, 189 => 70, 184 => 68, 177 => 64, 173 => 63, 168 => 61, 164 => 60, 154 => 54, 152 => 51, 151 => 48, 143 => 45, 133 => 38, 128 => 36, 124 => 35, 120 => 34, 114 => 31, 107 => 27, 100 => 23, 94 => 20, 80 => 8, 67 => 7, 56 => 1, 54 => 5, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% trans_default_domain 'ECommerceBundle' %}
{%- import 'ECommerce/App/Product/macros.html.twig' as macros -%}
{% block body %}
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"container\">
<div class=\"content\">
<div class=\"container\">
<div class=\"row position-relative\">
<div class=\"col product-index-col pr-0\">
<div class=\"row p-0 blog-post-content align-items-start\">
<div class=\"p-0 product-index-table border-left-2 w-100\">
<div class=\"row p-0 pl-5 position-relative\">
<img src=\"{{ asset('assets/static/shop-hero.png') }}\" class=\"img-fluid w-100\" alt=\"Shop Hero\" />
<div class=\"shop-hero-captions\">
<h1>{{ 'product.shop-hero-title'|trans }}</h1>
</div>
</div>
<div class=\"row table-headline p-0 pl-3 pb-5\">
{{ form_start(form) }}
<div class=\"col-2 p-0 sidebar-part\">
<button class=\"sidebar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#sidebar-part\" aria-controls=\"sidebar-part\" aria-expanded=\"false\" aria-label=\"Toggle sidebar part\">
<span class=\"sidebar-toggler-icon\"></span>{{ 'product.filters'|trans }}
</button>
<div class=\"row p-0 pr-3 collapse sidebar-collapse\" id=\"sidebar-part\">
<h3 class=\"font-24 line-height-113 font-weight-bold pt-53 mb-4 w-100 border-bottom-2-black pb-4 text-uppercase\">{{ 'categories'|trans }}</h3>
<h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">{{ 'product.categories'|trans }}</h4>
{{ form_widget(form.categories, {attr: {class: 'accordion-content max-vh-15 mb-5 w-100'}}) }}
<h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">{{ 'product.price_range'|trans }}</h4>
<div class=\"accordion-content range-slider\">
<div class=\"sliders\">
</div>
<div class=\"manual-input-values\">
<span class=\"font-21 line-height-113\">
{{ form_widget(form.min) }} {{ currency_code(app.user) }}
</span>
<span class=\"font-21 line-height-113\">
{{ form_widget(form.max,
{attr:
{
max: global_max_product_price(app.user)|number_format(0, '.', ''),
}
})
}} {{ currency_code(app.user) }}
</span>
</div>
</div>
<h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">{{ 'product.manufacturer'|trans }}</h4>
{{ form_widget(form.manufacturers, {attr: {class: 'accordion-content max-vh-15 mb-5 w-100'}}) }}
<h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">{{ 'product.sub_categories'|trans }}</h4>
{{ form_widget(form.subCategories, {attr: {class: 'accordion-content max-vh-15 mb-5 w-100'}}) }}
</div>
</div>
<div class=\"form-inline flex-nowrap\">
{{ form_widget(form.sortBy) }}
{% set largeIconView = 'assets/static/large-icon-view.svg' %}
{% set listView = 'assets/static/list-view-selected.svg' %}
{% if app.request.query.get('view') == 'large-icons' %}
{% set largeIconView = 'assets/static/large-icon-view-selected.svg' %}
{% set listView = 'assets/static/list-view.svg' %}
{% endif %}
<a class=\"list-view text-decoration-none\"
href=\"{{ path(app.request.attributes.get('_route'), app.request.query.all | merge({'view': 'list'})) }}\">
<img src=\"{{ asset(listView) }}\" alt=\"List View\">
</a>
<a class=\"large-icon-view text-decoration-none ml-2\"
href=\"{{ path(app.request.attributes.get('_route'), app.request.query.all | merge({'view': 'large-icons'})) }}\">
<img src=\"{{ asset(largeIconView) }}\" alt=\"Large Icon View\">
</a>
</div>
{% if app.request.query.get('view') %}
<input type=\"hidden\" name=\"view\" value=\"{{ app.request.query.get('view') }}\">
{% endif %}
{{ form_end(form) }}
</div>
<div class=\"row p-0 pl-3\">
<div class=\"col-12 product-tale-like with-photos p-0 without-pagination\">
{{- macros.product_depot_table_header() -}}
{{- macros.depot_product_table_body(products, '') -}}
<div class=\"navigation d-flex justify-content-end ml-auto product-index-navigation\">
<div class=\"row pl-0 pr-0\">
<div class=\"col-12 \">
{{ knp_pagination_render(products) }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"row justify-content-center w-100\">
<div class=\"synonym-products\">
<div id=\"interchange-wrapper\" class=\"mt-3 mb-5\">
<div class=\"row justify-content-center\">
<div class=\"col-12 mb-5 text-center\">
<h1>{{ 'general.interchange_button_title'|trans }}</h1>
<a class=\"btn btn-primary mt-4\"
href=\"{{ path('mdl_app_synonym_product_find', { 'title': ('*'|trim('*', 'left')) }) }}\"
data-intro=\"{{ ('intro.interchange'|trans) }}\"
data-toggle=\"replace\"
data-trigger=\"#interchange-wrapper\">
<span class=\"text-capitalize font-21 font-weight-normal\">{{ 'general.interchange_button_search'|trans }}</span>
<img src=\"{{ asset('assets/static/arrows-both-way.svg') }}\" class=\"img-fluid ml-5\"
alt=\"found in interchange catalogue\">
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('app/twoInputSlider') }}
{{ encore_entry_script_tags('app/submitFormOnChange') }}
{{ encore_entry_script_tags('app/showHideToggle') }}
{% endblock %}
", "ECommerce/App/Product/index.html.twig", "/var/www/rs.optima/templates/ECommerce/App/Product/index.html.twig");
}
}