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

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