<?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;
/* @Portal/Service/body-repair-category.html.twig */
class __TwigTemplate_0e4aa0275c80c5f29af30fdc11b0c5be 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 = [
'seo' => [$this, 'block_seo'],
'css' => [$this, 'block_css'],
'content' => [$this, 'block_content'],
'pageJS' => [$this, 'block_pageJS'],
'suChatJS' => [$this, 'block_suChatJS'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "@Portal/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", "@Portal/Service/body-repair-category.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Portal/Service/body-repair-category.html.twig"));
$this->parent = $this->load("@Portal/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 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_seo(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", "seo"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
// line 4
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["category"] ?? null), "getContentByLocale", [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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "locale", [], "any", false, false, false, 4)], "method", false, true, false, 4), "getSeoTitle", [], "method", true, true, false, 4) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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); })()), "getContentByLocale", [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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "locale", [], "any", false, false, false, 4)], "method", false, false, false, 4), "getSeoTitle", [], "method", false, false, false, 4)))) {
// line 5
yield " ";
$context["title"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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); })()), "getContentByLocale", [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.', 5, $this->source); })()), "request", [], "any", false, false, false, 5), "locale", [], "any", false, false, false, 5)], "method", false, false, false, 5), "getSeoTitle", [], "method", false, false, false, 5);
// line 6
yield " ";
} else {
// line 7
yield " ";
$context["title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.body_repair.title", [], "portal_base");
// line 8
yield " ";
}
// line 9
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["category"] ?? null), "getContentByLocale", [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.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "locale", [], "any", false, false, false, 9)], "method", false, true, false, 9), "getSeoDescription", [], "method", true, true, false, 9) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 9, $this->source); })()), "getContentByLocale", [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.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "locale", [], "any", false, false, false, 9)], "method", false, false, false, 9), "getSeoDescription", [], "method", false, false, false, 9)))) {
// line 10
yield " ";
$context["description"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 10, $this->source); })()), "getContentByLocale", [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.', 10, $this->source); })()), "request", [], "any", false, false, false, 10), "locale", [], "any", false, false, false, 10)], "method", false, false, false, 10), "getSeoDescription", [], "method", false, false, false, 10);
// line 11
yield " ";
} else {
// line 12
yield " ";
$context["description"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.body_repair.description", [], "portal_base");
// line 13
yield " ";
}
// line 14
yield " <title>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 14, $this->source); })()), "html", null, true);
yield "</title>
<meta name=\"description\" content=\"";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["description"]) || array_key_exists("description", $context) ? $context["description"] : (function () { throw new RuntimeError('Variable "description" does not exist.', 15, $this->source); })()), "html", null, true);
yield "\" />
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 18
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_css(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", "css"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "css"));
// line 19
yield " <link rel=\"stylesheet\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/portal/css/service.css"), "html", null, true);
yield "\">
<link rel=\"stylesheet\" href=\"";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/portal/css/service/body-repair.css"), "html", null, true);
yield "\">
<link rel=\"stylesheet\" href=\"";
// line 21
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/portal/css/service/body-repair-form-popup.css"), "html", null, true);
yield "\">
<link rel='stylesheet' type='text/css' href='";
// line 22
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/insurance/css/jquery.mCustomScrollbar.css"), "html", null, true);
yield "' />
<link rel='stylesheet' type='text/css' href='";
// line 23
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/core/css/bootstrap_build/carousel.css"), "html", null, true);
yield "' />
<link rel='stylesheet' type='text/css' href='";
// line 24
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/core/css/modules/gallery/lightgallery.css"), "html", null, true);
yield "' />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.css\" integrity=\"sha512-wR4oNhLBHf7smjy0K4oqzdWumd+r5/+6QO/vDda76MW5iug4PT7v86FoEkySIJft3XA0Ae6axhIvHrqwm793Nw==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.css\" integrity=\"sha512-6lLUdeQ5uheMFbWm3CP271l14RsX1xtx+J5x2yeIDkkiBpeVTNhTqijME7GgRKKi6hCqovwCoBTlRBEC20M8Mg==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\" />
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 32
/**
* @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 33
yield " <section class=\"breadcrumbs__new\">
<div class=\"container\">
<ol class=\"vidi_breadcrumbs__new\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
<li class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<a itemprop=\"item\" href=\"";
// line 38
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_homepage");
yield "\">
<span class=\"breadcrumbs__link\" itemprop=\"name\">VIDI.UA</span></a>
<meta itemprop=\"position\" content=\"1\"/>
</li>
<div class=\"arrow-bc\"></div>
<li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">";
// line 46
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("service.all.service", [], "portal_base"), "html", null, true);
yield "</span>
<meta itemprop=\"position\" content=\"4\"/>
</li>
<div class=\"arrow-bc\"></div>
<li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<a itemprop=\"item\" href=\"";
// line 53
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_service_body_repair");
yield "\">
<span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">";
// line 54
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("service.body_repair.title_body_repair_new", [], "portal_base"), "html", null, true);
yield "</span></a>
<meta itemprop=\"position\" content=\"3\"/>
</li>
<div class=\"arrow-bc\"></div>
<li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">";
// line 61
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 61, $this->source); })()), "getContentByLocale", [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.', 61, $this->source); })()), "request", [], "any", false, false, false, 61), "locale", [], "any", false, false, false, 61)], "method", false, false, false, 61), "title", [], "any", false, false, false, 61), "html", null, true);
yield "</span>
<meta itemprop=\"position\" content=\"4\"/>
</li>
</ol>
</div>
</section>
";
// line 73
yield "
";
// line 79
yield "
";
// line 85
yield "
";
// line 91
yield "
";
// line 97
yield "
";
// line 101
yield "
";
// line 103
yield " <section class=\"section__list__body__repair__services\">
<div class=\"container\">
<div class=\"list__body__repair__services__wrapper\">
<div class=\"list__body__repair__services__title__wrapper\">
<h1 class=\"list__body__repair__services__title\">";
// line 107
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 107, $this->source); })()), "getContentByLocale", [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.', 107, $this->source); })()), "request", [], "any", false, false, false, 107), "locale", [], "any", false, false, false, 107)], "method", false, false, false, 107), "title", [], "any", false, false, false, 107), "html", null, true);
yield "</h1>
<a class=\"list__body__repair__services__btn js-scroll-link\" href=\"#calcBodyRepair\">Записатися</a>
</div>
</div>
</div>
</section>
";
// line 115
yield "
<section class=\"section__service__information\">
<div class=\"container\">
<div class=\"service__information__wrapper\">
<div class=\"service__information__content\">
<p class=\"service__information__content__text\">";
// line 120
yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 120, $this->source); })()), "getContentByLocale", [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.', 120, $this->source); })()), "request", [], "any", false, false, false, 120), "locale", [], "any", false, false, false, 120)], "method", false, false, false, 120), "description", [], "any", false, false, false, 120);
yield "</p>
</div>
<img class=\"service__information__img\" src=\"";
// line 122
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->path(CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 122, $this->source); })()), "image", [], "any", false, false, false, 122), "reference"), "html", null, true);
yield "\" alt=\"\">
</div>
</div>
</section>
<section class=\"section__all__services__item\">
<div class=\"container\">
<div class=\"all__services__item__wrapper\">
";
// line 131
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["subCategories"]) || array_key_exists("subCategories", $context) ? $context["subCategories"] : (function () { throw new RuntimeError('Variable "subCategories" does not exist.', 131, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
// line 132
yield " <a class=\"all__services__item__box\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_service_body_repair_sub_category", ["category" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 132, $this->source); })()), "url", [], "any", false, false, false, 132), "subCategory" => CoreExtension::getAttribute($this->env, $this->source, $context["subCategory"], "url", [], "any", false, false, false, 132)]), "html", null, true);
yield "\">
<p class=\"all__services__item__box__name\">";
// line 133
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["subCategory"], "getContentByLocale", [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.', 133, $this->source); })()), "request", [], "any", false, false, false, 133), "locale", [], "any", false, false, false, 133)], "method", false, false, false, 133), "title", [], "any", false, false, false, 133), "html", null, true);
yield "</p>
";
// line 135
yield " </a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['subCategory'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 137
yield "
</div>
</div>
</section>
";
// line 143
yield "
";
// line 145
yield " ";
yield from $this->load("@Portal/Modules/calc-body-repair.html.twig", 145)->unwrap()->yield($context);
// line 146
yield "
";
// line 148
yield " ";
yield from $this->load("@Portal/Modules/our-advantages.html.twig", 148)->unwrap()->yield($context);
// line 149
yield "
";
// line 151
yield " ";
yield from $this->load("@Portal/Modules/slider-special-body-service.html.twig", 151)->unwrap()->yield($context);
// line 152
yield "
";
// line 154
yield " ";
yield from $this->load("@Portal/Modules/contacts-and-map.html.twig", 154)->unwrap()->yield($context);
// line 155
yield "
";
// line 157
yield " ";
yield from $this->load("@Portal/Modules/body-repair-form-popup.html.twig", 157)->unwrap()->yield($context);
// line 158
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 161
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_pageJS(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", "pageJS"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageJS"));
// line 162
yield " <!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '846867434118875');
fbq('track', 'PageView');
</script>
<noscript><img height=\"1\" width=\"1\" style=\"display:none\"
src=\"https://www.facebook.com/tr?id=846867434118875&ev=PageView&noscript=1\"
/></noscript>
<!-- End Facebook Pixel Code -->
<script src=\"";
// line 180
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/vue/v-mask.min.js"), "html", null, true);
yield "\"></script>
<script>
app.onCustomEvent('appInit', function () {
app.loadJs(\"";
// line 183
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/insurance/js/jquery.mCustomScrollbar.concat.min.js"), "html", null, true);
yield "\");
app.loadJs('/bundles/portal/js/body-repair-form-popup.js', function () {
bodyRepairFormPopup({
saveFormUrl: '";
// line 187
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_repair_popup_form");
yield "',
privacyUrl: '";
// line 188
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_privacy_policy");
yield "',
});
});
app.loadJs(\"";
// line 192
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/core/js/modules/slick/slick.js"), "html", null, true);
yield "\", function () {
\$('.promotional__propositions__slider').slick({
infinite: false,
slidesToShow: 3.5,
prevArrow: ' <img class=\"slick-prev\" src=\"";
// line 196
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/portal/img/slider-arrow-left.svg"), "html", null, true);
yield "\">',
nextArrow: ' <img class=\"slick-next\" src=\"";
// line 197
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/portal/img/slider-arrow-right.svg"), "html", null, true);
yield "\">',
slidesToScroll: 1,
responsive: [
{
breakpoint: 768,
settings: {
centerPadding: '30px',
slidesToShow: 2,
autoplay: true,
autoplaySpeed: 2000
}
},
{
breakpoint: 480,
settings: {
centerPadding: '30px',
slidesToShow: 1,
autoplay: true,
autoplaySpeed: 2000
}
}
]
});
});
app.loadJs(\"";
// line 223
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/modules/gallery/lightgallery.js"), "html", null, true);
yield "\", function () {
\$('.section-padding-page').lightGallery({
selector: '.body_repair-image'
});
});
app.loadJs(\"";
// line 228
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/portal/js/body-repair-calc.js"), "html", null, true);
yield "\", function () {
initRepairCalc({
initUrl: '";
// line 230
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_repair_calc_init");
yield "',
saveUrl: '";
// line 231
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("form_repair_calc");
yield "',
privacyUrl: '";
// line 232
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["privacyUrl"]) || array_key_exists("privacyUrl", $context) ? $context["privacyUrl"] : (function () { throw new RuntimeError('Variable "privacyUrl" does not exist.', 232, $this->source); })()), "html", null, true);
yield "',
});
});
\$('.js-repair-photo').on('submit',function (e) {
e.preventDefault();
var formData = new FormData(this);
var \$form = \$(this);
\$('#check_privacy', \$(this)).remove('error');
if (!\$('.js-repair-photo .js-form-privacy input').prop('checked')) {
\$('#check_privacy', \$(this)).addClass('error');
return false;
}
\$.ajax({
url: \$form.attr('action'),
type: 'POST',
data: formData,
success: function (data) {
\$('#modalSuccessMessagePopup').modal('show');
try {
dataLayer.push({'event' : 'event-to-go', 'eventAction': 'submit', 'eventCategory' : 'sto-all', 'eventLabel' : 'remont-kyzova' });
} catch (e) {
console.error('dataLayer event error');
}
},
cache: false,
contentType: false,
processData: false
});
});
var button = \$(\"#repair_photo_files\");
function readURL(input) {
if (input.files.length == 0) {
return;
}
\$.each(input.files, function () {
var reader = new FileReader();
reader.onload = function(e) {
var imgWr = \$(\"<div class='review-foto-wrap'><div class='review-image'><img src=\\\"#\\\" alt=\\\"load image\\\" /></div></div>\");
\$('.review-image img',imgWr).attr('src', e.target.result);
button.after(imgWr);
};
reader.readAsDataURL(this);
});
}
\$(\"#repair_photo_files\").change(function() {
\$('.review-foto-wrap').replaceWith('');
readURL(this);
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 287
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_suChatJS(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", "suChatJS"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "suChatJS"));
// line 288
yield " ";
yield from $this->load("@Portal/Modules/su-chat-widget.html.twig", 288)->unwrap()->yield($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@Portal/Service/body-repair-category.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 570 => 288, 557 => 287, 491 => 232, 487 => 231, 483 => 230, 478 => 228, 470 => 223, 441 => 197, 437 => 196, 430 => 192, 423 => 188, 419 => 187, 412 => 183, 406 => 180, 386 => 162, 373 => 161, 361 => 158, 358 => 157, 355 => 155, 352 => 154, 349 => 152, 346 => 151, 343 => 149, 340 => 148, 337 => 146, 334 => 145, 331 => 143, 324 => 137, 317 => 135, 313 => 133, 308 => 132, 304 => 131, 292 => 122, 287 => 120, 280 => 115, 270 => 107, 264 => 103, 261 => 101, 258 => 97, 255 => 91, 252 => 85, 249 => 79, 246 => 73, 235 => 61, 225 => 54, 221 => 53, 211 => 46, 200 => 38, 193 => 33, 180 => 32, 162 => 24, 158 => 23, 154 => 22, 150 => 21, 146 => 20, 141 => 19, 128 => 18, 115 => 15, 110 => 14, 107 => 13, 104 => 12, 101 => 11, 98 => 10, 95 => 9, 92 => 8, 89 => 7, 86 => 6, 83 => 5, 80 => 4, 67 => 3, 44 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends '@Portal/base.html.twig' %}
{% block seo %}
{% if category.getContentByLocale(app.request.locale).getSeoTitle() is defined and category.getContentByLocale(app.request.locale).getSeoTitle() is not empty %}
{% set title = category.getContentByLocale(app.request.locale).getSeoTitle() %}
{% else %}
{% set title = 'seo.body_repair.title'|trans({}, 'portal_base') %}
{% endif %}
{% if category.getContentByLocale(app.request.locale).getSeoDescription() is defined and category.getContentByLocale(app.request.locale).getSeoDescription() is not empty %}
{% set description = category.getContentByLocale(app.request.locale).getSeoDescription() %}
{% else %}
{% set description = 'seo.body_repair.description'|trans({}, 'portal_base') %}
{% endif %}
<title>{{ title }}</title>
<meta name=\"description\" content=\"{{ description }}\" />
{% endblock %}
{% block css %}
<link rel=\"stylesheet\" href=\"{{ asset('bundles/portal/css/service.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('bundles/portal/css/service/body-repair.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('bundles/portal/css/service/body-repair-form-popup.css') }}\">
<link rel='stylesheet' type='text/css' href='{{ asset('bundles/insurance/css/jquery.mCustomScrollbar.css') }}' />
<link rel='stylesheet' type='text/css' href='{{ asset('bundles/core/css/bootstrap_build/carousel.css') }}' />
<link rel='stylesheet' type='text/css' href='{{ asset('bundles/core/css/modules/gallery/lightgallery.css') }}' />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.css\" integrity=\"sha512-wR4oNhLBHf7smjy0K4oqzdWumd+r5/+6QO/vDda76MW5iug4PT7v86FoEkySIJft3XA0Ae6axhIvHrqwm793Nw==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.css\" integrity=\"sha512-6lLUdeQ5uheMFbWm3CP271l14RsX1xtx+J5x2yeIDkkiBpeVTNhTqijME7GgRKKi6hCqovwCoBTlRBEC20M8Mg==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\" />
{% endblock %}
{% block content %}
<section class=\"breadcrumbs__new\">
<div class=\"container\">
<ol class=\"vidi_breadcrumbs__new\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
<li class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<a itemprop=\"item\" href=\"{{ path('portal_homepage') }}\">
<span class=\"breadcrumbs__link\" itemprop=\"name\">VIDI.UA</span></a>
<meta itemprop=\"position\" content=\"1\"/>
</li>
<div class=\"arrow-bc\"></div>
<li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">{{ 'service.all.service'|trans({}, 'portal_base') }}</span>
<meta itemprop=\"position\" content=\"4\"/>
</li>
<div class=\"arrow-bc\"></div>
<li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<a itemprop=\"item\" href=\"{{ path('portal_service_body_repair') }}\">
<span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">{{ 'service.body_repair.title_body_repair_new'|trans({}, 'portal_base') }}</span></a>
<meta itemprop=\"position\" content=\"3\"/>
</li>
<div class=\"arrow-bc\"></div>
<li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
itemtype=\"https://schema.org/ListItem\">
<span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">{{ category.getContentByLocale(app.request.locale).title }}</span>
<meta itemprop=\"position\" content=\"4\"/>
</li>
</ol>
</div>
</section>
{# Навігація #}
{# <section class=\"section__list__services\">#}
{# <div class=\"container\">#}
{# <div class=\"section__list__services__wrapper\">#}
{# <a class=\"section__list__services__box section__list__services__box-active\" href=\"#\">#}
{# <p class=\"section__list__services__name\">Усі послуги</p>#}
{# <img class=\"section__list__services__arrow__img\"#}
{# src=\"{{ asset('bundles/portal/img/body-repair/arrow-body-repair.svg') }}\" alt=\"\">#}
{# </a>#}
{# <a class=\"section__list__services__box\" href=\"#\">#}
{# <p class=\"section__list__services__name\">Оцінка пошкоджень та калькулятор вартості</p>#}
{# <img class=\"section__list__services__arrow__img\"#}
{# src=\"{{ asset('bundles/portal/img/body-repair/arrow-body-repair.svg') }}\" alt=\"\">#}
{# </a>#}
{# <a class=\"section__list__services__box\" href=\"#\">#}
{# <p class=\"section__list__services__name\">Запасні частини</p>#}
{# <img class=\"section__list__services__arrow__img\"#}
{# src=\"{{ asset('bundles/portal/img/body-repair/arrow-body-repair.svg') }}\" alt=\"\">#}
{# </a>#}
{# <a class=\"section__list__services__box\" href=\"#\">#}
{# <p class=\"section__list__services__name\">Кузовний в кредит</p>#}
{# <img class=\"section__list__services__arrow__img\"#}
{# src=\"{{ asset('bundles/portal/img/body-repair/arrow-body-repair.svg') }}\" alt=\"\">#}
{# </a>#}
{# </div>#}
{# </div>#}
{# </section>#}
{# END Навігація #}
<section class=\"section__list__body__repair__services\">
<div class=\"container\">
<div class=\"list__body__repair__services__wrapper\">
<div class=\"list__body__repair__services__title__wrapper\">
<h1 class=\"list__body__repair__services__title\">{{ category.getContentByLocale(app.request.locale).title }}</h1>
<a class=\"list__body__repair__services__btn js-scroll-link\" href=\"#calcBodyRepair\">Записатися</a>
</div>
</div>
</div>
</section>
{# Main #}
<section class=\"section__service__information\">
<div class=\"container\">
<div class=\"service__information__wrapper\">
<div class=\"service__information__content\">
<p class=\"service__information__content__text\">{{ category.getContentByLocale(app.request.locale).description|raw }}</p>
</div>
<img class=\"service__information__img\" src=\"{{ sonata_path(category.image, 'reference') }}\" alt=\"\">
</div>
</div>
</section>
<section class=\"section__all__services__item\">
<div class=\"container\">
<div class=\"all__services__item__wrapper\">
{% for subCategory in subCategories %}
<a class=\"all__services__item__box\" href=\"{{ path('portal_service_body_repair_sub_category', { 'category': category.url, 'subCategory': subCategory.url }) }}\">
<p class=\"all__services__item__box__name\">{{ subCategory.getContentByLocale(app.request.locale).title }}</p>
{# <div class=\"all__services__item__box__img\" style=\"background-image: url('{{ sonata_path(subCategory.image, 'reference') }}')\"></div> #}
</a>
{% endfor %}
</div>
</div>
</section>
{# ENd Main #}
{# Калькулятор кузовний ремонт #}
{% include '@Portal/Modules/calc-body-repair.html.twig' %}
{# Наші переваги #}
{% include '@Portal/Modules/our-advantages.html.twig' %}
{# Слайдер акційні пропозиції кузовний сервіс #}
{% include '@Portal/Modules/slider-special-body-service.html.twig' %}
{# Контакти/Карта #}
{% include '@Portal/Modules/contacts-and-map.html.twig' %}
{# Popup #}
{% include '@Portal/Modules/body-repair-form-popup.html.twig' %}
{% endblock %}
{% block pageJS %}
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '846867434118875');
fbq('track', 'PageView');
</script>
<noscript><img height=\"1\" width=\"1\" style=\"display:none\"
src=\"https://www.facebook.com/tr?id=846867434118875&ev=PageView&noscript=1\"
/></noscript>
<!-- End Facebook Pixel Code -->
<script src=\"{{ asset('/bundles/core/js/vue/v-mask.min.js') }}\"></script>
<script>
app.onCustomEvent('appInit', function () {
app.loadJs(\"{{ asset('bundles/insurance/js/jquery.mCustomScrollbar.concat.min.js') }}\");
app.loadJs('/bundles/portal/js/body-repair-form-popup.js', function () {
bodyRepairFormPopup({
saveFormUrl: '{{ path('portal_repair_popup_form') }}',
privacyUrl: '{{ path('portal_privacy_policy') }}',
});
});
app.loadJs(\"{{ asset('bundles/core/js/modules/slick/slick.js') }}\", function () {
\$('.promotional__propositions__slider').slick({
infinite: false,
slidesToShow: 3.5,
prevArrow: ' <img class=\"slick-prev\" src=\"{{ asset('bundles/portal/img/slider-arrow-left.svg') }}\">',
nextArrow: ' <img class=\"slick-next\" src=\"{{ asset('bundles/portal/img/slider-arrow-right.svg') }}\">',
slidesToScroll: 1,
responsive: [
{
breakpoint: 768,
settings: {
centerPadding: '30px',
slidesToShow: 2,
autoplay: true,
autoplaySpeed: 2000
}
},
{
breakpoint: 480,
settings: {
centerPadding: '30px',
slidesToShow: 1,
autoplay: true,
autoplaySpeed: 2000
}
}
]
});
});
app.loadJs(\"{{ asset('/bundles/core/js/modules/gallery/lightgallery.js') }}\", function () {
\$('.section-padding-page').lightGallery({
selector: '.body_repair-image'
});
});
app.loadJs(\"{{ asset('bundles/portal/js/body-repair-calc.js') }}\", function () {
initRepairCalc({
initUrl: '{{ path('portal_repair_calc_init') }}',
saveUrl: '{{ path('form_repair_calc') }}',
privacyUrl: '{{ privacyUrl }}',
});
});
\$('.js-repair-photo').on('submit',function (e) {
e.preventDefault();
var formData = new FormData(this);
var \$form = \$(this);
\$('#check_privacy', \$(this)).remove('error');
if (!\$('.js-repair-photo .js-form-privacy input').prop('checked')) {
\$('#check_privacy', \$(this)).addClass('error');
return false;
}
\$.ajax({
url: \$form.attr('action'),
type: 'POST',
data: formData,
success: function (data) {
\$('#modalSuccessMessagePopup').modal('show');
try {
dataLayer.push({'event' : 'event-to-go', 'eventAction': 'submit', 'eventCategory' : 'sto-all', 'eventLabel' : 'remont-kyzova' });
} catch (e) {
console.error('dataLayer event error');
}
},
cache: false,
contentType: false,
processData: false
});
});
var button = \$(\"#repair_photo_files\");
function readURL(input) {
if (input.files.length == 0) {
return;
}
\$.each(input.files, function () {
var reader = new FileReader();
reader.onload = function(e) {
var imgWr = \$(\"<div class='review-foto-wrap'><div class='review-image'><img src=\\\"#\\\" alt=\\\"load image\\\" /></div></div>\");
\$('.review-image img',imgWr).attr('src', e.target.result);
button.after(imgWr);
};
reader.readAsDataURL(this);
});
}
\$(\"#repair_photo_files\").change(function() {
\$('.review-foto-wrap').replaceWith('');
readURL(this);
});
});
</script>
{% endblock %}
{% block suChatJS %}
{% include '@Portal/Modules/su-chat-widget.html.twig' %}
{% endblock %}
", "@Portal/Service/body-repair-category.html.twig", "/var/www/vidi.ua/releases/251031-da518f26/src/PortalBundle/Resources/views/Service/body-repair-category.html.twig");
}
}