<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* ProfileList/list.profiles.html.twig */
class __TwigTemplate_a8169726f405d869ec55b479094189e6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfileList/list.profiles.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfileList/list.profiles.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfileList/list.profiles.html.twig"));
// line 1
$macros["price_helpers"] = $this->macros["price_helpers"] = $this->loadTemplate("_macros/price_helpers.html.twig", "ProfileList/list.profiles.html.twig", 1)->unwrap();
// line 2
echo "
";
// line 3
$context["profileList"] = ((array_key_exists("profileList", $context)) ? ((isset($context["profileList"]) || array_key_exists("profileList", $context) ? $context["profileList"] : (function () { throw new RuntimeError('Variable "profileList" does not exist.', 3, $this->source); })())) : ((isset($context["profiles"]) || array_key_exists("profiles", $context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.', 3, $this->source); })())));
// line 4
echo "
";
// line 5
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["profileList"]) || array_key_exists("profileList", $context) ? $context["profileList"] : (function () { throw new RuntimeError('Variable "profileList" does not exist.', 5, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["profile"]) {
// line 6
echo " ";
$context["profile"] = ((twig_get_attribute($this->env, $this->source, $context["profile"], "profile", [], "any", true, true, false, 6)) ? (twig_get_attribute($this->env, $this->source, $context["profile"], "profile", [], "any", false, false, false, 6)) : ($context["profile"]));
// line 7
echo " ";
$context["services"] = twig_get_attribute($this->env, $this->source, $context["profile"], "providedServices", [], "any", false, false, false, 7);
// line 8
$context["agePlural"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%age% лет", ["lastnum" => twig_last($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 8), "age", [], "any", false, false, false, 8))]);
// line 9
$context["ageText"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 9), "age", [], "any", false, false, false, 9) . " ") . (isset($context["agePlural"]) || array_key_exists("agePlural", $context) ? $context["agePlural"] : (function () { throw new RuntimeError('Variable "agePlural" does not exist.', 9, $this->source); })())) . ", ");
// line 10
$context["cityText"] = "";
// line 12
if ((array_key_exists("city", $context) && ((isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 12, $this->source); })()) != $this->extensions['App\Twig\DefaultCityExtension']->defaultCity()))) {
// line 13
$context["cityText"] = (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "city", [], "any", false, false, false, 13), "name", [], "any", false, false, false, 13) . ", ");
}
// line 17
$context["isSelfies"] = ((is_iterable(twig_get_attribute($this->env, $this->source, $context["profile"], "selfies", [], "any", false, false, false, 17))) ? ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "selfies", [], "any", false, false, false, 17)) > 0)) : (twig_get_attribute($this->env, $this->source, $context["profile"], "selfies", [], "any", false, false, false, 17)));
// line 18
$context["isVideos"] = ((is_iterable(twig_get_attribute($this->env, $this->source, $context["profile"], "videos", [], "any", false, false, false, 18))) ? ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "videos", [], "any", false, false, false, 18)) > 0)) : (twig_get_attribute($this->env, $this->source, $context["profile"], "videos", [], "any", false, false, false, 18)));
// line 19
$context["isComments"] = ((is_iterable(twig_get_attribute($this->env, $this->source, $context["profile"], "comments", [], "any", false, false, false, 19))) ? ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "comments", [], "any", false, false, false, 19)) > 0)) : (twig_get_attribute($this->env, $this->source, $context["profile"], "comments", [], "any", false, false, false, 19)));
// line 21
if (twig_in_filter("profile_list.list_by_station", twig_get_attribute($this->env, $this->source, 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.', 21, $this->source); })()), "request", [], "any", false, false, false, 21), "get", ["_route"], "method", false, false, false, 21))) {
// line 22
$context["station"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 22, $this->source); })()), "request", [], "any", false, false, false, 22), "attributes", [], "any", false, false, false, 22), "get", ["station"], "method", false, false, false, 22);
} else {
// line 24
$context["station"] = twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "stations", [], "any", false, false, false, 24));
}
// line 27
$context["firstStation"] = "";
// line 28
$context["metroText"] = "";
// line 29
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "stations", [], "any", false, false, false, 29)) > 0)) {
// line 30
$context["metroText"] = (( !(null === (isset($context["station"]) || array_key_exists("station", $context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.', 30, $this->source); })()))) ? ((((("метро " . twig_get_attribute($this->env, $this->source, (isset($context["station"]) || array_key_exists("station", $context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.', 30, $this->source); })()), "name", [], "any", false, false, false, 30)) . " в ") . $this->extensions['BigIdea\Bundle\GeographicalNamesInflectionBundle\Twig\GeographicalNamesInflectionTwigExtension']->geoNameInflection(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "city", [], "any", false, false, false, 30), "name", [], "any", false, false, false, 30), "дательный")) . ", ")) : (""));
}
// line 33
$context["morpID"] = twig_get_attribute($this->env, $this->source, $context["profile"], "id", [], "any", false, false, false, 33);
// line 34
$context["serviceNameList"] = [];
// line 35
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 35, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
// line 36
$context["serviceNameList"] = twig_array_merge((isset($context["serviceNameList"]) || array_key_exists("serviceNameList", $context) ? $context["serviceNameList"] : (function () { throw new RuntimeError('Variable "serviceNameList" does not exist.', 36, $this->source); })()), [twig_get_attribute($this->env, $this->source, $context["service"], "name", [], "any", false, false, false, 36)]);
// line 37
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
$context["service1"] = null;
// line 39
$context["service2"] = null;
// line 40
if ( !twig_test_empty((isset($context["serviceNameList"]) || array_key_exists("serviceNameList", $context) ? $context["serviceNameList"] : (function () { throw new RuntimeError('Variable "serviceNameList" does not exist.', 40, $this->source); })()))) {
// line 41
$context["service1"] = ($this->extensions['App\Twig\SeoExtension']->morphing((isset($context["serviceNameList"]) || array_key_exists("serviceNameList", $context) ? $context["serviceNameList"] : (function () { throw new RuntimeError('Variable "serviceNameList" does not exist.', 41, $this->source); })()), (isset($context["morpID"]) || array_key_exists("morpID", $context) ? $context["morpID"] : (function () { throw new RuntimeError('Variable "morpID" does not exist.', 41, $this->source); })())) . ", ");
// line 42
$context["service2"] = ($this->extensions['App\Twig\SeoExtension']->morphing((isset($context["serviceNameList"]) || array_key_exists("serviceNameList", $context) ? $context["serviceNameList"] : (function () { throw new RuntimeError('Variable "serviceNameList" does not exist.', 42, $this->source); })()), ((isset($context["morpID"]) || array_key_exists("morpID", $context) ? $context["morpID"] : (function () { throw new RuntimeError('Variable "morpID" does not exist.', 42, $this->source); })()) + 105)) . ", ");
// line 44
if (((isset($context["service1"]) || array_key_exists("service1", $context) ? $context["service1"] : (function () { throw new RuntimeError('Variable "service1" does not exist.', 44, $this->source); })()) == (isset($context["service2"]) || array_key_exists("service2", $context) ? $context["service2"] : (function () { throw new RuntimeError('Variable "service2" does not exist.', 44, $this->source); })()))) {
// line 45
$context["service2"] = ($this->extensions['App\Twig\SeoExtension']->morphing((isset($context["serviceNameList"]) || array_key_exists("serviceNameList", $context) ? $context["serviceNameList"] : (function () { throw new RuntimeError('Variable "serviceNameList" does not exist.', 45, $this->source); })()), ((isset($context["morpID"]) || array_key_exists("morpID", $context) ? $context["morpID"] : (function () { throw new RuntimeError('Variable "morpID" does not exist.', 45, $this->source); })()) + 104)) . ", ");
// line 47
if (((isset($context["service1"]) || array_key_exists("service1", $context) ? $context["service1"] : (function () { throw new RuntimeError('Variable "service1" does not exist.', 47, $this->source); })()) == (isset($context["service2"]) || array_key_exists("service2", $context) ? $context["service2"] : (function () { throw new RuntimeError('Variable "service2" does not exist.', 47, $this->source); })()))) {
// line 48
$context["service2"] = null;
}
// line 50
echo " ";
}
// line 51
echo " ";
}
// line 52
echo "
<div class=\"profiles-item-col\"
data-ultra=\"";
// line 57
(((twig_get_attribute($this->env, $this->source, $context["profile"], "isUltraVip", [], "any", true, true, false, 57) && !(null === twig_get_attribute($this->env, $this->source, $context["profile"], "isUltraVip", [], "any", false, false, false, 57)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "isUltraVip", [], "any", false, false, false, 57), "html", null, true))) : (print (null)));
echo "\"
data-vip=\"";
// line 58
(((twig_get_attribute($this->env, $this->source, $context["profile"], "isVip", [], "any", true, true, false, 58) && !(null === twig_get_attribute($this->env, $this->source, $context["profile"], "isVip", [], "any", false, false, false, 58)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "isVip", [], "any", false, false, false, 58), "html", null, true))) : (print (null)));
echo "\"
data-standart=\"";
// line 59
(((twig_get_attribute($this->env, $this->source, $context["profile"], "isStandard", [], "any", true, true, false, 59) && !(null === twig_get_attribute($this->env, $this->source, $context["profile"], "isStandard", [], "any", false, false, false, 59)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "isStandard", [], "any", false, false, false, 59), "html", null, true))) : (print (null)));
echo "\"
data-active=\"";
// line 60
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "active", [], "any", false, false, false, 60), "html", null, true);
echo "\"
data-hidden=\"";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "hidden", [], "any", false, false, false, 61), "html", null, true);
echo "\"
data-approved=\"";
// line 62
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "isApproved", [], "any", false, false, false, 62), "html", null, true);
echo "\"
data-profile-id=\"";
// line 63
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "id", [], "any", false, false, false, 63), "html", null, true);
echo "\">
<div class=\"profiles-item\">
<div class=\"profiles-item__content d-flex\">
";
// line 66
if (twig_get_attribute($this->env, $this->source, $context["profile"], "isApproved", [], "any", false, false, false, 66)) {
// line 67
echo " <div class=\"profiles-item__verify\" title=\"Фото проверено\">
<svg class=\"icon\">
<use xlink:href=\"#icon-models-list-verify\"></use>
</svg>
</div>
";
}
// line 73
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_preview.page", ["city" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "city", [], "any", false, false, false, 73), "uriIdentity", [], "any", false, false, false, 73), "profile" => twig_get_attribute($this->env, $this->source, $context["profile"], "uriIdentity", [], "any", false, false, false, 73)]), "html", null, true);
echo "\" class=\"profiles-item__images d-block\" target=\"_blank\">
";
// line 74
$context["photo"] = $this->extensions['App\Twig\ProfileAvatarExtension']->profileAvatar($context["profile"]);
// line 75
echo " ";
if ((isset($context["photo"]) || array_key_exists("photo", $context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.', 75, $this->source); })())) {
// line 76
echo " ";
$context["alt"] = ((((((((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["profile"], "name", [], "any", false, false, false, 76)) . ", ") . (isset($context["ageText"]) || array_key_exists("ageText", $context) ? $context["ageText"] : (function () { throw new RuntimeError('Variable "ageText" does not exist.', 76, $this->source); })())) . (isset($context["cityText"]) || array_key_exists("cityText", $context) ? $context["cityText"] : (function () { throw new RuntimeError('Variable "cityText" does not exist.', 76, $this->source); })())) . (isset($context["metroText"]) || array_key_exists("metroText", $context) ? $context["metroText"] : (function () { throw new RuntimeError('Variable "metroText" does not exist.', 76, $this->source); })())) . (( !(null === (isset($context["service1"]) || array_key_exists("service1", $context) ? $context["service1"] : (function () { throw new RuntimeError('Variable "service1" does not exist.', 76, $this->source); })()))) ? ((isset($context["service1"]) || array_key_exists("service1", $context) ? $context["service1"] : (function () { throw new RuntimeError('Variable "service1" does not exist.', 76, $this->source); })())) : (""))) . (( !(null === (isset($context["service2"]) || array_key_exists("service2", $context) ? $context["service2"] : (function () { throw new RuntimeError('Variable "service2" does not exist.', 76, $this->source); })()))) ? ((isset($context["service2"]) || array_key_exists("service2", $context) ? $context["service2"] : (function () { throw new RuntimeError('Variable "service2" does not exist.', 76, $this->source); })())) : (""))) . ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "seo", [], "any", false, true, false, 76), "phone", [], "any", true, true, false, 76)) ? ((("снять по тел. " . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "seo", [], "any", false, false, false, 76), "phone", [], "any", false, false, false, 76)) . ", ")) : (""))) . "анкета №") . twig_get_attribute($this->env, $this->source, $context["profile"], "id", [], "any", false, false, false, 76));
// line 77
echo " <img data-src=\"";
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.', 77, $this->source); })()), "path", [], "any", false, false, false, 77), "profile_media", "200x280", "jpg"), "html", null, true);
echo "\"
class=\"lazy img-fluid\"
alt=\"";
// line 79
echo twig_escape_filter($this->env, (isset($context["alt"]) || array_key_exists("alt", $context) ? $context["alt"] : (function () { throw new RuntimeError('Variable "alt" does not exist.', 79, $this->source); })()), "html", null, true);
echo "\"
loading=\"lazy\">
";
}
// line 82
echo " </a>
<div class=\"profiles-item__info flex-fill\">
<div class=\"profiles-item__header\">
<div class=\"profiles-item__header-title d-flex align-items-center\">
<a href=\"";
// line 86
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_preview.page", ["city" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "city", [], "any", false, false, false, 86), "uriIdentity", [], "any", false, false, false, 86), "profile" => twig_get_attribute($this->env, $this->source, $context["profile"], "uriIdentity", [], "any", false, false, false, 86)]), "html", null, true);
echo "\" target=\"_blank\">
";
// line 87
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", false, false, false, 87)), "html", null, true);
echo "
</a>
</div>
";
// line 90
if ((twig_get_attribute($this->env, $this->source, $context["profile"], "isActive", [], "any", false, false, false, 90) || !twig_get_attribute($this->env, $this->source, $context["profile"], "isHidden", [], "any", false, false, false, 90))) {
// line 91
echo " ";
$context["onlyPhoneNumber"] = twig_replace_filter(twig_get_attribute($this->env, $this->source, $context["profile"], "phoneNumber", [], "any", false, false, false, 91), [" " => "", "-" => "", "(" => "", ")" => ""]);
// line 92
echo " <button class=\"profiles-item__header-phone ml-auto\" type=\"button\" onclick=\"this.classList.add('d-none');this.nextElementSibling.classList.remove('d-none')\">
<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\"><path fill=\"#F27900\" d=\"m15.7 12.53-3.64-3.32a.9.9 0 0 0-1.25.04l-2.15 2.21a5.16 5.16 0 0 1-2.63-1.49 5.13 5.13 0 0 1-1.5-2.63L6.76 5.2a.9.9 0 0 0 .03-1.25L3.47.3A.9.9 0 0 0 2.22.22L.27 1.89a.9.9 0 0 0-.26.58c-.02.23-.27 5.54 3.85 9.67a13.6 13.6 0 0 0 9.67 3.85.9.9 0 0 0 .58-.26l1.67-1.95a.9.9 0 0 0-.07-1.25Z\"/></svg>
<span>Показать телефон</span>
</button>
<!--noindex--><a href=\"tel:";
// line 96
echo twig_escape_filter($this->env, (isset($context["onlyPhoneNumber"]) || array_key_exists("onlyPhoneNumber", $context) ? $context["onlyPhoneNumber"] : (function () { throw new RuntimeError('Variable "onlyPhoneNumber" does not exist.', 96, $this->source); })()), "html", null, true);
echo "\" rel=\"nofollow\" class=\"profiles-item__header-phone ml-auto d-none\">
<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\"><path fill=\"#F27900\" d=\"m15.7 12.53-3.64-3.32a.9.9 0 0 0-1.25.04l-2.15 2.21a5.16 5.16 0 0 1-2.63-1.49 5.13 5.13 0 0 1-1.5-2.63L6.76 5.2a.9.9 0 0 0 .03-1.25L3.47.3A.9.9 0 0 0 2.22.22L.27 1.89a.9.9 0 0 0-.26.58c-.02.23-.27 5.54 3.85 9.67a13.6 13.6 0 0 0 9.67 3.85.9.9 0 0 0 .58-.26l1.67-1.95a.9.9 0 0 0-.07-1.25Z\"/></svg>
<span>";
// line 98
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "phoneNumber", [], "any", false, false, false, 98), "html", null, true);
echo "</span>
</a><!--/noindex-->
";
}
// line 101
echo " </div>";
// line 103
if ((isset($context["station"]) || array_key_exists("station", $context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.', 103, $this->source); })())) {
// line 104
echo "<div class=\"item-info metro d-flex align-items-center\">
<svg class=\"icon mr-1\">
<use xlink:href=\"#icon-metro\"></use>
</svg>
<a href=\"";
// line 108
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->source, twig_get_attribute($this->env, $this->source, $context["profile"], "city", [], "any", false, false, false, 108), "uriIdentity", [], "any", false, false, false, 108), "station" => twig_get_attribute($this->env, $this->source, (isset($context["station"]) || array_key_exists("station", $context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.', 108, $this->source); })()), "uriIdentity", [], "any", false, false, false, 108)]), "html", null, true);
echo "\" target=\"_blank\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["station"]) || array_key_exists("station", $context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.', 108, $this->source); })()), "name", [], "any", false, false, false, 108), "html", null, true);
echo "\">";
// line 109
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["station"]) || array_key_exists("station", $context) ? $context["station"] : (function () { throw new RuntimeError('Variable "station" does not exist.', 109, $this->source); })()), "name", [], "any", false, false, false, 109), "html", null, true);
// line 110
echo "</a>
</div>";
}
// line 113
echo "<div class=\"item-info\">
<p class=\"d-flex align-items-center mb-1\">
Возраст:<span class=\"d-inline-block ml-auto\">";
// line 115
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 115), "age", [], "any", false, false, false, 115)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 115), "age", [], "any", false, false, false, 115), "html", null, true))) : (print ("-")));
echo "</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
Рост:<span class=\"d-inline-block ml-auto\">";
// line 118
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 118), "height", [], "any", false, false, false, 118)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 118), "height", [], "any", false, false, false, 118), "html", null, true))) : (print ("-")));
echo "</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
Вес:<span class=\"d-inline-block ml-auto\">";
// line 121
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 121), "weight", [], "any", false, false, false, 121)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 121), "weight", [], "any", false, false, false, 121), "html", null, true))) : (print ("-")));
echo "</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
Грудь:<span class=\"d-inline-block ml-auto\">";
// line 124
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 124), "breastSize", [], "any", false, false, false, 124)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 124), "breastSize", [], "any", false, false, false, 124), "html", null, true))) : (print ("-")));
echo "</span>
</p>
</div>";
// line 127
ob_start();
echo twig_escape_filter($this->env, $this->extensions['App\Twig\MoneyFormatterExtension']->countryLocalizedCurrency(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "city", [], "any", false, false, false, 127), "countryCode", [], "any", false, false, false, 127)), "html", null, true);
$context["currencyProfile"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 128
ob_start();
echo twig_call_macro($macros["price_helpers"], "macro__get_min", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "apartmentsPricing", [], "any", false, false, false, 128), "oneHourPrice", [], "any", false, false, false, 128), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "takeOutPricing", [], "any", false, false, false, 128), "oneHourPrice", [], "any", false, false, false, 128), (isset($context["currencyProfile"]) || array_key_exists("currencyProfile", $context) ? $context["currencyProfile"] : (function () { throw new RuntimeError('Variable "currencyProfile" does not exist.', 128, $this->source); })())], 128, $context, $this->getSourceContext());
$context["minPriceHour"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 129
ob_start();
echo twig_call_macro($macros["price_helpers"], "macro__get_min", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "apartmentsPricing", [], "any", false, false, false, 129), "twoHoursPrice", [], "any", false, false, false, 129), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "takeOutPricing", [], "any", false, false, false, 129), "twoHoursPrice", [], "any", false, false, false, 129), (isset($context["currencyProfile"]) || array_key_exists("currencyProfile", $context) ? $context["currencyProfile"] : (function () { throw new RuntimeError('Variable "currencyProfile" does not exist.', 129, $this->source); })())], 129, $context, $this->getSourceContext());
$context["minPriceTwo"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 130
ob_start();
echo twig_call_macro($macros["price_helpers"], "macro__get_min", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "apartmentsPricing", [], "any", false, false, false, 130), "nightPrice", [], "any", false, false, false, 130), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "takeOutPricing", [], "any", false, false, false, 130), "nightPrice", [], "any", false, false, false, 130), (isset($context["currencyProfile"]) || array_key_exists("currencyProfile", $context) ? $context["currencyProfile"] : (function () { throw new RuntimeError('Variable "currencyProfile" does not exist.', 130, $this->source); })())], 130, $context, $this->getSourceContext());
$context["minPriceNight"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 131
ob_start();
echo twig_call_macro($macros["price_helpers"], "macro__check_out_price", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "takeOutPricing", [], "any", false, false, false, 131), "oneHourPrice", [], "any", false, false, false, 131), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "takeOutPricing", [], "any", false, false, false, 131), "twoHoursPrice", [], "any", false, false, false, 131), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "takeOutPricing", [], "any", false, false, false, 131), "nightPrice", [], "any", false, false, false, 131)], 131, $context, $this->getSourceContext());
$context["hasOutPrice"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 132
echo "<div class=\"item-info\">
<p class=\"d-flex align-items-center mb-1\">
Час:<span class=\"d-inline-block ml-auto description\">";
// line 134
((((isset($context["minPriceHour"]) || array_key_exists("minPriceHour", $context) ? $context["minPriceHour"] : (function () { throw new RuntimeError('Variable "minPriceHour" does not exist.', 134, $this->source); })()) != "-")) ? (print (twig_escape_filter($this->env, (isset($context["minPriceHour"]) || array_key_exists("minPriceHour", $context) ? $context["minPriceHour"] : (function () { throw new RuntimeError('Variable "minPriceHour" does not exist.', 134, $this->source); })()), "html", null, true))) : (print ("-")));
echo "</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
2 часа:<span class=\"d-inline-block ml-auto description\">";
// line 137
((((isset($context["minPriceTwo"]) || array_key_exists("minPriceTwo", $context) ? $context["minPriceTwo"] : (function () { throw new RuntimeError('Variable "minPriceTwo" does not exist.', 137, $this->source); })()) != "-")) ? (print (twig_escape_filter($this->env, (isset($context["minPriceTwo"]) || array_key_exists("minPriceTwo", $context) ? $context["minPriceTwo"] : (function () { throw new RuntimeError('Variable "minPriceTwo" does not exist.', 137, $this->source); })()), "html", null, true))) : (print ("-")));
echo "</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
Ночь:<span class=\"d-inline-block ml-auto description\">";
// line 140
((((isset($context["minPriceNight"]) || array_key_exists("minPriceNight", $context) ? $context["minPriceNight"] : (function () { throw new RuntimeError('Variable "minPriceNight" does not exist.', 140, $this->source); })()) != "-")) ? (print (twig_escape_filter($this->env, (isset($context["minPriceNight"]) || array_key_exists("minPriceNight", $context) ? $context["minPriceNight"] : (function () { throw new RuntimeError('Variable "minPriceNight" does not exist.', 140, $this->source); })()), "html", null, true))) : (print ("-")));
echo "</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
Экспресс:<span class=\"d-inline-block ml-auto description\">";
// line 143
echo ((((isset($context["hasOutPrice"]) || array_key_exists("hasOutPrice", $context) ? $context["hasOutPrice"] : (function () { throw new RuntimeError('Variable "hasOutPrice" does not exist.', 143, $this->source); })()) == "1")) ? ("Есть") : ("-"));
echo "</span>
</p>
</div>
</div>
<div class=\"profiles-item__status\">
";
// line 148
if ((isset($context["isSelfies"]) || array_key_exists("isSelfies", $context) ? $context["isSelfies"] : (function () { throw new RuntimeError('Variable "isSelfies" does not exist.', 148, $this->source); })())) {
// line 149
echo " <div class=\"status-item d-flex align-items-center justify-content-center\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Есть селфи\">
<svg class=\"icon\">
<use xlink:href=\"#icon-selfie-thumb\"></use>
</svg>
</div>
";
}
// line 155
echo " ";
if ((isset($context["isVideos"]) || array_key_exists("isVideos", $context) ? $context["isVideos"] : (function () { throw new RuntimeError('Variable "isVideos" does not exist.', 155, $this->source); })())) {
// line 156
echo " <div class=\"status-item d-flex align-items-center justify-content-center\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Есть видео\">
<svg class=\"icon\">
<use xlink:href=\"#icon-video-thumb\"></use>
</svg>
</div>
";
}
// line 162
echo " ";
if ((isset($context["isComments"]) || array_key_exists("isComments", $context) ? $context["isComments"] : (function () { throw new RuntimeError('Variable "isComments" does not exist.', 162, $this->source); })())) {
// line 163
echo " <div class=\"status-item d-flex align-items-center justify-content-center\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Есть комментарии\">
<svg class=\"icon\">
<use xlink:href=\"#icon-comments-thumb\"></use>
</svg>
</div>
";
}
// line 169
echo " </div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['profile'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "ProfileList/list.profiles.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 382 => 169, 374 => 163, 371 => 162, 363 => 156, 360 => 155, 352 => 149, 350 => 148, 342 => 143, 336 => 140, 330 => 137, 324 => 134, 320 => 132, 316 => 131, 312 => 130, 308 => 129, 304 => 128, 300 => 127, 295 => 124, 289 => 121, 283 => 118, 277 => 115, 273 => 113, 269 => 110, 267 => 109, 262 => 108, 256 => 104, 254 => 103, 252 => 101, 246 => 98, 241 => 96, 235 => 92, 232 => 91, 230 => 90, 224 => 87, 220 => 86, 214 => 82, 208 => 79, 202 => 77, 199 => 76, 196 => 75, 194 => 74, 189 => 73, 181 => 67, 179 => 66, 173 => 63, 169 => 62, 165 => 61, 161 => 60, 157 => 59, 153 => 58, 149 => 57, 142 => 52, 139 => 51, 136 => 50, 133 => 48, 131 => 47, 129 => 45, 127 => 44, 125 => 42, 123 => 41, 121 => 40, 119 => 39, 117 => 38, 111 => 37, 109 => 36, 105 => 35, 103 => 34, 101 => 33, 98 => 30, 95 => 29, 93 => 28, 91 => 27, 88 => 24, 85 => 22, 83 => 21, 81 => 19, 79 => 18, 77 => 17, 74 => 13, 72 => 12, 70 => 10, 68 => 9, 66 => 8, 63 => 7, 60 => 6, 56 => 5, 53 => 4, 51 => 3, 48 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("{% import '_macros/price_helpers.html.twig' as price_helpers %}
{% set profileList = profileList is defined ? profileList : profiles %}
{% for profile in profileList %}
{% set profile = profile.profile is defined ? profile.profile : profile %}
{% set services = profile.providedServices %}
{%- set agePlural = '%age% лет'|trans({'lastnum': profile.personParameters.age|last}) -%}
{%- set ageText = profile.personParameters.age ~ ' ' ~ agePlural ~ ', ' -%}
{%- set cityText = '' -%}
{%- if city is defined and city != default_city() -%}
{%- set cityText = profile.city.name ~ ', ' -%}
{%- endif -%}
{%- set isSelfies = profile.selfies is iterable ? (profile.selfies|length > 0) : profile.selfies -%}
{%- set isVideos = profile.videos is iterable ? (profile.videos|length > 0) : profile.videos -%}
{%- set isComments = profile.comments is iterable ? (profile.comments|length > 0) : profile.comments -%}
{%- if 'profile_list.list_by_station' in app.request.get('_route') -%}
{%- set station = app.request.attributes.get('station') -%}
{%- else -%}
{%- set station = profile.stations|first -%}
{%- endif -%}
{% set firstStation = '' -%}
{% set metroText = ''%}
{% if profile.stations|length > 0 -%}
{% set metroText = station is not null ? 'метро ' ~ station.name ~ ' в ' ~ profile.city.name|geo_name('дательный') ~ ', ' : '' -%}
{% endif -%}
{%- set morpID = profile.id -%}
{%- set serviceNameList = [] -%}
{% for service in services -%}
{% set serviceNameList = serviceNameList|merge([service.name]) %}
{% endfor %}
{%- set service1 = null -%}
{%- set service2 = null -%}
{% if serviceNameList is not empty %}
{%- set service1 = serviceNameList|seo_morphing(morpID) ~ ', ' -%}
{%- set service2 = serviceNameList|seo_morphing(morpID + 105) ~ ', ' -%}
{% if service1 == service2 -%}
{%- set service2 = serviceNameList|seo_morphing(morpID + 104) ~ ', ' -%}
{% if service1 == service2 -%}
{%- set service2 = null -%}
{% endif %}
{% endif %}
{% endif %}
<div class=\"profiles-item-col\"
data-ultra=\"{{profile.isUltraVip ?? null}}\"
data-vip=\"{{profile.isVip ?? null}}\"
data-standart=\"{{profile.isStandard ?? null}}\"
data-active=\"{{profile.active}}\"
data-hidden=\"{{profile.hidden}}\"
data-approved=\"{{profile.isApproved}}\"
data-profile-id=\"{{profile.id}}\">
<div class=\"profiles-item\">
<div class=\"profiles-item__content d-flex\">
{% if ( profile.isApproved ) %}
<div class=\"profiles-item__verify\" title=\"Фото проверено\">
<svg class=\"icon\">
<use xlink:href=\"#icon-models-list-verify\"></use>
</svg>
</div>
{% endif %}
<a href=\"{{ path('profile_preview.page', {'city': profile.city.uriIdentity, 'profile': profile.uriIdentity}) }}\" class=\"profiles-item__images d-block\" target=\"_blank\">
{% set photo = profile|avatar %}
{% if photo %}
{% set alt = profile.name|trans ~ ', ' ~ ageText ~ cityText ~ metroText ~ (service1 is not null ? service1) ~ (service2 is not null ? service2) ~ (profile.seo.phone is defined ? \"снять по тел. \" ~ profile.seo.phone ~ ', ' : '') ~ 'анкета №' ~ profile.id %}
<img data-src=\"{{ responsive_asset(photo.path, 'profile_media', \"200x280\", \"jpg\") }}\"
class=\"lazy img-fluid\"
alt=\"{{ alt }}\"
loading=\"lazy\">
{% endif %}
</a>
<div class=\"profiles-item__info flex-fill\">
<div class=\"profiles-item__header\">
<div class=\"profiles-item__header-title d-flex align-items-center\">
<a href=\"{{ path('profile_preview.page', {'city': profile.city.uriIdentity, 'profile': profile.uriIdentity}) }}\" target=\"_blank\">
{{ profile.name|trans }}
</a>
</div>
{% if profile.isActive or not profile.isHidden %}
{% set onlyPhoneNumber = profile.phoneNumber|replace({' ': '', '-': '', '(': '', ')': ''}) %}
<button class=\"profiles-item__header-phone ml-auto\" type=\"button\" onclick=\"this.classList.add('d-none');this.nextElementSibling.classList.remove('d-none')\">
<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\"><path fill=\"#F27900\" d=\"m15.7 12.53-3.64-3.32a.9.9 0 0 0-1.25.04l-2.15 2.21a5.16 5.16 0 0 1-2.63-1.49 5.13 5.13 0 0 1-1.5-2.63L6.76 5.2a.9.9 0 0 0 .03-1.25L3.47.3A.9.9 0 0 0 2.22.22L.27 1.89a.9.9 0 0 0-.26.58c-.02.23-.27 5.54 3.85 9.67a13.6 13.6 0 0 0 9.67 3.85.9.9 0 0 0 .58-.26l1.67-1.95a.9.9 0 0 0-.07-1.25Z\"/></svg>
<span>Показать телефон</span>
</button>
<!--noindex--><a href=\"tel:{{ onlyPhoneNumber }}\" rel=\"nofollow\" class=\"profiles-item__header-phone ml-auto d-none\">
<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\"><path fill=\"#F27900\" d=\"m15.7 12.53-3.64-3.32a.9.9 0 0 0-1.25.04l-2.15 2.21a5.16 5.16 0 0 1-2.63-1.49 5.13 5.13 0 0 1-1.5-2.63L6.76 5.2a.9.9 0 0 0 .03-1.25L3.47.3A.9.9 0 0 0 2.22.22L.27 1.89a.9.9 0 0 0-.26.58c-.02.23-.27 5.54 3.85 9.67a13.6 13.6 0 0 0 9.67 3.85.9.9 0 0 0 .58-.26l1.67-1.95a.9.9 0 0 0-.07-1.25Z\"/></svg>
<span>{{- profile.phoneNumber -}}</span>
</a><!--/noindex-->
{% endif %}
</div>
{%- if station -%}
<div class=\"item-info metro d-flex align-items-center\">
<svg class=\"icon mr-1\">
<use xlink:href=\"#icon-metro\"></use>
</svg>
<a href=\"{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}\" target=\"_blank\" title=\"{{ station.name }}\">
{{- station.name -}}
</a>
</div>
{%- endif -%}
<div class=\"item-info\">
<p class=\"d-flex align-items-center mb-1\">
Возраст:<span class=\"d-inline-block ml-auto\">{{ profile.personParameters.age ? profile.personParameters.age : '-' }}</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
Рост:<span class=\"d-inline-block ml-auto\">{{ profile.personParameters.height ? profile.personParameters.height : '-' }}</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
Вес:<span class=\"d-inline-block ml-auto\">{{ profile.personParameters.weight ? profile.personParameters.weight : '-' }}</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
Грудь:<span class=\"d-inline-block ml-auto\">{{ profile.personParameters.breastSize ? profile.personParameters.breastSize : '-' }}</span>
</p>
</div>
{%- set currencyProfile -%}{{ profile.city.countryCode|country_currency }}{%- endset -%}
{%- set minPriceHour -%}{{ price_helpers._get_min(profile.apartmentsPricing.oneHourPrice,profile.takeOutPricing.oneHourPrice,currencyProfile) }}{%- endset -%}
{%- set minPriceTwo -%}{{ price_helpers._get_min(profile.apartmentsPricing.twoHoursPrice,profile.takeOutPricing.twoHoursPrice,currencyProfile) }}{%- endset -%}
{%- set minPriceNight -%}{{ price_helpers._get_min(profile.apartmentsPricing.nightPrice,profile.takeOutPricing.nightPrice,currencyProfile) }}{%- endset -%}
{%- set hasOutPrice -%}{{- price_helpers._check_out_price(profile.takeOutPricing.oneHourPrice,profile.takeOutPricing.twoHoursPrice,profile.takeOutPricing.nightPrice) -}}{%- endset -%}
<div class=\"item-info\">
<p class=\"d-flex align-items-center mb-1\">
Час:<span class=\"d-inline-block ml-auto description\">{{ minPriceHour != '-' ? minPriceHour : '-' }}</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
2 часа:<span class=\"d-inline-block ml-auto description\">{{ minPriceTwo != '-' ? minPriceTwo : '-' }}</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
Ночь:<span class=\"d-inline-block ml-auto description\">{{ minPriceNight != '-' ? minPriceNight : '-' }}</span>
</p>
<p class=\"d-flex align-items-center mb-1\">
Экспресс:<span class=\"d-inline-block ml-auto description\">{{ hasOutPrice == '1' ? 'Есть' : '-' }}</span>
</p>
</div>
</div>
<div class=\"profiles-item__status\">
{% if isSelfies %}
<div class=\"status-item d-flex align-items-center justify-content-center\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Есть селфи\">
<svg class=\"icon\">
<use xlink:href=\"#icon-selfie-thumb\"></use>
</svg>
</div>
{% endif %}
{% if isVideos %}
<div class=\"status-item d-flex align-items-center justify-content-center\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Есть видео\">
<svg class=\"icon\">
<use xlink:href=\"#icon-video-thumb\"></use>
</svg>
</div>
{% endif %}
{% if isComments %}
<div class=\"status-item d-flex align-items-center justify-content-center\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Есть комментарии\">
<svg class=\"icon\">
<use xlink:href=\"#icon-comments-thumb\"></use>
</svg>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}", "ProfileList/list.profiles.html.twig", "/app/templates/ProfileList/list.profiles.html.twig");
}
}