var/cache/review/twig/ee/ee002d42ec00fc30d2ce745fe71a05c8.php line 79

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_c169b2457306e63df82a8554c8176c37 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.                     <dt>";
  370.         // line 102
  371.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Метро", [], "messages");
  372.         echo "</dt>
  373.                     <dd>
  374.                         ";
  375.         // line 104
  376.         $context['_parent'] = $context;
  377.         $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.'104$this->source); })()), "stationsSortedByPrimary", [], "any"falsefalsefalse104));
  378.         $context['loop'] = [
  379.           'parent' => $context['_parent'],
  380.           'index0' => 0,
  381.           'index'  => 1,
  382.           'first'  => true,
  383.         ];
  384.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  385.             $length count($context['_seq']);
  386.             $context['loop']['revindex0'] = $length 1;
  387.             $context['loop']['revindex'] = $length;
  388.             $context['loop']['length'] = $length;
  389.             $context['loop']['last'] = === $length;
  390.         }
  391.         foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  392.             // line 105
  393.             echo "                            <a href=\"";
  394.             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.'105$this->source); })()), "city", [], "any"falsefalsefalse105), "uriIdentity", [], "any"falsefalsefalse105), "station" => twig_get_attribute($this->env$this->source$context["station"], "uriIdentity", [], "any"falsefalsefalse105)]), "html"nulltrue);
  395.             echo "\">";
  396.             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"falsefalsefalse105)), "html"nulltrue);
  397.             echo " ";
  398.             if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse105)) {
  399.                 echo "*";
  400.             }
  401.             echo "</a>
  402.                             ";
  403.             // line 106
  404.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse106)) {
  405.                 echo ", ";
  406.             }
  407.             // line 107
  408.             echo "                        ";
  409.             ++$context['loop']['index0'];
  410.             ++$context['loop']['index'];
  411.             $context['loop']['first'] = false;
  412.             if (isset($context['loop']['length'])) {
  413.                 --$context['loop']['revindex0'];
  414.                 --$context['loop']['revindex'];
  415.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  416.             }
  417.         }
  418.         $_parent $context['_parent'];
  419.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  420.         $context array_intersect_key($context$_parent) + $_parent;
  421.         // line 108
  422.         echo "                    </dd>
  423.                     <dt>";
  424.         // line 109
  425.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Район", [], "messages");
  426.         echo "</dt>
  427.                     <dd>
  428.                         ";
  429.         // line 111
  430.         $context['_parent'] = $context;
  431.         $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.'111$this->source); })()), "stationsSortedByPrimary", [], "any"falsefalsefalse111));
  432.         foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  433.             // line 112
  434.             echo "                            ";
  435.             $context["stationDistrict"] = twig_get_attribute($this->env$this->source$context["station"], "district", [], "any"falsefalsefalse112);
  436.             // line 113
  437.             echo "                            ";
  438.             if ((isset($context["stationDistrict"]) || array_key_exists("stationDistrict"$context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.'113$this->source); })())) {
  439.                 // line 114
  440.                 echo "                                ";
  441.                 $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.'114$this->source); })()), "county", [], "any"falsefalsefalse114);
  442.                 // line 115
  443.                 echo "                                ";
  444.                 if ((isset($context["districtCounty"]) || array_key_exists("districtCounty"$context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.'115$this->source); })())) {
  445.                     // line 116
  446.                     echo "                                    <a href=\"";
  447.                     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.'116$this->source); })()), "city", [], "any"falsefalsefalse116), "uriIdentity", [], "any"falsefalsefalse116), "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.'116$this->source); })()), "uriIdentity", [], "any"falsefalsefalse116)]), "html"nulltrue);
  448.                     echo "\">";
  449.                     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.'116$this->source); })()), "name", [], "any"falsefalsefalse116)), "html"nulltrue);
  450.                     echo "</a>
  451.                                 ";
  452.                 }
  453.                 // line 118
  454.                 echo "                            ";
  455.             }
  456.             // line 119
  457.             echo "                        ";
  458.         }
  459.         $_parent $context['_parent'];
  460.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  461.         $context array_intersect_key($context$_parent) + $_parent;
  462.         // line 120
  463.         echo "                    </dd>
  464.                     ";
  465.         // line 121
  466.         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.'121$this->source); })()), "deleted", [], "any"falsefalsefalse121)) {
  467.             // line 122
  468.             echo "                        ";
  469.             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.'122$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse122)) {
  470.                 // line 123
  471.                 echo "                            <dt><strong>";
  472.                 echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телефон", [], "messages");
  473.                 echo "</strong></dt>
  474.                             <dd><strong>";
  475.                 // line 124
  476.                 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.'124$this->source); })()), "phoneNumber", [], "any"falsefalsefalse124), "html"nulltrue);
  477.                 echo "</strong></dd>
  478.                             ";
  479.                 // line 125
  480.                 if (((($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form") && twig_get_attribute($this->env$this->source,                 // line 126
  481. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'126$this->source); })()), "messengers", [], "any"falsefalsefalse126)) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 127
  482. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'127$this->source); })()), "messengers", [], "any"falsefalsefalse127), "hasTelegram", [], "any"falsefalsefalse127)) &&  !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 128
  483. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'128$this->source); })()), "messengers", [], "any"falsefalsefalse128), "telegramUsername", [], "any"falsefalsefalse128)))) {
  484.                     // line 129
  485.                     echo "                                <dt>
  486.                                     <strong>";
  487.                     // line 130
  488.                     echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телеграм", [], "messages");
  489.                     echo "</strong> ";
  490.                     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.'130$this->source); })()), "messengers", [], "any"falsefalsefalse130), "hasTelegram", [], "any"falsefalsefalse130), "html"nulltrue);
  491.                     echo "
  492.                                 </dt>
  493.                                 <dd><a href=\"https://t.me/";
  494.                     // line 132
  495.                     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.'132$this->source); })()), "messengers", [], "any"falsefalsefalse132), "telegramUsername", [], "any"falsefalsefalse132), "html"nulltrue);
  496.                     echo "\"
  497.                                        target=\"_blank\" rel=\"nofollow noopener\">
  498.                                         @";
  499.                     // line 134
  500.                     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.'134$this->source); })()), "messengers", [], "any"falsefalsefalse134), "telegramUsername", [], "any"falsefalsefalse134), "html"nulltrue);
  501.                     echo "
  502.                                     </a></dd>
  503.                             ";
  504.                 }
  505.                 // line 137
  506.                 echo "                        ";
  507.             }
  508.             // line 138
  509.             echo "                    ";
  510.         } else {
  511.             // line 139
  512.             echo "                        Заглушка телефона
  513.                     ";
  514.         }
  515.         // line 141
  516.         echo "                    <dt>";
  517.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Возраст", [], "messages");
  518.         echo "</dt>
  519.                     <dd>";
  520.         // line 142
  521.         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); })()), "personParameters", [], "any"falsefalsefalse142), "age", [], "any"falsefalsefalse142), "html"nulltrue);
  522.         echo "</dd>
  523.                     <dt>";
  524.         // line 143
  525.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Рост", [], "messages");
  526.         echo "</dt>
  527.                     <dd>";
  528.         // line 144
  529.         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.'144$this->source); })()), "personParameters", [], "any"falsefalsefalse144), "height", [], "any"falsefalsefalse144), "html"nulltrue);
  530.         echo "</dd>
  531.                     <dt>";
  532.         // line 145
  533.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер груди", [], "messages");
  534.         echo "</dt>
  535.                     <dd>";
  536.         // line 146
  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.'146$this->source); })()), "personParameters", [], "any"falsefalsefalse146), "breastSize", [], "any"falsefalsefalse146), "html"nulltrue);
  538.         echo "</dd>
  539.                     <dt>";
  540.         // line 147
  541.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Вес", [], "messages");
  542.         echo "</dt>
  543.                     <dd>";
  544.         // line 148
  545.         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.'148$this->source); })()), "personParameters", [], "any"falsefalsefalse148), "weight", [], "any"falsefalsefalse148), "html"nulltrue);
  546.         echo "</dd>
  547.                     <dt>";
  548.         // line 149
  549.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер одежды", [], "messages");
  550.         echo "</dt>
  551.                     <dd>";
  552.         // line 150
  553.         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.'150$this->source); })()), "personParameters", [], "any"falsefalsefalse150), "clothSize", [], "any"falsefalsefalse150), "html"nulltrue);
  554.         echo "</dd>
  555.                     <dt>";
  556.         // line 151
  557.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телосложение", [], "messages");
  558.         echo "</dt>
  559.                     <dd>";
  560.         // line 152
  561.         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.'152$this->source); })()), "personParameters", [], "any"falsefalsefalse152), "bodyType", [], "any"falsefalsefalse152))), "html"nulltrue);
  562.         echo "</dd>
  563.                     <dt>";
  564.         // line 153
  565.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Цвет волос", [], "messages");
  566.         echo "</dt>
  567.                     <dd>";
  568.         // line 154
  569.         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.'154$this->source); })()), "personParameters", [], "any"falsefalsefalse154), "hairColor", [], "any"falsefalsefalse154))), "html"nulltrue);
  570.         echo "</dd>
  571.                     <dt>";
  572.         // line 155
  573.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Интимная стрижка", [], "messages");
  574.         echo "</dt>
  575.                     <dd>";
  576.         // line 156
  577.         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.'156$this->source); })()), "personParameters", [], "any"falsefalsefalse156), "privateHaircut", [], "any"falsefalsefalse156))), "html"nulltrue);
  578.         echo "</dd>
  579.                     <dt>";
  580.         // line 157
  581.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Национальность", [], "messages");
  582.         echo "</dt>
  583.                     <dd>";
  584.         // line 158
  585.         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.'158$this->source); })()), "personParameters", [], "any"falsefalsefalse158), "nationality", [], "any"falsefalsefalse158))), "html"nulltrue);
  586.         echo "</dd>
  587.                     <dt>";
  588.         // line 159
  589.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Дата обновления", [], "messages");
  590.         echo "</dt>
  591.                     <dd>";
  592.         // line 160
  593.         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.'160$this->source); })()), "updatedAt", [], "any"falsefalsefalse160)), "html"nulltrue);
  594.         echo "</dd>
  595.                 </dl>
  596.                 <h6>";
  597.         // line 163
  598.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("О себе", [], "messages");
  599.         echo "</h6>
  600.                 <p>";
  601.         // line 164
  602.         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.'164$this->source); })()), "description", [], "any"falsefalsefalse164)), "html"nulltrue);
  603.         echo "</p>
  604.                 <h6>";
  605.         // line 166
  606.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Предпочтения", [], "messages");
  607.         echo "</h6>
  608.                 ";
  609.         // line 167
  610.         $context['_parent'] = $context;
  611.         $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.'167$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.'167$this->source); })()), "masseur", [], "any"falsefalsefalse167) || !twig_in_filter($context["group"], (isset($context["masseurExcludeServiceGroups"]) || array_key_exists("masseurExcludeServiceGroups"$context) ? $context["masseurExcludeServiceGroups"] : (function () { throw new RuntimeError('Variable "masseurExcludeServiceGroups" does not exist.'167$this->source); })()))); }));
  612.         foreach ($context['_seq'] as $context["group"] => $context["servicesGroup"]) {
  613.             // line 168
  614.             echo "                    <p><strong>";
  615.             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);
  616.             echo "</strong></p>
  617.                     <ul>
  618.                         ";
  619.             // line 170
  620.             $context['_parent'] = $context;
  621.             $context['_seq'] = twig_ensure_traversable($context["servicesGroup"]);
  622.             foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
  623.                 // line 171
  624.                 echo "                            ";
  625.                 $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.'171$this->source); })()), "providedService", [$context["service"]], "method"falsefalsefalse171);
  626.                 // line 172
  627.                 echo "                            <li class=\"";
  628.                 if ((isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'172$this->source); })())) {
  629.                     echo "text-success";
  630.                 } else {
  631.                     echo "text-danger";
  632.                 }
  633.                 echo "\">
  634.                                 <a href=\"";
  635.                 // line 173
  636.                 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.'173$this->source); })()), "city", [], "any"falsefalsefalse173), "uriIdentity", [], "any"falsefalsefalse173), "service" => twig_get_attribute($this->env$this->source$context["service"], "uriIdentity", [], "any"falsefalsefalse173)]), "html"nulltrue);
  637.                 echo "\">";
  638.                 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"falsefalsefalse173)), "html"nulltrue);
  639.                 echo "</a>
  640.                             </li>
  641.                             ";
  642.                 // line 175
  643.                 if ((isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'175$this->source); })())) {
  644.                     // line 176
  645.                     echo "                                ";
  646.                     if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  647.                         // line 177
  648.                         echo "                                    ";
  649.                         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.'177$this->source); })()), "condition", [], "any"falsefalsefalse177)), [], "service_conditions"), "html"nulltrue);
  650.                         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.'177$this->source); })()), "condition", [], "any"falsefalsefalse177) == 3)) {
  651.                             echo ", цена:";
  652.                             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.'177$this->source); })()), "extraCharge", [], "any"falsefalsefalse177), "html"nulltrue);
  653.                         }
  654.                         // line 178
  655.                         echo "                                ";
  656.                     }
  657.                     // line 179
  658.                     echo "                                ";
  659.                     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.'179$this->source); })()), "comment", [], "any"falsefalsefalse179)) {
  660.                         // line 180
  661.                         echo "                                    Комментарий: ";
  662.                         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.'180$this->source); })()), "comment", [], "any"falsefalsefalse180), "html"nulltrue);
  663.                         echo "
  664.                                 ";
  665.                     }
  666.                     // line 182
  667.                     echo "                            ";
  668.                 }
  669.                 // line 183
  670.                 echo "                        ";
  671.             }
  672.             $_parent $context['_parent'];
  673.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
  674.             $context array_intersect_key($context$_parent) + $_parent;
  675.             // line 184
  676.             echo "                    </ul>
  677.                 ";
  678.         }
  679.         $_parent $context['_parent'];
  680.         unset($context['_seq'], $context['_iterated'], $context['group'], $context['servicesGroup'], $context['_parent'], $context['loop']);
  681.         $context array_intersect_key($context$_parent) + $_parent;
  682.         // line 186
  683.         echo "
  684.                 <h6>";
  685.         // line 187
  686.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывы", [], "messages");
  687.         echo "</h6>
  688.                 <div id=\"comments\">
  689.                     ";
  690.         // line 189
  691.         $context['_parent'] = $context;
  692.         $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.'189$this->source); })()), "comments", [], "any"falsefalsefalse189));
  693.         $context['_iterated'] = false;
  694.         $context['loop'] = [
  695.           'parent' => $context['_parent'],
  696.           'index0' => 0,
  697.           'index'  => 1,
  698.           'first'  => true,
  699.         ];
  700.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  701.             $length count($context['_seq']);
  702.             $context['loop']['revindex0'] = $length 1;
  703.             $context['loop']['revindex'] = $length;
  704.             $context['loop']['length'] = $length;
  705.             $context['loop']['last'] = === $length;
  706.         }
  707.         foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
  708.             // line 190
  709.             echo "                        ";
  710.             $this->loadTemplate("ProfilePreview/comment.html.twig""ProfilePreview/page.html.twig"190)->display($context);
  711.             // line 191
  712.             echo "                    ";
  713.             $context['_iterated'] = true;
  714.             ++$context['loop']['index0'];
  715.             ++$context['loop']['index'];
  716.             $context['loop']['first'] = false;
  717.             if (isset($context['loop']['length'])) {
  718.                 --$context['loop']['revindex0'];
  719.                 --$context['loop']['revindex'];
  720.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  721.             }
  722.         }
  723.         if (!$context['_iterated']) {
  724.             // line 192
  725.             echo "                        <p>";
  726.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывов нет", [], "messages");
  727.             echo "</p>
  728.                     ";
  729.         }
  730.         $_parent $context['_parent'];
  731.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
  732.         $context array_intersect_key($context$_parent) + $_parent;
  733.         // line 194
  734.         echo "                </div>
  735.                 <div id=\"commentFormContainer\">
  736.                 </div>
  737.                 <div id=\"recaptcha-container\"></div>
  738.                 ";
  739.         // line 201
  740.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  741.             // line 202
  742.             echo "                    <div>
  743.                         ";
  744.             // line 203
  745.             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.'203$this->source); })()), "expressPricing", [], "any"falsefalsefalse203)) {
  746.                 // line 204
  747.                 echo "                            <b>Экспресс:</b>
  748.                             ";
  749.                 // line 205
  750.                 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.'205$this->source); })()), "expressPricing", [], "any"falsefalsefalse205), "provided", [], "any"falsefalsefalse205)) {
  751.                     // line 206
  752.                     echo "                                Да, стоимость";
  753.                     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.'206$this->source); })()), "expressPricing", [], "any"falsefalsefalse206), "price", [], "any"falsefalsefalse206), "html"nulltrue);
  754.                     echo "
  755.                             ";
  756.                 } else {
  757.                     // line 208
  758.                     echo "                                Нет
  759.                             ";
  760.                 }
  761.                 // line 210
  762.                 echo "                        ";
  763.             }
  764.             // line 211
  765.             echo "                    </div>
  766.                 ";
  767.         }
  768.         // line 213
  769.         echo "
  770.                 ";
  771.         // line 214
  772.         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.'214$this->source); })()), "clientTypes", [], "any"falsefalsefalse214)) {
  773.             // line 215
  774.             echo "                    <div>
  775.                         <b>Услуги для:</b>
  776.                         ";
  777.             // line 217
  778.             $context['_parent'] = $context;
  779.             $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.'217$this->source); })()), "clientTypes", [], "any"falsefalsefalse217));
  780.             foreach ($context['_seq'] as $context["_key"] => $context["clientType"]) {
  781.                 // line 218
  782.                 echo "                            ";
  783.                 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);
  784.                 echo "<br>
  785.                         ";
  786.             }
  787.             $_parent $context['_parent'];
  788.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['clientType'], $context['_parent'], $context['loop']);
  789.             $context array_intersect_key($context$_parent) + $_parent;
  790.             // line 220
  791.             echo "                    </div>
  792.                 ";
  793.         }
  794.         // line 222
  795.         echo "
  796.                 ";
  797.         // line 223
  798.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  799.             // line 224
  800.             echo "                    <div>
  801.                         ";
  802.             // line 225
  803.             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.'225$this->source); })()), "messengers", [], "any"falsefalsefalse225)) {
  804.                 // line 226
  805.                 echo "                            <b>Мессенджеры</b><br>
  806.                             <b>Telegram</b> ";
  807.                 // line 227
  808.                 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.'227$this->source); })()), "messengers", [], "any"falsefalsefalse227), "telegram", [], "any"falsefalsefalse227)) ? ("Да") : ("Нет"));
  809.                 echo "
  810.                             <b>WhatsApp</b> ";
  811.                 // line 228
  812.                 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.'228$this->source); })()), "messengers", [], "any"falsefalsefalse228), "whatsApp", [], "any"falsefalsefalse228)) ? ("Да") : ("Нет"));
  813.                 echo "
  814.                         ";
  815.             }
  816.             // line 230
  817.             echo "                    </div>
  818.                 ";
  819.         }
  820.         // line 232
  821.         echo "
  822.                 ";
  823.         // line 233
  824.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  825.             // line 234
  826.             echo "                    <div>
  827.                         ";
  828.             // line 235
  829.             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.'235$this->source); })()), "carPricing", [], "any"falsefalsefalse235)) {
  830.                 // line 236
  831.                 echo "                            <b>В машине:</b> ";
  832.                 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.'236$this->source); })()), "carPricing", [], "any"falsefalsefalse236), "provided", [], "any"falsefalsefalse236)) ? ("Да") : ("Нет"));
  833.                 echo "
  834.                         ";
  835.             }
  836.             // line 238
  837.             echo "                    </div>
  838.                 ";
  839.         }
  840.         // line 240
  841.         echo "
  842.                 ";
  843.         // line 241
  844.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  845.             // line 242
  846.             echo "                    <div>
  847.                         ";
  848.             // line 243
  849.             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.'243$this->source); })()), "personParameters", [], "any"falsefalsefalse243), "tattoo", [], "any"falsefalsefalse243))) {
  850.                 // line 244
  851.                 echo "                            <b>Тату:</b> ";
  852.                 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.'244$this->source); })()), "personParameters", [], "any"falsefalsefalse244), "tattoo", [], "any"falsefalsefalse244)) ? ("Да") : ("Нет"));
  853.                 echo "
  854.                         ";
  855.             }
  856.             // line 246
  857.             echo "                    </div>
  858.                     <div>
  859.                         ";
  860.             // line 248
  861.             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.'248$this->source); })()), "personParameters", [], "any"falsefalsefalse248), "piercing", [], "any"falsefalsefalse248))) {
  862.                 // line 249
  863.                 echo "                            <b>Пирсинг:</b> ";
  864.                 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.'249$this->source); })()), "personParameters", [], "any"falsefalsefalse249), "piercing", [], "any"falsefalsefalse249)) ? ("Да") : ("Нет"));
  865.                 echo "
  866.                         ";
  867.             }
  868.             // line 251
  869.             echo "                    </div>
  870.                 ";
  871.         }
  872.         // line 253
  873.         echo "                <div>
  874.                     <b>Отвечаю на:</b>
  875.                     ";
  876.         // line 255
  877.         $context['_parent'] = $context;
  878.         $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.'255$this->source); })()), "phoneCallRestrictions", [], "any"falsefalsefalse255), "answeringTo", [], "any"falsefalsefalse255));
  879.         foreach ($context['_seq'] as $context["_key"] => $context["answeringTo"]) {
  880.             // line 256
  881.             echo "                        ";
  882.             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);
  883.             echo "<br>
  884.                     ";
  885.         }
  886.         $_parent $context['_parent'];
  887.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['answeringTo'], $context['_parent'], $context['loop']);
  888.         $context array_intersect_key($context$_parent) + $_parent;
  889.         // line 258
  890.         echo "                </div>
  891.             </div>
  892.         </div>
  893.         ";
  894.         // line 262
  895.         $this->loadTemplate("ProfilePreview/nearest_profiles.html.twig""ProfilePreview/page.html.twig"262)->display($context);
  896.         // line 263
  897.         echo "
  898.         <div id=\"recentlyViewedProfiles\"></div>
  899.     </div>
  900.     <script type=\"text/javascript\">
  901.         var onloadCallback = function () {
  902.             grecaptcha.render('recaptcha-container', {
  903.                 'sitekey': '";
  904.         // line 270
  905.         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.'270$this->source); })()), "html"nulltrue);
  906.         echo "'
  907.             });
  908.         };
  909.     </script>
  910.     <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
  911.     <script src=\"";
  912.         // line 275
  913.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("ajax.js""js_script"), "html"nulltrue);
  914.         echo "\"></script>
  915.     <script src=\"";
  916.         // line 276
  917.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("local-storage.js""js_script"), "html"nulltrue);
  918.         echo "\"></script>
  919.     <script src=\"";
  920.         // line 277
  921.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recommendations.js""js_script"), "html"nulltrue);
  922.         echo "\"></script>
  923.     <script src=\"";
  924.         // line 278
  925.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bot-helper.js""js_script"), "html"nulltrue);
  926.         echo "\"></script>
  927.     <script src=\"";
  928.         // line 279
  929.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recently-viewed.js""js_script"), "html"nulltrue);
  930.         echo "\"></script>
  931.     <script type=\"text/javascript\">
  932.         document.addEventListener('DOMContentLoaded', function () {
  933.             profileRecommendations.addViewedProfile(";
  934.         // line 282
  935.         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.'282$this->source); })()), "id", [], "any"falsefalsefalse282), "html"nulltrue);
  936.         echo ");
  937.             profileBotHelper.addViewedProfile(";
  938.         // line 283
  939.         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.'283$this->source); })()), "id", [], "any"falsefalsefalse283), "html"nulltrue);
  940.         echo ");
  941.             //достаем список, пока без учета текущей страницы, для текущего аякс запроса
  942.             const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
  943.             recentlyViewed.addViewedProfile(";
  944.         // line 286
  945.         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.'286$this->source); })()), "id", [], "any"falsefalsefalse286), "html"nulltrue);
  946.         echo ");
  947.             //recently viewed profiles
  948.             ajax({
  949.                 url: '";
  950.         // line 290
  951.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("recent_profiles.recently_viewed.list");
  952.         echo "',
  953.                 data: {
  954.                     recently_viewed_profiles: recentlyViewedProfiles,
  955.                 },
  956.                 callback: function (response) {
  957.                     if (!response)
  958.                         return;
  959.                     // console.log(response);
  960.                     document.querySelector('#recentlyViewedProfiles').innerHTML = response;
  961.                 },
  962.                 dataType: 'json',
  963.                 responseType: 'text/html',
  964.             });
  965.             ajax({
  966.                 url: '";
  967.         // line 305
  968.         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.'305$this->source); })()), "id", [], "any"falsefalsefalse305)]), "html"nulltrue);
  969.         echo "',
  970.                 callback: function (response) {
  971.                     // console.log(response);
  972.                     if ('' !== response) {
  973.                         document.querySelector('#commentFormContainer').innerHTML = response;
  974.                         setCommentFormListeners();
  975.                     }
  976.                 },
  977.                 dataType: 'json',
  978.                 responseType: 'text/html',
  979.             });
  980.             function setCommentFormListeners() {
  981.                 const formName = 'comment_form';
  982.                 document.querySelector('#send_comment').addEventListener('click', function () {
  983.                     ajax({
  984.                         url: '";
  985.         // line 322
  986.         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.'322$this->source); })()), "id", [], "any"falsefalsefalse322)]), "html"nulltrue);
  987.         echo "',
  988.                         method: '',
  989.                         data: {
  990.                             'g-recaptcha-response': grecaptcha.getResponse(),
  991.                             'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
  992.                             'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
  993.                             'text': document.querySelector(`#\${formName}_text`).value,
  994.                         },
  995.                         callback: function (response) {
  996.                             if (response) {
  997.                                 if (response.success) {
  998.                                     //document.querySelector(`#{formName}`).style.display = 'none';
  999.                                     //document.querySelector('#send_comment').style.display = 'none';
  1000.                                     document.querySelector(`form[name=\"\${formName}\"]`).reset();
  1001.                                     grecaptcha.reset();
  1002.                                     let template =
  1003.                                         '<div>' +
  1004.                                         (response.comment.nickname ?
  1005.                                             '<span class=\"author\">' +
  1006.                                             '<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
  1007.                                             '<span class=\"name\">#nickname</span>' +
  1008.                                             '</span>' : '') +
  1009.                                         '<span class=\"date\">#createdAt</span>' +
  1010.                                         '<span>#text</span>' +
  1011.                                         '</div>'
  1012.                                     ;
  1013.                                     response.comment.createdAt = new Date(response.comment.createdAt * 1000);
  1014.                                     for (let k in response.comment) {
  1015.                                         template = template.replace('#' + k, response.comment[k]);
  1016.                                     }
  1017.                                     document.querySelector('#comments').innerHTML += template;
  1018.                                     // console.log(template);
  1019.                                     // document.querySelector('#comments').innerHTML += response.html;
  1020.                                 } else {
  1021.                                     alert(response.error);
  1022.                                 }
  1023.                             }
  1024.                         },
  1025.                         dataType: 'json',
  1026.                         responseType: 'json',
  1027.                     });
  1028.                 });
  1029.             }
  1030.             //LIKE/UNLIKE
  1031.             document.querySelector('#left_column_metric').addEventListener('click', function (e) {
  1032.                 if (false == e.target.classList.contains('add-remove-favourite'))
  1033.                     return;
  1034.                 addRemoveFavourite(e.target.dataset['action'] == 'add');
  1035.             });
  1036.             let addRemoveFavourite = function (add) {
  1037.                 let btn = document.querySelector('.add-remove-favourite[data-action=\"' + (add ? 'add' : 'remove') + '\"]');
  1038.                 let reverseBtn = document.querySelector('.add-remove-favourite[data-action=\"' + (!add ? 'add' : 'remove') + '\"]');
  1039.                 btn.style.display = 'none';
  1040.                 ajax({
  1041.                     url: add ? '";
  1042.         // line 380
  1043.         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.'380$this->source); })()), "id", [], "any"falsefalsefalse380)]), "html"nulltrue);
  1044.         echo "' : '";
  1045.         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.'380$this->source); })()), "id", [], "any"falsefalsefalse380)]), "html"nulltrue);
  1046.         echo "',
  1047.                     callback: function (response) {
  1048.                         if (response) {
  1049.                             if (response.success) {
  1050.                                 reverseBtn.style.display = 'block';
  1051.                             } else {
  1052.                                 btn.style.display = 'block';
  1053.                                 alert(response.error);
  1054.                             }
  1055.                         }
  1056.                     },
  1057.                     dataType: 'json',
  1058.                     responseType: 'json',
  1059.                 });
  1060.             };
  1061.             //LIKE/UNLIKE end
  1062.         });
  1063.     </script>
  1064. ";
  1065.         
  1066.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1067.         
  1068.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1069.         
  1070.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  1071.     }
  1072.     /**
  1073.      * @codeCoverageIgnore
  1074.      */
  1075.     public function getTemplateName()
  1076.     {
  1077.         return "ProfilePreview/page.html.twig";
  1078.     }
  1079.     /**
  1080.      * @codeCoverageIgnore
  1081.      */
  1082.     public function isTraitable()
  1083.     {
  1084.         return false;
  1085.     }
  1086.     /**
  1087.      * @codeCoverageIgnore
  1088.      */
  1089.     public function getDebugInfo()
  1090.     {
  1091.         return array (  1096 => 380,  1035 => 322,  1015 => 305,  997 => 290,  990 => 286,  984 => 283,  980 => 282,  974 => 279,  970 => 278,  966 => 277,  962 => 276,  958 => 275,  950 => 270,  941 => 263,  939 => 262,  933 => 258,  924 => 256,  920 => 255,  916 => 253,  912 => 251,  906 => 249,  904 => 248,  900 => 246,  894 => 244,  892 => 243,  889 => 242,  887 => 241,  884 => 240,  880 => 238,  874 => 236,  872 => 235,  869 => 234,  867 => 233,  864 => 232,  860 => 230,  855 => 228,  851 => 227,  848 => 226,  846 => 225,  843 => 224,  841 => 223,  838 => 222,  834 => 220,  825 => 218,  821 => 217,  817 => 215,  815 => 214,  812 => 213,  808 => 211,  805 => 210,  801 => 208,  795 => 206,  793 => 205,  790 => 204,  788 => 203,  785 => 202,  783 => 201,  774 => 194,  765 => 192,  752 => 191,  749 => 190,  731 => 189,  726 => 187,  723 => 186,  716 => 184,  710 => 183,  707 => 182,  701 => 180,  698 => 179,  695 => 178,  688 => 177,  685 => 176,  683 => 175,  676 => 173,  667 => 172,  664 => 171,  660 => 170,  654 => 168,  650 => 167,  646 => 166,  641 => 164,  637 => 163,  631 => 160,  627 => 159,  623 => 158,  619 => 157,  615 => 156,  611 => 155,  607 => 154,  603 => 153,  599 => 152,  595 => 151,  591 => 150,  587 => 149,  583 => 148,  579 => 147,  575 => 146,  571 => 145,  567 => 144,  563 => 143,  559 => 142,  554 => 141,  550 => 139,  547 => 138,  544 => 137,  538 => 134,  533 => 132,  526 => 130,  523 => 129,  521 => 128,  520 => 127,  519 => 126,  518 => 125,  514 => 124,  509 => 123,  506 => 122,  504 => 121,  501 => 120,  495 => 119,  492 => 118,  484 => 116,  481 => 115,  478 => 114,  475 => 113,  472 => 112,  468 => 111,  463 => 109,  460 => 108,  446 => 107,  442 => 106,  431 => 105,  414 => 104,  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,);
  1092.     }
  1093.     public function getSourceContext()
  1094.     {
  1095.         return new Source("{% extends 'ProfilePreview/grid.html.twig' %}
  1096. {% block title %}{{ seo_title() }}{% endblock %}
  1097. {% block metaDescription %}
  1098.     <meta name=\"description\" content=\"{{ seo_description() }}\">
  1099. {% endblock %}
  1100. {% block navbar %}
  1101.     {{ parent() }}
  1102.     {% set excludeRecommendationProfileIds = [profile.id] %}
  1103.     {% include 'Recommendations/_profile_recommendations.html.twig' %}
  1104. {% endblock %}
  1105. {% block mainContainer %}
  1106.     <div class=\"row\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\">
  1107.         <div class=\"col-3\">
  1108.             <div id=\"left_column_metric\">
  1109.                 {% if not app.user or is_user_customer(app.user) %}
  1110.                     <div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\"
  1111.                             style=\"display: {{ is_profile_in_favourites(profile) ? 'block' : 'none' }}\">UNLIKE</a></div>
  1112.                     <div><a class=\"add-remove-favourite\" data-action=\"add\"
  1113.                             style=\"display: {{ not is_profile_in_favourites(profile) ? 'block' : 'none' }}\"
  1114.                             {% if app.user %}href=\"javascript:void(0);\"
  1115.                             {% else %}href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"{% endif %}>LIKE</a>
  1116.                     </div>
  1117.                 {% endif %}
  1118.                 <div class=\"row\">
  1119.                     {% if profile.isApproved %} <b style=\"color:green;\">APPROVED</b><br/> {% endif %}
  1120.                     {% if not profile.deleted %}
  1121.                         {% if profile.isModerationRejected %}
  1122.                             <img src=\"{{ asset('static/img/red-circle.png') }}\"
  1123.                                  alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
  1124.                         {% else %}
  1125.                             {% set photo = profile|avatar %}
  1126.                             {% if photo %}
  1127.                                 <img src=\"{{ asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar') }}\"
  1128.                                      alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
  1129.                             {% endif %}
  1130.                         {% endif %}
  1131.                     {% else %}
  1132.                         Фото-заглушка
  1133.                     {% endif %}
  1134.                 </div>
  1135.                 {% if false == profile.isModerationRejected and profile.photos|length > 0 %}
  1136.                     <div class=\"row\">
  1137.                         {% if not profile.deleted %}
  1138.                             {% for photo in profile.photos %}
  1139.                                 <div class=\"col-4\">
  1140.                                     <img src=\"{{ asset(photo.path, 'profile_media') }}\" alt=\"\" width=\"150\">
  1141.                                 </div>
  1142.                             {% endfor %}
  1143.                         {% endif %}
  1144.                     </div>
  1145.                 {% endif %}
  1146.                 {% if false == profile.isModerationRejected and profile.selfies|length > 0 %}
  1147.                     <div class=\"row\">
  1148.                         {% if not profile.deleted %}
  1149.                             {% for photo in profile.selfies %}
  1150.                                 {% if photo.main == false %}
  1151.                                     <div class=\"col-4\">
  1152.                                         <img src=\"{{ asset(photo.path, 'profile_media_selfie') }}\" alt=\"\" width=\"150\">
  1153.                                     </div>
  1154.                                 {% endif %}
  1155.                             {% endfor %}
  1156.                         {% endif %}
  1157.                     </div>
  1158.                 {% endif %}
  1159.                 {% if false == profile.isModerationRejected and not profile.deleted %}
  1160.                     <div class=\"row\">
  1161.                         {% for video in profile.confirmedVideos | filter(video => video.previewPath) %}
  1162.                             <div class=\"col-4\">
  1163.                                 <video width=\"100%\" controls
  1164.                                        poster=\"{{ asset(video.previewPath, 'profile_media', 'fullsize') }}\">
  1165.                                     <source src=\"{{ asset(video.path, 'profile_media', 'fullsize') }}\" type=\"video/mp4\">
  1166.                                     Your browser does not support the video tag.
  1167.                                 </video>
  1168.                             </div>
  1169.                         {% endfor %}
  1170.                     </div>
  1171.                 {% endif %}
  1172.             </div>
  1173.         </div>
  1174.         <div class=\"col-9\">
  1175.             <div id=\"center_column_metric\">
  1176.                 <h5>{{ profile.name|trans }} {{ rating }}&#9733;
  1177.                     {% if not profile.deleted %}
  1178.                         {% if profile.isModerationRejected %}
  1179.                             <h3>Анкета отклонена модератором</h3>
  1180.                         {% else %}
  1181.                             {% if profile.active %}
  1182.                                 <small><a href=\"tel:{{ profile.phoneNumber }}\">{{ profile.phoneNumber }}</a></small>
  1183.                             {% endif %}
  1184.                         {% endif %}
  1185.                     {% else %}
  1186.                         Заглушка телефона
  1187.                     {% endif %}
  1188.                 </h5>
  1189.                 <dl>
  1190.                     <dt>{% trans %}Город{% endtrans %}</dt>
  1191.                     <dd>{{ profile.city.name|trans }}</dd>
  1192.                     <dt>{% trans %}Метро{% endtrans %}</dt>
  1193.                     <dd>
  1194.                         {% for station in profile.stationsSortedByPrimary %}
  1195.                             <a href=\"{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}\">{{ station.name|trans }} {% if loop.first %}*{% endif %}</a>
  1196.                             {% if not loop.last %}, {% endif %}
  1197.                         {% endfor %}
  1198.                     </dd>
  1199.                     <dt>{% trans %}Район{% endtrans %}</dt>
  1200.                     <dd>
  1201.                         {% for station in profile.stationsSortedByPrimary %}
  1202.                             {% set stationDistrict = station.district %}
  1203.                             {% if stationDistrict %}
  1204.                                 {% set districtCounty = stationDistrict.county %}
  1205.                                 {% if districtCounty %}
  1206.                                     <a href=\"{{ path('profile_list.list_by_county', {'city': profile.city.uriIdentity, 'county': districtCounty.uriIdentity}) }}\">{{ districtCounty.name|trans }}</a>
  1207.                                 {% endif %}
  1208.                             {% endif %}
  1209.                         {% endfor %}
  1210.                     </dd>
  1211.                     {% if not profile.deleted %}
  1212.                         {% if not profile.isModerationRejected %}
  1213.                             <dt><strong>{% trans %}Телефон{% endtrans %}</strong></dt>
  1214.                             <dd><strong>{{ profile.phoneNumber }}</strong></dd>
  1215.                             {% if feature('extended_profile_form')
  1216.                                 and profile.messengers
  1217.                                 and profile.messengers.hasTelegram
  1218.                                 and profile.messengers.telegramUsername is not empty %}
  1219.                                 <dt>
  1220.                                     <strong>{% trans %}Телеграм{% endtrans %}</strong> {{ profile.messengers.hasTelegram }}
  1221.                                 </dt>
  1222.                                 <dd><a href=\"https://t.me/{{ profile.messengers.telegramUsername }}\"
  1223.                                        target=\"_blank\" rel=\"nofollow noopener\">
  1224.                                         @{{ profile.messengers.telegramUsername }}
  1225.                                     </a></dd>
  1226.                             {% endif %}
  1227.                         {% endif %}
  1228.                     {% else %}
  1229.                         Заглушка телефона
  1230.                     {% endif %}
  1231.                     <dt>{% trans %}Возраст{% endtrans %}</dt>
  1232.                     <dd>{{ profile.personParameters.age }}</dd>
  1233.                     <dt>{% trans %}Рост{% endtrans %}</dt>
  1234.                     <dd>{{ profile.personParameters.height }}</dd>
  1235.                     <dt>{% trans %}Размер груди{% endtrans %}</dt>
  1236.                     <dd>{{ profile.personParameters.breastSize }}</dd>
  1237.                     <dt>{% trans %}Вес{% endtrans %}</dt>
  1238.                     <dd>{{ profile.personParameters.weight }}</dd>
  1239.                     <dt>{% trans %}Размер одежды{% endtrans %}</dt>
  1240.                     <dd>{{ profile.personParameters.clothSize }}</dd>
  1241.                     <dt>{% trans %}Телосложение{% endtrans %}</dt>
  1242.                     <dd>{{ profile.personParameters.bodyType|body_type|trans }}</dd>
  1243.                     <dt>{% trans %}Цвет волос{% endtrans %}</dt>
  1244.                     <dd>{{ profile.personParameters.hairColor|hair_color|trans }}</dd>
  1245.                     <dt>{% trans %}Интимная стрижка{% endtrans %}</dt>
  1246.                     <dd>{{ profile.personParameters.privateHaircut|private_haircut|trans }}</dd>
  1247.                     <dt>{% trans %}Национальность{% endtrans %}</dt>
  1248.                     <dd>{{ profile.personParameters.nationality|nationality|trans }}</dd>
  1249.                     <dt>{% trans %}Дата обновления{% endtrans %}</dt>
  1250.                     <dd>{{ profile.updatedAt|date }}</dd>
  1251.                 </dl>
  1252.                 <h6>{% trans %}О себе{% endtrans %}</h6>
  1253.                 <p>{{ profile.description|trans }}</p>
  1254.                 <h6>{% trans %}Предпочтения{% endtrans %}</h6>
  1255.                 {% for group, servicesGroup in services | filter((servicesGroup, group) => not profile.masseur or group not in masseurExcludeServiceGroups) %}
  1256.                     <p><strong>{{ group|service_group|trans({}, 'service_groups') }}</strong></p>
  1257.                     <ul>
  1258.                         {% for service in servicesGroup %}
  1259.                             {% set providedService = profile.providedService(service) %}
  1260.                             <li class=\"{% if providedService %}text-success{% else %}text-danger{% endif %}\">
  1261.                                 <a href=\"{{ path('profile_list.list_by_provided_service', {'city': profile.city.uriIdentity, 'service': service.uriIdentity}) }}\">{{ service.name|trans }}</a>
  1262.                             </li>
  1263.                             {% if providedService %}
  1264.                                 {% if feature('extended_profile_form') %}
  1265.                                     {{ providedService.condition|provided_service_condition|trans({},'service_conditions') }}{% if providedService.condition == 3 %}, цена:{{ providedService.extraCharge }}{% endif %}
  1266.                                 {% endif %}
  1267.                                 {% if providedService.comment %}
  1268.                                     Комментарий: {{ providedService.comment }}
  1269.                                 {% endif %}
  1270.                             {% endif %}
  1271.                         {% endfor %}
  1272.                     </ul>
  1273.                 {% endfor %}
  1274.                 <h6>{% trans %}Отзывы{% endtrans %}</h6>
  1275.                 <div id=\"comments\">
  1276.                     {% for comment in profile.comments %}
  1277.                         {% include 'ProfilePreview/comment.html.twig' %}
  1278.                     {% else %}
  1279.                         <p>{% trans %}Отзывов нет{% endtrans %}</p>
  1280.                     {% endfor %}
  1281.                 </div>
  1282.                 <div id=\"commentFormContainer\">
  1283.                 </div>
  1284.                 <div id=\"recaptcha-container\"></div>
  1285.                 {% if feature('extended_profile_form') %}
  1286.                     <div>
  1287.                         {% if profile.expressPricing %}
  1288.                             <b>Экспресс:</b>
  1289.                             {% if profile.expressPricing.provided %}
  1290.                                 Да, стоимость{{ profile.expressPricing.price }}
  1291.                             {% else %}
  1292.                                 Нет
  1293.                             {% endif %}
  1294.                         {% endif %}
  1295.                     </div>
  1296.                 {% endif %}
  1297.                 {% if profile.clientTypes %}
  1298.                     <div>
  1299.                         <b>Услуги для:</b>
  1300.                         {% for clientType in profile.clientTypes %}
  1301.                             {{ clientType|client_type|trans({}, 'client_types') }}<br>
  1302.                         {% endfor %}
  1303.                     </div>
  1304.                 {% endif %}
  1305.                 {% if feature('extended_profile_form') %}
  1306.                     <div>
  1307.                         {% if profile.messengers %}
  1308.                             <b>Мессенджеры</b><br>
  1309.                             <b>Telegram</b> {{ profile.messengers.telegram ? 'Да' : 'Нет' }}
  1310.                             <b>WhatsApp</b> {{ profile.messengers.whatsApp ? 'Да' : 'Нет' }}
  1311.                         {% endif %}
  1312.                     </div>
  1313.                 {% endif %}
  1314.                 {% if feature('extended_profile_form') %}
  1315.                     <div>
  1316.                         {% if profile.carPricing %}
  1317.                             <b>В машине:</b> {{ profile.carPricing.provided ? 'Да' : 'Нет' }}
  1318.                         {% endif %}
  1319.                     </div>
  1320.                 {% endif %}
  1321.                 {% if feature('extended_profile_form') %}
  1322.                     <div>
  1323.                         {% if profile.personParameters.tattoo is not null %}
  1324.                             <b>Тату:</b> {{ profile.personParameters.tattoo ? 'Да' : 'Нет' }}
  1325.                         {% endif %}
  1326.                     </div>
  1327.                     <div>
  1328.                         {% if profile.personParameters.piercing is not null %}
  1329.                             <b>Пирсинг:</b> {{ profile.personParameters.piercing ? 'Да' : 'Нет' }}
  1330.                         {% endif %}
  1331.                     </div>
  1332.                 {% endif %}
  1333.                 <div>
  1334.                     <b>Отвечаю на:</b>
  1335.                     {% for answeringTo in profile.phoneCallRestrictions.answeringTo %}
  1336.                         {{ answeringTo|answering_to|trans({}, 'phone_call_restrictions') }}<br>
  1337.                     {% endfor %}
  1338.                 </div>
  1339.             </div>
  1340.         </div>
  1341.         {% include 'ProfilePreview/nearest_profiles.html.twig' %}
  1342.         <div id=\"recentlyViewedProfiles\"></div>
  1343.     </div>
  1344.     <script type=\"text/javascript\">
  1345.         var onloadCallback = function () {
  1346.             grecaptcha.render('recaptcha-container', {
  1347.                 'sitekey': '{{ ewz_recaptcha_site_key }}'
  1348.             });
  1349.         };
  1350.     </script>
  1351.     <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
  1352.     <script src=\"{{ asset('ajax.js', 'js_script') }}\"></script>
  1353.     <script src=\"{{ asset('local-storage.js', 'js_script') }}\"></script>
  1354.     <script src=\"{{ asset('recommendations.js', 'js_script') }}\"></script>
  1355.     <script src=\"{{ asset('bot-helper.js', 'js_script') }}\"></script>
  1356.     <script src=\"{{ asset('recently-viewed.js', 'js_script') }}\"></script>
  1357.     <script type=\"text/javascript\">
  1358.         document.addEventListener('DOMContentLoaded', function () {
  1359.             profileRecommendations.addViewedProfile({{ profile.id }});
  1360.             profileBotHelper.addViewedProfile({{ profile.id }});
  1361.             //достаем список, пока без учета текущей страницы, для текущего аякс запроса
  1362.             const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
  1363.             recentlyViewed.addViewedProfile({{ profile.id }});
  1364.             //recently viewed profiles
  1365.             ajax({
  1366.                 url: '{{ path('recent_profiles.recently_viewed.list') }}',
  1367.                 data: {
  1368.                     recently_viewed_profiles: recentlyViewedProfiles,
  1369.                 },
  1370.                 callback: function (response) {
  1371.                     if (!response)
  1372.                         return;
  1373.                     // console.log(response);
  1374.                     document.querySelector('#recentlyViewedProfiles').innerHTML = response;
  1375.                 },
  1376.                 dataType: 'json',
  1377.                 responseType: 'text/html',
  1378.             });
  1379.             ajax({
  1380.                 url: '{{ path('profile.comment.comment_form', {profile: profile.id}) }}',
  1381.                 callback: function (response) {
  1382.                     // console.log(response);
  1383.                     if ('' !== response) {
  1384.                         document.querySelector('#commentFormContainer').innerHTML = response;
  1385.                         setCommentFormListeners();
  1386.                     }
  1387.                 },
  1388.                 dataType: 'json',
  1389.                 responseType: 'text/html',
  1390.             });
  1391.             function setCommentFormListeners() {
  1392.                 const formName = 'comment_form';
  1393.                 document.querySelector('#send_comment').addEventListener('click', function () {
  1394.                     ajax({
  1395.                         url: '{{ path('profile.comment.create', {profile: profile.id}) }}',
  1396.                         method: '',
  1397.                         data: {
  1398.                             'g-recaptcha-response': grecaptcha.getResponse(),
  1399.                             'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
  1400.                             'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
  1401.                             'text': document.querySelector(`#\${formName}_text`).value,
  1402.                         },
  1403.                         callback: function (response) {
  1404.                             if (response) {
  1405.                                 if (response.success) {
  1406.                                     //document.querySelector(`#{formName}`).style.display = 'none';
  1407.                                     //document.querySelector('#send_comment').style.display = 'none';
  1408.                                     document.querySelector(`form[name=\"\${formName}\"]`).reset();
  1409.                                     grecaptcha.reset();
  1410.                                     let template =
  1411.                                         '<div>' +
  1412.                                         (response.comment.nickname ?
  1413.                                             '<span class=\"author\">' +
  1414.                                             '<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
  1415.                                             '<span class=\"name\">#nickname</span>' +
  1416.                                             '</span>' : '') +
  1417.                                         '<span class=\"date\">#createdAt</span>' +
  1418.                                         '<span>#text</span>' +
  1419.                                         '</div>'
  1420.                                     ;
  1421.                                     response.comment.createdAt = new Date(response.comment.createdAt * 1000);
  1422.                                     for (let k in response.comment) {
  1423.                                         template = template.replace('#' + k, response.comment[k]);
  1424.                                     }
  1425.                                     document.querySelector('#comments').innerHTML += template;
  1426.                                     // console.log(template);
  1427.                                     // document.querySelector('#comments').innerHTML += response.html;
  1428.                                 } else {
  1429.                                     alert(response.error);
  1430.                                 }
  1431.                             }
  1432.                         },
  1433.                         dataType: 'json',
  1434.                         responseType: 'json',
  1435.                     });
  1436.                 });
  1437.             }
  1438.             //LIKE/UNLIKE
  1439.             document.querySelector('#left_column_metric').addEventListener('click', function (e) {
  1440.                 if (false == e.target.classList.contains('add-remove-favourite'))
  1441.                     return;
  1442.                 addRemoveFavourite(e.target.dataset['action'] == 'add');
  1443.             });
  1444.             let addRemoveFavourite = function (add) {
  1445.                 let btn = document.querySelector('.add-remove-favourite[data-action=\"' + (add ? 'add' : 'remove') + '\"]');
  1446.                 let reverseBtn = document.querySelector('.add-remove-favourite[data-action=\"' + (!add ? 'add' : 'remove') + '\"]');
  1447.                 btn.style.display = 'none';
  1448.                 ajax({
  1449.                     url: add ? '{{ path('account.favourites.add', {profile: profile.id}) }}' : '{{ path('account.favourites.remove', {profile: profile.id}) }}',
  1450.                     callback: function (response) {
  1451.                         if (response) {
  1452.                             if (response.success) {
  1453.                                 reverseBtn.style.display = 'block';
  1454.                             } else {
  1455.                                 btn.style.display = 'block';
  1456.                                 alert(response.error);
  1457.                             }
  1458.                         }
  1459.                     },
  1460.                     dataType: 'json',
  1461.                     responseType: 'json',
  1462.                 });
  1463.             };
  1464.             //LIKE/UNLIKE end
  1465.         });
  1466.     </script>
  1467. {% endblock %}""ProfilePreview/page.html.twig""/app/templates/ProfilePreview/page.html.twig");
  1468.     }
  1469. }