var/cache/review/twig/44/44c3df4f7ed8269eeb6dbbee14f70c41.php line 97

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. /* ProfileList/list.profiles.html.twig */
  14. class __TwigTemplate_a8169726f405d869ec55b479094189e6 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfileList/list.profiles.html.twig"));
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfileList/list.profiles.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfileList/list.profiles.html.twig"));
  35.         // line 1
  36.         $context["show_total_count"] = ( !array_key_exists("show_total_count"$context) || (isset($context["show_total_count"]) || array_key_exists("show_total_count"$context) ? $context["show_total_count"] : (function () { throw new RuntimeError('Variable "show_total_count" does not exist.'1$this->source); })()));
  37.         // line 2
  38.         if ((((isset($context["show_total_count"]) || array_key_exists("show_total_count"$context) ? $context["show_total_count"] : (function () { throw new RuntimeError('Variable "show_total_count" does not exist.'2$this->source); })()) && (null != (isset($context["profiles"]) || array_key_exists("profiles"$context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.'2$this->source); })()))) && twig_get_attribute($this->env$this->source, ($context["profiles"] ?? null), "totalCount", [], "any"truetruefalse2))) {
  39.             // line 3
  40.             echo "    <h2 class=\"px-3 w-100\">";
  41.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profiles"]) || array_key_exists("profiles"$context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.'3$this->source); })()), "totalCount", [], "any"falsefalsefalse3), "html"nulltrue);
  42.             echo " ";
  43.             echo twig_escape_filter($this->env$this->extensions['App\Twig\ToolsExtension']->inclineNumeral(twig_get_attribute($this->env$this->source, (isset($context["profiles"]) || array_key_exists("profiles"$context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.'3$this->source); })()), "totalCount", [], "any"falsefalsefalse3), ["товар""товара""товаров"]), "html"nulltrue);
  44.             echo "</h2>
  45. ";
  46.         }
  47.         // line 5
  48.         $context["profiles_array"] = ((is_iterable((isset($context["profiles"]) || array_key_exists("profiles"$context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.'5$this->source); })()))) ? (((twig_get_attribute($this->env$this->source, ($context["profiles"] ?? null), "array", [], "any"truetruefalse5)) ? (twig_get_attribute($this->env$this->source, (isset($context["profiles"]) || array_key_exists("profiles"$context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.'5$this->source); })()), "array", [], "any"falsefalsefalse5)) : ((isset($context["profiles"]) || array_key_exists("profiles"$context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.'5$this->source); })())))) : ([]));
  49.         // line 6
  50.         echo "
  51. ";
  52.         // line 7
  53.         $context['_parent'] = $context;
  54.         $context['_seq'] = twig_ensure_traversable((isset($context["profiles"]) || array_key_exists("profiles"$context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.'7$this->source); })()));
  55.         $context['loop'] = [
  56.           'parent' => $context['_parent'],
  57.           'index0' => 0,
  58.           'index'  => 1,
  59.           'first'  => true,
  60.         ];
  61.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  62.             $length count($context['_seq']);
  63.             $context['loop']['revindex0'] = $length 1;
  64.             $context['loop']['revindex'] = $length;
  65.             $context['loop']['length'] = $length;
  66.             $context['loop']['last'] = === $length;
  67.         }
  68.         foreach ($context['_seq'] as $context["_key"] => $context["profile"]) {
  69.             // line 8
  70.             echo "    <div class=\"col-4\">
  71.         <div class=\"card\" alt=\"";
  72.             // line 9
  73.             ((twig_get_attribute($this->env$this->source$context["profile"], "seo", [], "any"falsefalsefalse9)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "seo", [], "any"falsefalsefalse9), "phone", [], "any"falsefalsefalse9), "html"nulltrue))) : (print ("")));
  74.             echo "\" data-profile-id=\"";
  75.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["profile"], "id", [], "any"falsefalsefalse9), "html"nulltrue);
  76.             echo "\">
  77.             ";
  78.             // line 10
  79.             $context["photo"] = $this->extensions['App\Twig\ProfileAvatarExtension']->profileAvatar($context["profile"]);
  80.             // line 11
  81.             echo "            ";
  82.             if ( !(null === (isset($context["photo"]) || array_key_exists("photo"$context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.'11$this->source); })()))) {
  83.                 // line 12
  84.                 echo "                <img class=\"card-img-top\"
  85.                      src=\"";
  86.                 // line 13
  87.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl(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.'13$this->source); })()), "path", [], "any"falsefalsefalse13), (((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.'13$this->source); })()), "type", [], "any"falsefalsefalse13) == "photo")) ? ("profile_media") : ("profile_media_avatar")), "357x500""jpg"), "html"nulltrue);
  88.                 echo "\"
  89.                      alt=\"";
  90.                 // line 14
  91.                 ((twig_get_attribute($this->env$this->source$context["profile"], "seo", [], "any"falsefalsefalse14)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "seo", [], "any"falsefalsefalse14), "phone", [], "any"falsefalsefalse14), "html"nulltrue))) : (print ("")));
  92.                 echo "\">
  93.             ";
  94.             }
  95.             // line 16
  96.             echo "            <div class=\"card-body\">
  97.                 ";
  98.             // line 17
  99.             if (twig_get_attribute($this->env$this->source$context["profile"], "isApproved", [], "any"falsefalsefalse17)) {
  100.                 echo "APPROVED";
  101.             }
  102.             // line 18
  103.             echo "                <h5 class=\"card-title\"><a
  104.                             href=\"";
  105.             // line 19
  106.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_preview.page", ["city" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "city", [], "any"falsefalsefalse19), "uriIdentity", [], "any"falsefalsefalse19), "profile" => twig_get_attribute($this->env$this->source$context["profile"], "uriIdentity", [], "any"falsefalsefalse19)]), "html"nulltrue);
  107.             echo "\"
  108.                             title=\"\">";
  109.             // line 20
  110.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["profile"], "name", [], "any"falsefalsefalse20)), "html"nulltrue);
  111.             echo " (pos: ";
  112.             (((twig_get_attribute($this->env$this->source$context["profile"], "position", [], "any"truetruefalse20) &&  !(null === twig_get_attribute($this->env$this->source$context["profile"], "position", [], "any"falsefalsefalse20)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["profile"], "position", [], "any"falsefalsefalse20), "html"nulltrue))) : (print ("")));
  113.             echo ")</a></h5>
  114.                 ";
  115.             // line 21
  116.             if ((twig_get_attribute($this->env$this->source$context["profile"], "isActive", [], "any"falsefalsefalse21) ||  !twig_get_attribute($this->env$this->source$context["profile"], "hidden", [], "any"falsefalsefalse21))) {
  117.                 // line 22
  118.                 echo "                    <h6 class=\"card-subtitle mb-2\"><a href=\"tel:";
  119.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["profile"], "phoneNumber", [], "any"falsefalsefalse22), "html"nulltrue);
  120.                 echo "\">";
  121.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["profile"], "phoneNumber", [], "any"falsefalsefalse22), "html"nulltrue);
  122.                 echo "</a>
  123.                     </h6>
  124.                 ";
  125.             }
  126.             // line 25
  127.             echo "                <p class=\"card-text text-muted small\">
  128.                     ";
  129.             // line 26
  130.             if ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse26) && $this->extensions['App\Twig\PaidPlacementsExtension']->isTopPlacement($context["profile"]))) {
  131.                 // line 27
  132.                 echo "                        TOP
  133.                     ";
  134.             } elseif (twig_get_attribute($this->env$this->source,             // line 28
  135. $context["profile"], "isUltraVip", [], "any"falsefalsefalse28)) {
  136.                 // line 29
  137.                 echo "                        UltraVIP
  138.                     ";
  139.             } elseif (twig_get_attribute($this->env$this->source,             // line 30
  140. $context["profile"], "isVip", [], "any"falsefalsefalse30)) {
  141.                 // line 31
  142.                 echo "                        VIP
  143.                     ";
  144.             } elseif (twig_get_attribute($this->env$this->source,             // line 32
  145. $context["profile"], "isStandard", [], "any"falsefalsefalse32)) {
  146.                 // line 33
  147.                 echo "                        Standard
  148.                     ";
  149.             } else {
  150.                 // line 35
  151.                 echo "                        Unknown (Free?)
  152.                     ";
  153.             }
  154.             // line 37
  155.             echo "                </p>
  156.                 ";
  157.             // line 38
  158.             $context['_parent'] = $context;
  159.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["profile"], "stations", [], "any"falsefalsefalse38));
  160.             $context['loop'] = [
  161.               'parent' => $context['_parent'],
  162.               'index0' => 0,
  163.               'index'  => 1,
  164.               'first'  => true,
  165.             ];
  166.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  167.                 $length count($context['_seq']);
  168.                 $context['loop']['revindex0'] = $length 1;
  169.                 $context['loop']['revindex'] = $length;
  170.                 $context['loop']['length'] = $length;
  171.                 $context['loop']['last'] = === $length;
  172.             }
  173.             foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  174.                 // line 39
  175.                 echo "                    <a href=\"";
  176.                 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$context["profile"], "city", [], "any"falsefalsefalse39), "uriIdentity", [], "any"falsefalsefalse39), "station" => twig_get_attribute($this->env$this->source$context["station"], "uriIdentity", [], "any"falsefalsefalse39)]), "html"nulltrue);
  177.                 echo "\">";
  178.                 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"falsefalsefalse39)), "html"nulltrue);
  179.                 echo " ";
  180.                 if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse39)) {
  181.                     echo "*";
  182.                 }
  183.                 echo "</a>
  184.                     ";
  185.                 // line 40
  186.                 if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse40)) {
  187.                     echo ", ";
  188.                 }
  189.                 // line 41
  190.                 echo "                ";
  191.                 ++$context['loop']['index0'];
  192.                 ++$context['loop']['index'];
  193.                 $context['loop']['first'] = false;
  194.                 if (isset($context['loop']['length'])) {
  195.                     --$context['loop']['revindex0'];
  196.                     --$context['loop']['revindex'];
  197.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  198.                 }
  199.             }
  200.             $_parent $context['_parent'];
  201.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  202.             $context array_intersect_key($context$_parent) + $_parent;
  203.             // line 42
  204.             echo "                <dl class=\"small\">
  205.                     <dt>";
  206.             // line 43
  207.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Возраст", [], "messages");
  208.             echo "</dt>
  209.                     <dd>";
  210.             // line 44
  211.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "personParameters", [], "any"falsefalsefalse44), "age", [], "any"falsefalsefalse44), "html"nulltrue);
  212.             echo "</dd>
  213.                     <dt>";
  214.             // line 45
  215.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Рост", [], "messages");
  216.             echo "</dt>
  217.                     <dd>";
  218.             // line 46
  219.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "personParameters", [], "any"falsefalsefalse46), "height", [], "any"falsefalsefalse46), "html"nulltrue);
  220.             echo "</dd>
  221.                     <dt>";
  222.             // line 47
  223.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Вес", [], "messages");
  224.             echo "</dt>
  225.                     <dd>";
  226.             // line 48
  227.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "personParameters", [], "any"falsefalsefalse48), "weight", [], "any"falsefalsefalse48), "html"nulltrue);
  228.             echo "</dd>
  229.                     <dt>";
  230.             // line 49
  231.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Грудь", [], "messages");
  232.             echo "</dt>
  233.                     <dd>";
  234.             // line 50
  235.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "personParameters", [], "any"falsefalsefalse50), "breastSize", [], "any"falsefalsefalse50), "html"nulltrue);
  236.             echo "</dd>
  237.                 </dl>
  238.                 <dl class=\"small\">
  239.                     <dt>";
  240.             // line 53
  241.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Час", [], "messages");
  242.             echo "</dt>
  243.                     <dd>";
  244.             // line 54
  245.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "apartmentsPricing", [], "any"falsefalsefalse54), "oneHourPrice", [], "any"falsefalsefalse54), "html"nulltrue);
  246.             echo " руб</dd>
  247.                     <dt>";
  248.             // line 55
  249.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("2 часа", [], "messages");
  250.             echo "</dt>
  251.                     <dd>";
  252.             // line 56
  253.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "apartmentsPricing", [], "any"falsefalsefalse56), "twoHoursPrice", [], "any"falsefalsefalse56), "html"nulltrue);
  254.             echo " руб</dd>
  255.                     <dt>";
  256.             // line 57
  257.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Ночь", [], "messages");
  258.             echo "</dt>
  259.                     <dd>";
  260.             // line 58
  261.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "apartmentsPricing", [], "any"falsefalsefalse58), "nightPrice", [], "any"falsefalsefalse58), "html"nulltrue);
  262.             echo " руб</dd>
  263.                 </dl>
  264.                 <p class=\"small\">
  265.                     ";
  266.             // line 61
  267.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "apartmentsPricing", [], "any"falsefalsefalse61), "isProvided", [], "any"falsefalsefalse61)) {
  268.                 // line 62
  269.                 echo "                        ";
  270.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("апартаменты"), "html"nulltrue);
  271.                 echo "
  272.                     ";
  273.             }
  274.             // line 64
  275.             echo "                    ";
  276.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "takeOutPricing", [], "any"falsefalsefalse64), "isProvided", [], "any"falsefalsefalse64)) {
  277.                 // line 65
  278.                 echo "                        ";
  279.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("выезд"), "html"nulltrue);
  280.                 echo "
  281.                     ";
  282.             }
  283.             // line 67
  284.             echo "                </p>
  285.                 ";
  286.             // line 70
  287.             echo "                ";
  288.             // line 71
  289.             echo "                ";
  290.             // line 72
  291.             echo "                ";
  292.             // line 73
  293.             echo "                ";
  294.             // line 74
  295.             echo "                ";
  296.             // line 75
  297.             echo "                ";
  298.             // line 76
  299.             echo "                ";
  300.             // line 77
  301.             echo "                ";
  302.             // line 78
  303.             echo "
  304.                 <p class=\"card-text text-muted small\">";
  305.             // line 79
  306.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["profile"], "description", [], "any"falsefalsefalse79)), "html"nulltrue);
  307.             echo "</p>
  308.                 ";
  309.             // line 81
  310.             echo "
  311.                 ";
  312.             // line 83
  313.             $this->loadTemplate("ProfileList/tags.html.twig""ProfileList/list.profiles.html.twig"83)->display(twig_array_merge($context, ["profile" => $context["profile"]]));
  314.             // line 84
  315.             echo "            </div>
  316.         </div>
  317.     </div>
  318.     ";
  319.             ++$context['loop']['index0'];
  320.             ++$context['loop']['index'];
  321.             $context['loop']['first'] = false;
  322.             if (isset($context['loop']['length'])) {
  323.                 --$context['loop']['revindex0'];
  324.                 --$context['loop']['revindex'];
  325.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  326.             }
  327.         }
  328.         $_parent $context['_parent'];
  329.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['profile'], $context['_parent'], $context['loop']);
  330.         $context array_intersect_key($context$_parent) + $_parent;
  331.         // line 90
  332.         echo "
  333. ";
  334.         // line 91
  335.         if (array_key_exists("show_pagination"$context)) {
  336.             // line 92
  337.             echo "    <div class=\"filtered_profiles_pagination\">
  338.         ";
  339.             // line 93
  340.             echo $this->extensions['Porpaginas\Twig\PorpaginasExtension']->renderPagination($this->env, (isset($context["profiles"]) || array_key_exists("profiles"$context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.'93$this->source); })()));
  341.             echo "
  342.     </div>
  343. ";
  344.         }
  345.         
  346.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  347.         
  348.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  349.         
  350.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  351.     }
  352.     /**
  353.      * @codeCoverageIgnore
  354.      */
  355.     public function getTemplateName()
  356.     {
  357.         return "ProfileList/list.profiles.html.twig";
  358.     }
  359.     /**
  360.      * @codeCoverageIgnore
  361.      */
  362.     public function isTraitable()
  363.     {
  364.         return false;
  365.     }
  366.     /**
  367.      * @codeCoverageIgnore
  368.      */
  369.     public function getDebugInfo()
  370.     {
  371.         return array (  353 => 93,  350 => 92,  348 => 91,  345 => 90,  327 => 84,  325 => 83,  321 => 81,  317 => 79,  314 => 78,  312 => 77,  310 => 76,  308 => 75,  306 => 74,  304 => 73,  302 => 72,  300 => 71,  298 => 70,  294 => 67,  288 => 65,  285 => 64,  279 => 62,  277 => 61,  271 => 58,  267 => 57,  263 => 56,  259 => 55,  255 => 54,  251 => 53,  245 => 50,  241 => 49,  237 => 48,  233 => 47,  229 => 46,  225 => 45,  221 => 44,  217 => 43,  214 => 42,  200 => 41,  196 => 40,  185 => 39,  168 => 38,  165 => 37,  161 => 35,  157 => 33,  155 => 32,  152 => 31,  150 => 30,  147 => 29,  145 => 28,  142 => 27,  140 => 26,  137 => 25,  128 => 22,  126 => 21,  120 => 20,  116 => 19,  113 => 18,  109 => 17,  106 => 16,  101 => 14,  97 => 13,  94 => 12,  91 => 11,  89 => 10,  83 => 9,  80 => 8,  63 => 7,  60 => 6,  58 => 5,  50 => 3,  48 => 2,  46 => 1,);
  372.     }
  373.     public function getSourceContext()
  374.     {
  375.         return new Source("{% set show_total_count = show_total_count is not defined or show_total_count %}
  376. {% if show_total_count and null != profiles and profiles.totalCount is defined %}
  377.     <h2 class=\"px-3 w-100\">{{ profiles.totalCount }} {{ profiles.totalCount|incline_numeral(['товар', 'товара', 'товаров']) }}</h2>
  378. {% endif %}
  379. {% set profiles_array = (profiles is iterable) ? ((profiles.array is defined) ? profiles.array : profiles) : [] %}
  380. {% for profile in profiles %}
  381.     <div class=\"col-4\">
  382.         <div class=\"card\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" data-profile-id=\"{{ profile.id }}\">
  383.             {% set photo = profile|avatar %}
  384.             {% if photo is not null %}
  385.                 <img class=\"card-img-top\"
  386.                      src=\"{{ responsive_asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar', '357x500', 'jpg') }}\"
  387.                      alt=\"{{ profile.seo ? profile.seo.phone : '' }}\">
  388.             {% endif %}
  389.             <div class=\"card-body\">
  390.                 {% if profile.isApproved %}APPROVED{% endif %}
  391.                 <h5 class=\"card-title\"><a
  392.                             href=\"{{ path('profile_preview.page', {'city': profile.city.uriIdentity, 'profile': profile.uriIdentity}) }}\"
  393.                             title=\"\">{{ profile.name|trans }} (pos: {{ profile.position ?? '' }})</a></h5>
  394.                 {% if profile.isActive or not profile.hidden %}
  395.                     <h6 class=\"card-subtitle mb-2\"><a href=\"tel:{{ profile.phoneNumber }}\">{{ profile.phoneNumber }}</a>
  396.                     </h6>
  397.                 {% endif %}
  398.                 <p class=\"card-text text-muted small\">
  399.                     {% if loop.first and profile is top_placement %}
  400.                         TOP
  401.                     {% elseif profile.isUltraVip %}
  402.                         UltraVIP
  403.                     {% elseif profile.isVip %}
  404.                         VIP
  405.                     {% elseif profile.isStandard %}
  406.                         Standard
  407.                     {% else %}
  408.                         Unknown (Free?)
  409.                     {% endif %}
  410.                 </p>
  411.                 {% for station in profile.stations %}
  412.                     <a href=\"{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}\">{{ station.name|trans }} {% if loop.first %}*{% endif %}</a>
  413.                     {% if not loop.last %}, {% endif %}
  414.                 {% endfor %}
  415.                 <dl class=\"small\">
  416.                     <dt>{% trans %}Возраст{% endtrans %}</dt>
  417.                     <dd>{{ profile.personParameters.age }}</dd>
  418.                     <dt>{% trans %}Рост{% endtrans %}</dt>
  419.                     <dd>{{ profile.personParameters.height }}</dd>
  420.                     <dt>{% trans %}Вес{% endtrans %}</dt>
  421.                     <dd>{{ profile.personParameters.weight }}</dd>
  422.                     <dt>{% trans %}Грудь{% endtrans %}</dt>
  423.                     <dd>{{ profile.personParameters.breastSize }}</dd>
  424.                 </dl>
  425.                 <dl class=\"small\">
  426.                     <dt>{% trans %}Час{% endtrans %}</dt>
  427.                     <dd>{{ profile.apartmentsPricing.oneHourPrice }} руб</dd>
  428.                     <dt>{% trans %}2 часа{% endtrans %}</dt>
  429.                     <dd>{{ profile.apartmentsPricing.twoHoursPrice }} руб</dd>
  430.                     <dt>{% trans %}Ночь{% endtrans %}</dt>
  431.                     <dd>{{ profile.apartmentsPricing.nightPrice }} руб</dd>
  432.                 </dl>
  433.                 <p class=\"small\">
  434.                     {% if profile.apartmentsPricing.isProvided %}
  435.                         {{ 'апартаменты'|trans }}
  436.                     {% endif %}
  437.                     {% if profile.takeOutPricing.isProvided %}
  438.                         {{ 'выезд'|trans }}
  439.                     {% endif %}
  440.                 </p>
  441.                 {#                        <p> #}
  442.                 {#                            <ul> #}
  443.                 {#                                {% for service in profile.providedServices %} #}
  444.                 {#                                    <li class=\"text-success\"> #}
  445.                 {#                                        <a>{{ service.service.name|trans }}</a> #}
  446.                 {#                                    </li> #}
  447.                 {#                                {% endfor %} #}
  448.                 {#                            </ul> #}
  449.                 {#                        </p> #}
  450.                 <p class=\"card-text text-muted small\">{{ profile.description|trans }}</p>
  451.                 {# <p class=\"card-text text-muted small\">{{ (top_profile is defined and profile != top_profile) and profile.isStandard ? 'standard' }}</p> #}
  452.                 {% include 'ProfileList/tags.html.twig' with { 'profile': profile } %}
  453.             </div>
  454.         </div>
  455.     </div>
  456.     {# {% if loop.index % 3 == 0 %}</div><div class=\"row mb-3\">{% endif %} #}
  457. {% endfor %}
  458. {% if show_pagination is defined %}
  459.     <div class=\"filtered_profiles_pagination\">
  460.         {{ porpaginas_render(profiles) }}
  461.     </div>
  462. {% endif %}
  463. ""ProfileList/list.profiles.html.twig""/app/templates/ProfileList/list.profiles.html.twig");
  464.     }
  465. }