var/cache/dev/twig/f9/f9672f2245d7eb6a40cb5a916a403f42.php line 292

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @Portal/Service/body-repair-category.html.twig */
  16. class __TwigTemplate_0e4aa0275c80c5f29af30fdc11b0c5be extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'seo' => [$this'block_seo'],
  29.             'css' => [$this'block_css'],
  30.             'content' => [$this'block_content'],
  31.             'pageJS' => [$this'block_pageJS'],
  32.             'suChatJS' => [$this'block_suChatJS'],
  33.         ];
  34.     }
  35.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  36.     {
  37.         // line 1
  38.         return "@Portal/base.html.twig";
  39.     }
  40.     protected function doDisplay(array $context, array $blocks = []): iterable
  41.     {
  42.         $macros $this->macros;
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Portal/Service/body-repair-category.html.twig"));
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Portal/Service/body-repair-category.html.twig"));
  47.         $this->parent $this->load("@Portal/base.html.twig"1);
  48.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 3
  55.     /**
  56.      * @return iterable<null|scalar|\Stringable>
  57.      */
  58.     public function block_seo(array $context, array $blocks = []): iterable
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  65.         // line 4
  66.         yield "    ";
  67.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["category"] ?? null), "getContentByLocale", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse4), "locale", [], "any"falsefalsefalse4)], "method"falsetruefalse4), "getSeoTitle", [], "method"truetruefalse4) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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->sourceCoreExtension::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"falsefalsefalse4), "locale", [], "any"falsefalsefalse4)], "method"falsefalsefalse4), "getSeoTitle", [], "method"falsefalsefalse4)))) {
  68.             // line 5
  69.             yield "        ";
  70.             $context["title"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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->sourceCoreExtension::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"falsefalsefalse5), "locale", [], "any"falsefalsefalse5)], "method"falsefalsefalse5), "getSeoTitle", [], "method"falsefalsefalse5);
  71.             // line 6
  72.             yield "    ";
  73.         } else {
  74.             // line 7
  75.             yield "        ";
  76.             $context["title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.body_repair.title", [], "portal_base");
  77.             // line 8
  78.             yield "    ";
  79.         }
  80.         // line 9
  81.         yield "    ";
  82.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["category"] ?? null), "getContentByLocale", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse9), "locale", [], "any"falsefalsefalse9)], "method"falsetruefalse9), "getSeoDescription", [], "method"truetruefalse9) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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->sourceCoreExtension::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"falsefalsefalse9), "locale", [], "any"falsefalsefalse9)], "method"falsefalsefalse9), "getSeoDescription", [], "method"falsefalsefalse9)))) {
  83.             // line 10
  84.             yield "        ";
  85.             $context["description"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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->sourceCoreExtension::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"falsefalsefalse10), "locale", [], "any"falsefalsefalse10)], "method"falsefalsefalse10), "getSeoDescription", [], "method"falsefalsefalse10);
  86.             // line 11
  87.             yield "    ";
  88.         } else {
  89.             // line 12
  90.             yield "        ";
  91.             $context["description"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.body_repair.description", [], "portal_base");
  92.             // line 13
  93.             yield "    ";
  94.         }
  95.         // line 14
  96.         yield "    <title>";
  97.         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"nulltrue);
  98.         yield "</title>
  99.     <meta name=\"description\" content=\"";
  100.         // line 15
  101.         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"nulltrue);
  102.         yield "\" />
  103. ";
  104.         
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  106.         
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  108.         yield from [];
  109.     }
  110.     // line 18
  111.     /**
  112.      * @return iterable<null|scalar|\Stringable>
  113.      */
  114.     public function block_css(array $context, array $blocks = []): iterable
  115.     {
  116.         $macros $this->macros;
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  121.         // line 19
  122.         yield "    <link rel=\"stylesheet\" href=\"";
  123.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/portal/css/service.css"), "html"nulltrue);
  124.         yield "\">
  125.     <link rel=\"stylesheet\" href=\"";
  126.         // line 20
  127.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/portal/css/service/body-repair.css"), "html"nulltrue);
  128.         yield "\">
  129.     <link rel=\"stylesheet\" href=\"";
  130.         // line 21
  131.         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"nulltrue);
  132.         yield "\">
  133.     <link rel='stylesheet' type='text/css' href='";
  134.         // line 22
  135.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/insurance/css/jquery.mCustomScrollbar.css"), "html"nulltrue);
  136.         yield "'  />
  137.     <link rel='stylesheet' type='text/css' href='";
  138.         // line 23
  139.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/core/css/bootstrap_build/carousel.css"), "html"nulltrue);
  140.         yield "'  />
  141.     <link rel='stylesheet' type='text/css' href='";
  142.         // line 24
  143.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/core/css/modules/gallery/lightgallery.css"), "html"nulltrue);
  144.         yield "'  />
  145.     <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\" />
  146.     <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\" />
  147. ";
  148.         
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  150.         
  151.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  152.         yield from [];
  153.     }
  154.     // line 32
  155.     /**
  156.      * @return iterable<null|scalar|\Stringable>
  157.      */
  158.     public function block_content(array $context, array $blocks = []): iterable
  159.     {
  160.         $macros $this->macros;
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  165.         // line 33
  166.         yield "    <section class=\"breadcrumbs__new\">
  167.         <div class=\"container\">
  168.             <ol class=\"vidi_breadcrumbs__new\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  169.                 <li class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  170.                     itemtype=\"https://schema.org/ListItem\">
  171.                     <a itemprop=\"item\" href=\"";
  172.         // line 38
  173.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_homepage");
  174.         yield "\">
  175.                         <span class=\"breadcrumbs__link\" itemprop=\"name\">VIDI.UA</span></a>
  176.                     <meta itemprop=\"position\" content=\"1\"/>
  177.                 </li>
  178.                 <div class=\"arrow-bc\"></div>
  179.                 <li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  180.                     itemtype=\"https://schema.org/ListItem\">
  181.                     <span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">";
  182.         // line 46
  183.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("service.all.service", [], "portal_base"), "html"nulltrue);
  184.         yield "</span>
  185.                     <meta itemprop=\"position\" content=\"4\"/>
  186.                 </li>
  187.                 <div class=\"arrow-bc\"></div>
  188.                 <li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  189.                     itemtype=\"https://schema.org/ListItem\">
  190.                     <a itemprop=\"item\" href=\"";
  191.         // line 53
  192.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_service_body_repair");
  193.         yield "\">
  194.                         <span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">";
  195.         // line 54
  196.         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"nulltrue);
  197.         yield "</span></a>
  198.                     <meta itemprop=\"position\" content=\"3\"/>
  199.                 </li>
  200.                 <div class=\"arrow-bc\"></div>
  201.                 <li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  202.                     itemtype=\"https://schema.org/ListItem\">
  203.                     <span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">";
  204.         // line 61
  205.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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->sourceCoreExtension::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"falsefalsefalse61), "locale", [], "any"falsefalsefalse61)], "method"falsefalsefalse61), "title", [], "any"falsefalsefalse61), "html"nulltrue);
  206.         yield "</span>
  207.                     <meta itemprop=\"position\" content=\"4\"/>
  208.                 </li>
  209.             </ol>
  210.         </div>
  211.     </section>
  212.     ";
  213.         // line 73
  214.         yield "
  215. ";
  216.         // line 79
  217.         yield "
  218. ";
  219.         // line 85
  220.         yield "
  221. ";
  222.         // line 91
  223.         yield "
  224. ";
  225.         // line 97
  226.         yield "
  227. ";
  228.         // line 101
  229.         yield "
  230.     ";
  231.         // line 103
  232.         yield "    <section class=\"section__list__body__repair__services\">
  233.         <div class=\"container\">
  234.             <div class=\"list__body__repair__services__wrapper\">
  235.                 <div class=\"list__body__repair__services__title__wrapper\">
  236.                     <h1 class=\"list__body__repair__services__title\">";
  237.         // line 107
  238.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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->sourceCoreExtension::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"falsefalsefalse107), "locale", [], "any"falsefalsefalse107)], "method"falsefalsefalse107), "title", [], "any"falsefalsefalse107), "html"nulltrue);
  239.         yield "</h1>
  240.                     <a class=\"list__body__repair__services__btn js-scroll-link\" href=\"#calcBodyRepair\">Записатися</a>
  241.                 </div>
  242.             </div>
  243.         </div>
  244.     </section>
  245.     ";
  246.         // line 115
  247.         yield "
  248.     <section class=\"section__service__information\">
  249.         <div class=\"container\">
  250.             <div class=\"service__information__wrapper\">
  251.                 <div class=\"service__information__content\">
  252.                     <p class=\"service__information__content__text\">";
  253.         // line 120
  254.         yield CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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->sourceCoreExtension::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"falsefalsefalse120), "locale", [], "any"falsefalsefalse120)], "method"falsefalsefalse120), "description", [], "any"falsefalsefalse120);
  255.         yield "</p>
  256.                 </div>
  257.                 <img class=\"service__information__img\" src=\"";
  258.         // line 122
  259.         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"falsefalsefalse122), "reference"), "html"nulltrue);
  260.         yield "\" alt=\"\">
  261.             </div>
  262.         </div>
  263.     </section>
  264.     <section class=\"section__all__services__item\">
  265.         <div class=\"container\">
  266.             <div class=\"all__services__item__wrapper\">
  267.                 ";
  268.         // line 131
  269.         $context['_parent'] = $context;
  270.         $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); })()));
  271.         foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
  272.             // line 132
  273.             yield "                <a class=\"all__services__item__box\" href=\"";
  274.             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"falsefalsefalse132), "subCategory" => CoreExtension::getAttribute($this->env$this->source$context["subCategory"], "url", [], "any"falsefalsefalse132)]), "html"nulltrue);
  275.             yield "\">
  276.                     <p class=\"all__services__item__box__name\">";
  277.             // line 133
  278.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["subCategory"], "getContentByLocale", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse133), "locale", [], "any"falsefalsefalse133)], "method"falsefalsefalse133), "title", [], "any"falsefalsefalse133), "html"nulltrue);
  279.             yield "</p>
  280.                     ";
  281.             // line 135
  282.             yield "                </a>
  283.                 ";
  284.         }
  285.         $_parent $context['_parent'];
  286.         unset($context['_seq'], $context['_key'], $context['subCategory'], $context['_parent']);
  287.         $context array_intersect_key($context$_parent) + $_parent;
  288.         // line 137
  289.         yield "
  290.             </div>
  291.         </div>
  292.     </section>
  293.     ";
  294.         // line 143
  295.         yield "
  296.     ";
  297.         // line 145
  298.         yield "    ";
  299.         yield from $this->load("@Portal/Modules/calc-body-repair.html.twig"145)->unwrap()->yield($context);
  300.         // line 146
  301.         yield "
  302.     ";
  303.         // line 148
  304.         yield "    ";
  305.         yield from $this->load("@Portal/Modules/our-advantages.html.twig"148)->unwrap()->yield($context);
  306.         // line 149
  307.         yield "
  308.     ";
  309.         // line 151
  310.         yield "    ";
  311.         yield from $this->load("@Portal/Modules/slider-special-body-service.html.twig"151)->unwrap()->yield($context);
  312.         // line 152
  313.         yield "
  314.     ";
  315.         // line 154
  316.         yield "    ";
  317.         yield from $this->load("@Portal/Modules/contacts-and-map.html.twig"154)->unwrap()->yield($context);
  318.         // line 155
  319.         yield "
  320.     ";
  321.         // line 157
  322.         yield "    ";
  323.         yield from $this->load("@Portal/Modules/body-repair-form-popup.html.twig"157)->unwrap()->yield($context);
  324.         // line 158
  325.         yield "
  326. ";
  327.         
  328.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  329.         
  330.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  331.         yield from [];
  332.     }
  333.     // line 161
  334.     /**
  335.      * @return iterable<null|scalar|\Stringable>
  336.      */
  337.     public function block_pageJS(array $context, array $blocks = []): iterable
  338.     {
  339.         $macros $this->macros;
  340.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  341.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageJS"));
  342.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  343.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageJS"));
  344.         // line 162
  345.         yield "    <!-- Facebook Pixel Code -->
  346.     <script>
  347.         !function(f,b,e,v,n,t,s)
  348.         {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  349.             n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  350.             if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  351.             n.queue=[];t=b.createElement(e);t.async=!0;
  352.             t.src=v;s=b.getElementsByTagName(e)[0];
  353.             s.parentNode.insertBefore(t,s)}(window, document,'script',
  354.             'https://connect.facebook.net/en_US/fbevents.js');
  355.         fbq('init', '846867434118875');
  356.         fbq('track', 'PageView');
  357.     </script>
  358.     <noscript><img height=\"1\" width=\"1\" style=\"display:none\"
  359.                    src=\"https://www.facebook.com/tr?id=846867434118875&ev=PageView&noscript=1\"
  360.         /></noscript>
  361.     <!-- End Facebook Pixel Code -->
  362.    <script src=\"";
  363.         // line 180
  364.         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"nulltrue);
  365.         yield "\"></script>
  366.    <script>
  367.        app.onCustomEvent('appInit', function () {
  368.            app.loadJs(\"";
  369.         // line 183
  370.         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"nulltrue);
  371.         yield "\");
  372.            app.loadJs('/bundles/portal/js/body-repair-form-popup.js', function () {
  373.                bodyRepairFormPopup({
  374.                    saveFormUrl: '";
  375.         // line 187
  376.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_repair_popup_form");
  377.         yield "',
  378.                    privacyUrl: '";
  379.         // line 188
  380.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_privacy_policy");
  381.         yield "',
  382.                });
  383.            });
  384.            app.loadJs(\"";
  385.         // line 192
  386.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/core/js/modules/slick/slick.js"), "html"nulltrue);
  387.         yield "\", function () {
  388.                \$('.promotional__propositions__slider').slick({
  389.                    infinite: false,
  390.                    slidesToShow: 3.5,
  391.                    prevArrow: ' <img class=\"slick-prev\" src=\"";
  392.         // line 196
  393.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/portal/img/slider-arrow-left.svg"), "html"nulltrue);
  394.         yield "\">',
  395.                    nextArrow: ' <img class=\"slick-next\" src=\"";
  396.         // line 197
  397.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/portal/img/slider-arrow-right.svg"), "html"nulltrue);
  398.         yield "\">',
  399.                    slidesToScroll: 1,
  400.                    responsive: [
  401.                        {
  402.                            breakpoint: 768,
  403.                            settings: {
  404.                                centerPadding: '30px',
  405.                                slidesToShow: 2,
  406.                                autoplay: true,
  407.                                autoplaySpeed: 2000
  408.                            }
  409.                        },
  410.                        {
  411.                            breakpoint: 480,
  412.                            settings: {
  413.                                centerPadding: '30px',
  414.                                slidesToShow: 1,
  415.                                autoplay: true,
  416.                                autoplaySpeed: 2000
  417.                            }
  418.                        }
  419.                    ]
  420.                });
  421.            });
  422.            app.loadJs(\"";
  423.         // line 223
  424.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/modules/gallery/lightgallery.js"), "html"nulltrue);
  425.         yield "\", function () {
  426.                \$('.section-padding-page').lightGallery({
  427.                    selector: '.body_repair-image'
  428.                });
  429.            });
  430.            app.loadJs(\"";
  431.         // line 228
  432.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/portal/js/body-repair-calc.js"), "html"nulltrue);
  433.         yield "\", function () {
  434.                initRepairCalc({
  435.                    initUrl: '";
  436.         // line 230
  437.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_repair_calc_init");
  438.         yield "',
  439.                    saveUrl: '";
  440.         // line 231
  441.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("form_repair_calc");
  442.         yield "',
  443.                    privacyUrl: '";
  444.         // line 232
  445.         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"nulltrue);
  446.         yield "',
  447.                });
  448.            });
  449.            \$('.js-repair-photo').on('submit',function (e) {
  450.                e.preventDefault();
  451.                var formData = new FormData(this);
  452.                var \$form = \$(this);
  453.                \$('#check_privacy', \$(this)).remove('error');
  454.                if (!\$('.js-repair-photo .js-form-privacy input').prop('checked')) {
  455.                    \$('#check_privacy', \$(this)).addClass('error');
  456.                    return false;
  457.                }
  458.                \$.ajax({
  459.                    url: \$form.attr('action'),
  460.                    type: 'POST',
  461.                    data: formData,
  462.                    success: function (data) {
  463.                        \$('#modalSuccessMessagePopup').modal('show');
  464.                        try {
  465.                            dataLayer.push({'event' : 'event-to-go', 'eventAction': 'submit', 'eventCategory' : 'sto-all', 'eventLabel' : 'remont-kyzova' });
  466.                        } catch (e) {
  467.                            console.error('dataLayer event error');
  468.                        }
  469.                    },
  470.                    cache: false,
  471.                    contentType: false,
  472.                    processData: false
  473.                });
  474.            });
  475.            var button = \$(\"#repair_photo_files\");
  476.            function readURL(input) {
  477.                if (input.files.length == 0) {
  478.                    return;
  479.                }
  480.                \$.each(input.files, function () {
  481.                    var reader = new FileReader();
  482.                    reader.onload = function(e) {
  483.                        var imgWr = \$(\"<div class='review-foto-wrap'><div class='review-image'><img src=\\\"#\\\" alt=\\\"load image\\\" /></div></div>\");
  484.                        \$('.review-image img',imgWr).attr('src', e.target.result);
  485.                        button.after(imgWr);
  486.                    };
  487.                    reader.readAsDataURL(this);
  488.                });
  489.            }
  490.            \$(\"#repair_photo_files\").change(function() {
  491.                \$('.review-foto-wrap').replaceWith('');
  492.                readURL(this);
  493.            });
  494.        });
  495.    </script>
  496. ";
  497.         
  498.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  499.         
  500.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  501.         yield from [];
  502.     }
  503.     // line 287
  504.     /**
  505.      * @return iterable<null|scalar|\Stringable>
  506.      */
  507.     public function block_suChatJS(array $context, array $blocks = []): iterable
  508.     {
  509.         $macros $this->macros;
  510.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  511.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""suChatJS"));
  512.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  513.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""suChatJS"));
  514.         // line 288
  515.         yield "    ";
  516.         yield from $this->load("@Portal/Modules/su-chat-widget.html.twig"288)->unwrap()->yield($context);
  517.         
  518.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  519.         
  520.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  521.         yield from [];
  522.     }
  523.     /**
  524.      * @codeCoverageIgnore
  525.      */
  526.     public function getTemplateName(): string
  527.     {
  528.         return "@Portal/Service/body-repair-category.html.twig";
  529.     }
  530.     /**
  531.      * @codeCoverageIgnore
  532.      */
  533.     public function isTraitable(): bool
  534.     {
  535.         return false;
  536.     }
  537.     /**
  538.      * @codeCoverageIgnore
  539.      */
  540.     public function getDebugInfo(): array
  541.     {
  542.         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,);
  543.     }
  544.     public function getSourceContext(): Source
  545.     {
  546.         return new Source("{% extends '@Portal/base.html.twig' %}
  547. {% block seo %}
  548.     {% if category.getContentByLocale(app.request.locale).getSeoTitle() is defined and category.getContentByLocale(app.request.locale).getSeoTitle() is not empty %}
  549.         {% set title = category.getContentByLocale(app.request.locale).getSeoTitle() %}
  550.     {% else %}
  551.         {% set title = 'seo.body_repair.title'|trans({}, 'portal_base') %}
  552.     {% endif %}
  553.     {% if category.getContentByLocale(app.request.locale).getSeoDescription() is defined and category.getContentByLocale(app.request.locale).getSeoDescription() is not empty %}
  554.         {% set description = category.getContentByLocale(app.request.locale).getSeoDescription() %}
  555.     {% else %}
  556.         {% set description = 'seo.body_repair.description'|trans({}, 'portal_base') %}
  557.     {% endif %}
  558.     <title>{{ title }}</title>
  559.     <meta name=\"description\" content=\"{{ description }}\" />
  560. {% endblock %}
  561. {% block css %}
  562.     <link rel=\"stylesheet\" href=\"{{ asset('bundles/portal/css/service.css') }}\">
  563.     <link rel=\"stylesheet\" href=\"{{ asset('bundles/portal/css/service/body-repair.css') }}\">
  564.     <link rel=\"stylesheet\" href=\"{{ asset('bundles/portal/css/service/body-repair-form-popup.css') }}\">
  565.     <link rel='stylesheet' type='text/css' href='{{ asset('bundles/insurance/css/jquery.mCustomScrollbar.css') }}'  />
  566.     <link rel='stylesheet' type='text/css' href='{{ asset('bundles/core/css/bootstrap_build/carousel.css') }}'  />
  567.     <link rel='stylesheet' type='text/css' href='{{ asset('bundles/core/css/modules/gallery/lightgallery.css') }}'  />
  568.     <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\" />
  569.     <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\" />
  570. {% endblock  %}
  571. {% block content %}
  572.     <section class=\"breadcrumbs__new\">
  573.         <div class=\"container\">
  574.             <ol class=\"vidi_breadcrumbs__new\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  575.                 <li class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  576.                     itemtype=\"https://schema.org/ListItem\">
  577.                     <a itemprop=\"item\" href=\"{{ path('portal_homepage') }}\">
  578.                         <span class=\"breadcrumbs__link\" itemprop=\"name\">VIDI.UA</span></a>
  579.                     <meta itemprop=\"position\" content=\"1\"/>
  580.                 </li>
  581.                 <div class=\"arrow-bc\"></div>
  582.                 <li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  583.                     itemtype=\"https://schema.org/ListItem\">
  584.                     <span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">{{ 'service.all.service'|trans({}, 'portal_base') }}</span>
  585.                     <meta itemprop=\"position\" content=\"4\"/>
  586.                 </li>
  587.                 <div class=\"arrow-bc\"></div>
  588.                 <li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  589.                     itemtype=\"https://schema.org/ListItem\">
  590.                     <a itemprop=\"item\" href=\"{{ path('portal_service_body_repair') }}\">
  591.                         <span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">{{ 'service.body_repair.title_body_repair_new'|trans({}, 'portal_base') }}</span></a>
  592.                     <meta itemprop=\"position\" content=\"3\"/>
  593.                 </li>
  594.                 <div class=\"arrow-bc\"></div>
  595.                 <li itemprop=\"item\" class=\"marker__none\" itemprop=\"itemListElement\" itemscope
  596.                     itemtype=\"https://schema.org/ListItem\">
  597.                     <span style=\"color: #ABABAB\" class=\"breadcrumbs__link\" itemprop=\"name\">{{ category.getContentByLocale(app.request.locale).title }}</span>
  598.                     <meta itemprop=\"position\" content=\"4\"/>
  599.                 </li>
  600.             </ol>
  601.         </div>
  602.     </section>
  603.     {# Навігація #}
  604. {#    <section class=\"section__list__services\">#}
  605. {#        <div class=\"container\">#}
  606. {#            <div class=\"section__list__services__wrapper\">#}
  607. {#                <a class=\"section__list__services__box section__list__services__box-active\" href=\"#\">#}
  608. {#                    <p class=\"section__list__services__name\">Усі послуги</p>#}
  609. {#                    <img class=\"section__list__services__arrow__img\"#}
  610. {#                         src=\"{{ asset('bundles/portal/img/body-repair/arrow-body-repair.svg') }}\" alt=\"\">#}
  611. {#                </a>#}
  612. {#                <a class=\"section__list__services__box\" href=\"#\">#}
  613. {#                    <p class=\"section__list__services__name\">Оцінка пошкоджень та калькулятор вартості</p>#}
  614. {#                    <img class=\"section__list__services__arrow__img\"#}
  615. {#                         src=\"{{ asset('bundles/portal/img/body-repair/arrow-body-repair.svg') }}\" alt=\"\">#}
  616. {#                </a>#}
  617. {#                <a class=\"section__list__services__box\" href=\"#\">#}
  618. {#                    <p class=\"section__list__services__name\">Запасні частини</p>#}
  619. {#                    <img class=\"section__list__services__arrow__img\"#}
  620. {#                         src=\"{{ asset('bundles/portal/img/body-repair/arrow-body-repair.svg') }}\" alt=\"\">#}
  621. {#                </a>#}
  622. {#                <a class=\"section__list__services__box\" href=\"#\">#}
  623. {#                    <p class=\"section__list__services__name\">Кузовний в кредит</p>#}
  624. {#                    <img class=\"section__list__services__arrow__img\"#}
  625. {#                         src=\"{{ asset('bundles/portal/img/body-repair/arrow-body-repair.svg') }}\" alt=\"\">#}
  626. {#                </a>#}
  627. {#            </div>#}
  628. {#        </div>#}
  629. {#    </section>#}
  630.     {# END Навігація #}
  631.     <section class=\"section__list__body__repair__services\">
  632.         <div class=\"container\">
  633.             <div class=\"list__body__repair__services__wrapper\">
  634.                 <div class=\"list__body__repair__services__title__wrapper\">
  635.                     <h1 class=\"list__body__repair__services__title\">{{ category.getContentByLocale(app.request.locale).title }}</h1>
  636.                     <a class=\"list__body__repair__services__btn js-scroll-link\" href=\"#calcBodyRepair\">Записатися</a>
  637.                 </div>
  638.             </div>
  639.         </div>
  640.     </section>
  641.     {# Main #}
  642.     <section class=\"section__service__information\">
  643.         <div class=\"container\">
  644.             <div class=\"service__information__wrapper\">
  645.                 <div class=\"service__information__content\">
  646.                     <p class=\"service__information__content__text\">{{ category.getContentByLocale(app.request.locale).description|raw }}</p>
  647.                 </div>
  648.                 <img class=\"service__information__img\" src=\"{{ sonata_path(category.image, 'reference') }}\" alt=\"\">
  649.             </div>
  650.         </div>
  651.     </section>
  652.     <section class=\"section__all__services__item\">
  653.         <div class=\"container\">
  654.             <div class=\"all__services__item__wrapper\">
  655.                 {% for subCategory in subCategories %}
  656.                 <a class=\"all__services__item__box\" href=\"{{ path('portal_service_body_repair_sub_category', { 'category': category.url, 'subCategory': subCategory.url }) }}\">
  657.                     <p class=\"all__services__item__box__name\">{{ subCategory.getContentByLocale(app.request.locale).title }}</p>
  658.                     {# <div class=\"all__services__item__box__img\" style=\"background-image: url('{{ sonata_path(subCategory.image, 'reference') }}')\"></div> #}
  659.                 </a>
  660.                 {% endfor %}
  661.             </div>
  662.         </div>
  663.     </section>
  664.     {# ENd Main #}
  665.     {# Калькулятор кузовний ремонт #}
  666.     {% include '@Portal/Modules/calc-body-repair.html.twig' %}
  667.     {# Наші переваги #}
  668.     {% include '@Portal/Modules/our-advantages.html.twig' %}
  669.     {# Слайдер акційні пропозиції кузовний сервіс #}
  670.     {% include '@Portal/Modules/slider-special-body-service.html.twig' %}
  671.     {# Контакти/Карта #}
  672.     {% include '@Portal/Modules/contacts-and-map.html.twig' %}
  673.     {# Popup #}
  674.     {% include '@Portal/Modules/body-repair-form-popup.html.twig' %}
  675. {% endblock %}
  676. {% block pageJS %}
  677.     <!-- Facebook Pixel Code -->
  678.     <script>
  679.         !function(f,b,e,v,n,t,s)
  680.         {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  681.             n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  682.             if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  683.             n.queue=[];t=b.createElement(e);t.async=!0;
  684.             t.src=v;s=b.getElementsByTagName(e)[0];
  685.             s.parentNode.insertBefore(t,s)}(window, document,'script',
  686.             'https://connect.facebook.net/en_US/fbevents.js');
  687.         fbq('init', '846867434118875');
  688.         fbq('track', 'PageView');
  689.     </script>
  690.     <noscript><img height=\"1\" width=\"1\" style=\"display:none\"
  691.                    src=\"https://www.facebook.com/tr?id=846867434118875&ev=PageView&noscript=1\"
  692.         /></noscript>
  693.     <!-- End Facebook Pixel Code -->
  694.    <script src=\"{{ asset('/bundles/core/js/vue/v-mask.min.js') }}\"></script>
  695.    <script>
  696.        app.onCustomEvent('appInit', function () {
  697.            app.loadJs(\"{{ asset('bundles/insurance/js/jquery.mCustomScrollbar.concat.min.js') }}\");
  698.            app.loadJs('/bundles/portal/js/body-repair-form-popup.js', function () {
  699.                bodyRepairFormPopup({
  700.                    saveFormUrl: '{{ path('portal_repair_popup_form') }}',
  701.                    privacyUrl: '{{ path('portal_privacy_policy') }}',
  702.                });
  703.            });
  704.            app.loadJs(\"{{ asset('bundles/core/js/modules/slick/slick.js') }}\", function () {
  705.                \$('.promotional__propositions__slider').slick({
  706.                    infinite: false,
  707.                    slidesToShow: 3.5,
  708.                    prevArrow: ' <img class=\"slick-prev\" src=\"{{ asset('bundles/portal/img/slider-arrow-left.svg') }}\">',
  709.                    nextArrow: ' <img class=\"slick-next\" src=\"{{ asset('bundles/portal/img/slider-arrow-right.svg') }}\">',
  710.                    slidesToScroll: 1,
  711.                    responsive: [
  712.                        {
  713.                            breakpoint: 768,
  714.                            settings: {
  715.                                centerPadding: '30px',
  716.                                slidesToShow: 2,
  717.                                autoplay: true,
  718.                                autoplaySpeed: 2000
  719.                            }
  720.                        },
  721.                        {
  722.                            breakpoint: 480,
  723.                            settings: {
  724.                                centerPadding: '30px',
  725.                                slidesToShow: 1,
  726.                                autoplay: true,
  727.                                autoplaySpeed: 2000
  728.                            }
  729.                        }
  730.                    ]
  731.                });
  732.            });
  733.            app.loadJs(\"{{ asset('/bundles/core/js/modules/gallery/lightgallery.js') }}\", function () {
  734.                \$('.section-padding-page').lightGallery({
  735.                    selector: '.body_repair-image'
  736.                });
  737.            });
  738.            app.loadJs(\"{{ asset('bundles/portal/js/body-repair-calc.js') }}\", function () {
  739.                initRepairCalc({
  740.                    initUrl: '{{ path('portal_repair_calc_init') }}',
  741.                    saveUrl: '{{ path('form_repair_calc') }}',
  742.                    privacyUrl: '{{ privacyUrl }}',
  743.                });
  744.            });
  745.            \$('.js-repair-photo').on('submit',function (e) {
  746.                e.preventDefault();
  747.                var formData = new FormData(this);
  748.                var \$form = \$(this);
  749.                \$('#check_privacy', \$(this)).remove('error');
  750.                if (!\$('.js-repair-photo .js-form-privacy input').prop('checked')) {
  751.                    \$('#check_privacy', \$(this)).addClass('error');
  752.                    return false;
  753.                }
  754.                \$.ajax({
  755.                    url: \$form.attr('action'),
  756.                    type: 'POST',
  757.                    data: formData,
  758.                    success: function (data) {
  759.                        \$('#modalSuccessMessagePopup').modal('show');
  760.                        try {
  761.                            dataLayer.push({'event' : 'event-to-go', 'eventAction': 'submit', 'eventCategory' : 'sto-all', 'eventLabel' : 'remont-kyzova' });
  762.                        } catch (e) {
  763.                            console.error('dataLayer event error');
  764.                        }
  765.                    },
  766.                    cache: false,
  767.                    contentType: false,
  768.                    processData: false
  769.                });
  770.            });
  771.            var button = \$(\"#repair_photo_files\");
  772.            function readURL(input) {
  773.                if (input.files.length == 0) {
  774.                    return;
  775.                }
  776.                \$.each(input.files, function () {
  777.                    var reader = new FileReader();
  778.                    reader.onload = function(e) {
  779.                        var imgWr = \$(\"<div class='review-foto-wrap'><div class='review-image'><img src=\\\"#\\\" alt=\\\"load image\\\" /></div></div>\");
  780.                        \$('.review-image img',imgWr).attr('src', e.target.result);
  781.                        button.after(imgWr);
  782.                    };
  783.                    reader.readAsDataURL(this);
  784.                });
  785.            }
  786.            \$(\"#repair_photo_files\").change(function() {
  787.                \$('.review-foto-wrap').replaceWith('');
  788.                readURL(this);
  789.            });
  790.        });
  791.    </script>
  792. {% endblock  %}
  793. {% block suChatJS %}
  794.     {% include '@Portal/Modules/su-chat-widget.html.twig' %}
  795. {% endblock  %}
  796. ""@Portal/Service/body-repair-category.html.twig""/var/www/vidi.ua/releases/251031-da518f26/src/PortalBundle/Resources/views/Service/body-repair-category.html.twig");
  797.     }
  798. }