var/cache/review/twig/e3/e3f3dcc5ae2f9bf659bc6285d237b879.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* SaloonPreview/page.html.twig */
  14. class __TwigTemplate_3bbb1cef8a52b53c15d78a368d33692e extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'navbar' => [$this'block_navbar'],
  24.             'mainContainer' => [$this'block_mainContainer'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "SaloonPreview/grid.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  36.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SaloonPreview/page.html.twig"));
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SaloonPreview/page.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SaloonPreview/page.html.twig"));
  41.         $this->parent $this->loadTemplate("SaloonPreview/grid.html.twig""SaloonPreview/page.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 3
  51.     public function block_navbar($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  55.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  60.         // line 4
  61.         echo "    ";
  62.         $this->displayParentBlock("navbar"$context$blocks);
  63.         echo "
  64.     ";
  65.         // line 5
  66.         $context["excludeRecommendationProfileIds"] = [];
  67.         // line 6
  68.         echo "    ";
  69.         $this->loadTemplate("Recommendations/_profile_recommendations.html.twig""SaloonPreview/page.html.twig"6)->display($context);
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.         
  75.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  76.     }
  77.     // line 9
  78.     public function block_mainContainer($context, array $blocks = [])
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  82.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  87.         // line 10
  88.         echo "    <h5 alt=\"";
  89.         ((twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'10$this->source); })()), "seo", [], "any"falsefalsefalse10)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'10$this->source); })()), "seo", [], "any"falsefalsefalse10), "phone", [], "any"falsefalsefalse10), "html"nulltrue))) : (print ("")));
  90.         echo "\">";
  91.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'10$this->source); })()), "name", [], "any"falsefalsefalse10)), "html"nulltrue);
  92.         echo " ";
  93.         echo twig_escape_filter($this->env, (isset($context["rating"]) || array_key_exists("rating"$context) ? $context["rating"] : (function () { throw new RuntimeError('Variable "rating" does not exist.'10$this->source); })()), "html"nulltrue);
  94.         echo "&#9733;
  95.         ";
  96.         // line 11
  97.         if (twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'11$this->source); })()), "active", [], "any"falsefalsefalse11)) {
  98.             // line 12
  99.             echo "            <small><a href=\"tel:";
  100.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'12$this->source); })()), "phoneNumber", [], "any"falsefalsefalse12), "html"nulltrue);
  101.             echo "\">";
  102.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'12$this->source); })()), "phoneNumber", [], "any"falsefalsefalse12), "html"nulltrue);
  103.             echo "</a></small>
  104.         ";
  105.         }
  106.         // line 14
  107.         echo "    </h5>
  108.     <p>";
  109.         // line 16
  110.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'16$this->source); })()), "address", [], "any"falsefalsefalse16)), "html"nulltrue);
  111.         echo "</p>
  112.     <dl>
  113.         <dt>";
  114.         // line 18
  115.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Город", [], "messages");
  116.         echo "</dt>
  117.         <dd>";
  118.         // line 19
  119.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'19$this->source); })()), "city", [], "any"falsefalsefalse19), "name", [], "any"falsefalsefalse19)), "html"nulltrue);
  120.         echo "</dd>
  121.         <dt>";
  122.         // line 20
  123.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Метро", [], "messages");
  124.         echo "</dt>
  125.         <dd>
  126.             ";
  127.         // line 23
  128.         $context['_parent'] = $context;
  129.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'23$this->source); })()), "stationsSortedByPrimary", [], "any"falsefalsefalse23));
  130.         $context['loop'] = [
  131.           'parent' => $context['_parent'],
  132.           'index0' => 0,
  133.           'index'  => 1,
  134.           'first'  => true,
  135.         ];
  136.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  137.             $length count($context['_seq']);
  138.             $context['loop']['revindex0'] = $length 1;
  139.             $context['loop']['revindex'] = $length;
  140.             $context['loop']['length'] = $length;
  141.             $context['loop']['last'] = === $length;
  142.         }
  143.         foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  144.             // line 24
  145.             echo "                ";
  146.             if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse24)) {
  147.                 echo "<strong>";
  148.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["station"], "name", [], "any"falsefalsefalse24)), "html"nulltrue);
  149.                 echo " *</strong>
  150.                 ";
  151.             } else {
  152.                 // line 25
  153.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["station"], "name", [], "any"falsefalsefalse25)), "html"nulltrue);
  154.             }
  155.             echo "<br/>
  156.             ";
  157.             ++$context['loop']['index0'];
  158.             ++$context['loop']['index'];
  159.             $context['loop']['first'] = false;
  160.             if (isset($context['loop']['length'])) {
  161.                 --$context['loop']['revindex0'];
  162.                 --$context['loop']['revindex'];
  163.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  164.             }
  165.         }
  166.         $_parent $context['_parent'];
  167.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  168.         $context array_intersect_key($context$_parent) + $_parent;
  169.         // line 27
  170.         echo "        </dd>
  171.         <dt>";
  172.         // line 28
  173.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Район", [], "messages");
  174.         echo "</dt>
  175.         <dd>
  176.             ";
  177.         // line 30
  178.         $context['_parent'] = $context;
  179.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'30$this->source); })()), "stationsSortedByPrimary", [], "any"falsefalsefalse30));
  180.         foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  181.             // line 31
  182.             echo "                ";
  183.             $context["stationDistrict"] = twig_get_attribute($this->env$this->source$context["station"], "district", [], "any"falsefalsefalse31);
  184.             // line 32
  185.             echo "                ";
  186.             if ((isset($context["stationDistrict"]) || array_key_exists("stationDistrict"$context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.'32$this->source); })())) {
  187.                 // line 33
  188.                 echo "                    ";
  189.                 $context["districtCounty"] = twig_get_attribute($this->env$this->source, (isset($context["stationDistrict"]) || array_key_exists("stationDistrict"$context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.'33$this->source); })()), "county", [], "any"falsefalsefalse33);
  190.                 // line 34
  191.                 echo "                    ";
  192.                 if ((isset($context["districtCounty"]) || array_key_exists("districtCounty"$context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.'34$this->source); })())) {
  193.                     // line 35
  194.                     echo "                        ";
  195.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["districtCounty"]) || array_key_exists("districtCounty"$context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.'35$this->source); })()), "name", [], "any"falsefalsefalse35)), "html"nulltrue);
  196.                     echo "
  197.                     ";
  198.                 }
  199.                 // line 37
  200.                 echo "                    ";
  201.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["stationDistrict"]) || array_key_exists("stationDistrict"$context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.'37$this->source); })()), "name", [], "any"falsefalsefalse37)), "html"nulltrue);
  202.                 echo "<br/>
  203.                 ";
  204.             }
  205.             // line 39
  206.             echo "            ";
  207.         }
  208.         $_parent $context['_parent'];
  209.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  210.         $context array_intersect_key($context$_parent) + $_parent;
  211.         // line 40
  212.         echo "        </dd>
  213.         ";
  214.         // line 41
  215.         if (((((twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'41$this->source); })()), "active", [], "any"falsefalsefalse41) && $this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) && twig_get_attribute($this->env$this->source,         // line 43
  216. (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'43$this->source); })()), "messengers", [], "any"falsefalsefalse43)) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 44
  217. (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'44$this->source); })()), "messengers", [], "any"falsefalsefalse44), "hasTelegram", [], "any"falsefalsefalse44)) &&  !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 45
  218. (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'45$this->source); })()), "messengers", [], "any"falsefalsefalse45), "telegramUsername", [], "any"falsefalsefalse45)))) {
  219.             // line 46
  220.             echo "            <dt><strong>";
  221.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телеграм", [], "messages");
  222.             echo "</strong></dt>
  223.             <dd><a href=\"https://t.me/";
  224.             // line 47
  225.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'47$this->source); })()), "messengers", [], "any"falsefalsefalse47), "telegramUsername", [], "any"falsefalsefalse47), "html"nulltrue);
  226.             echo "\"
  227.                    target=\"_blank\" rel=\"nofollow noopener\">
  228.                     @";
  229.             // line 49
  230.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'49$this->source); })()), "messengers", [], "any"falsefalsefalse49), "telegramUsername", [], "any"falsefalsefalse49), "html"nulltrue);
  231.             echo "
  232.                 </a></dd>
  233.         ";
  234.         }
  235.         // line 52
  236.         echo "        ";
  237.         if (((((twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'52$this->source); })()), "active", [], "any"falsefalsefalse52) && $this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extra_category_with_max")) && twig_get_attribute($this->env$this->source,         // line 54
  238. (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'54$this->source); })()), "messengers", [], "any"falsefalsefalse54)) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 55
  239. (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'55$this->source); })()), "messengers", [], "any"falsefalsefalse55), "hasMax", [], "any"falsefalsefalse55)) &&  !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 56
  240. (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'56$this->source); })()), "messengers", [], "any"falsefalsefalse56), "maxUrl", [], "any"falsefalsefalse56)))) {
  241.             // line 57
  242.             echo "            <dt><strong>MAX</strong></dt>
  243.             <dd><a href=\"";
  244.             // line 58
  245.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'58$this->source); })()), "messengers", [], "any"falsefalsefalse58), "maxUrl", [], "any"falsefalsefalse58), "html"nulltrue);
  246.             echo "\"
  247.                    target=\"_blank\" rel=\"nofollow noopener\">MAX</a></dd>
  248.         ";
  249.         }
  250.         // line 61
  251.         echo "    </dl>
  252.     <p>";
  253.         // line 62
  254.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'62$this->source); })()), "description", [], "any"falsefalsefalse62)), "html"nulltrue);
  255.         echo "</p>
  256.     ";
  257.         // line 64
  258.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  259.             // line 65
  260.             echo "        <h6>";
  261.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Предпочтения", [], "messages");
  262.             echo "</h6>
  263.         ";
  264.             // line 66
  265.             $context['_parent'] = $context;
  266.             $context['_seq'] = twig_ensure_traversable((isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'66$this->source); })()));
  267.             foreach ($context['_seq'] as $context["group"] => $context["servicesGroup"]) {
  268.                 // line 67
  269.                 echo "            <p><strong>";
  270.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\ServicesExtension']->serviceGroupLabel($context["group"]), [], "service_groups"), "html"nulltrue);
  271.                 echo "</strong></p>
  272.             <ul>
  273.                 ";
  274.                 // line 69
  275.                 $context['_parent'] = $context;
  276.                 $context['_seq'] = twig_ensure_traversable($context["servicesGroup"]);
  277.                 foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
  278.                     // line 70
  279.                     echo "                    ";
  280.                     $context["providedService"] = twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'70$this->source); })()), "providedService", [$context["service"]], "method"falsefalsefalse70);
  281.                     // line 71
  282.                     echo "                    <li class=\"";
  283.                     if ((isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'71$this->source); })())) {
  284.                         echo "text-success";
  285.                     } else {
  286.                         echo "text-danger";
  287.                     }
  288.                     echo "\">
  289.                         <a href=\"";
  290.                     // line 72
  291.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_provided_service", ["city" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'72$this->source); })()), "city", [], "any"falsefalsefalse72), "uriIdentity", [], "any"falsefalsefalse72), "service" => twig_get_attribute($this->env$this->source$context["service"], "uriIdentity", [], "any"falsefalsefalse72)]), "html"nulltrue);
  292.                     echo "\">";
  293.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["service"], "name", [], "any"falsefalsefalse72)), "html"nulltrue);
  294.                     echo "</a>
  295.                     </li>
  296.                     ";
  297.                     // line 74
  298.                     if ((isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'74$this->source); })())) {
  299.                         // line 75
  300.                         echo "                        ";
  301.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\ServicesExtension']->providedServiceCondition(twig_get_attribute($this->env$this->source, (isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'75$this->source); })()), "condition", [], "any"falsefalsefalse75)), [], "service_conditions"), "html"nulltrue);
  302.                         if ((twig_get_attribute($this->env$this->source, (isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'75$this->source); })()), "condition", [], "any"falsefalsefalse75) == 3)) {
  303.                             echo ", цена:";
  304.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'75$this->source); })()), "extraCharge", [], "any"falsefalsefalse75), "html"nulltrue);
  305.                         }
  306.                         // line 76
  307.                         echo "                    ";
  308.                     }
  309.                     // line 77
  310.                     echo "                ";
  311.                 }
  312.                 $_parent $context['_parent'];
  313.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
  314.                 $context array_intersect_key($context$_parent) + $_parent;
  315.                 // line 78
  316.                 echo "            </ul>
  317.         ";
  318.             }
  319.             $_parent $context['_parent'];
  320.             unset($context['_seq'], $context['_iterated'], $context['group'], $context['servicesGroup'], $context['_parent'], $context['loop']);
  321.             $context array_intersect_key($context$_parent) + $_parent;
  322.             // line 80
  323.             echo "    ";
  324.         }
  325.         // line 81
  326.         echo "
  327.     ";
  328.         // line 82
  329.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  330.             // line 83
  331.             echo "        <div>
  332.             ";
  333.             // line 84
  334.             if (twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'84$this->source); })()), "expressPricing", [], "any"falsefalsefalse84)) {
  335.                 // line 85
  336.                 echo "                <b>Экспресс:</b>
  337.                 ";
  338.                 // line 86
  339.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'86$this->source); })()), "expressPricing", [], "any"falsefalsefalse86), "provided", [], "any"falsefalsefalse86)) {
  340.                     // line 87
  341.                     echo "                    Да, стоимость";
  342.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'87$this->source); })()), "expressPricing", [], "any"falsefalsefalse87), "price", [], "any"falsefalsefalse87), "html"nulltrue);
  343.                     echo "
  344.                 ";
  345.                 } else {
  346.                     // line 89
  347.                     echo "                    Нет
  348.                 ";
  349.                 }
  350.                 // line 91
  351.                 echo "            ";
  352.             }
  353.             // line 92
  354.             echo "        </div>
  355.         <div>
  356.             ";
  357.             // line 95
  358.             if (twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'95$this->source); })()), "clientTypes", [], "any"falsefalsefalse95)) {
  359.                 // line 96
  360.                 echo "                <b>Услуги для:</b>
  361.                 ";
  362.                 // line 97
  363.                 $context['_parent'] = $context;
  364.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'97$this->source); })()), "clientTypes", [], "any"falsefalsefalse97));
  365.                 foreach ($context['_seq'] as $context["_key"] => $context["clientType"]) {
  366.                     // line 98
  367.                     echo "                    ";
  368.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\ClientTypeExtension']->clientType($context["clientType"]), [], "client_types"), "html"nulltrue);
  369.                     echo "<br>
  370.                 ";
  371.                 }
  372.                 $_parent $context['_parent'];
  373.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['clientType'], $context['_parent'], $context['loop']);
  374.                 $context array_intersect_key($context$_parent) + $_parent;
  375.                 // line 100
  376.                 echo "            ";
  377.             }
  378.             // line 101
  379.             echo "        </div>
  380.         <div>
  381.             ";
  382.             // line 104
  383.             if (twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'104$this->source); })()), "messengers", [], "any"falsefalsefalse104)) {
  384.                 // line 105
  385.                 echo "                <b>Мессенджеры</b><br>
  386.                 <b>Telegram</b> ";
  387.                 // line 106
  388.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'106$this->source); })()), "messengers", [], "any"falsefalsefalse106), "telegram", [], "any"falsefalsefalse106)) ? ("Да") : ("Нет"));
  389.                 echo "
  390.                 <b>WhatsApp</b> ";
  391.                 // line 107
  392.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'107$this->source); })()), "messengers", [], "any"falsefalsefalse107), "whatsApp", [], "any"falsefalsefalse107)) ? ("Да") : ("Нет"));
  393.                 echo "
  394.                 ";
  395.                 // line 108
  396.                 if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extra_category_with_max")) {
  397.                     // line 109
  398.                     echo "                    <b>MAX</b> ";
  399.                     echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'109$this->source); })()), "messengers", [], "any"falsefalsefalse109), "max", [], "any"falsefalsefalse109)) ? ("Да") : ("Нет"));
  400.                     echo "
  401.                 ";
  402.                 }
  403.                 // line 111
  404.                 echo "            ";
  405.             }
  406.             // line 112
  407.             echo "        </div>
  408.     ";
  409.         }
  410.         // line 114
  411.         echo "
  412.     <div>
  413.         <b>Отвечаю на:</b>
  414.         ";
  415.         // line 117
  416.         $context['_parent'] = $context;
  417.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'117$this->source); })()), "phoneCallRestrictions", [], "any"falsefalsefalse117), "answeringTo", [], "any"falsefalsefalse117));
  418.         foreach ($context['_seq'] as $context["_key"] => $context["answeringTo"]) {
  419.             // line 118
  420.             echo "            ";
  421.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PhoneCallExtension']->answeringTo($context["answeringTo"]), [], "phone_call_restrictions"), "html"nulltrue);
  422.             echo "<br>
  423.         ";
  424.         }
  425.         $_parent $context['_parent'];
  426.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['answeringTo'], $context['_parent'], $context['loop']);
  427.         $context array_intersect_key($context$_parent) + $_parent;
  428.         // line 120
  429.         echo "    </div>
  430.     ";
  431.         // line 122
  432.         if ( !twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'122$this->source); })()), "deleted", [], "any"falsefalsefalse122)) {
  433.             // line 123
  434.             echo "        <img src=\"";
  435.             ((twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'123$this->source); })()), "thumbnail", [], "any"falsefalsefalse123)) ? (print (twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'123$this->source); })()), "thumbnail", [], "any"falsefalsefalse123), "path", [], "any"falsefalsefalse123), "saloon_media_thumb"), "html"nulltrue))) : (print ("")));
  436.             echo "\" width=\"100\"
  437.              alt=\"";
  438.             // line 124
  439.             ((twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'124$this->source); })()), "seo", [], "any"falsefalsefalse124)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'124$this->source); })()), "seo", [], "any"falsefalsefalse124), "phone", [], "any"falsefalsefalse124), "html"nulltrue))) : (print ("")));
  440.             echo "\"/>
  441.         ";
  442.             // line 125
  443.             $context['_parent'] = $context;
  444.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'125$this->source); })()), "photos", [], "any"falsefalsefalse125));
  445.             foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
  446.                 // line 126
  447.                 echo "            <img src=\"";
  448.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source$context["photo"], "path", [], "any"falsefalsefalse126), "saloon_media"), "html"nulltrue);
  449.                 echo "\"/>
  450.         ";
  451.             }
  452.             $_parent $context['_parent'];
  453.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
  454.             $context array_intersect_key($context$_parent) + $_parent;
  455.             // line 128
  456.             echo "
  457.         ";
  458.             // line 129
  459.             if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  460.                 // line 130
  461.                 echo "            ";
  462.                 $context['_parent'] = $context;
  463.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'130$this->source); })()), "videos", [], "any"falsefalsefalse130));
  464.                 foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  465.                     // line 131
  466.                     echo "                <video width=\"320\" height=\"240\" controls
  467.                        poster=\"";
  468.                     // line 132
  469.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl(twig_get_attribute($this->env$this->source$context["video"], "previewPath", [], "any"falsefalsefalse132), "saloon_media_video""fullsize""jpg"), "html"nulltrue);
  470.                     echo "\">
  471.                     <source src=\"";
  472.                     // line 133
  473.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source$context["video"], "path", [], "any"falsefalsefalse133), "saloon_media_video"), "html"nulltrue);
  474.                     echo "\">
  475.                 </video>
  476.             ";
  477.                 }
  478.                 $_parent $context['_parent'];
  479.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  480.                 $context array_intersect_key($context$_parent) + $_parent;
  481.                 // line 136
  482.                 echo "        ";
  483.             }
  484.             // line 137
  485.             echo "    ";
  486.         } else {
  487.             // line 138
  488.             echo "        Фото-заглушка
  489.     ";
  490.         }
  491.         // line 140
  492.         echo "
  493.     ";
  494.         // line 141
  495.         $this->loadTemplate("SaloonPreview/_profiles.html.twig""SaloonPreview/page.html.twig"141)->display(twig_array_merge($context, ["saloon" =>         // line 142
  496. (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'142$this->source); })()), "profiles" =>         // line 143
  497. (isset($context["saloon_profiles"]) || array_key_exists("saloon_profiles"$context) ? $context["saloon_profiles"] : (function () { throw new RuntimeError('Variable "saloon_profiles" does not exist.'143$this->source); })()), "total_count" =>         // line 144
  498. (isset($context["saloon_profiles_total_count"]) || array_key_exists("saloon_profiles_total_count"$context) ? $context["saloon_profiles_total_count"] : (function () { throw new RuntimeError('Variable "saloon_profiles_total_count" does not exist.'144$this->source); })()), "per_page" =>         // line 145
  499. (isset($context["saloon_profiles_per_page"]) || array_key_exists("saloon_profiles_per_page"$context) ? $context["saloon_profiles_per_page"] : (function () { throw new RuntimeError('Variable "saloon_profiles_per_page" does not exist.'145$this->source); })()), "rotation_offset" =>         // line 146
  500. (isset($context["saloon_profiles_rotation_offset"]) || array_key_exists("saloon_profiles_rotation_offset"$context) ? $context["saloon_profiles_rotation_offset"] : (function () { throw new RuntimeError('Variable "saloon_profiles_rotation_offset" does not exist.'146$this->source); })())]));
  501.         // line 148
  502.         echo "
  503.     <h6>";
  504.         // line 149
  505.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывы", [], "messages");
  506.         echo "</h6>
  507.     <div id=\"comments\">
  508.         ";
  509.         // line 151
  510.         $context['_parent'] = $context;
  511.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'151$this->source); })()), "comments", [], "any"falsefalsefalse151));
  512.         $context['_iterated'] = false;
  513.         $context['loop'] = [
  514.           'parent' => $context['_parent'],
  515.           'index0' => 0,
  516.           'index'  => 1,
  517.           'first'  => true,
  518.         ];
  519.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  520.             $length count($context['_seq']);
  521.             $context['loop']['revindex0'] = $length 1;
  522.             $context['loop']['revindex'] = $length;
  523.             $context['loop']['length'] = $length;
  524.             $context['loop']['last'] = === $length;
  525.         }
  526.         foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
  527.             // line 152
  528.             echo "            ";
  529.             $this->loadTemplate("SaloonPreview/comment.html.twig""SaloonPreview/page.html.twig"152)->display($context);
  530.             // line 153
  531.             echo "        ";
  532.             $context['_iterated'] = true;
  533.             ++$context['loop']['index0'];
  534.             ++$context['loop']['index'];
  535.             $context['loop']['first'] = false;
  536.             if (isset($context['loop']['length'])) {
  537.                 --$context['loop']['revindex0'];
  538.                 --$context['loop']['revindex'];
  539.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  540.             }
  541.         }
  542.         if (!$context['_iterated']) {
  543.             // line 154
  544.             echo "            <p>";
  545.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывов нет", [], "messages");
  546.             echo "</p>
  547.         ";
  548.         }
  549.         $_parent $context['_parent'];
  550.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
  551.         $context array_intersect_key($context$_parent) + $_parent;
  552.         // line 156
  553.         echo "    </div>
  554.     <div id=\"commentFormContainer\">
  555.     </div>
  556.     <div id=\"recaptcha-container\"></div>
  557.     <script type=\"text/javascript\">
  558.         var onloadCallback = function () {
  559.             grecaptcha.render('recaptcha-container', {
  560.                 'sitekey': '";
  561.         // line 166
  562.         echo twig_escape_filter($this->env, (isset($context["ewz_recaptcha_site_key"]) || array_key_exists("ewz_recaptcha_site_key"$context) ? $context["ewz_recaptcha_site_key"] : (function () { throw new RuntimeError('Variable "ewz_recaptcha_site_key" does not exist.'166$this->source); })()), "html"nulltrue);
  563.         echo "'
  564.             });
  565.         };
  566.     </script>
  567.     <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
  568.     <script src=\"";
  569.         // line 171
  570.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("ajax.js""js_script"), "html"nulltrue);
  571.         echo "\"></script>
  572.     <script type=\"text/javascript\">
  573.         document.addEventListener('DOMContentLoaded', function () {
  574.             ajax({
  575.                 url: '";
  576.         // line 175
  577.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("saloon.comment.comment_form", ["saloon" => twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'175$this->source); })()), "id", [], "any"falsefalsefalse175)]), "html"nulltrue);
  578.         echo "',
  579.                 callback: function (response) {
  580.                     // console.log(response);
  581.                     if ('' !== response) {
  582.                         document.querySelector('#commentFormContainer').innerHTML = response;
  583.                         setCommentFormListeners();
  584.                     }
  585.                 },
  586.                 dataType: 'json',
  587.                 responseType: 'text/html',
  588.             });
  589.             function setCommentFormListeners() {
  590.                 const formName = 'comment_form';
  591.                 ";
  592.         // line 190
  593.         echo "                document.querySelector('#send_comment').addEventListener('click', function () {
  594.                     ajax({
  595.                         url: '";
  596.         // line 192
  597.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("saloon.comment.create", ["saloon" => twig_get_attribute($this->env$this->source, (isset($context["saloon"]) || array_key_exists("saloon"$context) ? $context["saloon"] : (function () { throw new RuntimeError('Variable "saloon" does not exist.'192$this->source); })()), "id", [], "any"falsefalsefalse192)]), "html"nulltrue);
  598.         echo "',
  599.                         method: '',
  600.                         data: {
  601.                             'g-recaptcha-response': grecaptcha.getResponse(),
  602.                             'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
  603.                             'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
  604.                             'text': document.querySelector(`#\${formName}_text`).value,
  605.                         },
  606.                         callback: function (response) {
  607.                             if (response) {
  608.                                 if (response.success) {
  609.                                     //document.querySelector(`#{formName}`).style.display = 'none';
  610.                                     //document.querySelector('#send_comment').style.display = 'none';
  611.                                     document.querySelector(`form[name=\"\${formName}\"]`).reset();
  612.                                     grecaptcha.reset();
  613.                                     let template =
  614.                                         '<div>' +
  615.                                         (response.comment.nickname ?
  616.                                             '<span class=\"author\">' +
  617.                                             '<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
  618.                                             '<span class=\"name\">#nickname</span>' +
  619.                                             '</span>' : '') +
  620.                                         '<span class=\"date\">#createdAt</span>' +
  621.                                         '<span>#text</span>' +
  622.                                         '</div>'
  623.                                     ;
  624.                                     response.comment.createdAt = new Date(response.comment.createdAt * 1000);
  625.                                     for (let k in response.comment) {
  626.                                         template = template.replace('#' + k, response.comment[k]);
  627.                                     }
  628.                                     document.querySelector('#comments').innerHTML += template;
  629.                                     // console.log(template);
  630.                                     // document.querySelector('#comments').innerHTML += response.html;
  631.                                 } else {
  632.                                     alert(response.error);
  633.                                 }
  634.                             }
  635.                         },
  636.                         dataType: 'json',
  637.                         responseType: 'json',
  638.                     });
  639.                 });
  640.             }
  641.         });
  642.     </script>
  643. ";
  644.         
  645.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  646.         
  647.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  648.         
  649.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  650.     }
  651.     /**
  652.      * @codeCoverageIgnore
  653.      */
  654.     public function getTemplateName()
  655.     {
  656.         return "SaloonPreview/page.html.twig";
  657.     }
  658.     /**
  659.      * @codeCoverageIgnore
  660.      */
  661.     public function isTraitable()
  662.     {
  663.         return false;
  664.     }
  665.     /**
  666.      * @codeCoverageIgnore
  667.      */
  668.     public function getDebugInfo()
  669.     {
  670.         return array (  631 => 192,  627 => 190,  610 => 175,  603 => 171,  595 => 166,  583 => 156,  574 => 154,  561 => 153,  558 => 152,  540 => 151,  535 => 149,  532 => 148,  530 => 146,  529 => 145,  528 => 144,  527 => 143,  526 => 142,  525 => 141,  522 => 140,  518 => 138,  515 => 137,  512 => 136,  503 => 133,  499 => 132,  496 => 131,  491 => 130,  489 => 129,  486 => 128,  477 => 126,  473 => 125,  469 => 124,  464 => 123,  462 => 122,  458 => 120,  449 => 118,  445 => 117,  440 => 114,  436 => 112,  433 => 111,  427 => 109,  425 => 108,  421 => 107,  417 => 106,  414 => 105,  412 => 104,  407 => 101,  404 => 100,  395 => 98,  391 => 97,  388 => 96,  386 => 95,  381 => 92,  378 => 91,  374 => 89,  368 => 87,  366 => 86,  363 => 85,  361 => 84,  358 => 83,  356 => 82,  353 => 81,  350 => 80,  343 => 78,  337 => 77,  334 => 76,  327 => 75,  325 => 74,  318 => 72,  309 => 71,  306 => 70,  302 => 69,  296 => 67,  292 => 66,  287 => 65,  285 => 64,  280 => 62,  277 => 61,  271 => 58,  268 => 57,  266 => 56,  265 => 55,  264 => 54,  262 => 52,  256 => 49,  251 => 47,  246 => 46,  244 => 45,  243 => 44,  242 => 43,  241 => 41,  238 => 40,  232 => 39,  226 => 37,  220 => 35,  217 => 34,  214 => 33,  211 => 32,  208 => 31,  204 => 30,  199 => 28,  196 => 27,  179 => 25,  171 => 24,  154 => 23,  148 => 20,  144 => 19,  140 => 18,  135 => 16,  131 => 14,  123 => 12,  121 => 11,  112 => 10,  99 => 9,  85 => 6,  83 => 5,  78 => 4,  65 => 3,  36 => 1,);
  671.     }
  672.     public function getSourceContext()
  673.     {
  674.         return new Source("{% extends 'SaloonPreview/grid.html.twig' %}
  675. {% block navbar %}
  676.     {{ parent() }}
  677.     {% set excludeRecommendationProfileIds = [] %}
  678.     {% include 'Recommendations/_profile_recommendations.html.twig' %}
  679. {% endblock %}
  680. {% block mainContainer %}
  681.     <h5 alt=\"{{ saloon.seo ? saloon.seo.phone : '' }}\">{{ saloon.name|trans }} {{ rating }}&#9733;
  682.         {% if saloon.active %}
  683.             <small><a href=\"tel:{{ saloon.phoneNumber }}\">{{ saloon.phoneNumber }}</a></small>
  684.         {% endif %}
  685.     </h5>
  686.     <p>{{ saloon.address|trans }}</p>
  687.     <dl>
  688.         <dt>{% trans %}Город{% endtrans %}</dt>
  689.         <dd>{{ saloon.city.name|trans }}</dd>
  690.         <dt>{% trans %}Метро{% endtrans %}</dt>
  691.         <dd>
  692.             {% for station in saloon.stationsSortedByPrimary %}
  693.                 {% if loop.first %}<strong>{{ station.name|trans }} *</strong>
  694.                 {% else %}{{ station.name|trans }}{% endif %}<br/>
  695.             {% endfor %}
  696.         </dd>
  697.         <dt>{% trans %}Район{% endtrans %}</dt>
  698.         <dd>
  699.             {% for station in saloon.stationsSortedByPrimary %}
  700.                 {% set stationDistrict = station.district %}
  701.                 {% if stationDistrict %}
  702.                     {% set districtCounty = stationDistrict.county %}
  703.                     {% if districtCounty %}
  704.                         {{ districtCounty.name|trans }}
  705.                     {% endif %}
  706.                     {{ stationDistrict.name|trans }}<br/>
  707.                 {% endif %}
  708.             {% endfor %}
  709.         </dd>
  710.         {% if saloon.active
  711.             and feature('extended_profile_form')
  712.             and saloon.messengers
  713.             and saloon.messengers.hasTelegram
  714.             and saloon.messengers.telegramUsername is not empty %}
  715.             <dt><strong>{% trans %}Телеграм{% endtrans %}</strong></dt>
  716.             <dd><a href=\"https://t.me/{{ saloon.messengers.telegramUsername }}\"
  717.                    target=\"_blank\" rel=\"nofollow noopener\">
  718.                     @{{ saloon.messengers.telegramUsername }}
  719.                 </a></dd>
  720.         {% endif %}
  721.         {% if saloon.active
  722.             and feature('extra_category_with_max')
  723.             and saloon.messengers
  724.             and saloon.messengers.hasMax
  725.             and saloon.messengers.maxUrl is not empty %}
  726.             <dt><strong>MAX</strong></dt>
  727.             <dd><a href=\"{{ saloon.messengers.maxUrl }}\"
  728.                    target=\"_blank\" rel=\"nofollow noopener\">MAX</a></dd>
  729.         {% endif %}
  730.     </dl>
  731.     <p>{{ saloon.description|trans }}</p>
  732.     {% if feature('extended_profile_form') %}
  733.         <h6>{% trans %}Предпочтения{% endtrans %}</h6>
  734.         {% for group, servicesGroup in services %}
  735.             <p><strong>{{ group|service_group|trans({}, 'service_groups') }}</strong></p>
  736.             <ul>
  737.                 {% for service in servicesGroup %}
  738.                     {% set providedService = saloon.providedService(service) %}
  739.                     <li class=\"{% if providedService %}text-success{% else %}text-danger{% endif %}\">
  740.                         <a href=\"{{ path('profile_list.list_by_provided_service', {'city': saloon.city.uriIdentity, 'service': service.uriIdentity}) }}\">{{ service.name|trans }}</a>
  741.                     </li>
  742.                     {% if providedService %}
  743.                         {{ providedService.condition|provided_service_condition|trans({},'service_conditions') }}{% if providedService.condition == 3 %}, цена:{{ providedService.extraCharge }}{% endif %}
  744.                     {% endif %}
  745.                 {% endfor %}
  746.             </ul>
  747.         {% endfor %}
  748.     {% endif %}
  749.     {% if feature('extended_profile_form') %}
  750.         <div>
  751.             {% if saloon.expressPricing %}
  752.                 <b>Экспресс:</b>
  753.                 {% if saloon.expressPricing.provided %}
  754.                     Да, стоимость{{ saloon.expressPricing.price }}
  755.                 {% else %}
  756.                     Нет
  757.                 {% endif %}
  758.             {% endif %}
  759.         </div>
  760.         <div>
  761.             {% if saloon.clientTypes %}
  762.                 <b>Услуги для:</b>
  763.                 {% for clientType in saloon.clientTypes %}
  764.                     {{ clientType|client_type|trans({}, 'client_types') }}<br>
  765.                 {% endfor %}
  766.             {% endif %}
  767.         </div>
  768.         <div>
  769.             {% if saloon.messengers %}
  770.                 <b>Мессенджеры</b><br>
  771.                 <b>Telegram</b> {{ saloon.messengers.telegram ? 'Да' : 'Нет' }}
  772.                 <b>WhatsApp</b> {{ saloon.messengers.whatsApp ? 'Да' : 'Нет' }}
  773.                 {% if feature('extra_category_with_max') %}
  774.                     <b>MAX</b> {{ saloon.messengers.max ? 'Да' : 'Нет' }}
  775.                 {% endif %}
  776.             {% endif %}
  777.         </div>
  778.     {% endif %}
  779.     <div>
  780.         <b>Отвечаю на:</b>
  781.         {% for answeringTo in saloon.phoneCallRestrictions.answeringTo %}
  782.             {{ answeringTo|answering_to|trans({}, 'phone_call_restrictions') }}<br>
  783.         {% endfor %}
  784.     </div>
  785.     {% if not saloon.deleted %}
  786.         <img src=\"{{ saloon.thumbnail ? asset(saloon.thumbnail.path, 'saloon_media_thumb') : '' }}\" width=\"100\"
  787.              alt=\"{{ saloon.seo ? saloon.seo.phone : '' }}\"/>
  788.         {% for photo in saloon.photos %}
  789.             <img src=\"{{ asset(photo.path, 'saloon_media') }}\"/>
  790.         {% endfor %}
  791.         {% if feature('extended_profile_form') %}
  792.             {% for video in saloon.videos %}
  793.                 <video width=\"320\" height=\"240\" controls
  794.                        poster=\"{{ responsive_asset(video.previewPath, 'saloon_media_video', \"fullsize\", \"jpg\") }}\">
  795.                     <source src=\"{{ asset(video.path, 'saloon_media_video') }}\">
  796.                 </video>
  797.             {% endfor %}
  798.         {% endif %}
  799.     {% else %}
  800.         Фото-заглушка
  801.     {% endif %}
  802.     {% include 'SaloonPreview/_profiles.html.twig' with {
  803.         saloon: saloon,
  804.         profiles: saloon_profiles,
  805.         total_count: saloon_profiles_total_count,
  806.         per_page: saloon_profiles_per_page,
  807.         rotation_offset: saloon_profiles_rotation_offset,
  808.     } %}
  809.     <h6>{% trans %}Отзывы{% endtrans %}</h6>
  810.     <div id=\"comments\">
  811.         {% for comment in saloon.comments %}
  812.             {% include 'SaloonPreview/comment.html.twig' %}
  813.         {% else %}
  814.             <p>{% trans %}Отзывов нет{% endtrans %}</p>
  815.         {% endfor %}
  816.     </div>
  817.     <div id=\"commentFormContainer\">
  818.     </div>
  819.     <div id=\"recaptcha-container\"></div>
  820.     <script type=\"text/javascript\">
  821.         var onloadCallback = function () {
  822.             grecaptcha.render('recaptcha-container', {
  823.                 'sitekey': '{{ ewz_recaptcha_site_key }}'
  824.             });
  825.         };
  826.     </script>
  827.     <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
  828.     <script src=\"{{ asset('ajax.js', 'js_script') }}\"></script>
  829.     <script type=\"text/javascript\">
  830.         document.addEventListener('DOMContentLoaded', function () {
  831.             ajax({
  832.                 url: '{{ path('saloon.comment.comment_form', {saloon: saloon.id}) }}',
  833.                 callback: function (response) {
  834.                     // console.log(response);
  835.                     if ('' !== response) {
  836.                         document.querySelector('#commentFormContainer').innerHTML = response;
  837.                         setCommentFormListeners();
  838.                     }
  839.                 },
  840.                 dataType: 'json',
  841.                 responseType: 'text/html',
  842.             });
  843.             function setCommentFormListeners() {
  844.                 const formName = 'comment_form';
  845.                 {# console.log(document.querySelector('input[name=\"{{ comment_form.mark.vars.full_name }}\"]:checked').value); #}
  846.                 document.querySelector('#send_comment').addEventListener('click', function () {
  847.                     ajax({
  848.                         url: '{{ path('saloon.comment.create', {saloon: saloon.id}) }}',
  849.                         method: '',
  850.                         data: {
  851.                             'g-recaptcha-response': grecaptcha.getResponse(),
  852.                             'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
  853.                             'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
  854.                             'text': document.querySelector(`#\${formName}_text`).value,
  855.                         },
  856.                         callback: function (response) {
  857.                             if (response) {
  858.                                 if (response.success) {
  859.                                     //document.querySelector(`#{formName}`).style.display = 'none';
  860.                                     //document.querySelector('#send_comment').style.display = 'none';
  861.                                     document.querySelector(`form[name=\"\${formName}\"]`).reset();
  862.                                     grecaptcha.reset();
  863.                                     let template =
  864.                                         '<div>' +
  865.                                         (response.comment.nickname ?
  866.                                             '<span class=\"author\">' +
  867.                                             '<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
  868.                                             '<span class=\"name\">#nickname</span>' +
  869.                                             '</span>' : '') +
  870.                                         '<span class=\"date\">#createdAt</span>' +
  871.                                         '<span>#text</span>' +
  872.                                         '</div>'
  873.                                     ;
  874.                                     response.comment.createdAt = new Date(response.comment.createdAt * 1000);
  875.                                     for (let k in response.comment) {
  876.                                         template = template.replace('#' + k, response.comment[k]);
  877.                                     }
  878.                                     document.querySelector('#comments').innerHTML += template;
  879.                                     // console.log(template);
  880.                                     // document.querySelector('#comments').innerHTML += response.html;
  881.                                 } else {
  882.                                     alert(response.error);
  883.                                 }
  884.                             }
  885.                         },
  886.                         dataType: 'json',
  887.                         responseType: 'json',
  888.                     });
  889.                 });
  890.             }
  891.         });
  892.     </script>
  893. {% endblock %}
  894. ""SaloonPreview/page.html.twig""/app/templates/SaloonPreview/page.html.twig");
  895.     }
  896. }