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

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 "                    ";
  517.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extra_category_without_prepayment")) {
  518.             // line 142
  519.             echo "                        ";
  520.             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.'142$this->source); })()), "prepayment", [], "any"falsefalsefalse142)) {
  521.                 // line 143
  522.                 echo "                            <dt>Оплата</dt>
  523.                             <dd>
  524.                                 Предоплата ";
  525.                 // line 145
  526.                 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.'145$this->source); })()), "prepaymentAmount", [], "any"falsefalsefalse145), "html"nulltrue);
  527.                 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.'145$this->source); })()), "prepaymentComment", [], "any"falsefalsefalse145)) {
  528.                     echo ". ";
  529.                     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.'145$this->source); })()), "prepaymentComment", [], "any"falsefalsefalse145), "html"nulltrue);
  530.                 }
  531.                 // line 146
  532.                 echo "                            </dd>
  533.                         ";
  534.             } elseif ((twig_get_attribute($this->env$this->source,             // line 147
  535. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'147$this->source); })()), "prepayment", [], "any"falsefalsefalse147) === false)) {
  536.                 // line 148
  537.                 echo "                            <dt>Оплата</dt>
  538.                             <dd>Без предоплаты</dd>
  539.                         ";
  540.             }
  541.             // line 151
  542.             echo "                    ";
  543.         }
  544.         // line 152
  545.         echo "                    <dt>";
  546.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Возраст", [], "messages");
  547.         echo "</dt>
  548.                     <dd>";
  549.         // line 153
  550.         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.'153$this->source); })()), "personParameters", [], "any"falsefalsefalse153), "age", [], "any"falsefalsefalse153), "html"nulltrue);
  551.         echo "</dd>
  552.                     <dt>";
  553.         // line 154
  554.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Рост", [], "messages");
  555.         echo "</dt>
  556.                     <dd>";
  557.         // line 155
  558.         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.'155$this->source); })()), "personParameters", [], "any"falsefalsefalse155), "height", [], "any"falsefalsefalse155), "html"nulltrue);
  559.         echo "</dd>
  560.                     <dt>";
  561.         // line 156
  562.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер груди", [], "messages");
  563.         echo "</dt>
  564.                     <dd>";
  565.         // line 157
  566.         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.'157$this->source); })()), "personParameters", [], "any"falsefalsefalse157), "breastSize", [], "any"falsefalsefalse157), "html"nulltrue);
  567.         echo "</dd>
  568.                     <dt>";
  569.         // line 158
  570.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Вес", [], "messages");
  571.         echo "</dt>
  572.                     <dd>";
  573.         // line 159
  574.         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.'159$this->source); })()), "personParameters", [], "any"falsefalsefalse159), "weight", [], "any"falsefalsefalse159), "html"nulltrue);
  575.         echo "</dd>
  576.                     <dt>";
  577.         // line 160
  578.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер одежды", [], "messages");
  579.         echo "</dt>
  580.                     <dd>";
  581.         // line 161
  582.         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.'161$this->source); })()), "personParameters", [], "any"falsefalsefalse161), "clothSize", [], "any"falsefalsefalse161), "html"nulltrue);
  583.         echo "</dd>
  584.                     <dt>";
  585.         // line 162
  586.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телосложение", [], "messages");
  587.         echo "</dt>
  588.                     <dd>";
  589.         // line 163
  590.         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.'163$this->source); })()), "personParameters", [], "any"falsefalsefalse163), "bodyType", [], "any"falsefalsefalse163))), "html"nulltrue);
  591.         echo "</dd>
  592.                     <dt>";
  593.         // line 164
  594.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Цвет волос", [], "messages");
  595.         echo "</dt>
  596.                     <dd>";
  597.         // line 165
  598.         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.'165$this->source); })()), "personParameters", [], "any"falsefalsefalse165), "hairColor", [], "any"falsefalsefalse165))), "html"nulltrue);
  599.         echo "</dd>
  600.                     <dt>";
  601.         // line 166
  602.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Интимная стрижка", [], "messages");
  603.         echo "</dt>
  604.                     <dd>";
  605.         // line 167
  606.         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.'167$this->source); })()), "personParameters", [], "any"falsefalsefalse167), "privateHaircut", [], "any"falsefalsefalse167))), "html"nulltrue);
  607.         echo "</dd>
  608.                     <dt>";
  609.         // line 168
  610.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Национальность", [], "messages");
  611.         echo "</dt>
  612.                     <dd>";
  613.         // line 169
  614.         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.'169$this->source); })()), "personParameters", [], "any"falsefalsefalse169), "nationality", [], "any"falsefalsefalse169))), "html"nulltrue);
  615.         echo "</dd>
  616.                     <dt>";
  617.         // line 170
  618.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Дата обновления", [], "messages");
  619.         echo "</dt>
  620.                     <dd>";
  621.         // line 171
  622.         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.'171$this->source); })()), "updatedAt", [], "any"falsefalsefalse171)), "html"nulltrue);
  623.         echo "</dd>
  624.                 </dl>
  625.                 <h6>";
  626.         // line 174
  627.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("О себе", [], "messages");
  628.         echo "</h6>
  629.                 <p>";
  630.         // line 175
  631.         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.'175$this->source); })()), "description", [], "any"falsefalsefalse175)), "html"nulltrue);
  632.         echo "</p>
  633.                 <h6>";
  634.         // line 177
  635.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Предпочтения", [], "messages");
  636.         echo "</h6>
  637.                 ";
  638.         // line 178
  639.         $context['_parent'] = $context;
  640.         $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.'178$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.'178$this->source); })()), "masseur", [], "any"falsefalsefalse178) || !twig_in_filter($context["group"], (isset($context["masseurExcludeServiceGroups"]) || array_key_exists("masseurExcludeServiceGroups"$context) ? $context["masseurExcludeServiceGroups"] : (function () { throw new RuntimeError('Variable "masseurExcludeServiceGroups" does not exist.'178$this->source); })()))); }));
  641.         foreach ($context['_seq'] as $context["group"] => $context["servicesGroup"]) {
  642.             // line 179
  643.             echo "                    <p><strong>";
  644.             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);
  645.             echo "</strong></p>
  646.                     <ul>
  647.                         ";
  648.             // line 181
  649.             $context['_parent'] = $context;
  650.             $context['_seq'] = twig_ensure_traversable($context["servicesGroup"]);
  651.             foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
  652.                 // line 182
  653.                 echo "                            ";
  654.                 $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.'182$this->source); })()), "providedService", [$context["service"]], "method"falsefalsefalse182);
  655.                 // line 183
  656.                 echo "                            <li class=\"";
  657.                 if ((isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'183$this->source); })())) {
  658.                     echo "text-success";
  659.                 } else {
  660.                     echo "text-danger";
  661.                 }
  662.                 echo "\">
  663.                                 <a href=\"";
  664.                 // line 184
  665.                 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.'184$this->source); })()), "city", [], "any"falsefalsefalse184), "uriIdentity", [], "any"falsefalsefalse184), "service" => twig_get_attribute($this->env$this->source$context["service"], "uriIdentity", [], "any"falsefalsefalse184)]), "html"nulltrue);
  666.                 echo "\">";
  667.                 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"falsefalsefalse184)), "html"nulltrue);
  668.                 echo "</a>
  669.                             </li>
  670.                             ";
  671.                 // line 186
  672.                 if ((isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'186$this->source); })())) {
  673.                     // line 187
  674.                     echo "                                ";
  675.                     if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  676.                         // line 188
  677.                         echo "                                    ";
  678.                         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.'188$this->source); })()), "condition", [], "any"falsefalsefalse188)), [], "service_conditions"), "html"nulltrue);
  679.                         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.'188$this->source); })()), "condition", [], "any"falsefalsefalse188) == 3)) {
  680.                             echo ", цена:";
  681.                             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.'188$this->source); })()), "extraCharge", [], "any"falsefalsefalse188), "html"nulltrue);
  682.                         }
  683.                         // line 189
  684.                         echo "                                ";
  685.                     }
  686.                     // line 190
  687.                     echo "                                ";
  688.                     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.'190$this->source); })()), "comment", [], "any"falsefalsefalse190)) {
  689.                         // line 191
  690.                         echo "                                    Комментарий: ";
  691.                         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.'191$this->source); })()), "comment", [], "any"falsefalsefalse191), "html"nulltrue);
  692.                         echo "
  693.                                 ";
  694.                     }
  695.                     // line 193
  696.                     echo "                            ";
  697.                 }
  698.                 // line 194
  699.                 echo "                        ";
  700.             }
  701.             $_parent $context['_parent'];
  702.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
  703.             $context array_intersect_key($context$_parent) + $_parent;
  704.             // line 195
  705.             echo "                    </ul>
  706.                 ";
  707.         }
  708.         $_parent $context['_parent'];
  709.         unset($context['_seq'], $context['_iterated'], $context['group'], $context['servicesGroup'], $context['_parent'], $context['loop']);
  710.         $context array_intersect_key($context$_parent) + $_parent;
  711.         // line 197
  712.         echo "
  713.                 <h6>";
  714.         // line 198
  715.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывы", [], "messages");
  716.         echo "</h6>
  717.                 <div id=\"comments\">
  718.                     ";
  719.         // line 200
  720.         $context['_parent'] = $context;
  721.         $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.'200$this->source); })()), "comments", [], "any"falsefalsefalse200));
  722.         $context['_iterated'] = false;
  723.         $context['loop'] = [
  724.           'parent' => $context['_parent'],
  725.           'index0' => 0,
  726.           'index'  => 1,
  727.           'first'  => true,
  728.         ];
  729.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  730.             $length count($context['_seq']);
  731.             $context['loop']['revindex0'] = $length 1;
  732.             $context['loop']['revindex'] = $length;
  733.             $context['loop']['length'] = $length;
  734.             $context['loop']['last'] = === $length;
  735.         }
  736.         foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
  737.             // line 201
  738.             echo "                        ";
  739.             $this->loadTemplate("ProfilePreview/comment.html.twig""ProfilePreview/page.html.twig"201)->display($context);
  740.             // line 202
  741.             echo "                    ";
  742.             $context['_iterated'] = true;
  743.             ++$context['loop']['index0'];
  744.             ++$context['loop']['index'];
  745.             $context['loop']['first'] = false;
  746.             if (isset($context['loop']['length'])) {
  747.                 --$context['loop']['revindex0'];
  748.                 --$context['loop']['revindex'];
  749.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  750.             }
  751.         }
  752.         if (!$context['_iterated']) {
  753.             // line 203
  754.             echo "                        <p>";
  755.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывов нет", [], "messages");
  756.             echo "</p>
  757.                     ";
  758.         }
  759.         $_parent $context['_parent'];
  760.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
  761.         $context array_intersect_key($context$_parent) + $_parent;
  762.         // line 205
  763.         echo "                </div>
  764.                 <div id=\"commentFormContainer\">
  765.                 </div>
  766.                 <div id=\"recaptcha-container\"></div>
  767.                 ";
  768.         // line 212
  769.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  770.             // line 213
  771.             echo "                    <div>
  772.                         ";
  773.             // line 214
  774.             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); })()), "expressPricing", [], "any"falsefalsefalse214)) {
  775.                 // line 215
  776.                 echo "                            <b>Экспресс:</b>
  777.                             ";
  778.                 // line 216
  779.                 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.'216$this->source); })()), "expressPricing", [], "any"falsefalsefalse216), "provided", [], "any"falsefalsefalse216)) {
  780.                     // line 217
  781.                     echo "                                Да, стоимость";
  782.                     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.'217$this->source); })()), "expressPricing", [], "any"falsefalsefalse217), "price", [], "any"falsefalsefalse217), "html"nulltrue);
  783.                     echo "
  784.                             ";
  785.                 } else {
  786.                     // line 219
  787.                     echo "                                Нет
  788.                             ";
  789.                 }
  790.                 // line 221
  791.                 echo "                        ";
  792.             }
  793.             // line 222
  794.             echo "                    </div>
  795.                 ";
  796.         }
  797.         // line 224
  798.         echo "
  799.                 ";
  800.         // line 225
  801.         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); })()), "clientTypes", [], "any"falsefalsefalse225)) {
  802.             // line 226
  803.             echo "                    <div>
  804.                         <b>Услуги для:</b>
  805.                         ";
  806.             // line 228
  807.             $context['_parent'] = $context;
  808.             $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.'228$this->source); })()), "clientTypes", [], "any"falsefalsefalse228));
  809.             foreach ($context['_seq'] as $context["_key"] => $context["clientType"]) {
  810.                 // line 229
  811.                 echo "                            ";
  812.                 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);
  813.                 echo "<br>
  814.                         ";
  815.             }
  816.             $_parent $context['_parent'];
  817.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['clientType'], $context['_parent'], $context['loop']);
  818.             $context array_intersect_key($context$_parent) + $_parent;
  819.             // line 231
  820.             echo "                    </div>
  821.                 ";
  822.         }
  823.         // line 233
  824.         echo "
  825.                 ";
  826.         // line 234
  827.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  828.             // line 235
  829.             echo "                    <div>
  830.                         ";
  831.             // line 236
  832.             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.'236$this->source); })()), "messengers", [], "any"falsefalsefalse236)) {
  833.                 // line 237
  834.                 echo "                            <b>Мессенджеры</b><br>
  835.                             <b>Telegram</b> ";
  836.                 // line 238
  837.                 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.'238$this->source); })()), "messengers", [], "any"falsefalsefalse238), "telegram", [], "any"falsefalsefalse238)) ? ("Да") : ("Нет"));
  838.                 echo "
  839.                             <b>WhatsApp</b> ";
  840.                 // line 239
  841.                 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.'239$this->source); })()), "messengers", [], "any"falsefalsefalse239), "whatsApp", [], "any"falsefalsefalse239)) ? ("Да") : ("Нет"));
  842.                 echo "
  843.                         ";
  844.             }
  845.             // line 241
  846.             echo "                    </div>
  847.                 ";
  848.         }
  849.         // line 243
  850.         echo "
  851.                 ";
  852.         // line 244
  853.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  854.             // line 245
  855.             echo "                    <div>
  856.                         ";
  857.             // line 246
  858.             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.'246$this->source); })()), "carPricing", [], "any"falsefalsefalse246)) {
  859.                 // line 247
  860.                 echo "                            <b>В машине:</b> ";
  861.                 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.'247$this->source); })()), "carPricing", [], "any"falsefalsefalse247), "provided", [], "any"falsefalsefalse247)) ? ("Да") : ("Нет"));
  862.                 echo "
  863.                         ";
  864.             }
  865.             // line 249
  866.             echo "                    </div>
  867.                 ";
  868.         }
  869.         // line 251
  870.         echo "
  871.                 ";
  872.         // line 252
  873.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  874.             // line 253
  875.             echo "                    <div>
  876.                         ";
  877.             // line 254
  878.             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.'254$this->source); })()), "personParameters", [], "any"falsefalsefalse254), "tattoo", [], "any"falsefalsefalse254))) {
  879.                 // line 255
  880.                 echo "                            <b>Тату:</b> ";
  881.                 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.'255$this->source); })()), "personParameters", [], "any"falsefalsefalse255), "tattoo", [], "any"falsefalsefalse255)) ? ("Да") : ("Нет"));
  882.                 echo "
  883.                         ";
  884.             }
  885.             // line 257
  886.             echo "                    </div>
  887.                     <div>
  888.                         ";
  889.             // line 259
  890.             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.'259$this->source); })()), "personParameters", [], "any"falsefalsefalse259), "piercing", [], "any"falsefalsefalse259))) {
  891.                 // line 260
  892.                 echo "                            <b>Пирсинг:</b> ";
  893.                 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.'260$this->source); })()), "personParameters", [], "any"falsefalsefalse260), "piercing", [], "any"falsefalsefalse260)) ? ("Да") : ("Нет"));
  894.                 echo "
  895.                         ";
  896.             }
  897.             // line 262
  898.             echo "                    </div>
  899.                 ";
  900.         }
  901.         // line 264
  902.         echo "                <div>
  903.                     <b>Отвечаю на:</b>
  904.                     ";
  905.         // line 266
  906.         $context['_parent'] = $context;
  907.         $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.'266$this->source); })()), "phoneCallRestrictions", [], "any"falsefalsefalse266), "answeringTo", [], "any"falsefalsefalse266));
  908.         foreach ($context['_seq'] as $context["_key"] => $context["answeringTo"]) {
  909.             // line 267
  910.             echo "                        ";
  911.             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);
  912.             echo "<br>
  913.                     ";
  914.         }
  915.         $_parent $context['_parent'];
  916.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['answeringTo'], $context['_parent'], $context['loop']);
  917.         $context array_intersect_key($context$_parent) + $_parent;
  918.         // line 269
  919.         echo "                </div>
  920.             </div>
  921.         </div>
  922.         ";
  923.         // line 273
  924.         $this->loadTemplate("ProfilePreview/nearest_profiles.html.twig""ProfilePreview/page.html.twig"273)->display($context);
  925.         // line 274
  926.         echo "
  927.         <div id=\"recentlyViewedProfiles\"></div>
  928.     </div>
  929.     <script type=\"text/javascript\">
  930.         var onloadCallback = function () {
  931.             grecaptcha.render('recaptcha-container', {
  932.                 'sitekey': '";
  933.         // line 281
  934.         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.'281$this->source); })()), "html"nulltrue);
  935.         echo "'
  936.             });
  937.         };
  938.     </script>
  939.     <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
  940.     <script src=\"";
  941.         // line 286
  942.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("ajax.js""js_script"), "html"nulltrue);
  943.         echo "\"></script>
  944.     <script src=\"";
  945.         // line 287
  946.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("local-storage.js""js_script"), "html"nulltrue);
  947.         echo "\"></script>
  948.     <script src=\"";
  949.         // line 288
  950.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recommendations.js""js_script"), "html"nulltrue);
  951.         echo "\"></script>
  952.     <script src=\"";
  953.         // line 289
  954.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bot-helper.js""js_script"), "html"nulltrue);
  955.         echo "\"></script>
  956.     <script src=\"";
  957.         // line 290
  958.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recently-viewed.js""js_script"), "html"nulltrue);
  959.         echo "\"></script>
  960.     <script type=\"text/javascript\">
  961.         document.addEventListener('DOMContentLoaded', function () {
  962.             ajax({
  963.                 url: '";
  964.         // line 294
  965.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_ctr.increase_views");
  966.         echo "',
  967.                 data: {
  968.                     profile: ";
  969.         // line 296
  970.         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.'296$this->source); })()), "id", [], "any"falsefalsefalse296), "html"nulltrue);
  971.         echo ",
  972.                 },
  973.                 callback: function () {},
  974.                 dataType: 'json',
  975.                 responseType: 'json',
  976.             });
  977.             profileRecommendations.addViewedProfile(";
  978.         // line 303
  979.         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.'303$this->source); })()), "id", [], "any"falsefalsefalse303), "html"nulltrue);
  980.         echo ");
  981.             profileBotHelper.addViewedProfile(";
  982.         // line 304
  983.         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.'304$this->source); })()), "id", [], "any"falsefalsefalse304), "html"nulltrue);
  984.         echo ");
  985.             //достаем список, пока без учета текущей страницы, для текущего аякс запроса
  986.             const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
  987.             recentlyViewed.addViewedProfile(";
  988.         // line 307
  989.         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.'307$this->source); })()), "id", [], "any"falsefalsefalse307), "html"nulltrue);
  990.         echo ");
  991.             //recently viewed profiles
  992.             ajax({
  993.                 url: '";
  994.         // line 311
  995.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("recent_profiles.recently_viewed.list");
  996.         echo "',
  997.                 data: {
  998.                     recently_viewed_profiles: recentlyViewedProfiles,
  999.                 },
  1000.                 callback: function (response) {
  1001.                     if (!response)
  1002.                         return;
  1003.                     // console.log(response);
  1004.                     document.querySelector('#recentlyViewedProfiles').innerHTML = response;
  1005.                 },
  1006.                 dataType: 'json',
  1007.                 responseType: 'text/html',
  1008.             });
  1009.             ajax({
  1010.                 url: '";
  1011.         // line 326
  1012.         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.'326$this->source); })()), "id", [], "any"falsefalsefalse326)]), "html"nulltrue);
  1013.         echo "',
  1014.                 callback: function (response) {
  1015.                     // console.log(response);
  1016.                     if ('' !== response) {
  1017.                         document.querySelector('#commentFormContainer').innerHTML = response;
  1018.                         setCommentFormListeners();
  1019.                     }
  1020.                 },
  1021.                 dataType: 'json',
  1022.                 responseType: 'text/html',
  1023.             });
  1024.             function setCommentFormListeners() {
  1025.                 const formName = 'comment_form';
  1026.                 document.querySelector('#send_comment').addEventListener('click', function () {
  1027.                     ajax({
  1028.                         url: '";
  1029.         // line 343
  1030.         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.'343$this->source); })()), "id", [], "any"falsefalsefalse343)]), "html"nulltrue);
  1031.         echo "',
  1032.                         method: '',
  1033.                         data: {
  1034.                             'g-recaptcha-response': grecaptcha.getResponse(),
  1035.                             'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
  1036.                             'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
  1037.                             'text': document.querySelector(`#\${formName}_text`).value,
  1038.                         },
  1039.                         callback: function (response) {
  1040.                             if (response) {
  1041.                                 if (response.success) {
  1042.                                     //document.querySelector(`#{formName}`).style.display = 'none';
  1043.                                     //document.querySelector('#send_comment').style.display = 'none';
  1044.                                     document.querySelector(`form[name=\"\${formName}\"]`).reset();
  1045.                                     grecaptcha.reset();
  1046.                                     let template =
  1047.                                         '<div>' +
  1048.                                         (response.comment.nickname ?
  1049.                                             '<span class=\"author\">' +
  1050.                                             '<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
  1051.                                             '<span class=\"name\">#nickname</span>' +
  1052.                                             '</span>' : '') +
  1053.                                         '<span class=\"date\">#createdAt</span>' +
  1054.                                         '<span>#text</span>' +
  1055.                                         '</div>'
  1056.                                     ;
  1057.                                     response.comment.createdAt = new Date(response.comment.createdAt * 1000);
  1058.                                     for (let k in response.comment) {
  1059.                                         template = template.replace('#' + k, response.comment[k]);
  1060.                                     }
  1061.                                     document.querySelector('#comments').innerHTML += template;
  1062.                                     // console.log(template);
  1063.                                     // document.querySelector('#comments').innerHTML += response.html;
  1064.                                 } else {
  1065.                                     alert(response.error);
  1066.                                 }
  1067.                             }
  1068.                         },
  1069.                         dataType: 'json',
  1070.                         responseType: 'json',
  1071.                     });
  1072.                 });
  1073.             }
  1074.             //LIKE/UNLIKE
  1075.             document.querySelector('#left_column_metric').addEventListener('click', function (e) {
  1076.                 if (false == e.target.classList.contains('add-remove-favourite'))
  1077.                     return;
  1078.                 addRemoveFavourite(e.target.dataset['action'] == 'add');
  1079.             });
  1080.             let addRemoveFavourite = function (add) {
  1081.                 let btn = document.querySelector('.add-remove-favourite[data-action=\"' + (add ? 'add' : 'remove') + '\"]');
  1082.                 let reverseBtn = document.querySelector('.add-remove-favourite[data-action=\"' + (!add ? 'add' : 'remove') + '\"]');
  1083.                 btn.style.display = 'none';
  1084.                 ajax({
  1085.                     url: add ? '";
  1086.         // line 401
  1087.         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.'401$this->source); })()), "id", [], "any"falsefalsefalse401)]), "html"nulltrue);
  1088.         echo "' : '";
  1089.         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.'401$this->source); })()), "id", [], "any"falsefalsefalse401)]), "html"nulltrue);
  1090.         echo "',
  1091.                     callback: function (response) {
  1092.                         if (response) {
  1093.                             if (response.success) {
  1094.                                 reverseBtn.style.display = 'block';
  1095.                             } else {
  1096.                                 btn.style.display = 'block';
  1097.                                 alert(response.error);
  1098.                             }
  1099.                         }
  1100.                     },
  1101.                     dataType: 'json',
  1102.                     responseType: 'json',
  1103.                 });
  1104.             };
  1105.             //LIKE/UNLIKE end
  1106.         });
  1107.     </script>
  1108. ";
  1109.         
  1110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1111.         
  1112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1113.         
  1114.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  1115.     }
  1116.     /**
  1117.      * @codeCoverageIgnore
  1118.      */
  1119.     public function getTemplateName()
  1120.     {
  1121.         return "ProfilePreview/page.html.twig";
  1122.     }
  1123.     /**
  1124.      * @codeCoverageIgnore
  1125.      */
  1126.     public function isTraitable()
  1127.     {
  1128.         return false;
  1129.     }
  1130.     /**
  1131.      * @codeCoverageIgnore
  1132.      */
  1133.     public function getDebugInfo()
  1134.     {
  1135.         return array (  1141 => 401,  1080 => 343,  1060 => 326,  1042 => 311,  1035 => 307,  1029 => 304,  1025 => 303,  1015 => 296,  1010 => 294,  1003 => 290,  999 => 289,  995 => 288,  991 => 287,  987 => 286,  979 => 281,  970 => 274,  968 => 273,  962 => 269,  953 => 267,  949 => 266,  945 => 264,  941 => 262,  935 => 260,  933 => 259,  929 => 257,  923 => 255,  921 => 254,  918 => 253,  916 => 252,  913 => 251,  909 => 249,  903 => 247,  901 => 246,  898 => 245,  896 => 244,  893 => 243,  889 => 241,  884 => 239,  880 => 238,  877 => 237,  875 => 236,  872 => 235,  870 => 234,  867 => 233,  863 => 231,  854 => 229,  850 => 228,  846 => 226,  844 => 225,  841 => 224,  837 => 222,  834 => 221,  830 => 219,  824 => 217,  822 => 216,  819 => 215,  817 => 214,  814 => 213,  812 => 212,  803 => 205,  794 => 203,  781 => 202,  778 => 201,  760 => 200,  755 => 198,  752 => 197,  745 => 195,  739 => 194,  736 => 193,  730 => 191,  727 => 190,  724 => 189,  717 => 188,  714 => 187,  712 => 186,  705 => 184,  696 => 183,  693 => 182,  689 => 181,  683 => 179,  679 => 178,  675 => 177,  670 => 175,  666 => 174,  660 => 171,  656 => 170,  652 => 169,  648 => 168,  644 => 167,  640 => 166,  636 => 165,  632 => 164,  628 => 163,  624 => 162,  620 => 161,  616 => 160,  612 => 159,  608 => 158,  604 => 157,  600 => 156,  596 => 155,  592 => 154,  588 => 153,  583 => 152,  580 => 151,  575 => 148,  573 => 147,  570 => 146,  564 => 145,  560 => 143,  557 => 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,);
  1136.     }
  1137.     public function getSourceContext()
  1138.     {
  1139.         return new Source("{% extends 'ProfilePreview/grid.html.twig' %}
  1140. {% block title %}{{ seo_title() }}{% endblock %}
  1141. {% block metaDescription %}
  1142.     <meta name=\"description\" content=\"{{ seo_description() }}\">
  1143. {% endblock %}
  1144. {% block navbar %}
  1145.     {{ parent() }}
  1146.     {% set excludeRecommendationProfileIds = [profile.id] %}
  1147.     {% include 'Recommendations/_profile_recommendations.html.twig' %}
  1148. {% endblock %}
  1149. {% block mainContainer %}
  1150.     <div class=\"row\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\">
  1151.         <div class=\"col-3\">
  1152.             <div id=\"left_column_metric\">
  1153.                 {% if not app.user or is_user_customer(app.user) %}
  1154.                     <div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\"
  1155.                             style=\"display: {{ is_profile_in_favourites(profile) ? 'block' : 'none' }}\">UNLIKE</a></div>
  1156.                     <div><a class=\"add-remove-favourite\" data-action=\"add\"
  1157.                             style=\"display: {{ not is_profile_in_favourites(profile) ? 'block' : 'none' }}\"
  1158.                             {% if app.user %}href=\"javascript:void(0);\"
  1159.                             {% else %}href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"{% endif %}>LIKE</a>
  1160.                     </div>
  1161.                 {% endif %}
  1162.                 <div class=\"row\">
  1163.                     {% if profile.isApproved %} <b style=\"color:green;\">APPROVED</b><br/> {% endif %}
  1164.                     {% if not profile.deleted %}
  1165.                         {% if profile.isModerationRejected %}
  1166.                             <img src=\"{{ asset('static/img/red-circle.png') }}\"
  1167.                                  alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
  1168.                         {% else %}
  1169.                             {% set photo = profile|avatar %}
  1170.                             {% if photo %}
  1171.                                 <img src=\"{{ asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar') }}\"
  1172.                                      alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
  1173.                             {% endif %}
  1174.                         {% endif %}
  1175.                     {% else %}
  1176.                         Фото-заглушка
  1177.                     {% endif %}
  1178.                 </div>
  1179.                 {% if false == profile.isModerationRejected and profile.photos|length > 0 %}
  1180.                     <div class=\"row\">
  1181.                         {% if not profile.deleted %}
  1182.                             {% for photo in profile.photos %}
  1183.                                 <div class=\"col-4\">
  1184.                                     <img src=\"{{ asset(photo.path, 'profile_media') }}\" alt=\"\" width=\"150\">
  1185.                                 </div>
  1186.                             {% endfor %}
  1187.                         {% endif %}
  1188.                     </div>
  1189.                 {% endif %}
  1190.                 {% if false == profile.isModerationRejected and profile.selfies|length > 0 %}
  1191.                     <div class=\"row\">
  1192.                         {% if not profile.deleted %}
  1193.                             {% for photo in profile.selfies %}
  1194.                                 {% if photo.main == false %}
  1195.                                     <div class=\"col-4\">
  1196.                                         <img src=\"{{ asset(photo.path, 'profile_media_selfie') }}\" alt=\"\" width=\"150\">
  1197.                                     </div>
  1198.                                 {% endif %}
  1199.                             {% endfor %}
  1200.                         {% endif %}
  1201.                     </div>
  1202.                 {% endif %}
  1203.                 {% if false == profile.isModerationRejected and not profile.deleted %}
  1204.                     <div class=\"row\">
  1205.                         {% for video in profile.confirmedVideos | filter(video => video.previewPath) %}
  1206.                             <div class=\"col-4\">
  1207.                                 <video width=\"100%\" controls
  1208.                                        poster=\"{{ asset(video.previewPath, 'profile_media', 'fullsize') }}\">
  1209.                                     <source src=\"{{ asset(video.path, 'profile_media', 'fullsize') }}\" type=\"video/mp4\">
  1210.                                     Your browser does not support the video tag.
  1211.                                 </video>
  1212.                             </div>
  1213.                         {% endfor %}
  1214.                     </div>
  1215.                 {% endif %}
  1216.             </div>
  1217.         </div>
  1218.         <div class=\"col-9\">
  1219.             <div id=\"center_column_metric\">
  1220.                 <h5>{{ profile.name|trans }} {{ rating }}&#9733;
  1221.                     {% if not profile.deleted %}
  1222.                         {% if profile.isModerationRejected %}
  1223.                             <h3>Анкета отклонена модератором</h3>
  1224.                         {% else %}
  1225.                             {% if profile.active %}
  1226.                                 <small><a href=\"tel:{{ profile.phoneNumber }}\">{{ profile.phoneNumber }}</a></small>
  1227.                             {% endif %}
  1228.                         {% endif %}
  1229.                     {% else %}
  1230.                         Заглушка телефона
  1231.                     {% endif %}
  1232.                 </h5>
  1233.                 <dl>
  1234.                     <dt>{% trans %}Город{% endtrans %}</dt>
  1235.                     <dd>{{ profile.city.name|trans }}</dd>
  1236.                     <dt>{% trans %}Метро{% endtrans %}</dt>
  1237.                     <dd>
  1238.                         {% for station in profile.stationsSortedByPrimary %}
  1239.                             <a href=\"{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}\">{{ station.name|trans }} {% if loop.first %}*{% endif %}</a>
  1240.                             {% if not loop.last %}, {% endif %}
  1241.                         {% endfor %}
  1242.                     </dd>
  1243.                     <dt>{% trans %}Район{% endtrans %}</dt>
  1244.                     <dd>
  1245.                         {% for station in profile.stationsSortedByPrimary %}
  1246.                             {% set stationDistrict = station.district %}
  1247.                             {% if stationDistrict %}
  1248.                                 {% set districtCounty = stationDistrict.county %}
  1249.                                 {% if districtCounty %}
  1250.                                     <a href=\"{{ path('profile_list.list_by_county', {'city': profile.city.uriIdentity, 'county': districtCounty.uriIdentity}) }}\">{{ districtCounty.name|trans }}</a>
  1251.                                 {% endif %}
  1252.                             {% endif %}
  1253.                         {% endfor %}
  1254.                     </dd>
  1255.                     {% if not profile.deleted %}
  1256.                         {% if not profile.isModerationRejected %}
  1257.                             <dt><strong>{% trans %}Телефон{% endtrans %}</strong></dt>
  1258.                             <dd><strong>{{ profile.phoneNumber }}</strong></dd>
  1259.                             {% if feature('extended_profile_form')
  1260.                                 and profile.messengers
  1261.                                 and profile.messengers.hasTelegram
  1262.                                 and profile.messengers.telegramUsername is not empty %}
  1263.                                 <dt>
  1264.                                     <strong>{% trans %}Телеграм{% endtrans %}</strong> {{ profile.messengers.hasTelegram }}
  1265.                                 </dt>
  1266.                                 <dd><a href=\"https://t.me/{{ profile.messengers.telegramUsername }}\"
  1267.                                        target=\"_blank\" rel=\"nofollow noopener\">
  1268.                                         @{{ profile.messengers.telegramUsername }}
  1269.                                     </a></dd>
  1270.                             {% endif %}
  1271.                         {% endif %}
  1272.                     {% else %}
  1273.                         Заглушка телефона
  1274.                     {% endif %}
  1275.                     {% if feature('extra_category_without_prepayment') %}
  1276.                         {% if profile.prepayment %}
  1277.                             <dt>Оплата</dt>
  1278.                             <dd>
  1279.                                 Предоплата {{ profile.prepaymentAmount }}{% if profile.prepaymentComment %}. {{ profile.prepaymentComment }}{% endif %}
  1280.                             </dd>
  1281.                         {% elseif profile.prepayment is same as(false) %}
  1282.                             <dt>Оплата</dt>
  1283.                             <dd>Без предоплаты</dd>
  1284.                         {% endif %}
  1285.                     {% endif %}
  1286.                     <dt>{% trans %}Возраст{% endtrans %}</dt>
  1287.                     <dd>{{ profile.personParameters.age }}</dd>
  1288.                     <dt>{% trans %}Рост{% endtrans %}</dt>
  1289.                     <dd>{{ profile.personParameters.height }}</dd>
  1290.                     <dt>{% trans %}Размер груди{% endtrans %}</dt>
  1291.                     <dd>{{ profile.personParameters.breastSize }}</dd>
  1292.                     <dt>{% trans %}Вес{% endtrans %}</dt>
  1293.                     <dd>{{ profile.personParameters.weight }}</dd>
  1294.                     <dt>{% trans %}Размер одежды{% endtrans %}</dt>
  1295.                     <dd>{{ profile.personParameters.clothSize }}</dd>
  1296.                     <dt>{% trans %}Телосложение{% endtrans %}</dt>
  1297.                     <dd>{{ profile.personParameters.bodyType|body_type|trans }}</dd>
  1298.                     <dt>{% trans %}Цвет волос{% endtrans %}</dt>
  1299.                     <dd>{{ profile.personParameters.hairColor|hair_color|trans }}</dd>
  1300.                     <dt>{% trans %}Интимная стрижка{% endtrans %}</dt>
  1301.                     <dd>{{ profile.personParameters.privateHaircut|private_haircut|trans }}</dd>
  1302.                     <dt>{% trans %}Национальность{% endtrans %}</dt>
  1303.                     <dd>{{ profile.personParameters.nationality|nationality|trans }}</dd>
  1304.                     <dt>{% trans %}Дата обновления{% endtrans %}</dt>
  1305.                     <dd>{{ profile.updatedAt|date }}</dd>
  1306.                 </dl>
  1307.                 <h6>{% trans %}О себе{% endtrans %}</h6>
  1308.                 <p>{{ profile.description|trans }}</p>
  1309.                 <h6>{% trans %}Предпочтения{% endtrans %}</h6>
  1310.                 {% for group, servicesGroup in services | filter((servicesGroup, group) => not profile.masseur or group not in masseurExcludeServiceGroups) %}
  1311.                     <p><strong>{{ group|service_group|trans({}, 'service_groups') }}</strong></p>
  1312.                     <ul>
  1313.                         {% for service in servicesGroup %}
  1314.                             {% set providedService = profile.providedService(service) %}
  1315.                             <li class=\"{% if providedService %}text-success{% else %}text-danger{% endif %}\">
  1316.                                 <a href=\"{{ path('profile_list.list_by_provided_service', {'city': profile.city.uriIdentity, 'service': service.uriIdentity}) }}\">{{ service.name|trans }}</a>
  1317.                             </li>
  1318.                             {% if providedService %}
  1319.                                 {% if feature('extended_profile_form') %}
  1320.                                     {{ providedService.condition|provided_service_condition|trans({},'service_conditions') }}{% if providedService.condition == 3 %}, цена:{{ providedService.extraCharge }}{% endif %}
  1321.                                 {% endif %}
  1322.                                 {% if providedService.comment %}
  1323.                                     Комментарий: {{ providedService.comment }}
  1324.                                 {% endif %}
  1325.                             {% endif %}
  1326.                         {% endfor %}
  1327.                     </ul>
  1328.                 {% endfor %}
  1329.                 <h6>{% trans %}Отзывы{% endtrans %}</h6>
  1330.                 <div id=\"comments\">
  1331.                     {% for comment in profile.comments %}
  1332.                         {% include 'ProfilePreview/comment.html.twig' %}
  1333.                     {% else %}
  1334.                         <p>{% trans %}Отзывов нет{% endtrans %}</p>
  1335.                     {% endfor %}
  1336.                 </div>
  1337.                 <div id=\"commentFormContainer\">
  1338.                 </div>
  1339.                 <div id=\"recaptcha-container\"></div>
  1340.                 {% if feature('extended_profile_form') %}
  1341.                     <div>
  1342.                         {% if profile.expressPricing %}
  1343.                             <b>Экспресс:</b>
  1344.                             {% if profile.expressPricing.provided %}
  1345.                                 Да, стоимость{{ profile.expressPricing.price }}
  1346.                             {% else %}
  1347.                                 Нет
  1348.                             {% endif %}
  1349.                         {% endif %}
  1350.                     </div>
  1351.                 {% endif %}
  1352.                 {% if profile.clientTypes %}
  1353.                     <div>
  1354.                         <b>Услуги для:</b>
  1355.                         {% for clientType in profile.clientTypes %}
  1356.                             {{ clientType|client_type|trans({}, 'client_types') }}<br>
  1357.                         {% endfor %}
  1358.                     </div>
  1359.                 {% endif %}
  1360.                 {% if feature('extended_profile_form') %}
  1361.                     <div>
  1362.                         {% if profile.messengers %}
  1363.                             <b>Мессенджеры</b><br>
  1364.                             <b>Telegram</b> {{ profile.messengers.telegram ? 'Да' : 'Нет' }}
  1365.                             <b>WhatsApp</b> {{ profile.messengers.whatsApp ? 'Да' : 'Нет' }}
  1366.                         {% endif %}
  1367.                     </div>
  1368.                 {% endif %}
  1369.                 {% if feature('extended_profile_form') %}
  1370.                     <div>
  1371.                         {% if profile.carPricing %}
  1372.                             <b>В машине:</b> {{ profile.carPricing.provided ? 'Да' : 'Нет' }}
  1373.                         {% endif %}
  1374.                     </div>
  1375.                 {% endif %}
  1376.                 {% if feature('extended_profile_form') %}
  1377.                     <div>
  1378.                         {% if profile.personParameters.tattoo is not null %}
  1379.                             <b>Тату:</b> {{ profile.personParameters.tattoo ? 'Да' : 'Нет' }}
  1380.                         {% endif %}
  1381.                     </div>
  1382.                     <div>
  1383.                         {% if profile.personParameters.piercing is not null %}
  1384.                             <b>Пирсинг:</b> {{ profile.personParameters.piercing ? 'Да' : 'Нет' }}
  1385.                         {% endif %}
  1386.                     </div>
  1387.                 {% endif %}
  1388.                 <div>
  1389.                     <b>Отвечаю на:</b>
  1390.                     {% for answeringTo in profile.phoneCallRestrictions.answeringTo %}
  1391.                         {{ answeringTo|answering_to|trans({}, 'phone_call_restrictions') }}<br>
  1392.                     {% endfor %}
  1393.                 </div>
  1394.             </div>
  1395.         </div>
  1396.         {% include 'ProfilePreview/nearest_profiles.html.twig' %}
  1397.         <div id=\"recentlyViewedProfiles\"></div>
  1398.     </div>
  1399.     <script type=\"text/javascript\">
  1400.         var onloadCallback = function () {
  1401.             grecaptcha.render('recaptcha-container', {
  1402.                 'sitekey': '{{ ewz_recaptcha_site_key }}'
  1403.             });
  1404.         };
  1405.     </script>
  1406.     <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
  1407.     <script src=\"{{ asset('ajax.js', 'js_script') }}\"></script>
  1408.     <script src=\"{{ asset('local-storage.js', 'js_script') }}\"></script>
  1409.     <script src=\"{{ asset('recommendations.js', 'js_script') }}\"></script>
  1410.     <script src=\"{{ asset('bot-helper.js', 'js_script') }}\"></script>
  1411.     <script src=\"{{ asset('recently-viewed.js', 'js_script') }}\"></script>
  1412.     <script type=\"text/javascript\">
  1413.         document.addEventListener('DOMContentLoaded', function () {
  1414.             ajax({
  1415.                 url: '{{ path('profile_ctr.increase_views') }}',
  1416.                 data: {
  1417.                     profile: {{ profile.id }},
  1418.                 },
  1419.                 callback: function () {},
  1420.                 dataType: 'json',
  1421.                 responseType: 'json',
  1422.             });
  1423.             profileRecommendations.addViewedProfile({{ profile.id }});
  1424.             profileBotHelper.addViewedProfile({{ profile.id }});
  1425.             //достаем список, пока без учета текущей страницы, для текущего аякс запроса
  1426.             const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
  1427.             recentlyViewed.addViewedProfile({{ profile.id }});
  1428.             //recently viewed profiles
  1429.             ajax({
  1430.                 url: '{{ path('recent_profiles.recently_viewed.list') }}',
  1431.                 data: {
  1432.                     recently_viewed_profiles: recentlyViewedProfiles,
  1433.                 },
  1434.                 callback: function (response) {
  1435.                     if (!response)
  1436.                         return;
  1437.                     // console.log(response);
  1438.                     document.querySelector('#recentlyViewedProfiles').innerHTML = response;
  1439.                 },
  1440.                 dataType: 'json',
  1441.                 responseType: 'text/html',
  1442.             });
  1443.             ajax({
  1444.                 url: '{{ path('profile.comment.comment_form', {profile: profile.id}) }}',
  1445.                 callback: function (response) {
  1446.                     // console.log(response);
  1447.                     if ('' !== response) {
  1448.                         document.querySelector('#commentFormContainer').innerHTML = response;
  1449.                         setCommentFormListeners();
  1450.                     }
  1451.                 },
  1452.                 dataType: 'json',
  1453.                 responseType: 'text/html',
  1454.             });
  1455.             function setCommentFormListeners() {
  1456.                 const formName = 'comment_form';
  1457.                 document.querySelector('#send_comment').addEventListener('click', function () {
  1458.                     ajax({
  1459.                         url: '{{ path('profile.comment.create', {profile: profile.id}) }}',
  1460.                         method: '',
  1461.                         data: {
  1462.                             'g-recaptcha-response': grecaptcha.getResponse(),
  1463.                             'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
  1464.                             'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
  1465.                             'text': document.querySelector(`#\${formName}_text`).value,
  1466.                         },
  1467.                         callback: function (response) {
  1468.                             if (response) {
  1469.                                 if (response.success) {
  1470.                                     //document.querySelector(`#{formName}`).style.display = 'none';
  1471.                                     //document.querySelector('#send_comment').style.display = 'none';
  1472.                                     document.querySelector(`form[name=\"\${formName}\"]`).reset();
  1473.                                     grecaptcha.reset();
  1474.                                     let template =
  1475.                                         '<div>' +
  1476.                                         (response.comment.nickname ?
  1477.                                             '<span class=\"author\">' +
  1478.                                             '<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
  1479.                                             '<span class=\"name\">#nickname</span>' +
  1480.                                             '</span>' : '') +
  1481.                                         '<span class=\"date\">#createdAt</span>' +
  1482.                                         '<span>#text</span>' +
  1483.                                         '</div>'
  1484.                                     ;
  1485.                                     response.comment.createdAt = new Date(response.comment.createdAt * 1000);
  1486.                                     for (let k in response.comment) {
  1487.                                         template = template.replace('#' + k, response.comment[k]);
  1488.                                     }
  1489.                                     document.querySelector('#comments').innerHTML += template;
  1490.                                     // console.log(template);
  1491.                                     // document.querySelector('#comments').innerHTML += response.html;
  1492.                                 } else {
  1493.                                     alert(response.error);
  1494.                                 }
  1495.                             }
  1496.                         },
  1497.                         dataType: 'json',
  1498.                         responseType: 'json',
  1499.                     });
  1500.                 });
  1501.             }
  1502.             //LIKE/UNLIKE
  1503.             document.querySelector('#left_column_metric').addEventListener('click', function (e) {
  1504.                 if (false == e.target.classList.contains('add-remove-favourite'))
  1505.                     return;
  1506.                 addRemoveFavourite(e.target.dataset['action'] == 'add');
  1507.             });
  1508.             let addRemoveFavourite = function (add) {
  1509.                 let btn = document.querySelector('.add-remove-favourite[data-action=\"' + (add ? 'add' : 'remove') + '\"]');
  1510.                 let reverseBtn = document.querySelector('.add-remove-favourite[data-action=\"' + (!add ? 'add' : 'remove') + '\"]');
  1511.                 btn.style.display = 'none';
  1512.                 ajax({
  1513.                     url: add ? '{{ path('account.favourites.add', {profile: profile.id}) }}' : '{{ path('account.favourites.remove', {profile: profile.id}) }}',
  1514.                     callback: function (response) {
  1515.                         if (response) {
  1516.                             if (response.success) {
  1517.                                 reverseBtn.style.display = 'block';
  1518.                             } else {
  1519.                                 btn.style.display = 'block';
  1520.                                 alert(response.error);
  1521.                             }
  1522.                         }
  1523.                     },
  1524.                     dataType: 'json',
  1525.                     responseType: 'json',
  1526.                 });
  1527.             };
  1528.             //LIKE/UNLIKE end
  1529.         });
  1530.     </script>
  1531. {% endblock %}
  1532. ""ProfilePreview/page.html.twig""/app/templates/ProfilePreview/page.html.twig");
  1533.     }
  1534. }