var/cache/review/twig/ef/efc6100fe9f0adb02670caaea3a8e14c.php line 54

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. /* ProfilePreview/page.html.twig */
  14. class __TwigTemplate_02c692a9d9a255ad8898b14b594b5511 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.             'title' => [$this'block_title'],
  24.             'metaDescription' => [$this'block_metaDescription'],
  25.             'navbar' => [$this'block_navbar'],
  26.             'mainContainer' => [$this'block_mainContainer'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "ProfilePreview/grid.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  38.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfilePreview/page.html.twig"));
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfilePreview/page.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfilePreview/page.html.twig"));
  43.         $this->parent $this->loadTemplate("ProfilePreview/grid.html.twig""ProfilePreview/page.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 3
  53.     public function block_title($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  57.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         echo twig_escape_filter($this->env$this->extensions['App\Twig\SeoExtension']->metaTitle(), "html"nulltrue);
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         
  68.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  69.     }
  70.     // line 5
  71.     public function block_metaDescription($context, array $blocks = [])
  72.     {
  73.         $macros $this->macros;
  74.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  75.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  80.         // line 6
  81.         echo "    <meta name=\"description\" content=\"";
  82.         echo twig_escape_filter($this->env$this->extensions['App\Twig\SeoExtension']->metaDescription(), "html"nulltrue);
  83.         echo "\">
  84. ";
  85.         
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  87.         
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  89.         
  90.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  91.     }
  92.     // line 9
  93.     public function block_navbar($context, array $blocks = [])
  94.     {
  95.         $macros $this->macros;
  96.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  97.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  102.         // line 10
  103.         echo "    ";
  104.         $this->displayParentBlock("navbar"$context$blocks);
  105.         echo "
  106.     ";
  107.         // line 11
  108.         $context["excludeRecommendationProfileIds"] = [twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'11$this->source); })()), "id", [], "any"falsefalsefalse11)];
  109.         // line 12
  110.         echo "    ";
  111.         $this->loadTemplate("Recommendations/_profile_recommendations.html.twig""ProfilePreview/page.html.twig"12)->display($context);
  112.         
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  114.         
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  116.         
  117.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  118.     }
  119.     // line 15
  120.     public function block_mainContainer($context, array $blocks = [])
  121.     {
  122.         $macros $this->macros;
  123.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  124.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  126.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  129.         // line 16
  130.         echo "    <div class=\"row\" alt=\"";
  131.         ((twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'16$this->source); })()), "seo", [], "any"falsefalsefalse16)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'16$this->source); })()), "seo", [], "any"falsefalsefalse16), "phone", [], "any"falsefalsefalse16), "html"nulltrue))) : (print ("")));
  132.         echo "\">
  133.         <div class=\"col-3\">
  134.             <div id=\"left_column_metric\">
  135.                 ";
  136.         // line 19
  137.         if (( !twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'19$this->source); })()), "user", [], "any"falsefalsefalse19) || $this->extensions['App\Twig\UserExtension']->isUserCustomer(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'19$this->source); })()), "user", [], "any"falsefalsefalse19)))) {
  138.             // line 20
  139.             echo "                    <div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\"
  140.                             style=\"display: ";
  141.             // line 21
  142.             echo (($this->extensions['App\Twig\UserExtension']->isProfileInFavourites((isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'21$this->source); })()))) ? ("block") : ("none"));
  143.             echo "\">UNLIKE</a></div>
  144.                     <div><a class=\"add-remove-favourite\" data-action=\"add\"
  145.                             style=\"display: ";
  146.             // line 23
  147.             echo (( !$this->extensions['App\Twig\UserExtension']->isProfileInFavourites((isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'23$this->source); })()))) ? ("block") : ("none"));
  148.             echo "\"
  149.                             ";
  150.             // line 24
  151.             if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'24$this->source); })()), "user", [], "any"falsefalsefalse24)) {
  152.                 echo "href=\"javascript:void(0);\"
  153.                             ";
  154.             } else {
  155.                 // line 25
  156.                 echo "href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"";
  157.             }
  158.             echo ">LIKE</a>
  159.                     </div>
  160.                 ";
  161.         }
  162.         // line 28
  163.         echo "                <div class=\"row\">
  164.                     ";
  165.         // line 29
  166.         if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'29$this->source); })()), "isApproved", [], "any"falsefalsefalse29)) {
  167.             echo " <b style=\"color:green;\">APPROVED</b><br/> ";
  168.         }
  169.         // line 30
  170.         echo "                    ";
  171.         if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'30$this->source); })()), "deleted", [], "any"falsefalsefalse30)) {
  172.             // line 31
  173.             echo "                        ";
  174.             if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'31$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse31)) {
  175.                 // line 32
  176.                 echo "                            <img src=\"";
  177.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/img/red-circle.png"), "html"nulltrue);
  178.                 echo "\"
  179.                                  alt=\"";
  180.                 // line 33
  181.                 ((twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'33$this->source); })()), "seo", [], "any"falsefalsefalse33)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'33$this->source); })()), "seo", [], "any"falsefalsefalse33), "phone", [], "any"falsefalsefalse33), "html"nulltrue))) : (print ("")));
  182.                 echo "\" width=\"150\">
  183.                         ";
  184.             } else {
  185.                 // line 35
  186.                 echo "                            ";
  187.                 $context["photo"] = $this->extensions['App\Twig\ProfileAvatarExtension']->profileAvatar((isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'35$this->source); })()));
  188.                 // line 36
  189.                 echo "                            ";
  190.                 if ((isset($context["photo"]) || array_key_exists("photo"$context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.'36$this->source); })())) {
  191.                     // line 37
  192.                     echo "                                <img src=\"";
  193.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source, (isset($context["photo"]) || array_key_exists("photo"$context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.'37$this->source); })()), "path", [], "any"falsefalsefalse37), (((twig_get_attribute($this->env$this->source, (isset($context["photo"]) || array_key_exists("photo"$context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.'37$this->source); })()), "type", [], "any"falsefalsefalse37) == "photo")) ? ("profile_media") : ("profile_media_avatar"))), "html"nulltrue);
  194.                     echo "\"
  195.                                      alt=\"";
  196.                     // line 38
  197.                     ((twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'38$this->source); })()), "seo", [], "any"falsefalsefalse38)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'38$this->source); })()), "seo", [], "any"falsefalsefalse38), "phone", [], "any"falsefalsefalse38), "html"nulltrue))) : (print ("")));
  198.                     echo "\" width=\"150\">
  199.                             ";
  200.                 }
  201.                 // line 40
  202.                 echo "                        ";
  203.             }
  204.             // line 41
  205.             echo "                    ";
  206.         } else {
  207.             // line 42
  208.             echo "                        Фото-заглушка
  209.                     ";
  210.         }
  211.         // line 44
  212.         echo "                </div>
  213.                 ";
  214.         // line 45
  215.         if (((false == twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'45$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse45)) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'45$this->source); })()), "photos", [], "any"falsefalsefalse45)) > 0))) {
  216.             // line 46
  217.             echo "                    <div class=\"row\">
  218.                         ";
  219.             // line 47
  220.             if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'47$this->source); })()), "deleted", [], "any"falsefalsefalse47)) {
  221.                 // line 48
  222.                 echo "                            ";
  223.                 $context['_parent'] = $context;
  224.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'48$this->source); })()), "photos", [], "any"falsefalsefalse48));
  225.                 foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
  226.                     // line 49
  227.                     echo "                                <div class=\"col-4\">
  228.                                     <img src=\"";
  229.                     // line 50
  230.                     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"falsefalsefalse50), "profile_media"), "html"nulltrue);
  231.                     echo "\" alt=\"\" width=\"150\">
  232.                                 </div>
  233.                             ";
  234.                 }
  235.                 $_parent $context['_parent'];
  236.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
  237.                 $context array_intersect_key($context$_parent) + $_parent;
  238.                 // line 53
  239.                 echo "                        ";
  240.             }
  241.             // line 54
  242.             echo "                    </div>
  243.                 ";
  244.         }
  245.         // line 56
  246.         echo "                ";
  247.         if (((false == twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'56$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse56)) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'56$this->source); })()), "selfies", [], "any"falsefalsefalse56)) > 0))) {
  248.             // line 57
  249.             echo "                    <div class=\"row\">
  250.                         ";
  251.             // line 58
  252.             if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'58$this->source); })()), "deleted", [], "any"falsefalsefalse58)) {
  253.                 // line 59
  254.                 echo "                            ";
  255.                 $context['_parent'] = $context;
  256.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'59$this->source); })()), "selfies", [], "any"falsefalsefalse59));
  257.                 foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
  258.                     // line 60
  259.                     echo "                                ";
  260.                     if ((twig_get_attribute($this->env$this->source$context["photo"], "main", [], "any"falsefalsefalse60) == false)) {
  261.                         // line 61
  262.                         echo "                                    <div class=\"col-4\">
  263.                                         <img src=\"";
  264.                         // line 62
  265.                         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"falsefalsefalse62), "profile_media_selfie"), "html"nulltrue);
  266.                         echo "\" alt=\"\" width=\"150\">
  267.                                     </div>
  268.                                 ";
  269.                     }
  270.                     // line 65
  271.                     echo "                            ";
  272.                 }
  273.                 $_parent $context['_parent'];
  274.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
  275.                 $context array_intersect_key($context$_parent) + $_parent;
  276.                 // line 66
  277.                 echo "                        ";
  278.             }
  279.             // line 67
  280.             echo "                    </div>
  281.                 ";
  282.         }
  283.         // line 69
  284.         echo "                ";
  285.         if (((false == twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'69$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse69)) &&  !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'69$this->source); })()), "deleted", [], "any"falsefalsefalse69))) {
  286.             // line 70
  287.             echo "                    <div class=\"row\">
  288.                         ";
  289.             // line 71
  290.             $context['_parent'] = $context;
  291.             $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'71$this->source); })()), "confirmedVideos", [], "any"falsefalsefalse71), function ($__video__) use ($context$macros) { $context["video"] = $__video__; return twig_get_attribute($this->env$this->source$context["video"], "previewPath", [], "any"falsefalsefalse71); }));
  292.             foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  293.                 // line 72
  294.                 echo "                            <div class=\"col-4\">
  295.                                 <video width=\"100%\" controls
  296.                                        poster=\"";
  297.                 // line 74
  298.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source$context["video"], "previewPath", [], "any"falsefalsefalse74), "profile_media""fullsize"), "html"nulltrue);
  299.                 echo "\">
  300.                                     <source src=\"";
  301.                 // line 75
  302.                 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"falsefalsefalse75), "profile_media""fullsize"), "html"nulltrue);
  303.                 echo "\" type=\"video/mp4\">
  304.                                     Your browser does not support the video tag.
  305.                                 </video>
  306.                             </div>
  307.                         ";
  308.             }
  309.             $_parent $context['_parent'];
  310.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  311.             $context array_intersect_key($context$_parent) + $_parent;
  312.             // line 80
  313.             echo "                    </div>
  314.                 ";
  315.         }
  316.         // line 82
  317.         echo "            </div>
  318.         </div>
  319.         <div class=\"col-9\">
  320.             <div id=\"center_column_metric\">
  321.                 <h5>";
  322.         // line 86
  323.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'86$this->source); })()), "name", [], "any"falsefalsefalse86)), "html"nulltrue);
  324.         echo " ";
  325.         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.'86$this->source); })()), "html"nulltrue);
  326.         echo "&#9733;
  327.                     ";
  328.         // line 87
  329.         if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'87$this->source); })()), "deleted", [], "any"falsefalsefalse87)) {
  330.             // line 88
  331.             echo "                        ";
  332.             if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'88$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse88)) {
  333.                 // line 89
  334.                 echo "                            <h3>Анкета отклонена модератором</h3>
  335.                         ";
  336.             } else {
  337.                 // line 91
  338.                 echo "                            ";
  339.                 if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'91$this->source); })()), "active", [], "any"falsefalsefalse91)) {
  340.                     // line 92
  341.                     echo "                                <small><a href=\"tel:";
  342.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'92$this->source); })()), "phoneNumber", [], "any"falsefalsefalse92), "html"nulltrue);
  343.                     echo "\">";
  344.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'92$this->source); })()), "phoneNumber", [], "any"falsefalsefalse92), "html"nulltrue);
  345.                     echo "</a></small>
  346.                             ";
  347.                 }
  348.                 // line 94
  349.                 echo "                        ";
  350.             }
  351.             // line 95
  352.             echo "                    ";
  353.         } else {
  354.             // line 96
  355.             echo "                        Заглушка телефона
  356.                     ";
  357.         }
  358.         // line 98
  359.         echo "                </h5>
  360.                 <dl>
  361.                     <dt>";
  362.         // line 100
  363.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Город", [], "messages");
  364.         echo "</dt>
  365.                     <dd>";
  366.         // line 101
  367.         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["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'101$this->source); })()), "city", [], "any"falsefalsefalse101), "name", [], "any"falsefalsefalse101)), "html"nulltrue);
  368.         echo "</dd>
  369.                     ";
  370.         // line 102
  371.         if ((isset($context["profile_saloon"]) || array_key_exists("profile_saloon"$context) ? $context["profile_saloon"] : (function () { throw new RuntimeError('Variable "profile_saloon" does not exist.'102$this->source); })())) {
  372.             // line 103
  373.             echo "                        <dt>";
  374.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Салон", [], "messages");
  375.             echo "</dt>
  376.                         <dd>
  377.                             <a href=\"";
  378.             // line 105
  379.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("saloon_preview.page", ["city" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile_saloon"]) || array_key_exists("profile_saloon"$context) ? $context["profile_saloon"] : (function () { throw new RuntimeError('Variable "profile_saloon" does not exist.'105$this->source); })()), "city", [], "any"falsefalsefalse105), "uriIdentity", [], "any"falsefalsefalse105), "saloon" => twig_get_attribute($this->env$this->source, (isset($context["profile_saloon"]) || array_key_exists("profile_saloon"$context) ? $context["profile_saloon"] : (function () { throw new RuntimeError('Variable "profile_saloon" does not exist.'105$this->source); })()), "uriIdentity", [], "any"falsefalsefalse105)]), "html"nulltrue);
  380.             echo "\">
  381.                                 ";
  382.             // line 106
  383.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["profile_saloon"]) || array_key_exists("profile_saloon"$context) ? $context["profile_saloon"] : (function () { throw new RuntimeError('Variable "profile_saloon" does not exist.'106$this->source); })()), "name", [], "any"falsefalsefalse106)), "html"nulltrue);
  384.             echo "
  385.                             </a>
  386.                         </dd>
  387.                     ";
  388.         }
  389.         // line 110
  390.         echo "                    <dt>";
  391.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Метро", [], "messages");
  392.         echo "</dt>
  393.                     <dd>
  394.                         ";
  395.         // line 112
  396.         $context['_parent'] = $context;
  397.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'112$this->source); })()), "stationsSortedByPrimary", [], "any"falsefalsefalse112));
  398.         $context['loop'] = [
  399.           'parent' => $context['_parent'],
  400.           'index0' => 0,
  401.           'index'  => 1,
  402.           'first'  => true,
  403.         ];
  404.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  405.             $length count($context['_seq']);
  406.             $context['loop']['revindex0'] = $length 1;
  407.             $context['loop']['revindex'] = $length;
  408.             $context['loop']['length'] = $length;
  409.             $context['loop']['last'] = === $length;
  410.         }
  411.         foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  412.             // line 113
  413.             echo "                            <a href=\"";
  414.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_station", ["city" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'113$this->source); })()), "city", [], "any"falsefalsefalse113), "uriIdentity", [], "any"falsefalsefalse113), "station" => twig_get_attribute($this->env$this->source$context["station"], "uriIdentity", [], "any"falsefalsefalse113)]), "html"nulltrue);
  415.             echo "\">";
  416.             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"falsefalsefalse113)), "html"nulltrue);
  417.             echo " ";
  418.             if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse113)) {
  419.                 echo "*";
  420.             }
  421.             echo "</a>
  422.                             ";
  423.             // line 114
  424.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse114)) {
  425.                 echo ", ";
  426.             }
  427.             // line 115
  428.             echo "                        ";
  429.             ++$context['loop']['index0'];
  430.             ++$context['loop']['index'];
  431.             $context['loop']['first'] = false;
  432.             if (isset($context['loop']['length'])) {
  433.                 --$context['loop']['revindex0'];
  434.                 --$context['loop']['revindex'];
  435.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  436.             }
  437.         }
  438.         $_parent $context['_parent'];
  439.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  440.         $context array_intersect_key($context$_parent) + $_parent;
  441.         // line 116
  442.         echo "                    </dd>
  443.                     <dt>";
  444.         // line 117
  445.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Район", [], "messages");
  446.         echo "</dt>
  447.                     <dd>
  448.                         ";
  449.         // line 119
  450.         $context['_parent'] = $context;
  451.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'119$this->source); })()), "stationsSortedByPrimary", [], "any"falsefalsefalse119));
  452.         foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  453.             // line 120
  454.             echo "                            ";
  455.             $context["stationDistrict"] = twig_get_attribute($this->env$this->source$context["station"], "district", [], "any"falsefalsefalse120);
  456.             // line 121
  457.             echo "                            ";
  458.             if ((isset($context["stationDistrict"]) || array_key_exists("stationDistrict"$context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.'121$this->source); })())) {
  459.                 // line 122
  460.                 echo "                                ";
  461.                 $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.'122$this->source); })()), "county", [], "any"falsefalsefalse122);
  462.                 // line 123
  463.                 echo "                                ";
  464.                 if ((isset($context["districtCounty"]) || array_key_exists("districtCounty"$context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.'123$this->source); })())) {
  465.                     // line 124
  466.                     echo "                                    <a href=\"";
  467.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_county", ["city" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'124$this->source); })()), "city", [], "any"falsefalsefalse124), "uriIdentity", [], "any"falsefalsefalse124), "county" => 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.'124$this->source); })()), "uriIdentity", [], "any"falsefalsefalse124)]), "html"nulltrue);
  468.                     echo "\">";
  469.                     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.'124$this->source); })()), "name", [], "any"falsefalsefalse124)), "html"nulltrue);
  470.                     echo "</a>
  471.                                 ";
  472.                 }
  473.                 // line 126
  474.                 echo "                            ";
  475.             }
  476.             // line 127
  477.             echo "                        ";
  478.         }
  479.         $_parent $context['_parent'];
  480.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  481.         $context array_intersect_key($context$_parent) + $_parent;
  482.         // line 128
  483.         echo "                    </dd>
  484.                     ";
  485.         // line 129
  486.         if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'129$this->source); })()), "deleted", [], "any"falsefalsefalse129)) {
  487.             // line 130
  488.             echo "                        ";
  489.             if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'130$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse130)) {
  490.                 // line 131
  491.                 echo "                            <dt><strong>";
  492.                 echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телефон", [], "messages");
  493.                 echo "</strong></dt>
  494.                             <dd><strong>";
  495.                 // line 132
  496.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'132$this->source); })()), "phoneNumber", [], "any"falsefalsefalse132), "html"nulltrue);
  497.                 echo "</strong></dd>
  498.                             ";
  499.                 // line 133
  500.                 if (((($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form") && twig_get_attribute($this->env$this->source,                 // line 134
  501. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'134$this->source); })()), "messengers", [], "any"falsefalsefalse134)) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 135
  502. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'135$this->source); })()), "messengers", [], "any"falsefalsefalse135), "hasTelegram", [], "any"falsefalsefalse135)) &&  !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 136
  503. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'136$this->source); })()), "messengers", [], "any"falsefalsefalse136), "telegramUsername", [], "any"falsefalsefalse136)))) {
  504.                     // line 137
  505.                     echo "                                <dt>
  506.                                     <strong>";
  507.                     // line 138
  508.                     echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телеграм", [], "messages");
  509.                     echo "</strong> ";
  510.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'138$this->source); })()), "messengers", [], "any"falsefalsefalse138), "hasTelegram", [], "any"falsefalsefalse138), "html"nulltrue);
  511.                     echo "
  512.                                 </dt>
  513.                                 <dd><a href=\"https://t.me/";
  514.                     // line 140
  515.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'140$this->source); })()), "messengers", [], "any"falsefalsefalse140), "telegramUsername", [], "any"falsefalsefalse140), "html"nulltrue);
  516.                     echo "\"
  517.                                        target=\"_blank\" rel=\"nofollow noopener\">
  518.                                         @";
  519.                     // line 142
  520.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'142$this->source); })()), "messengers", [], "any"falsefalsefalse142), "telegramUsername", [], "any"falsefalsefalse142), "html"nulltrue);
  521.                     echo "
  522.                                     </a></dd>
  523.                             ";
  524.                 }
  525.                 // line 145
  526.                 echo "                            ";
  527.                 if (((($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extra_category_with_max") && twig_get_attribute($this->env$this->source,                 // line 146
  528. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'146$this->source); })()), "messengers", [], "any"falsefalsefalse146)) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 147
  529. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'147$this->source); })()), "messengers", [], "any"falsefalsefalse147), "hasMax", [], "any"falsefalsefalse147)) &&  !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 148
  530. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'148$this->source); })()), "messengers", [], "any"falsefalsefalse148), "maxUrl", [], "any"falsefalsefalse148)))) {
  531.                     // line 149
  532.                     echo "                                <dt>
  533.                                     <strong>MAX</strong>
  534.                                 </dt>
  535.                                 <dd><a href=\"";
  536.                     // line 152
  537.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'152$this->source); })()), "messengers", [], "any"falsefalsefalse152), "maxUrl", [], "any"falsefalsefalse152), "html"nulltrue);
  538.                     echo "\"
  539.                                        target=\"_blank\" rel=\"nofollow noopener\">MAX</a></dd>
  540.                             ";
  541.                 }
  542.                 // line 155
  543.                 echo "                        ";
  544.             }
  545.             // line 156
  546.             echo "                    ";
  547.         } else {
  548.             // line 157
  549.             echo "                        Заглушка телефона
  550.                     ";
  551.         }
  552.         // line 159
  553.         echo "                    ";
  554.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extra_category_without_prepayment")) {
  555.             // line 160
  556.             echo "                        ";
  557.             if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'160$this->source); })()), "prepayment", [], "any"falsefalsefalse160)) {
  558.                 // line 161
  559.                 echo "                            <dt>Оплата</dt>
  560.                             <dd>
  561.                                 Предоплата ";
  562.                 // line 163
  563.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'163$this->source); })()), "prepaymentAmount", [], "any"falsefalsefalse163), "html"nulltrue);
  564.                 if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'163$this->source); })()), "prepaymentComment", [], "any"falsefalsefalse163)) {
  565.                     echo ". ";
  566.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'163$this->source); })()), "prepaymentComment", [], "any"falsefalsefalse163), "html"nulltrue);
  567.                 }
  568.                 // line 164
  569.                 echo "                            </dd>
  570.                         ";
  571.             } elseif ((twig_get_attribute($this->env$this->source,             // line 165
  572. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'165$this->source); })()), "prepayment", [], "any"falsefalsefalse165) === false)) {
  573.                 // line 166
  574.                 echo "                            <dt>Оплата</dt>
  575.                             <dd>Без предоплаты</dd>
  576.                         ";
  577.             }
  578.             // line 169
  579.             echo "                    ";
  580.         }
  581.         // line 170
  582.         echo "                    <dt>";
  583.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Возраст", [], "messages");
  584.         echo "</dt>
  585.                     <dd>";
  586.         // line 171
  587.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'171$this->source); })()), "personParameters", [], "any"falsefalsefalse171), "age", [], "any"falsefalsefalse171), "html"nulltrue);
  588.         echo "</dd>
  589.                     <dt>";
  590.         // line 172
  591.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Рост", [], "messages");
  592.         echo "</dt>
  593.                     <dd>";
  594.         // line 173
  595.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'173$this->source); })()), "personParameters", [], "any"falsefalsefalse173), "height", [], "any"falsefalsefalse173), "html"nulltrue);
  596.         echo "</dd>
  597.                     <dt>";
  598.         // line 174
  599.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер груди", [], "messages");
  600.         echo "</dt>
  601.                     <dd>";
  602.         // line 175
  603.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'175$this->source); })()), "personParameters", [], "any"falsefalsefalse175), "breastSize", [], "any"falsefalsefalse175), "html"nulltrue);
  604.         echo "</dd>
  605.                     <dt>";
  606.         // line 176
  607.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Вес", [], "messages");
  608.         echo "</dt>
  609.                     <dd>";
  610.         // line 177
  611.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'177$this->source); })()), "personParameters", [], "any"falsefalsefalse177), "weight", [], "any"falsefalsefalse177), "html"nulltrue);
  612.         echo "</dd>
  613.                     <dt>";
  614.         // line 178
  615.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер одежды", [], "messages");
  616.         echo "</dt>
  617.                     <dd>";
  618.         // line 179
  619.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'179$this->source); })()), "personParameters", [], "any"falsefalsefalse179), "clothSize", [], "any"falsefalsefalse179), "html"nulltrue);
  620.         echo "</dd>
  621.                     <dt>";
  622.         // line 180
  623.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телосложение", [], "messages");
  624.         echo "</dt>
  625.                     <dd>";
  626.         // line 181
  627.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->bodyTypeLabel(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'181$this->source); })()), "personParameters", [], "any"falsefalsefalse181), "bodyType", [], "any"falsefalsefalse181))), "html"nulltrue);
  628.         echo "</dd>
  629.                     <dt>";
  630.         // line 182
  631.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Цвет волос", [], "messages");
  632.         echo "</dt>
  633.                     <dd>";
  634.         // line 183
  635.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->hairColorLabel(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'183$this->source); })()), "personParameters", [], "any"falsefalsefalse183), "hairColor", [], "any"falsefalsefalse183))), "html"nulltrue);
  636.         echo "</dd>
  637.                     <dt>";
  638.         // line 184
  639.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Интимная стрижка", [], "messages");
  640.         echo "</dt>
  641.                     <dd>";
  642.         // line 185
  643.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->privateHaircutLabel(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'185$this->source); })()), "personParameters", [], "any"falsefalsefalse185), "privateHaircut", [], "any"falsefalsefalse185))), "html"nulltrue);
  644.         echo "</dd>
  645.                     <dt>";
  646.         // line 186
  647.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Национальность", [], "messages");
  648.         echo "</dt>
  649.                     <dd>";
  650.         // line 187
  651.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->nationalityLabel(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'187$this->source); })()), "personParameters", [], "any"falsefalsefalse187), "nationality", [], "any"falsefalsefalse187))), "html"nulltrue);
  652.         echo "</dd>
  653.                     <dt>";
  654.         // line 188
  655.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Дата обновления", [], "messages");
  656.         echo "</dt>
  657.                     <dd>";
  658.         // line 189
  659.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'189$this->source); })()), "updatedAt", [], "any"falsefalsefalse189)), "html"nulltrue);
  660.         echo "</dd>
  661.                 </dl>
  662.                 <h6>";
  663.         // line 192
  664.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("О себе", [], "messages");
  665.         echo "</h6>
  666.                 <p>";
  667.         // line 193
  668.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'193$this->source); })()), "description", [], "any"falsefalsefalse193)), "html"nulltrue);
  669.         echo "</p>
  670.                 ";
  671.         // line 195
  672.         $this->loadTemplate("ProfilePreview/_saloon.html.twig""ProfilePreview/page.html.twig"195)->display(twig_array_merge($context, ["saloon" => (isset($context["profile_saloon"]) || array_key_exists("profile_saloon"$context) ? $context["profile_saloon"] : (function () { throw new RuntimeError('Variable "profile_saloon" does not exist.'195$this->source); })())]));
  673.         // line 196
  674.         echo "
  675.                 <h6>";
  676.         // line 197
  677.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Предпочтения", [], "messages");
  678.         echo "</h6>
  679.                 ";
  680.         // line 198
  681.         $context['_parent'] = $context;
  682.         $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'198$this->source); })()), function ($__servicesGroup__$__group__) use ($context$macros) { $context["servicesGroup"] = $__servicesGroup__$context["group"] = $__group__; return ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'198$this->source); })()), "masseur", [], "any"falsefalsefalse198) || !twig_in_filter($context["group"], (isset($context["masseurExcludeServiceGroups"]) || array_key_exists("masseurExcludeServiceGroups"$context) ? $context["masseurExcludeServiceGroups"] : (function () { throw new RuntimeError('Variable "masseurExcludeServiceGroups" does not exist.'198$this->source); })()))); }));
  683.         foreach ($context['_seq'] as $context["group"] => $context["servicesGroup"]) {
  684.             // line 199
  685.             echo "                    <p><strong>";
  686.             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);
  687.             echo "</strong></p>
  688.                     <ul>
  689.                         ";
  690.             // line 201
  691.             $context['_parent'] = $context;
  692.             $context['_seq'] = twig_ensure_traversable($context["servicesGroup"]);
  693.             foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
  694.                 // line 202
  695.                 echo "                            ";
  696.                 $context["providedService"] = twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'202$this->source); })()), "providedService", [$context["service"]], "method"falsefalsefalse202);
  697.                 // line 203
  698.                 echo "                            <li class=\"";
  699.                 if ((isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'203$this->source); })())) {
  700.                     echo "text-success";
  701.                 } else {
  702.                     echo "text-danger";
  703.                 }
  704.                 echo "\">
  705.                                 <a href=\"";
  706.                 // line 204
  707.                 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["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'204$this->source); })()), "city", [], "any"falsefalsefalse204), "uriIdentity", [], "any"falsefalsefalse204), "service" => twig_get_attribute($this->env$this->source$context["service"], "uriIdentity", [], "any"falsefalsefalse204)]), "html"nulltrue);
  708.                 echo "\">";
  709.                 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"falsefalsefalse204)), "html"nulltrue);
  710.                 echo "</a>
  711.                             </li>
  712.                             ";
  713.                 // line 206
  714.                 if ((isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'206$this->source); })())) {
  715.                     // line 207
  716.                     echo "                                ";
  717.                     if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  718.                         // line 208
  719.                         echo "                                    ";
  720.                         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.'208$this->source); })()), "condition", [], "any"falsefalsefalse208)), [], "service_conditions"), "html"nulltrue);
  721.                         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.'208$this->source); })()), "condition", [], "any"falsefalsefalse208) == 3)) {
  722.                             echo ", цена:";
  723.                             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.'208$this->source); })()), "extraCharge", [], "any"falsefalsefalse208), "html"nulltrue);
  724.                         }
  725.                         // line 209
  726.                         echo "                                ";
  727.                     }
  728.                     // line 210
  729.                     echo "                                ";
  730.                     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.'210$this->source); })()), "comment", [], "any"falsefalsefalse210)) {
  731.                         // line 211
  732.                         echo "                                    Комментарий: ";
  733.                         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.'211$this->source); })()), "comment", [], "any"falsefalsefalse211), "html"nulltrue);
  734.                         echo "
  735.                                 ";
  736.                     }
  737.                     // line 213
  738.                     echo "                            ";
  739.                 }
  740.                 // line 214
  741.                 echo "                        ";
  742.             }
  743.             $_parent $context['_parent'];
  744.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
  745.             $context array_intersect_key($context$_parent) + $_parent;
  746.             // line 215
  747.             echo "                    </ul>
  748.                 ";
  749.         }
  750.         $_parent $context['_parent'];
  751.         unset($context['_seq'], $context['_iterated'], $context['group'], $context['servicesGroup'], $context['_parent'], $context['loop']);
  752.         $context array_intersect_key($context$_parent) + $_parent;
  753.         // line 217
  754.         echo "
  755.                 <h6>";
  756.         // line 218
  757.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывы", [], "messages");
  758.         echo "</h6>
  759.                 <div id=\"comments\">
  760.                     ";
  761.         // line 220
  762.         $context['_parent'] = $context;
  763.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'220$this->source); })()), "comments", [], "any"falsefalsefalse220));
  764.         $context['_iterated'] = false;
  765.         $context['loop'] = [
  766.           'parent' => $context['_parent'],
  767.           'index0' => 0,
  768.           'index'  => 1,
  769.           'first'  => true,
  770.         ];
  771.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  772.             $length count($context['_seq']);
  773.             $context['loop']['revindex0'] = $length 1;
  774.             $context['loop']['revindex'] = $length;
  775.             $context['loop']['length'] = $length;
  776.             $context['loop']['last'] = === $length;
  777.         }
  778.         foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
  779.             // line 221
  780.             echo "                        ";
  781.             $this->loadTemplate("ProfilePreview/comment.html.twig""ProfilePreview/page.html.twig"221)->display($context);
  782.             // line 222
  783.             echo "                    ";
  784.             $context['_iterated'] = true;
  785.             ++$context['loop']['index0'];
  786.             ++$context['loop']['index'];
  787.             $context['loop']['first'] = false;
  788.             if (isset($context['loop']['length'])) {
  789.                 --$context['loop']['revindex0'];
  790.                 --$context['loop']['revindex'];
  791.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  792.             }
  793.         }
  794.         if (!$context['_iterated']) {
  795.             // line 223
  796.             echo "                        <p>";
  797.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывов нет", [], "messages");
  798.             echo "</p>
  799.                     ";
  800.         }
  801.         $_parent $context['_parent'];
  802.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
  803.         $context array_intersect_key($context$_parent) + $_parent;
  804.         // line 225
  805.         echo "                </div>
  806.                 <div id=\"commentFormContainer\">
  807.                 </div>
  808.                 <div id=\"recaptcha-container\"></div>
  809.                 ";
  810.         // line 232
  811.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  812.             // line 233
  813.             echo "                    <div>
  814.                         ";
  815.             // line 234
  816.             if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'234$this->source); })()), "expressPricing", [], "any"falsefalsefalse234)) {
  817.                 // line 235
  818.                 echo "                            <b>Экспресс:</b>
  819.                             ";
  820.                 // line 236
  821.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'236$this->source); })()), "expressPricing", [], "any"falsefalsefalse236), "provided", [], "any"falsefalsefalse236)) {
  822.                     // line 237
  823.                     echo "                                Да, стоимость";
  824.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'237$this->source); })()), "expressPricing", [], "any"falsefalsefalse237), "price", [], "any"falsefalsefalse237), "html"nulltrue);
  825.                     echo "
  826.                             ";
  827.                 } else {
  828.                     // line 239
  829.                     echo "                                Нет
  830.                             ";
  831.                 }
  832.                 // line 241
  833.                 echo "                        ";
  834.             }
  835.             // line 242
  836.             echo "                    </div>
  837.                 ";
  838.         }
  839.         // line 244
  840.         echo "
  841.                 ";
  842.         // line 245
  843.         if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'245$this->source); })()), "clientTypes", [], "any"falsefalsefalse245)) {
  844.             // line 246
  845.             echo "                    <div>
  846.                         <b>Услуги для:</b>
  847.                         ";
  848.             // line 248
  849.             $context['_parent'] = $context;
  850.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'248$this->source); })()), "clientTypes", [], "any"falsefalsefalse248));
  851.             foreach ($context['_seq'] as $context["_key"] => $context["clientType"]) {
  852.                 // line 249
  853.                 echo "                            ";
  854.                 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);
  855.                 echo "<br>
  856.                         ";
  857.             }
  858.             $_parent $context['_parent'];
  859.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['clientType'], $context['_parent'], $context['loop']);
  860.             $context array_intersect_key($context$_parent) + $_parent;
  861.             // line 251
  862.             echo "                    </div>
  863.                 ";
  864.         }
  865.         // line 253
  866.         echo "
  867.                 ";
  868.         // line 254
  869.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  870.             // line 255
  871.             echo "                    <div>
  872.                         ";
  873.             // line 256
  874.             if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'256$this->source); })()), "messengers", [], "any"falsefalsefalse256)) {
  875.                 // line 257
  876.                 echo "                            <b>Мессенджеры</b><br>
  877.                             <b>Telegram</b> ";
  878.                 // line 258
  879.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'258$this->source); })()), "messengers", [], "any"falsefalsefalse258), "telegram", [], "any"falsefalsefalse258)) ? ("Да") : ("Нет"));
  880.                 echo "
  881.                             <b>WhatsApp</b> ";
  882.                 // line 259
  883.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'259$this->source); })()), "messengers", [], "any"falsefalsefalse259), "whatsApp", [], "any"falsefalsefalse259)) ? ("Да") : ("Нет"));
  884.                 echo "
  885.                             ";
  886.                 // line 260
  887.                 if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extra_category_with_max")) {
  888.                     // line 261
  889.                     echo "                                <b>MAX</b> ";
  890.                     echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'261$this->source); })()), "messengers", [], "any"falsefalsefalse261), "max", [], "any"falsefalsefalse261)) ? ("Да") : ("Нет"));
  891.                     echo "
  892.                             ";
  893.                 }
  894.                 // line 263
  895.                 echo "                        ";
  896.             }
  897.             // line 264
  898.             echo "                    </div>
  899.                 ";
  900.         }
  901.         // line 266
  902.         echo "
  903.                 ";
  904.         // line 267
  905.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  906.             // line 268
  907.             echo "                    <div>
  908.                         ";
  909.             // line 269
  910.             if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'269$this->source); })()), "carPricing", [], "any"falsefalsefalse269)) {
  911.                 // line 270
  912.                 echo "                            <b>В машине:</b> ";
  913.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'270$this->source); })()), "carPricing", [], "any"falsefalsefalse270), "provided", [], "any"falsefalsefalse270)) ? ("Да") : ("Нет"));
  914.                 echo "
  915.                         ";
  916.             }
  917.             // line 272
  918.             echo "                    </div>
  919.                 ";
  920.         }
  921.         // line 274
  922.         echo "
  923.                 ";
  924.         // line 275
  925.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  926.             // line 276
  927.             echo "                    <div>
  928.                         ";
  929.             // line 277
  930.             if ( !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'277$this->source); })()), "personParameters", [], "any"falsefalsefalse277), "tattoo", [], "any"falsefalsefalse277))) {
  931.                 // line 278
  932.                 echo "                            <b>Тату:</b> ";
  933.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'278$this->source); })()), "personParameters", [], "any"falsefalsefalse278), "tattoo", [], "any"falsefalsefalse278)) ? ("Да") : ("Нет"));
  934.                 echo "
  935.                         ";
  936.             }
  937.             // line 280
  938.             echo "                    </div>
  939.                     <div>
  940.                         ";
  941.             // line 282
  942.             if ( !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'282$this->source); })()), "personParameters", [], "any"falsefalsefalse282), "piercing", [], "any"falsefalsefalse282))) {
  943.                 // line 283
  944.                 echo "                            <b>Пирсинг:</b> ";
  945.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'283$this->source); })()), "personParameters", [], "any"falsefalsefalse283), "piercing", [], "any"falsefalsefalse283)) ? ("Да") : ("Нет"));
  946.                 echo "
  947.                         ";
  948.             }
  949.             // line 285
  950.             echo "                    </div>
  951.                 ";
  952.         }
  953.         // line 287
  954.         echo "                <div>
  955.                     <b>Отвечаю на:</b>
  956.                     ";
  957.         // line 289
  958.         $context['_parent'] = $context;
  959.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'289$this->source); })()), "phoneCallRestrictions", [], "any"falsefalsefalse289), "answeringTo", [], "any"falsefalsefalse289));
  960.         foreach ($context['_seq'] as $context["_key"] => $context["answeringTo"]) {
  961.             // line 290
  962.             echo "                        ";
  963.             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);
  964.             echo "<br>
  965.                     ";
  966.         }
  967.         $_parent $context['_parent'];
  968.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['answeringTo'], $context['_parent'], $context['loop']);
  969.         $context array_intersect_key($context$_parent) + $_parent;
  970.         // line 292
  971.         echo "                </div>
  972.             </div>
  973.         </div>
  974.         ";
  975.         // line 296
  976.         $this->loadTemplate("ProfilePreview/nearest_profiles.html.twig""ProfilePreview/page.html.twig"296)->display($context);
  977.         // line 297
  978.         echo "
  979.         <div id=\"recentlyViewedProfiles\"></div>
  980.     </div>
  981.     <script type=\"text/javascript\">
  982.         var onloadCallback = function () {
  983.             grecaptcha.render('recaptcha-container', {
  984.                 'sitekey': '";
  985.         // line 304
  986.         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.'304$this->source); })()), "html"nulltrue);
  987.         echo "'
  988.             });
  989.         };
  990.     </script>
  991.     <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
  992.     <script src=\"";
  993.         // line 309
  994.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("ajax.js""js_script"), "html"nulltrue);
  995.         echo "\"></script>
  996.     <script src=\"";
  997.         // line 310
  998.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("local-storage.js""js_script"), "html"nulltrue);
  999.         echo "\"></script>
  1000.     <script src=\"";
  1001.         // line 311
  1002.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recommendations.js""js_script"), "html"nulltrue);
  1003.         echo "\"></script>
  1004.     <script src=\"";
  1005.         // line 312
  1006.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bot-helper.js""js_script"), "html"nulltrue);
  1007.         echo "\"></script>
  1008.     <script src=\"";
  1009.         // line 313
  1010.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recently-viewed.js""js_script"), "html"nulltrue);
  1011.         echo "\"></script>
  1012.     <script type=\"text/javascript\">
  1013.         document.addEventListener('DOMContentLoaded', function () {
  1014.             ajax({
  1015.                 url: '";
  1016.         // line 317
  1017.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_ctr.increase_views");
  1018.         echo "',
  1019.                 data: {
  1020.                     profile: ";
  1021.         // line 319
  1022.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'319$this->source); })()), "id", [], "any"falsefalsefalse319), "html"nulltrue);
  1023.         echo ",
  1024.                 },
  1025.                 callback: function () {},
  1026.                 dataType: 'json',
  1027.                 responseType: 'json',
  1028.             });
  1029.             profileRecommendations.addViewedProfile(";
  1030.         // line 326
  1031.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'326$this->source); })()), "id", [], "any"falsefalsefalse326), "html"nulltrue);
  1032.         echo ");
  1033.             profileBotHelper.addViewedProfile(";
  1034.         // line 327
  1035.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'327$this->source); })()), "id", [], "any"falsefalsefalse327), "html"nulltrue);
  1036.         echo ");
  1037.             //достаем список, пока без учета текущей страницы, для текущего аякс запроса
  1038.             const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
  1039.             recentlyViewed.addViewedProfile(";
  1040.         // line 330
  1041.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'330$this->source); })()), "id", [], "any"falsefalsefalse330), "html"nulltrue);
  1042.         echo ");
  1043.             //recently viewed profiles
  1044.             ajax({
  1045.                 url: '";
  1046.         // line 334
  1047.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("recent_profiles.recently_viewed.list");
  1048.         echo "',
  1049.                 data: {
  1050.                     recently_viewed_profiles: recentlyViewedProfiles,
  1051.                 },
  1052.                 callback: function (response) {
  1053.                     if (!response)
  1054.                         return;
  1055.                     // console.log(response);
  1056.                     document.querySelector('#recentlyViewedProfiles').innerHTML = response;
  1057.                 },
  1058.                 dataType: 'json',
  1059.                 responseType: 'text/html',
  1060.             });
  1061.             ajax({
  1062.                 url: '";
  1063.         // line 349
  1064.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile.comment.comment_form", ["profile" => twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'349$this->source); })()), "id", [], "any"falsefalsefalse349)]), "html"nulltrue);
  1065.         echo "',
  1066.                 callback: function (response) {
  1067.                     // console.log(response);
  1068.                     if ('' !== response) {
  1069.                         document.querySelector('#commentFormContainer').innerHTML = response;
  1070.                         setCommentFormListeners();
  1071.                     }
  1072.                 },
  1073.                 dataType: 'json',
  1074.                 responseType: 'text/html',
  1075.             });
  1076.             function setCommentFormListeners() {
  1077.                 const formName = 'comment_form';
  1078.                 document.querySelector('#send_comment').addEventListener('click', function () {
  1079.                     ajax({
  1080.                         url: '";
  1081.         // line 366
  1082.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile.comment.create", ["profile" => twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'366$this->source); })()), "id", [], "any"falsefalsefalse366)]), "html"nulltrue);
  1083.         echo "',
  1084.                         method: '',
  1085.                         data: {
  1086.                             'g-recaptcha-response': grecaptcha.getResponse(),
  1087.                             'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
  1088.                             'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
  1089.                             'text': document.querySelector(`#\${formName}_text`).value,
  1090.                         },
  1091.                         callback: function (response) {
  1092.                             if (response) {
  1093.                                 if (response.success) {
  1094.                                     //document.querySelector(`#{formName}`).style.display = 'none';
  1095.                                     //document.querySelector('#send_comment').style.display = 'none';
  1096.                                     document.querySelector(`form[name=\"\${formName}\"]`).reset();
  1097.                                     grecaptcha.reset();
  1098.                                     let template =
  1099.                                         '<div>' +
  1100.                                         (response.comment.nickname ?
  1101.                                             '<span class=\"author\">' +
  1102.                                             '<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
  1103.                                             '<span class=\"name\">#nickname</span>' +
  1104.                                             '</span>' : '') +
  1105.                                         '<span class=\"date\">#createdAt</span>' +
  1106.                                         '<span>#text</span>' +
  1107.                                         '</div>'
  1108.                                     ;
  1109.                                     response.comment.createdAt = new Date(response.comment.createdAt * 1000);
  1110.                                     for (let k in response.comment) {
  1111.                                         template = template.replace('#' + k, response.comment[k]);
  1112.                                     }
  1113.                                     document.querySelector('#comments').innerHTML += template;
  1114.                                     // console.log(template);
  1115.                                     // document.querySelector('#comments').innerHTML += response.html;
  1116.                                 } else {
  1117.                                     alert(response.error);
  1118.                                 }
  1119.                             }
  1120.                         },
  1121.                         dataType: 'json',
  1122.                         responseType: 'json',
  1123.                     });
  1124.                 });
  1125.             }
  1126.             //LIKE/UNLIKE
  1127.             document.querySelector('#left_column_metric').addEventListener('click', function (e) {
  1128.                 if (false == e.target.classList.contains('add-remove-favourite'))
  1129.                     return;
  1130.                 addRemoveFavourite(e.target.dataset['action'] == 'add');
  1131.             });
  1132.             let addRemoveFavourite = function (add) {
  1133.                 let btn = document.querySelector('.add-remove-favourite[data-action=\"' + (add ? 'add' : 'remove') + '\"]');
  1134.                 let reverseBtn = document.querySelector('.add-remove-favourite[data-action=\"' + (!add ? 'add' : 'remove') + '\"]');
  1135.                 btn.style.display = 'none';
  1136.                 ajax({
  1137.                     url: add ? '";
  1138.         // line 424
  1139.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account.favourites.add", ["profile" => twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'424$this->source); })()), "id", [], "any"falsefalsefalse424)]), "html"nulltrue);
  1140.         echo "' : '";
  1141.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account.favourites.remove", ["profile" => twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'424$this->source); })()), "id", [], "any"falsefalsefalse424)]), "html"nulltrue);
  1142.         echo "',
  1143.                     callback: function (response) {
  1144.                         if (response) {
  1145.                             if (response.success) {
  1146.                                 reverseBtn.style.display = 'block';
  1147.                             } else {
  1148.                                 btn.style.display = 'block';
  1149.                                 alert(response.error);
  1150.                             }
  1151.                         }
  1152.                     },
  1153.                     dataType: 'json',
  1154.                     responseType: 'json',
  1155.                 });
  1156.             };
  1157.             //LIKE/UNLIKE end
  1158.         });
  1159.     </script>
  1160. ";
  1161.         
  1162.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1163.         
  1164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1165.         
  1166.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  1167.     }
  1168.     /**
  1169.      * @codeCoverageIgnore
  1170.      */
  1171.     public function getTemplateName()
  1172.     {
  1173.         return "ProfilePreview/page.html.twig";
  1174.     }
  1175.     /**
  1176.      * @codeCoverageIgnore
  1177.      */
  1178.     public function isTraitable()
  1179.     {
  1180.         return false;
  1181.     }
  1182.     /**
  1183.      * @codeCoverageIgnore
  1184.      */
  1185.     public function getDebugInfo()
  1186.     {
  1187.         return array (  1193 => 424,  1132 => 366,  1112 => 349,  1094 => 334,  1087 => 330,  1081 => 327,  1077 => 326,  1067 => 319,  1062 => 317,  1055 => 313,  1051 => 312,  1047 => 311,  1043 => 310,  1039 => 309,  1031 => 304,  1022 => 297,  1020 => 296,  1014 => 292,  1005 => 290,  1001 => 289,  997 => 287,  993 => 285,  987 => 283,  985 => 282,  981 => 280,  975 => 278,  973 => 277,  970 => 276,  968 => 275,  965 => 274,  961 => 272,  955 => 270,  953 => 269,  950 => 268,  948 => 267,  945 => 266,  941 => 264,  938 => 263,  932 => 261,  930 => 260,  926 => 259,  922 => 258,  919 => 257,  917 => 256,  914 => 255,  912 => 254,  909 => 253,  905 => 251,  896 => 249,  892 => 248,  888 => 246,  886 => 245,  883 => 244,  879 => 242,  876 => 241,  872 => 239,  866 => 237,  864 => 236,  861 => 235,  859 => 234,  856 => 233,  854 => 232,  845 => 225,  836 => 223,  823 => 222,  820 => 221,  802 => 220,  797 => 218,  794 => 217,  787 => 215,  781 => 214,  778 => 213,  772 => 211,  769 => 210,  766 => 209,  759 => 208,  756 => 207,  754 => 206,  747 => 204,  738 => 203,  735 => 202,  731 => 201,  725 => 199,  721 => 198,  717 => 197,  714 => 196,  712 => 195,  707 => 193,  703 => 192,  697 => 189,  693 => 188,  689 => 187,  685 => 186,  681 => 185,  677 => 184,  673 => 183,  669 => 182,  665 => 181,  661 => 180,  657 => 179,  653 => 178,  649 => 177,  645 => 176,  641 => 175,  637 => 174,  633 => 173,  629 => 172,  625 => 171,  620 => 170,  617 => 169,  612 => 166,  610 => 165,  607 => 164,  601 => 163,  597 => 161,  594 => 160,  591 => 159,  587 => 157,  584 => 156,  581 => 155,  575 => 152,  570 => 149,  568 => 148,  567 => 147,  566 => 146,  564 => 145,  558 => 142,  553 => 140,  546 => 138,  543 => 137,  541 => 136,  540 => 135,  539 => 134,  538 => 133,  534 => 132,  529 => 131,  526 => 130,  524 => 129,  521 => 128,  515 => 127,  512 => 126,  504 => 124,  501 => 123,  498 => 122,  495 => 121,  492 => 120,  488 => 119,  483 => 117,  480 => 116,  466 => 115,  462 => 114,  451 => 113,  434 => 112,  428 => 110,  421 => 106,  417 => 105,  411 => 103,  409 => 102,  405 => 101,  401 => 100,  397 => 98,  393 => 96,  390 => 95,  387 => 94,  379 => 92,  376 => 91,  372 => 89,  369 => 88,  367 => 87,  361 => 86,  355 => 82,  351 => 80,  340 => 75,  336 => 74,  332 => 72,  328 => 71,  325 => 70,  322 => 69,  318 => 67,  315 => 66,  309 => 65,  303 => 62,  300 => 61,  297 => 60,  292 => 59,  290 => 58,  287 => 57,  284 => 56,  280 => 54,  277 => 53,  268 => 50,  265 => 49,  260 => 48,  258 => 47,  255 => 46,  253 => 45,  250 => 44,  246 => 42,  243 => 41,  240 => 40,  235 => 38,  230 => 37,  227 => 36,  224 => 35,  219 => 33,  214 => 32,  211 => 31,  208 => 30,  204 => 29,  201 => 28,  194 => 25,  189 => 24,  185 => 23,  180 => 21,  177 => 20,  175 => 19,  168 => 16,  155 => 15,  141 => 12,  139 => 11,  134 => 10,  121 => 9,  105 => 6,  92 => 5,  67 => 3,  38 => 1,);
  1188.     }
  1189.     public function getSourceContext()
  1190.     {
  1191.         return new Source("{% extends 'ProfilePreview/grid.html.twig' %}
  1192. {% block title %}{{ seo_title() }}{% endblock %}
  1193. {% block metaDescription %}
  1194.     <meta name=\"description\" content=\"{{ seo_description() }}\">
  1195. {% endblock %}
  1196. {% block navbar %}
  1197.     {{ parent() }}
  1198.     {% set excludeRecommendationProfileIds = [profile.id] %}
  1199.     {% include 'Recommendations/_profile_recommendations.html.twig' %}
  1200. {% endblock %}
  1201. {% block mainContainer %}
  1202.     <div class=\"row\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\">
  1203.         <div class=\"col-3\">
  1204.             <div id=\"left_column_metric\">
  1205.                 {% if not app.user or is_user_customer(app.user) %}
  1206.                     <div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\"
  1207.                             style=\"display: {{ is_profile_in_favourites(profile) ? 'block' : 'none' }}\">UNLIKE</a></div>
  1208.                     <div><a class=\"add-remove-favourite\" data-action=\"add\"
  1209.                             style=\"display: {{ not is_profile_in_favourites(profile) ? 'block' : 'none' }}\"
  1210.                             {% if app.user %}href=\"javascript:void(0);\"
  1211.                             {% else %}href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"{% endif %}>LIKE</a>
  1212.                     </div>
  1213.                 {% endif %}
  1214.                 <div class=\"row\">
  1215.                     {% if profile.isApproved %} <b style=\"color:green;\">APPROVED</b><br/> {% endif %}
  1216.                     {% if not profile.deleted %}
  1217.                         {% if profile.isModerationRejected %}
  1218.                             <img src=\"{{ asset('static/img/red-circle.png') }}\"
  1219.                                  alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
  1220.                         {% else %}
  1221.                             {% set photo = profile|avatar %}
  1222.                             {% if photo %}
  1223.                                 <img src=\"{{ asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar') }}\"
  1224.                                      alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
  1225.                             {% endif %}
  1226.                         {% endif %}
  1227.                     {% else %}
  1228.                         Фото-заглушка
  1229.                     {% endif %}
  1230.                 </div>
  1231.                 {% if false == profile.isModerationRejected and profile.photos|length > 0 %}
  1232.                     <div class=\"row\">
  1233.                         {% if not profile.deleted %}
  1234.                             {% for photo in profile.photos %}
  1235.                                 <div class=\"col-4\">
  1236.                                     <img src=\"{{ asset(photo.path, 'profile_media') }}\" alt=\"\" width=\"150\">
  1237.                                 </div>
  1238.                             {% endfor %}
  1239.                         {% endif %}
  1240.                     </div>
  1241.                 {% endif %}
  1242.                 {% if false == profile.isModerationRejected and profile.selfies|length > 0 %}
  1243.                     <div class=\"row\">
  1244.                         {% if not profile.deleted %}
  1245.                             {% for photo in profile.selfies %}
  1246.                                 {% if photo.main == false %}
  1247.                                     <div class=\"col-4\">
  1248.                                         <img src=\"{{ asset(photo.path, 'profile_media_selfie') }}\" alt=\"\" width=\"150\">
  1249.                                     </div>
  1250.                                 {% endif %}
  1251.                             {% endfor %}
  1252.                         {% endif %}
  1253.                     </div>
  1254.                 {% endif %}
  1255.                 {% if false == profile.isModerationRejected and not profile.deleted %}
  1256.                     <div class=\"row\">
  1257.                         {% for video in profile.confirmedVideos | filter(video => video.previewPath) %}
  1258.                             <div class=\"col-4\">
  1259.                                 <video width=\"100%\" controls
  1260.                                        poster=\"{{ asset(video.previewPath, 'profile_media', 'fullsize') }}\">
  1261.                                     <source src=\"{{ asset(video.path, 'profile_media', 'fullsize') }}\" type=\"video/mp4\">
  1262.                                     Your browser does not support the video tag.
  1263.                                 </video>
  1264.                             </div>
  1265.                         {% endfor %}
  1266.                     </div>
  1267.                 {% endif %}
  1268.             </div>
  1269.         </div>
  1270.         <div class=\"col-9\">
  1271.             <div id=\"center_column_metric\">
  1272.                 <h5>{{ profile.name|trans }} {{ rating }}&#9733;
  1273.                     {% if not profile.deleted %}
  1274.                         {% if profile.isModerationRejected %}
  1275.                             <h3>Анкета отклонена модератором</h3>
  1276.                         {% else %}
  1277.                             {% if profile.active %}
  1278.                                 <small><a href=\"tel:{{ profile.phoneNumber }}\">{{ profile.phoneNumber }}</a></small>
  1279.                             {% endif %}
  1280.                         {% endif %}
  1281.                     {% else %}
  1282.                         Заглушка телефона
  1283.                     {% endif %}
  1284.                 </h5>
  1285.                 <dl>
  1286.                     <dt>{% trans %}Город{% endtrans %}</dt>
  1287.                     <dd>{{ profile.city.name|trans }}</dd>
  1288.                     {% if profile_saloon %}
  1289.                         <dt>{% trans %}Салон{% endtrans %}</dt>
  1290.                         <dd>
  1291.                             <a href=\"{{ path('saloon_preview.page', {'city': profile_saloon.city.uriIdentity, 'saloon': profile_saloon.uriIdentity}) }}\">
  1292.                                 {{ profile_saloon.name|trans }}
  1293.                             </a>
  1294.                         </dd>
  1295.                     {% endif %}
  1296.                     <dt>{% trans %}Метро{% endtrans %}</dt>
  1297.                     <dd>
  1298.                         {% for station in profile.stationsSortedByPrimary %}
  1299.                             <a href=\"{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}\">{{ station.name|trans }} {% if loop.first %}*{% endif %}</a>
  1300.                             {% if not loop.last %}, {% endif %}
  1301.                         {% endfor %}
  1302.                     </dd>
  1303.                     <dt>{% trans %}Район{% endtrans %}</dt>
  1304.                     <dd>
  1305.                         {% for station in profile.stationsSortedByPrimary %}
  1306.                             {% set stationDistrict = station.district %}
  1307.                             {% if stationDistrict %}
  1308.                                 {% set districtCounty = stationDistrict.county %}
  1309.                                 {% if districtCounty %}
  1310.                                     <a href=\"{{ path('profile_list.list_by_county', {'city': profile.city.uriIdentity, 'county': districtCounty.uriIdentity}) }}\">{{ districtCounty.name|trans }}</a>
  1311.                                 {% endif %}
  1312.                             {% endif %}
  1313.                         {% endfor %}
  1314.                     </dd>
  1315.                     {% if not profile.deleted %}
  1316.                         {% if not profile.isModerationRejected %}
  1317.                             <dt><strong>{% trans %}Телефон{% endtrans %}</strong></dt>
  1318.                             <dd><strong>{{ profile.phoneNumber }}</strong></dd>
  1319.                             {% if feature('extended_profile_form')
  1320.                                 and profile.messengers
  1321.                                 and profile.messengers.hasTelegram
  1322.                                 and profile.messengers.telegramUsername is not empty %}
  1323.                                 <dt>
  1324.                                     <strong>{% trans %}Телеграм{% endtrans %}</strong> {{ profile.messengers.hasTelegram }}
  1325.                                 </dt>
  1326.                                 <dd><a href=\"https://t.me/{{ profile.messengers.telegramUsername }}\"
  1327.                                        target=\"_blank\" rel=\"nofollow noopener\">
  1328.                                         @{{ profile.messengers.telegramUsername }}
  1329.                                     </a></dd>
  1330.                             {% endif %}
  1331.                             {% if feature('extra_category_with_max')
  1332.                                 and profile.messengers
  1333.                                 and profile.messengers.hasMax
  1334.                                 and profile.messengers.maxUrl is not empty %}
  1335.                                 <dt>
  1336.                                     <strong>MAX</strong>
  1337.                                 </dt>
  1338.                                 <dd><a href=\"{{ profile.messengers.maxUrl }}\"
  1339.                                        target=\"_blank\" rel=\"nofollow noopener\">MAX</a></dd>
  1340.                             {% endif %}
  1341.                         {% endif %}
  1342.                     {% else %}
  1343.                         Заглушка телефона
  1344.                     {% endif %}
  1345.                     {% if feature('extra_category_without_prepayment') %}
  1346.                         {% if profile.prepayment %}
  1347.                             <dt>Оплата</dt>
  1348.                             <dd>
  1349.                                 Предоплата {{ profile.prepaymentAmount }}{% if profile.prepaymentComment %}. {{ profile.prepaymentComment }}{% endif %}
  1350.                             </dd>
  1351.                         {% elseif profile.prepayment is same as(false) %}
  1352.                             <dt>Оплата</dt>
  1353.                             <dd>Без предоплаты</dd>
  1354.                         {% endif %}
  1355.                     {% endif %}
  1356.                     <dt>{% trans %}Возраст{% endtrans %}</dt>
  1357.                     <dd>{{ profile.personParameters.age }}</dd>
  1358.                     <dt>{% trans %}Рост{% endtrans %}</dt>
  1359.                     <dd>{{ profile.personParameters.height }}</dd>
  1360.                     <dt>{% trans %}Размер груди{% endtrans %}</dt>
  1361.                     <dd>{{ profile.personParameters.breastSize }}</dd>
  1362.                     <dt>{% trans %}Вес{% endtrans %}</dt>
  1363.                     <dd>{{ profile.personParameters.weight }}</dd>
  1364.                     <dt>{% trans %}Размер одежды{% endtrans %}</dt>
  1365.                     <dd>{{ profile.personParameters.clothSize }}</dd>
  1366.                     <dt>{% trans %}Телосложение{% endtrans %}</dt>
  1367.                     <dd>{{ profile.personParameters.bodyType|body_type|trans }}</dd>
  1368.                     <dt>{% trans %}Цвет волос{% endtrans %}</dt>
  1369.                     <dd>{{ profile.personParameters.hairColor|hair_color|trans }}</dd>
  1370.                     <dt>{% trans %}Интимная стрижка{% endtrans %}</dt>
  1371.                     <dd>{{ profile.personParameters.privateHaircut|private_haircut|trans }}</dd>
  1372.                     <dt>{% trans %}Национальность{% endtrans %}</dt>
  1373.                     <dd>{{ profile.personParameters.nationality|nationality|trans }}</dd>
  1374.                     <dt>{% trans %}Дата обновления{% endtrans %}</dt>
  1375.                     <dd>{{ profile.updatedAt|date }}</dd>
  1376.                 </dl>
  1377.                 <h6>{% trans %}О себе{% endtrans %}</h6>
  1378.                 <p>{{ profile.description|trans }}</p>
  1379.                 {% include 'ProfilePreview/_saloon.html.twig' with { saloon: profile_saloon } %}
  1380.                 <h6>{% trans %}Предпочтения{% endtrans %}</h6>
  1381.                 {% for group, servicesGroup in services | filter((servicesGroup, group) => not profile.masseur or group not in masseurExcludeServiceGroups) %}
  1382.                     <p><strong>{{ group|service_group|trans({}, 'service_groups') }}</strong></p>
  1383.                     <ul>
  1384.                         {% for service in servicesGroup %}
  1385.                             {% set providedService = profile.providedService(service) %}
  1386.                             <li class=\"{% if providedService %}text-success{% else %}text-danger{% endif %}\">
  1387.                                 <a href=\"{{ path('profile_list.list_by_provided_service', {'city': profile.city.uriIdentity, 'service': service.uriIdentity}) }}\">{{ service.name|trans }}</a>
  1388.                             </li>
  1389.                             {% if providedService %}
  1390.                                 {% if feature('extended_profile_form') %}
  1391.                                     {{ providedService.condition|provided_service_condition|trans({},'service_conditions') }}{% if providedService.condition == 3 %}, цена:{{ providedService.extraCharge }}{% endif %}
  1392.                                 {% endif %}
  1393.                                 {% if providedService.comment %}
  1394.                                     Комментарий: {{ providedService.comment }}
  1395.                                 {% endif %}
  1396.                             {% endif %}
  1397.                         {% endfor %}
  1398.                     </ul>
  1399.                 {% endfor %}
  1400.                 <h6>{% trans %}Отзывы{% endtrans %}</h6>
  1401.                 <div id=\"comments\">
  1402.                     {% for comment in profile.comments %}
  1403.                         {% include 'ProfilePreview/comment.html.twig' %}
  1404.                     {% else %}
  1405.                         <p>{% trans %}Отзывов нет{% endtrans %}</p>
  1406.                     {% endfor %}
  1407.                 </div>
  1408.                 <div id=\"commentFormContainer\">
  1409.                 </div>
  1410.                 <div id=\"recaptcha-container\"></div>
  1411.                 {% if feature('extended_profile_form') %}
  1412.                     <div>
  1413.                         {% if profile.expressPricing %}
  1414.                             <b>Экспресс:</b>
  1415.                             {% if profile.expressPricing.provided %}
  1416.                                 Да, стоимость{{ profile.expressPricing.price }}
  1417.                             {% else %}
  1418.                                 Нет
  1419.                             {% endif %}
  1420.                         {% endif %}
  1421.                     </div>
  1422.                 {% endif %}
  1423.                 {% if profile.clientTypes %}
  1424.                     <div>
  1425.                         <b>Услуги для:</b>
  1426.                         {% for clientType in profile.clientTypes %}
  1427.                             {{ clientType|client_type|trans({}, 'client_types') }}<br>
  1428.                         {% endfor %}
  1429.                     </div>
  1430.                 {% endif %}
  1431.                 {% if feature('extended_profile_form') %}
  1432.                     <div>
  1433.                         {% if profile.messengers %}
  1434.                             <b>Мессенджеры</b><br>
  1435.                             <b>Telegram</b> {{ profile.messengers.telegram ? 'Да' : 'Нет' }}
  1436.                             <b>WhatsApp</b> {{ profile.messengers.whatsApp ? 'Да' : 'Нет' }}
  1437.                             {% if feature('extra_category_with_max') %}
  1438.                                 <b>MAX</b> {{ profile.messengers.max ? 'Да' : 'Нет' }}
  1439.                             {% endif %}
  1440.                         {% endif %}
  1441.                     </div>
  1442.                 {% endif %}
  1443.                 {% if feature('extended_profile_form') %}
  1444.                     <div>
  1445.                         {% if profile.carPricing %}
  1446.                             <b>В машине:</b> {{ profile.carPricing.provided ? 'Да' : 'Нет' }}
  1447.                         {% endif %}
  1448.                     </div>
  1449.                 {% endif %}
  1450.                 {% if feature('extended_profile_form') %}
  1451.                     <div>
  1452.                         {% if profile.personParameters.tattoo is not null %}
  1453.                             <b>Тату:</b> {{ profile.personParameters.tattoo ? 'Да' : 'Нет' }}
  1454.                         {% endif %}
  1455.                     </div>
  1456.                     <div>
  1457.                         {% if profile.personParameters.piercing is not null %}
  1458.                             <b>Пирсинг:</b> {{ profile.personParameters.piercing ? 'Да' : 'Нет' }}
  1459.                         {% endif %}
  1460.                     </div>
  1461.                 {% endif %}
  1462.                 <div>
  1463.                     <b>Отвечаю на:</b>
  1464.                     {% for answeringTo in profile.phoneCallRestrictions.answeringTo %}
  1465.                         {{ answeringTo|answering_to|trans({}, 'phone_call_restrictions') }}<br>
  1466.                     {% endfor %}
  1467.                 </div>
  1468.             </div>
  1469.         </div>
  1470.         {% include 'ProfilePreview/nearest_profiles.html.twig' %}
  1471.         <div id=\"recentlyViewedProfiles\"></div>
  1472.     </div>
  1473.     <script type=\"text/javascript\">
  1474.         var onloadCallback = function () {
  1475.             grecaptcha.render('recaptcha-container', {
  1476.                 'sitekey': '{{ ewz_recaptcha_site_key }}'
  1477.             });
  1478.         };
  1479.     </script>
  1480.     <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
  1481.     <script src=\"{{ asset('ajax.js', 'js_script') }}\"></script>
  1482.     <script src=\"{{ asset('local-storage.js', 'js_script') }}\"></script>
  1483.     <script src=\"{{ asset('recommendations.js', 'js_script') }}\"></script>
  1484.     <script src=\"{{ asset('bot-helper.js', 'js_script') }}\"></script>
  1485.     <script src=\"{{ asset('recently-viewed.js', 'js_script') }}\"></script>
  1486.     <script type=\"text/javascript\">
  1487.         document.addEventListener('DOMContentLoaded', function () {
  1488.             ajax({
  1489.                 url: '{{ path('profile_ctr.increase_views') }}',
  1490.                 data: {
  1491.                     profile: {{ profile.id }},
  1492.                 },
  1493.                 callback: function () {},
  1494.                 dataType: 'json',
  1495.                 responseType: 'json',
  1496.             });
  1497.             profileRecommendations.addViewedProfile({{ profile.id }});
  1498.             profileBotHelper.addViewedProfile({{ profile.id }});
  1499.             //достаем список, пока без учета текущей страницы, для текущего аякс запроса
  1500.             const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
  1501.             recentlyViewed.addViewedProfile({{ profile.id }});
  1502.             //recently viewed profiles
  1503.             ajax({
  1504.                 url: '{{ path('recent_profiles.recently_viewed.list') }}',
  1505.                 data: {
  1506.                     recently_viewed_profiles: recentlyViewedProfiles,
  1507.                 },
  1508.                 callback: function (response) {
  1509.                     if (!response)
  1510.                         return;
  1511.                     // console.log(response);
  1512.                     document.querySelector('#recentlyViewedProfiles').innerHTML = response;
  1513.                 },
  1514.                 dataType: 'json',
  1515.                 responseType: 'text/html',
  1516.             });
  1517.             ajax({
  1518.                 url: '{{ path('profile.comment.comment_form', {profile: profile.id}) }}',
  1519.                 callback: function (response) {
  1520.                     // console.log(response);
  1521.                     if ('' !== response) {
  1522.                         document.querySelector('#commentFormContainer').innerHTML = response;
  1523.                         setCommentFormListeners();
  1524.                     }
  1525.                 },
  1526.                 dataType: 'json',
  1527.                 responseType: 'text/html',
  1528.             });
  1529.             function setCommentFormListeners() {
  1530.                 const formName = 'comment_form';
  1531.                 document.querySelector('#send_comment').addEventListener('click', function () {
  1532.                     ajax({
  1533.                         url: '{{ path('profile.comment.create', {profile: profile.id}) }}',
  1534.                         method: '',
  1535.                         data: {
  1536.                             'g-recaptcha-response': grecaptcha.getResponse(),
  1537.                             'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
  1538.                             'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
  1539.                             'text': document.querySelector(`#\${formName}_text`).value,
  1540.                         },
  1541.                         callback: function (response) {
  1542.                             if (response) {
  1543.                                 if (response.success) {
  1544.                                     //document.querySelector(`#{formName}`).style.display = 'none';
  1545.                                     //document.querySelector('#send_comment').style.display = 'none';
  1546.                                     document.querySelector(`form[name=\"\${formName}\"]`).reset();
  1547.                                     grecaptcha.reset();
  1548.                                     let template =
  1549.                                         '<div>' +
  1550.                                         (response.comment.nickname ?
  1551.                                             '<span class=\"author\">' +
  1552.                                             '<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
  1553.                                             '<span class=\"name\">#nickname</span>' +
  1554.                                             '</span>' : '') +
  1555.                                         '<span class=\"date\">#createdAt</span>' +
  1556.                                         '<span>#text</span>' +
  1557.                                         '</div>'
  1558.                                     ;
  1559.                                     response.comment.createdAt = new Date(response.comment.createdAt * 1000);
  1560.                                     for (let k in response.comment) {
  1561.                                         template = template.replace('#' + k, response.comment[k]);
  1562.                                     }
  1563.                                     document.querySelector('#comments').innerHTML += template;
  1564.                                     // console.log(template);
  1565.                                     // document.querySelector('#comments').innerHTML += response.html;
  1566.                                 } else {
  1567.                                     alert(response.error);
  1568.                                 }
  1569.                             }
  1570.                         },
  1571.                         dataType: 'json',
  1572.                         responseType: 'json',
  1573.                     });
  1574.                 });
  1575.             }
  1576.             //LIKE/UNLIKE
  1577.             document.querySelector('#left_column_metric').addEventListener('click', function (e) {
  1578.                 if (false == e.target.classList.contains('add-remove-favourite'))
  1579.                     return;
  1580.                 addRemoveFavourite(e.target.dataset['action'] == 'add');
  1581.             });
  1582.             let addRemoveFavourite = function (add) {
  1583.                 let btn = document.querySelector('.add-remove-favourite[data-action=\"' + (add ? 'add' : 'remove') + '\"]');
  1584.                 let reverseBtn = document.querySelector('.add-remove-favourite[data-action=\"' + (!add ? 'add' : 'remove') + '\"]');
  1585.                 btn.style.display = 'none';
  1586.                 ajax({
  1587.                     url: add ? '{{ path('account.favourites.add', {profile: profile.id}) }}' : '{{ path('account.favourites.remove', {profile: profile.id}) }}',
  1588.                     callback: function (response) {
  1589.                         if (response) {
  1590.                             if (response.success) {
  1591.                                 reverseBtn.style.display = 'block';
  1592.                             } else {
  1593.                                 btn.style.display = 'block';
  1594.                                 alert(response.error);
  1595.                             }
  1596.                         }
  1597.                     },
  1598.                     dataType: 'json',
  1599.                     responseType: 'json',
  1600.                 });
  1601.             };
  1602.             //LIKE/UNLIKE end
  1603.         });
  1604.     </script>
  1605. {% endblock %}
  1606. ""ProfilePreview/page.html.twig""/app/templates/ProfilePreview/page.html.twig");
  1607.     }
  1608. }