<?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;
/* @AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig */
class __TwigTemplate_97e309dc9753f7a975faada214368c00ffb50829e479b4ab8f810cc3115eefbb extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'headScripts' => [$this, 'block_headScripts'],
];
$macros["_self"] = $this->macros["_self"] = $this;
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig"));
// line 2
$context["FIRST_LISTING_FOR_FREE_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::FIRST_LISTING_FOR_FREE");
// line 3
$context["EBAWAB_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::EBAWAB");
// line 4
$context["UNLIMITED_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::UNLIMITED");
// line 5
$context["PAID_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::PAID");
// line 6
$context["PROJECT_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::PROJECTS");
// line 7
$context["SCRAPPED_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::SCRAPPED");
// line 8
$context["SPONSORED_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SPONSORED");
// line 9
$context["FEATURE_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::FEATURED");
// line 10
$context["PREMIUM_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::PREMIUM");
// line 11
$context["SPOTLIGHT_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SPOTLIGHT");
// line 12
$context["SOLD_BY_OWNER_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SOLD_BY_OWNER");
// line 13
$context["SOLD_BY_OWNER_SPONSORED_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SOLD_BY_OWNER_SPONSORED");
// line 14
$context["SCRAPPED_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::SCRAPPED");
// line 15
$context["SHOW_PHONE_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::SHOW_PHONE");
// line 16
$context["SEND_WHATSAPP_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::WHATSAPP");
// line 17
$context["CALL_REQUEST_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::CALL_REQUEST");
// line 18
$context["TOP_VIEWED_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::TOP_VIEWED");
// line 19
$context["TOP_FAVOURITAED_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::TOP_FAVORITE");
// line 20
$context["VALID_PRICE_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::VALID_PRICE");
// line 21
echo "
";
// line 23
$context["isEnabledSearchResultsActivity"] = ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.activity.app") && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.search.results.activities"));
// line 24
$context["isTopCustomerListingsPage"] = (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.', 24, $this->source); })()), "request", [], "any", false, false, false, 24), "attributes", [], "any", false, false, false, 24), "get", [0 => "_route"], "method", false, false, false, 24) == "aqarmap_user_listings");
// line 25
$context["hideCtaButtons"] = (array_key_exists("hideCta", $context) && (isset($context["hideCta"]) || array_key_exists("hideCta", $context) ? $context["hideCta"] : (function () { throw new RuntimeError('Variable "hideCta" does not exist.', 25, $this->source); })()));
// line 26
$context["isCtaButtonsEnabled"] = ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("listing_card.lead.button") && !(isset($context["hideCtaButtons"]) || array_key_exists("hideCtaButtons", $context) ? $context["hideCtaButtons"] : (function () { throw new RuntimeError('Variable "hideCtaButtons" does not exist.', 26, $this->source); })()));
// line 27
$context["showCtaButtons"] = (isset($context["isCtaButtonsEnabled"]) || array_key_exists("isCtaButtonsEnabled", $context) ? $context["isCtaButtonsEnabled"] : (function () { throw new RuntimeError('Variable "isCtaButtonsEnabled" does not exist.', 27, $this->source); })());
// line 28
$context["isEnabledElasticScoringDebug"] = ((array_key_exists("elasticScoringDebug", $context) && (isset($context["elasticScoringDebug"]) || array_key_exists("elasticScoringDebug", $context) ? $context["elasticScoringDebug"] : (function () { throw new RuntimeError('Variable "elasticScoringDebug" does not exist.', 28, $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.', 28, $this->source); })()), "request", [], "any", false, false, false, 28), "get", [0 => "esdebug"], "method", false, false, false, 28));
// line 29
echo "
";
// line 31
$context["inFeedAdAppearance"] = 6;
// line 32
$context["isInFeedAdAappeared"] = false;
// line 33
$context["scrappedUserName"] = "Aqarmap";
// line 34
echo "
";
// line 53
echo "
";
// line 54
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["listings"]) || array_key_exists("listings", $context) ? $context["listings"] : (function () { throw new RuntimeError('Variable "listings" does not exist.', 54, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["listing"]) {
// line 55
echo " ";
if (array_key_exists("agent", $context)) {
// line 56
echo " ";
$context["listing"] = twig_get_attribute($this->env, $this->source, $context["listing"], "listing", [], "array", false, false, false, 56);
// line 57
echo " ";
}
// line 58
echo "
";
// line 60
echo " ";
$context["isCompoundSearchResultsCard"] = ((array_key_exists("isCompoundSearchResults", $context)) ? ((isset($context["isCompoundSearchResults"]) || array_key_exists("isCompoundSearchResults", $context) ? $context["isCompoundSearchResults"] : (function () { throw new RuntimeError('Variable "isCompoundSearchResults" does not exist.', 60, $this->source); })())) : (false));
// line 61
echo " ";
$context["isVerified"] = (((twig_get_attribute($this->env, $this->source, $context["listing"], "featured", [], "any", false, false, false, 61) == (isset($context["SPONSORED_TYPE"]) || array_key_exists("SPONSORED_TYPE", $context) ? $context["SPONSORED_TYPE"] : (function () { throw new RuntimeError('Variable "SPONSORED_TYPE" does not exist.', 61, $this->source); })())) || (twig_get_attribute($this->env, $this->source, $context["listing"], "featured", [], "any", false, false, false, 61) == (isset($context["SPOTLIGHT_CONSTANT"]) || array_key_exists("SPOTLIGHT_CONSTANT", $context) ? $context["SPOTLIGHT_CONSTANT"] : (function () { throw new RuntimeError('Variable "SPOTLIGHT_CONSTANT" does not exist.', 61, $this->source); })()))) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.show.verified.sign"));
// line 62
echo " ";
$context["isEligibleForMortgage"] = ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.mortgage.options") && twig_get_attribute($this->env, $this->source, $context["listing"], "isMortgageApproved", [], "any", false, false, false, 62));
// line 63
echo " ";
$context["isSponsoredCard"] = ((((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 63) == 1) && !(isset($context["topSellersResults"]) || array_key_exists("topSellersResults", $context) ? $context["topSellersResults"] : (function () { throw new RuntimeError('Variable "topSellersResults" does not exist.', 63, $this->source); })())) && !(isset($context["isRelatedResults"]) || array_key_exists("isRelatedResults", $context) ? $context["isRelatedResults"] : (function () { throw new RuntimeError('Variable "isRelatedResults" does not exist.', 63, $this->source); })())) && ((twig_get_attribute($this->env, $this->source, $context["listing"], "featured", [], "any", false, false, false, 63) == (isset($context["SPONSORED_TYPE"]) || array_key_exists("SPONSORED_TYPE", $context) ? $context["SPONSORED_TYPE"] : (function () { throw new RuntimeError('Variable "SPONSORED_TYPE" does not exist.', 63, $this->source); })())) || (twig_get_attribute($this->env, $this->source, $context["listing"], "featured", [], "any", false, false, false, 63) == (isset($context["SOLD_BY_OWNER_SPONSORED_TYPE"]) || array_key_exists("SOLD_BY_OWNER_SPONSORED_TYPE", $context) ? $context["SOLD_BY_OWNER_SPONSORED_TYPE"] : (function () { throw new RuntimeError('Variable "SOLD_BY_OWNER_SPONSORED_TYPE" does not exist.', 63, $this->source); })()))));
// line 64
echo " ";
$context["isListingPhotosDefined"] = (twig_get_attribute($this->env, $this->source, ($context["listingPhotos"] ?? null), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 64), [], "array", true, true, false, 64) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["listingPhotos"] ?? null), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 64), [], "array", false, true, false, 64), "main", [], "any", true, true, false, 64));
// line 65
echo " ";
$context["isListingLogoDefined"] = (twig_get_attribute($this->env, $this->source, ($context["listingPhotos"] ?? null), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 65), [], "array", true, true, false, 65) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["listingPhotos"] ?? null), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 65), [], "array", false, true, false, 65), "logo", [], "any", true, true, false, 65));
// line 66
echo " ";
$context["disableLazyLoadImgIndex"] = twig_in_filter(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 66), [0 => 1, 1 => 2]);
// line 67
echo " ";
$context["searchedByOneLocation"] = (array_key_exists("isSearchedByOneLocation", $context) && (isset($context["isSearchedByOneLocation"]) || array_key_exists("isSearchedByOneLocation", $context) ? $context["isSearchedByOneLocation"] : (function () { throw new RuntimeError('Variable "isSearchedByOneLocation" does not exist.', 67, $this->source); })()));
// line 68
echo "
";
// line 69
if ( !(isset($context["isCompoundSearchResultsCard"]) || array_key_exists("isCompoundSearchResultsCard", $context) ? $context["isCompoundSearchResultsCard"] : (function () { throw new RuntimeError('Variable "isCompoundSearchResultsCard" does not exist.', 69, $this->source); })())) {
// line 70
echo " ";
$context["isPricesWidgetListingTypes"] = (( !(isset($context["defaultResults"]) || array_key_exists("defaultResults", $context) ? $context["defaultResults"] : (function () { throw new RuntimeError('Variable "defaultResults" does not exist.', 70, $this->source); })()) && !(isset($context["topSellersResults"]) || array_key_exists("topSellersResults", $context) ? $context["topSellersResults"] : (function () { throw new RuntimeError('Variable "topSellersResults" does not exist.', 70, $this->source); })())) && (isset($context["searchedByOneLocation"]) || array_key_exists("searchedByOneLocation", $context) ? $context["searchedByOneLocation"] : (function () { throw new RuntimeError('Variable "searchedByOneLocation" does not exist.', 70, $this->source); })()));
// line 71
echo " ";
$context["mobileFeedadsScreenLocation"] = (twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 71) == (isset($context["inFeedAdAppearance"]) || array_key_exists("inFeedAdAppearance", $context) ? $context["inFeedAdAppearance"] : (function () { throw new RuntimeError('Variable "inFeedAdAppearance" does not exist.', 71, $this->source); })()));
// line 72
echo " ";
$context["isMobileFeedadsToggledOn"] = (($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.search.mobile.feedads") && (isset($context["isMobile"]) || array_key_exists("isMobile", $context) ? $context["isMobile"] : (function () { throw new RuntimeError('Variable "isMobile" does not exist.', 72, $this->source); })())) && (isset($context["isUXVersion"]) || array_key_exists("isUXVersion", $context) ? $context["isUXVersion"] : (function () { throw new RuntimeError('Variable "isUXVersion" does not exist.', 72, $this->source); })()));
// line 73
echo " ";
$context["isFeedAdsWithinListingTypes"] = ( !(isset($context["defaultResults"]) || array_key_exists("defaultResults", $context) ? $context["defaultResults"] : (function () { throw new RuntimeError('Variable "defaultResults" does not exist.', 73, $this->source); })()) && !(isset($context["isInFeedAdAappeared"]) || array_key_exists("isInFeedAdAappeared", $context) ? $context["isInFeedAdAappeared"] : (function () { throw new RuntimeError('Variable "isInFeedAdAappeared" does not exist.', 73, $this->source); })()));
// line 74
echo " ";
$context["showMobileFeedads"] = (((isset($context["isMobileFeedadsToggledOn"]) || array_key_exists("isMobileFeedadsToggledOn", $context) ? $context["isMobileFeedadsToggledOn"] : (function () { throw new RuntimeError('Variable "isMobileFeedadsToggledOn" does not exist.', 74, $this->source); })()) && (isset($context["isFeedAdsWithinListingTypes"]) || array_key_exists("isFeedAdsWithinListingTypes", $context) ? $context["isFeedAdsWithinListingTypes"] : (function () { throw new RuntimeError('Variable "isFeedAdsWithinListingTypes" does not exist.', 74, $this->source); })())) && (isset($context["mobileFeedadsScreenLocation"]) || array_key_exists("mobileFeedadsScreenLocation", $context) ? $context["mobileFeedadsScreenLocation"] : (function () { throw new RuntimeError('Variable "mobileFeedadsScreenLocation" does not exist.', 74, $this->source); })()));
// line 75
echo " ";
}
// line 76
echo "
";
// line 78
echo " ";
$context["listingCategory"] = twig_get_attribute($this->env, $this->source, $context["listing"], "category", [], "any", false, false, false, 78);
// line 79
echo " ";
$context["urlSource"] = ((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.', 79, $this->source); })()), "request", [], "any", false, false, false, 79), "query", [], "any", false, false, false, 79), "get", [0 => "source"], "method", false, false, false, 79)) ? (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.', 79, $this->source); })()), "request", [], "any", false, false, false, 79), "query", [], "any", false, false, false, 79), "get", [0 => "source"], "method", false, false, false, 79)) : (""));
// line 80
echo " ";
$context["containerSource"] = ((array_key_exists("source", $context)) ? ((isset($context["source"]) || array_key_exists("source", $context) ? $context["source"] : (function () { throw new RuntimeError('Variable "source" does not exist.', 80, $this->source); })())) : (null));
// line 81
echo " ";
$context["leadSources"] = (((isset($context["containerSource"]) || array_key_exists("containerSource", $context) ? $context["containerSource"] : (function () { throw new RuntimeError('Variable "containerSource" does not exist.', 81, $this->source); })())) ? ([0 => (isset($context["containerSource"]) || array_key_exists("containerSource", $context) ? $context["containerSource"] : (function () { throw new RuntimeError('Variable "containerSource" does not exist.', 81, $this->source); })())]) : ([0 => (isset($context["urlSource"]) || array_key_exists("urlSource", $context) ? $context["urlSource"] : (function () { throw new RuntimeError('Variable "urlSource" does not exist.', 81, $this->source); })())]));
// line 82
echo " ";
$context["financeFeatureValue"] = $this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("features", "finance_service");
// line 83
echo " ";
$context["isRelatedToMainListing"] = ((array_key_exists("isRelatedToListing", $context)) ? ((isset($context["isRelatedToListing"]) || array_key_exists("isRelatedToListing", $context) ? $context["isRelatedToListing"] : (function () { throw new RuntimeError('Variable "isRelatedToListing" does not exist.', 83, $this->source); })())) : (false));
// line 84
echo " ";
$context["mainListingObj"] = ((((isset($context["isRelatedToMainListing"]) || array_key_exists("isRelatedToMainListing", $context) ? $context["isRelatedToMainListing"] : (function () { throw new RuntimeError('Variable "isRelatedToMainListing" does not exist.', 84, $this->source); })()) && array_key_exists("mainListing", $context))) ? ((isset($context["mainListing"]) || array_key_exists("mainListing", $context) ? $context["mainListing"] : (function () { throw new RuntimeError('Variable "mainListing" does not exist.', 84, $this->source); })())) : ([]));
// line 85
echo " ";
if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("listing_card.lead.button")) {
// line 86
echo " ";
$context["listingPhones"] = (($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("listing_user_phones")) ? (twig_get_attribute($this->env, $this->source, $context["listing"], "phones", [], "any", false, false, false, 86)) : (twig_get_attribute($this->env, $this->source, $context["listing"], "listingPhones", [], "any", false, false, false, 86)));
// line 87
echo " ";
} else {
// line 88
echo " ";
$context["listingPhones"] = [];
// line 89
echo " ";
}
// line 90
echo " ";
$context["listingPhone"] = null;
// line 91
echo " ";
if ( !twig_test_empty((isset($context["listingPhones"]) || array_key_exists("listingPhones", $context) ? $context["listingPhones"] : (function () { throw new RuntimeError('Variable "listingPhones" does not exist.', 91, $this->source); })()))) {
// line 92
echo " ";
$context["listingPhone"] = twig_first($this->env, (isset($context["listingPhones"]) || array_key_exists("listingPhones", $context) ? $context["listingPhones"] : (function () { throw new RuntimeError('Variable "listingPhones" does not exist.', 92, $this->source); })()));
// line 93
echo " ";
}
// line 94
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["listing"], "slug", [], "any", false, false, false, 94)) {
// line 95
echo " ";
$context["LISTING_URL"] = (((isset($context["isRelatedResults"]) || array_key_exists("isRelatedResults", $context) ? $context["isRelatedResults"] : (function () { throw new RuntimeError('Variable "isRelatedResults" does not exist.', 95, $this->source); })())) ? ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listing_slug", twig_array_merge(["id" => twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 95), "slug" => twig_get_attribute($this->env, $this->source, $context["listing"], "slug", [], "any", false, false, false, 95)], ["relatedseaarchlisting" => true]))) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listing_slug", ["id" => twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 95), "slug" => twig_get_attribute($this->env, $this->source, $context["listing"], "slug", [], "any", false, false, false, 95)])));
// line 96
echo " ";
} else {
// line 97
echo " ";
$context["LISTING_URL"] = (((isset($context["isRelatedResults"]) || array_key_exists("isRelatedResults", $context) ? $context["isRelatedResults"] : (function () { throw new RuntimeError('Variable "isRelatedResults" does not exist.', 97, $this->source); })())) ? ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listing_view", twig_array_merge(["id" => twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 97)], ["relatedseaarchlisting" => true]))) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listing_view", ["id" => twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 97)])));
// line 98
echo " ";
}
// line 99
echo " ";
if ((isset($context["isRelatedToMainListing"]) || array_key_exists("isRelatedToMainListing", $context) ? $context["isRelatedToMainListing"] : (function () { throw new RuntimeError('Variable "isRelatedToMainListing" does not exist.', 99, $this->source); })())) {
// line 100
echo " ";
$context["LISTING_URL"] = ((isset($context["LISTING_URL"]) || array_key_exists("LISTING_URL", $context) ? $context["LISTING_URL"] : (function () { throw new RuntimeError('Variable "LISTING_URL" does not exist.', 100, $this->source); })()) . "?source=listing-related");
// line 101
echo " ";
}
// line 102
echo " ";
$context["relatedListingAnalytics"] = (((isset($context["isRelatedResults"]) || array_key_exists("isRelatedResults", $context) ? $context["isRelatedResults"] : (function () { throw new RuntimeError('Variable "isRelatedResults" does not exist.', 102, $this->source); })())) ? ("gtm-btn-related-result-listing-click") : (""));
// line 103
echo " ";
$context["relatedListingClass"] = (((isset($context["isRelatedResults"]) || array_key_exists("isRelatedResults", $context) ? $context["isRelatedResults"] : (function () { throw new RuntimeError('Variable "isRelatedResults" does not exist.', 103, $this->source); })())) ? ("related-listing__card") : (""));
// line 104
echo " ";
$context["searchListingCardClass"] = (((array_key_exists("isTopPicksResults", $context) && (isset($context["isTopPicksResults"]) || array_key_exists("isTopPicksResults", $context) ? $context["isTopPicksResults"] : (function () { throw new RuntimeError('Variable "isTopPicksResults" does not exist.', 104, $this->source); })()))) ? ("search-listing-card top-picks-card") : ("search-listing-card search-listing-card_mb-xl"));
// line 105
echo " ";
$context["listingEvents"] = [0 => ["isFired" => (isset($context["isVerified"]) || array_key_exists("isVerified", $context) ? $context["isVerified"] : (function () { throw new RuntimeError('Variable "isVerified" does not exist.', 105, $this->source); })()), "trigger" => "gtm-btn-verified-listing-click"]];
// line 106
echo " ";
$context["listingPhotoSize"] = 110;
// line 107
echo " ";
$context["iconSize"] = 24;
// line 108
echo " ";
$context["listingUserPhotoSize"] = 32;
// line 109
echo " ";
$context["neighborhoodAppearance"] = 9;
// line 110
echo " ";
$context["isExcludeWhatsappFromListing"] = ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.whatsapp.chat.exclude") && twig_get_attribute($this->env, $this->source, $context["listing"], "getIsExcludedFromWhatsApp", [], "any", false, false, false, 110));
// line 111
echo " ";
$context["acceptedWhatsAppFeature"] = ( !(isset($context["isExcludeWhatsappFromListing"]) || array_key_exists("isExcludeWhatsappFromListing", $context) ? $context["isExcludeWhatsappFromListing"] : (function () { throw new RuntimeError('Variable "isExcludeWhatsappFromListing" does not exist.', 111, $this->source); })()) || !$this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.whatsapp.chat.exclude"));
// line 112
echo " ";
$context["isEnabledSendByWhatsapp"] = ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.whats.app.chat") && (isset($context["acceptedWhatsAppFeature"]) || array_key_exists("acceptedWhatsAppFeature", $context) ? $context["acceptedWhatsAppFeature"] : (function () { throw new RuntimeError('Variable "acceptedWhatsAppFeature" does not exist.', 112, $this->source); })()));
// line 113
echo " ";
if ((isset($context["isEnabledSendByWhatsapp"]) || array_key_exists("isEnabledSendByWhatsapp", $context) ? $context["isEnabledSendByWhatsapp"] : (function () { throw new RuntimeError('Variable "isEnabledSendByWhatsapp" does not exist.', 113, $this->source); })())) {
// line 114
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "user", [], "any", false, false, false, 114), "getWhatsAppNumber", [], "any", false, false, false, 114)) {
// line 115
echo " ";
$context["whatsAppNumber"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "user", [], "any", false, false, false, 115), "getWhatsAppNumber", [], "any", false, false, false, 115), "getPhone", [], "any", false, false, false, 115), "getNumber", [], "any", false, false, false, 115);
// line 116
echo " ";
}
// line 117
echo " ";
$context["hasWhatsapp"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "user", [], "any", false, false, false, 117), "getWhatsAppNumber", [], "any", false, false, false, 117);
// line 118
echo " ";
} else {
// line 119
echo " ";
$context["hasWhatsapp"] = false;
// line 120
echo " ";
}
// line 121
echo " ";
$context["callBtnClass"] = (( !(isset($context["hasWhatsapp"]) || array_key_exists("hasWhatsapp", $context) ? $context["hasWhatsapp"] : (function () { throw new RuntimeError('Variable "hasWhatsapp" does not exist.', 121, $this->source); })())) ? ("big") : (""));
// line 122
echo " ";
$context["callBtnText"] = (( !(isset($context["hasWhatsapp"]) || array_key_exists("hasWhatsapp", $context) ? $context["hasWhatsapp"] : (function () { throw new RuntimeError('Variable "hasWhatsapp" does not exist.', 122, $this->source); })())) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.show_seller_phone")) : (""));
// line 123
echo " ";
$context["isProject"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory", $context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.', 123, $this->source); })()) == (isset($context["PROJECT_LISTING_CATEGORY"]) || array_key_exists("PROJECT_LISTING_CATEGORY", $context) ? $context["PROJECT_LISTING_CATEGORY"] : (function () { throw new RuntimeError('Variable "PROJECT_LISTING_CATEGORY" does not exist.', 123, $this->source); })()));
// line 124
echo " ";
$context["projectListingChild"] = (twig_get_attribute($this->env, $this->source, $context["listing"], "parent", [], "any", false, false, false, 124) != null);
// line 125
echo " ";
$context["notProjectListing"] = ( !(isset($context["isProject"]) || array_key_exists("isProject", $context) ? $context["isProject"] : (function () { throw new RuntimeError('Variable "isProject" does not exist.', 125, $this->source); })()) && !(isset($context["projectListingChild"]) || array_key_exists("projectListingChild", $context) ? $context["projectListingChild"] : (function () { throw new RuntimeError('Variable "projectListingChild" does not exist.', 125, $this->source); })()));
// line 126
echo " ";
$context["strictQuickRegistration"] = $this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("features", "strict_to_quick_registration");
// line 127
echo " ";
$context["autoShowPhone"] = ( !(isset($context["strictQuickRegistration"]) || array_key_exists("strictQuickRegistration", $context) ? $context["strictQuickRegistration"] : (function () { throw new RuntimeError('Variable "strictQuickRegistration" does not exist.', 127, $this->source); })()) && (isset($context["notProjectListing"]) || array_key_exists("notProjectListing", $context) ? $context["notProjectListing"] : (function () { throw new RuntimeError('Variable "notProjectListing" does not exist.', 127, $this->source); })()));
// line 128
echo " ";
$context["isSoldByOwnerType"] = ((twig_get_attribute($this->env, $this->source, $context["listing"], "featured", [], "any", false, false, false, 128) == (isset($context["SOLD_BY_OWNER_TYPE"]) || array_key_exists("SOLD_BY_OWNER_TYPE", $context) ? $context["SOLD_BY_OWNER_TYPE"] : (function () { throw new RuntimeError('Variable "SOLD_BY_OWNER_TYPE" does not exist.', 128, $this->source); })())) || (twig_get_attribute($this->env, $this->source, $context["listing"], "featured", [], "any", false, false, false, 128) == (isset($context["SOLD_BY_OWNER_SPONSORED_TYPE"]) || array_key_exists("SOLD_BY_OWNER_SPONSORED_TYPE", $context) ? $context["SOLD_BY_OWNER_SPONSORED_TYPE"] : (function () { throw new RuntimeError('Variable "SOLD_BY_OWNER_SPONSORED_TYPE" does not exist.', 128, $this->source); })())));
// line 129
echo " ";
$context["listing_attributes"] = twig_get_attribute($this->env, $this->source, $context["listing"], "getAttributesList", [], "method", false, false, false, 129);
// line 130
echo " ";
$context["listing_rooms"] = ((twig_get_attribute($this->env, $this->source, ($context["listing_attributes"] ?? null), "rooms", [], "array", true, true, false, 130)) ? ($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->getRoomsLabel(twig_get_attribute($this->env, $this->source, (isset($context["listing_attributes"]) || array_key_exists("listing_attributes", $context) ? $context["listing_attributes"] : (function () { throw new RuntimeError('Variable "listing_attributes" does not exist.', 130, $this->source); })()), "rooms", [], "array", false, false, false, 130))) : (""));
// line 131
echo " ";
$context["listing_baths"] = ((twig_get_attribute($this->env, $this->source, ($context["listing_attributes"] ?? null), "baths", [], "array", true, true, false, 131)) ? ($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->getBathsLabel(twig_get_attribute($this->env, $this->source, (isset($context["listing_attributes"]) || array_key_exists("listing_attributes", $context) ? $context["listing_attributes"] : (function () { throw new RuntimeError('Variable "listing_attributes" does not exist.', 131, $this->source); })()), "baths", [], "array", false, false, false, 131))) : (""));
// line 132
echo " ";
$context["backgroundClass"] = "listing-phone-container_bg-white listing-phone-container_number-gray";
// line 133
echo " ";
$context["cardGridSize"] = ((array_key_exists("cardGridSize", $context)) ? ((isset($context["cardGridSize"]) || array_key_exists("cardGridSize", $context) ? $context["cardGridSize"] : (function () { throw new RuntimeError('Variable "cardGridSize" does not exist.', 133, $this->source); })())) : ("col-sm-6 col-12"));
// line 134
echo " ";
$context["showPhotosCount"] = ( !array_key_exists("disablePhotosCount", $context) || !(isset($context["disablePhotosCount"]) || array_key_exists("disablePhotosCount", $context) ? $context["disablePhotosCount"] : (function () { throw new RuntimeError('Variable "disablePhotosCount" does not exist.', 134, $this->source); })()));
// line 135
echo " ";
$context["sellerName"] = "";
// line 136
echo " ";
$context["listingUser"] = twig_get_attribute($this->env, $this->source, $context["listing"], "user", [], "any", false, false, false, 136);
// line 137
echo " ";
$context["sellerName"] = twig_get_attribute($this->env, $this->source, (isset($context["listingUser"]) || array_key_exists("listingUser", $context) ? $context["listingUser"] : (function () { throw new RuntimeError('Variable "listingUser" does not exist.', 137, $this->source); })()), "fullName", [], "any", false, false, false, 137);
// line 138
echo " ";
$context["userLogo"] = ((twig_get_attribute($this->env, $this->source, (isset($context["listingUser"]) || array_key_exists("listingUser", $context) ? $context["listingUser"] : (function () { throw new RuntimeError('Variable "listingUser" does not exist.', 138, $this->source); })()), "logo", [], "any", false, false, false, 138)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listingUser"]) || array_key_exists("listingUser", $context) ? $context["listingUser"] : (function () { throw new RuntimeError('Variable "listingUser" does not exist.', 138, $this->source); })()), "logo", [], "any", false, false, false, 138), "file", [], "any", false, false, false, 138)) : (null));
// line 139
echo " ";
$context["logo"] = twig_get_attribute($this->env, $this->source, $context["listing"], "validUserLogo", [], "any", false, false, false, 139);
// line 140
echo " ";
$context["sellerLogo"] = (((isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 140, $this->source); })())) ? ((isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 140, $this->source); })())) : ((isset($context["userLogo"]) || array_key_exists("userLogo", $context) ? $context["userLogo"] : (function () { throw new RuntimeError('Variable "userLogo" does not exist.', 140, $this->source); })())));
// line 141
echo " ";
$context["sellerUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("aqarmap_user_listings", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["listingUser"]) || array_key_exists("listingUser", $context) ? $context["listingUser"] : (function () { throw new RuntimeError('Variable "listingUser" does not exist.', 141, $this->source); })()), "id", [], "any", false, false, false, 141)]);
// line 142
echo " ";
$context["joinedData"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["listingUser"]) || array_key_exists("listingUser", $context) ? $context["listingUser"] : (function () { throw new RuntimeError('Variable "listingUser" does not exist.', 142, $this->source); })()), "createdAt", [], "any", false, false, false, 142), "Y");
// line 143
echo " ";
$context["activeListingsCount"] = ((twig_get_attribute($this->env, $this->source, ($context["liveListingsPerUser"] ?? null), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "user", [], "any", false, false, false, 143), "id", [], "any", false, false, false, 143), [], "array", true, true, false, 143)) ? (twig_get_attribute($this->env, $this->source, (isset($context["liveListingsPerUser"]) || array_key_exists("liveListingsPerUser", $context) ? $context["liveListingsPerUser"] : (function () { throw new RuntimeError('Variable "liveListingsPerUser" does not exist.', 143, $this->source); })()), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "user", [], "any", false, false, false, 143), "id", [], "any", false, false, false, 143), [], "array", false, false, false, 143)) : (0));
// line 144
echo " ";
$context["leadsCount"] = twig_get_attribute($this->env, $this->source, (isset($context["listingUser"]) || array_key_exists("listingUser", $context) ? $context["listingUser"] : (function () { throw new RuntimeError('Variable "listingUser" does not exist.', 144, $this->source); })()), "getClientServedCount", [], "method", false, false, false, 144);
// line 145
echo " ";
$context["encodedSellerPhones"] = [];
// line 146
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["listingPhones"]) || array_key_exists("listingPhones", $context) ? $context["listingPhones"] : (function () { throw new RuntimeError('Variable "listingPhones" does not exist.', 146, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phone"]) {
// line 147
echo " ";
$context["encodedSellerPhones"] = twig_array_merge((isset($context["encodedSellerPhones"]) || array_key_exists("encodedSellerPhones", $context) ? $context["encodedSellerPhones"] : (function () { throw new RuntimeError('Variable "encodedSellerPhones" does not exist.', 147, $this->source); })()), [0 => ["number" => $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->phoneNumberEncode(twig_get_attribute($this->env, $this->source, $context["phone"], "number", [], "any", false, false, false, 147))]]);
// line 148
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phone'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 149
echo "
";
// line 150
$context["listingLabelType"] = twig_get_attribute($this->env, $this->source, $context["listing"], "label", [], "any", false, false, false, 150);
// line 151
echo " ";
$context["isListingTopPicks"] = twig_get_attribute($this->env, $this->source, $context["listing"], "isTopPicks", [], "any", false, false, false, 151);
// line 152
echo " ";
$context["allowListingLabel"] = ((isset($context["isSearchResultsPage"]) || array_key_exists("isSearchResultsPage", $context) ? $context["isSearchResultsPage"] : (function () { throw new RuntimeError('Variable "isSearchResultsPage" does not exist.', 152, $this->source); })()) && !(isset($context["isListingTopPicks"]) || array_key_exists("isListingTopPicks", $context) ? $context["isListingTopPicks"] : (function () { throw new RuntimeError('Variable "isListingTopPicks" does not exist.', 152, $this->source); })()));
// line 153
echo " ";
$context["isTopFavourited"] = ((isset($context["listingLabelType"]) || array_key_exists("listingLabelType", $context) ? $context["listingLabelType"] : (function () { throw new RuntimeError('Variable "listingLabelType" does not exist.', 153, $this->source); })()) == (isset($context["TOP_FAVOURITAED_CONST"]) || array_key_exists("TOP_FAVOURITAED_CONST", $context) ? $context["TOP_FAVOURITAED_CONST"] : (function () { throw new RuntimeError('Variable "TOP_FAVOURITAED_CONST" does not exist.', 153, $this->source); })()));
// line 154
echo " ";
$context["isValidPrice"] = ((isset($context["listingLabelType"]) || array_key_exists("listingLabelType", $context) ? $context["listingLabelType"] : (function () { throw new RuntimeError('Variable "listingLabelType" does not exist.', 154, $this->source); })()) == (isset($context["VALID_PRICE_CONST"]) || array_key_exists("VALID_PRICE_CONST", $context) ? $context["VALID_PRICE_CONST"] : (function () { throw new RuntimeError('Variable "VALID_PRICE_CONST" does not exist.', 154, $this->source); })()));
// line 155
echo " ";
$context["isTopViewed"] = ((isset($context["listingLabelType"]) || array_key_exists("listingLabelType", $context) ? $context["listingLabelType"] : (function () { throw new RuntimeError('Variable "listingLabelType" does not exist.', 155, $this->source); })()) == (isset($context["TOP_VIEWED_CONST"]) || array_key_exists("TOP_VIEWED_CONST", $context) ? $context["TOP_VIEWED_CONST"] : (function () { throw new RuntimeError('Variable "TOP_VIEWED_CONST" does not exist.', 155, $this->source); })()));
// line 156
echo " ";
$context["labelLeadSource"] = "";
// line 157
echo " ";
if ((isset($context["isTopFavourited"]) || array_key_exists("isTopFavourited", $context) ? $context["isTopFavourited"] : (function () { throw new RuntimeError('Variable "isTopFavourited" does not exist.', 157, $this->source); })())) {
// line 158
echo " ";
$context["labelLeadSource"] = "top-favourite";
// line 159
echo " ";
$context["leadSources"] = twig_array_merge((isset($context["leadSources"]) || array_key_exists("leadSources", $context) ? $context["leadSources"] : (function () { throw new RuntimeError('Variable "leadSources" does not exist.', 159, $this->source); })()), [0 => (isset($context["labelLeadSource"]) || array_key_exists("labelLeadSource", $context) ? $context["labelLeadSource"] : (function () { throw new RuntimeError('Variable "labelLeadSource" does not exist.', 159, $this->source); })())]);
// line 160
echo " ";
} elseif ((isset($context["isValidPrice"]) || array_key_exists("isValidPrice", $context) ? $context["isValidPrice"] : (function () { throw new RuntimeError('Variable "isValidPrice" does not exist.', 160, $this->source); })())) {
// line 161
echo " ";
$context["labelLeadSource"] = "valid-price";
// line 162
echo " ";
$context["leadSources"] = twig_array_merge((isset($context["leadSources"]) || array_key_exists("leadSources", $context) ? $context["leadSources"] : (function () { throw new RuntimeError('Variable "leadSources" does not exist.', 162, $this->source); })()), [0 => (isset($context["labelLeadSource"]) || array_key_exists("labelLeadSource", $context) ? $context["labelLeadSource"] : (function () { throw new RuntimeError('Variable "labelLeadSource" does not exist.', 162, $this->source); })())]);
// line 163
echo " ";
} elseif ((isset($context["isTopViewed"]) || array_key_exists("isTopViewed", $context) ? $context["isTopViewed"] : (function () { throw new RuntimeError('Variable "isTopViewed" does not exist.', 163, $this->source); })())) {
// line 164
echo " ";
$context["labelLeadSource"] = "top-viewed";
// line 165
echo " ";
$context["leadSources"] = twig_array_merge((isset($context["leadSources"]) || array_key_exists("leadSources", $context) ? $context["leadSources"] : (function () { throw new RuntimeError('Variable "leadSources" does not exist.', 165, $this->source); })()), [0 => (isset($context["labelLeadSource"]) || array_key_exists("labelLeadSource", $context) ? $context["labelLeadSource"] : (function () { throw new RuntimeError('Variable "labelLeadSource" does not exist.', 165, $this->source); })())]);
// line 166
echo " ";
}
// line 167
echo " ";
$context["listingPrice"] = (((twig_get_attribute($this->env, $this->source, $context["listing"], "price", [], "any", true, true, false, 167) && !(null === twig_get_attribute($this->env, $this->source, $context["listing"], "price", [], "any", false, false, false, 167)))) ? (twig_get_attribute($this->env, $this->source, $context["listing"], "price", [], "any", false, false, false, 167)) : (null));
// line 168
echo " ";
$context["listingFeatured"] = twig_get_attribute($this->env, $this->source, $context["listing"], "featured", [], "any", false, false, false, 168);
// line 169
echo " ";
$context["isSpotLight"] = ((isset($context["listingFeatured"]) || array_key_exists("listingFeatured", $context) ? $context["listingFeatured"] : (function () { throw new RuntimeError('Variable "listingFeatured" does not exist.', 169, $this->source); })()) == (isset($context["SPOTLIGHT_CONSTANT"]) || array_key_exists("SPOTLIGHT_CONSTANT", $context) ? $context["SPOTLIGHT_CONSTANT"] : (function () { throw new RuntimeError('Variable "SPOTLIGHT_CONSTANT" does not exist.', 169, $this->source); })()));
// line 170
echo " ";
$context["isSponserd"] = ((isset($context["listingFeatured"]) || array_key_exists("listingFeatured", $context) ? $context["listingFeatured"] : (function () { throw new RuntimeError('Variable "listingFeatured" does not exist.', 170, $this->source); })()) == (isset($context["SPONSORED_TYPE"]) || array_key_exists("SPONSORED_TYPE", $context) ? $context["SPONSORED_TYPE"] : (function () { throw new RuntimeError('Variable "SPONSORED_TYPE" does not exist.', 170, $this->source); })()));
// line 171
echo " ";
$context["isPremium"] = ((isset($context["listingFeatured"]) || array_key_exists("listingFeatured", $context) ? $context["listingFeatured"] : (function () { throw new RuntimeError('Variable "listingFeatured" does not exist.', 171, $this->source); })()) == (isset($context["PREMIUM_CONSTANT"]) || array_key_exists("PREMIUM_CONSTANT", $context) ? $context["PREMIUM_CONSTANT"] : (function () { throw new RuntimeError('Variable "PREMIUM_CONSTANT" does not exist.', 171, $this->source); })()));
// line 172
echo " ";
$context["isFeatured"] = ((isset($context["listingFeatured"]) || array_key_exists("listingFeatured", $context) ? $context["listingFeatured"] : (function () { throw new RuntimeError('Variable "listingFeatured" does not exist.', 172, $this->source); })()) == (isset($context["FEATURE_TYPE"]) || array_key_exists("FEATURE_TYPE", $context) ? $context["FEATURE_TYPE"] : (function () { throw new RuntimeError('Variable "FEATURE_TYPE" does not exist.', 172, $this->source); })()));
// line 173
echo " ";
$context["isPaid"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory", $context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.', 173, $this->source); })()) == (isset($context["PAID_LISTING_CATEGORY"]) || array_key_exists("PAID_LISTING_CATEGORY", $context) ? $context["PAID_LISTING_CATEGORY"] : (function () { throw new RuntimeError('Variable "PAID_LISTING_CATEGORY" does not exist.', 173, $this->source); })()));
// line 174
echo " ";
$context["isScrapped"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory", $context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.', 174, $this->source); })()) == (isset($context["SCRAPPED_LISTING_CATEGORY"]) || array_key_exists("SCRAPPED_LISTING_CATEGORY", $context) ? $context["SCRAPPED_LISTING_CATEGORY"] : (function () { throw new RuntimeError('Variable "SCRAPPED_LISTING_CATEGORY" does not exist.', 174, $this->source); })()));
// line 175
echo " ";
$context["isEBawab"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory", $context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.', 175, $this->source); })()) == (isset($context["EBAWAB_LISTING_CATEGORY"]) || array_key_exists("EBAWAB_LISTING_CATEGORY", $context) ? $context["EBAWAB_LISTING_CATEGORY"] : (function () { throw new RuntimeError('Variable "EBAWAB_LISTING_CATEGORY" does not exist.', 175, $this->source); })()));
// line 176
echo " ";
$context["isUnlimited"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory", $context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.', 176, $this->source); })()) == (isset($context["UNLIMITED_LISTING_CATEGORY"]) || array_key_exists("UNLIMITED_LISTING_CATEGORY", $context) ? $context["UNLIMITED_LISTING_CATEGORY"] : (function () { throw new RuntimeError('Variable "UNLIMITED_LISTING_CATEGORY" does not exist.', 176, $this->source); })()));
// line 177
echo " ";
$context["isFlf2"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory", $context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.', 177, $this->source); })()) == (isset($context["FIRST_LISTING_FOR_FREE_LISTING_CATEGORY"]) || array_key_exists("FIRST_LISTING_FOR_FREE_LISTING_CATEGORY", $context) ? $context["FIRST_LISTING_FOR_FREE_LISTING_CATEGORY"] : (function () { throw new RuntimeError('Variable "FIRST_LISTING_FOR_FREE_LISTING_CATEGORY" does not exist.', 177, $this->source); })()));
// line 178
echo "
";
// line 180
echo " ";
if ((isset($context["isCompoundSearchResultsCard"]) || array_key_exists("isCompoundSearchResultsCard", $context) ? $context["isCompoundSearchResultsCard"] : (function () { throw new RuntimeError('Variable "isCompoundSearchResultsCard" does not exist.', 180, $this->source); })())) {
// line 181
echo " ";
$context["compoundAveragePrices"] = ((twig_get_attribute($this->env, $this->source, $context["listing"], "compoundAveragePrices", [], "any", true, true, false, 181)) ? (twig_get_attribute($this->env, $this->source, $context["listing"], "compoundAveragePrices", [], "any", false, false, false, 181)) : ([]));
// line 182
echo " ";
$context["isCompoundAveragePrices"] = !twig_test_empty((isset($context["compoundAveragePrices"]) || array_key_exists("compoundAveragePrices", $context) ? $context["compoundAveragePrices"] : (function () { throw new RuntimeError('Variable "compoundAveragePrices" does not exist.', 182, $this->source); })()));
// line 183
echo " ";
$context["showCompoundAveragePrices"] = false;
// line 184
echo " ";
$context["compoundField"] = ((twig_get_attribute($this->env, $this->source, $context["listing"], "CompoundField", [], "any", false, false, false, 184)) ? (twig_get_attribute($this->env, $this->source, $context["listing"], "CompoundField", [], "any", false, false, false, 184)) : ([]));
// line 185
echo " ";
$context["isEnabledDdeveloperCardData"] = ((isset($context["isCompoundSearchResultsCard"]) || array_key_exists("isCompoundSearchResultsCard", $context) ? $context["isCompoundSearchResultsCard"] : (function () { throw new RuntimeError('Variable "isCompoundSearchResultsCard" does not exist.', 185, $this->source); })()) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.developer.card.data"));
// line 186
echo " ";
$context["isCompoundPlannerPage"] = (array_key_exists("isCompoundPlanner", $context) && (isset($context["isCompoundPlanner"]) || array_key_exists("isCompoundPlanner", $context) ? $context["isCompoundPlanner"] : (function () { throw new RuntimeError('Variable "isCompoundPlanner" does not exist.', 186, $this->source); })()));
// line 187
echo " ";
$context["elasticScore"] = (((isset($context["isCompoundPlannerPage"]) || array_key_exists("isCompoundPlannerPage", $context) ? $context["isCompoundPlannerPage"] : (function () { throw new RuntimeError('Variable "isCompoundPlannerPage" does not exist.', 187, $this->source); })())) ? (twig_round(twig_get_attribute($this->env, $this->source, $context["listing"], "compoundElasticScore", [], "any", false, false, false, 187), 2, "floor")) : (null));
// line 188
echo " ";
$context["compoundPrice"] = ((twig_get_attribute($this->env, $this->source, $context["listing"], "CompoundField", [], "any", false, false, false, 188)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "CompoundField", [], "any", false, false, false, 188), "minPrice", [], "any", false, false, false, 188)) : (null));
// line 189
echo " ";
$context["listingPrice"] = (($context["compoundPrice"]) ?? ((isset($context["listingPrice"]) || array_key_exists("listingPrice", $context) ? $context["listingPrice"] : (function () { throw new RuntimeError('Variable "listingPrice" does not exist.', 189, $this->source); })())));
// line 190
echo " ";
}
// line 191
echo "
";
// line 193
echo " ";
$context["leadSourcePage"] = ((array_key_exists("leadSourcePage", $context)) ? ((isset($context["leadSourcePage"]) || array_key_exists("leadSourcePage", $context) ? $context["leadSourcePage"] : (function () { throw new RuntimeError('Variable "leadSourcePage" does not exist.', 193, $this->source); })())) : ("search_results"));
// line 194
echo " ";
$context["propertySectionSlug"] = (((isset($context["isProject"]) || array_key_exists("isProject", $context) ? $context["isProject"] : (function () { throw new RuntimeError('Variable "isProject" does not exist.', 194, $this->source); })())) ? ("projects") : (((array_key_exists("section", $context)) ? (twig_get_attribute($this->env, $this->source, (isset($context["section"]) || array_key_exists("section", $context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.', 194, $this->source); })()), "slug", [], "any", false, false, false, 194)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "section", [], "any", false, false, false, 194), "slug", [], "any", false, false, false, 194)))));
// line 195
echo " ";
$context["propertyCategory"] = (((isset($context["isProject"]) || array_key_exists("isProject", $context) ? $context["isProject"] : (function () { throw new RuntimeError('Variable "isProject" does not exist.', 195, $this->source); })())) ? ("projects") : ((((isset($context["isScrapped"]) || array_key_exists("isScrapped", $context) ? $context["isScrapped"] : (function () { throw new RuntimeError('Variable "isScrapped" does not exist.', 195, $this->source); })())) ? ("scrapped") : ((( // line 196
(isset($context["isPaid"]) || array_key_exists("isPaid", $context) ? $context["isPaid"] : (function () { throw new RuntimeError('Variable "isPaid" does not exist.', 196, $this->source); })())) ? ("paid") : ((((isset($context["isEBawab"]) || array_key_exists("isEBawab", $context) ? $context["isEBawab"] : (function () { throw new RuntimeError('Variable "isEBawab" does not exist.', 196, $this->source); })())) ? ("bawab") : ((((isset($context["isUnlimited"]) || array_key_exists("isUnlimited", $context) ? $context["isUnlimited"] : (function () { throw new RuntimeError('Variable "isUnlimited" does not exist.', 196, $this->source); })())) ? ("unlimited") : ((( // line 197
(isset($context["isFlf2"]) || array_key_exists("isFlf2", $context) ? $context["isFlf2"] : (function () { throw new RuntimeError('Variable "isFlf2" does not exist.', 197, $this->source); })())) ? ("flf2") : ("free"))))))))))));
// line 198
echo " ";
$context["depthProduct"] = (((isset($context["isFeatured"]) || array_key_exists("isFeatured", $context) ? $context["isFeatured"] : (function () { throw new RuntimeError('Variable "isFeatured" does not exist.', 198, $this->source); })())) ? ("featured") : ((((isset($context["isPremium"]) || array_key_exists("isPremium", $context) ? $context["isPremium"] : (function () { throw new RuntimeError('Variable "isPremium" does not exist.', 198, $this->source); })())) ? ("premium") : ((( // line 199
(isset($context["isSponserd"]) || array_key_exists("isSponserd", $context) ? $context["isSponserd"] : (function () { throw new RuntimeError('Variable "isSponserd" does not exist.', 199, $this->source); })())) ? ("sponsored") : ((((isset($context["isSpotLight"]) || array_key_exists("isSpotLight", $context) ? $context["isSpotLight"] : (function () { throw new RuntimeError('Variable "isSpotLight" does not exist.', 199, $this->source); })())) ? ("spotlight") : ("regular"))))))));
// line 200
echo " ";
$context["insideCompound"] = ((isset($context["isProject"]) || array_key_exists("isProject", $context) ? $context["isProject"] : (function () { throw new RuntimeError('Variable "isProject" does not exist.', 200, $this->source); })()) || (twig_get_attribute($this->env, $this->source, $context["listing"], "parent", [], "any", false, false, false, 200) != null));
// line 201
echo "
<div id=\"";
// line 202
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 202), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, (isset($context["cardGridSize"]) || array_key_exists("cardGridSize", $context) ? $context["cardGridSize"] : (function () { throw new RuntimeError('Variable "cardGridSize" does not exist.', 202, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (isset($context["relatedListingClass"]) || array_key_exists("relatedListingClass", $context) ? $context["relatedListingClass"] : (function () { throw new RuntimeError('Variable "relatedListingClass" does not exist.', 202, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (isset($context["searchListingCardClass"]) || array_key_exists("searchListingCardClass", $context) ? $context["searchListingCardClass"] : (function () { throw new RuntimeError('Variable "searchListingCardClass" does not exist.', 202, $this->source); })()), "html", null, true);
echo "\"
ng-init='setSourceRoute(\"";
// line 203
echo twig_escape_filter($this->env, 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.', 203, $this->source); })()), "request", [], "any", false, false, false, 203), "attributes", [], "any", false, false, false, 203), "get", [0 => "_route"], "method", false, false, false, 203), "html", null, true);
echo "\");'
itemscope itemtype=\"https://schema.org/SingleFamilyResidence\">
<div class=\"search-listing-card__container\" ng-content-loaded
callback='setListingDetail(\"";
// line 206
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 206), "html", null, true);
echo "\",{
\"section\": \"";
// line 207
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "section", [], "any", false, false, false, 207), "id", [], "any", false, false, false, 207), "html", null, true);
echo "\",
\"sellerPhones\": ";
// line 208
echo twig_escape_filter($this->env, $this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize((isset($context["encodedSellerPhones"]) || array_key_exists("encodedSellerPhones", $context) ? $context["encodedSellerPhones"] : (function () { throw new RuntimeError('Variable "encodedSellerPhones" does not exist.', 208, $this->source); })()), "json"), "html", null, true);
echo ",
\"sellerPhone\": \"";
// line 209
echo twig_escape_filter($this->env, (((isset($context["hasWhatsapp"]) || array_key_exists("hasWhatsapp", $context) ? $context["hasWhatsapp"] : (function () { throw new RuntimeError('Variable "hasWhatsapp" does not exist.', 209, $this->source); })())) ? ($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->phoneNumberEncode((isset($context["whatsAppNumber"]) || array_key_exists("whatsAppNumber", $context) ? $context["whatsAppNumber"] : (function () { throw new RuntimeError('Variable "whatsAppNumber" does not exist.', 209, $this->source); })()))) : ((((isset($context["listingPhone"]) || array_key_exists("listingPhone", $context) ? $context["listingPhone"] : (function () { throw new RuntimeError('Variable "listingPhone" does not exist.', 209, $this->source); })())) ? ($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->phoneNumberEncode(twig_get_attribute($this->env, $this->source, (isset($context["listingPhone"]) || array_key_exists("listingPhone", $context) ? $context["listingPhone"] : (function () { throw new RuntimeError('Variable "listingPhone" does not exist.', 209, $this->source); })()), "number", [], "any", false, false, false, 209))) : ("")))), "html", null, true);
echo "\",
\"financeUrl\":\"";
// line 210
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "getFinancialAidURL", [], "method", false, false, false, 210), "html", null, true);
echo "\",
\"userEmail\": ";
// line 211
echo twig_escape_filter($this->env, json_encode((isset($context["currentUserEmail"]) || array_key_exists("currentUserEmail", $context) ? $context["currentUserEmail"] : (function () { throw new RuntimeError('Variable "currentUserEmail" does not exist.', 211, $this->source); })())), "html", null, true);
echo ",
\"financeFeatureValue\": \"";
// line 212
echo twig_escape_filter($this->env, (isset($context["financeFeatureValue"]) || array_key_exists("financeFeatureValue", $context) ? $context["financeFeatureValue"] : (function () { throw new RuntimeError('Variable "financeFeatureValue" does not exist.', 212, $this->source); })()), "html", null, true);
echo "\",
\"listingName\" : ";
// line 213
echo twig_escape_filter($this->env, $this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize(((twig_get_attribute($this->env, $this->source, $context["listing"], "customSlug", [], "any", true, true, false, 213)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["listing"], "customSlug", [], "any", false, false, false, 213), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 213))) : (twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 213)))), "html", null, true);
echo ",
\"listingTitle\" : ";
// line 214
echo twig_escape_filter($this->env, $this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize(twig_get_attribute($this->env, $this->source, $context["listing"], "title", [], "any", false, false, false, 214)), "html", null, true);
echo ",
\"listingUser\": {
\"sellerName\" : ";
// line 216
echo twig_escape_filter($this->env, $this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize((isset($context["sellerName"]) || array_key_exists("sellerName", $context) ? $context["sellerName"] : (function () { throw new RuntimeError('Variable "sellerName" does not exist.', 216, $this->source); })())), "html", null, true);
echo ",
\"sellerLogo\": \"\",
\"sellerUrl\": \"";
// line 218
echo twig_escape_filter($this->env, (isset($context["sellerUrl"]) || array_key_exists("sellerUrl", $context) ? $context["sellerUrl"] : (function () { throw new RuntimeError('Variable "sellerUrl" does not exist.', 218, $this->source); })()), "html", null, true);
echo "\",
\"joinedData\":\"";
// line 219
echo twig_escape_filter($this->env, (isset($context["joinedData"]) || array_key_exists("joinedData", $context) ? $context["joinedData"] : (function () { throw new RuntimeError('Variable "joinedData" does not exist.', 219, $this->source); })()), "html", null, true);
echo "\",
\"activeListingsCount\": \"";
// line 220
echo twig_escape_filter($this->env, (isset($context["activeListingsCount"]) || array_key_exists("activeListingsCount", $context) ? $context["activeListingsCount"] : (function () { throw new RuntimeError('Variable "activeListingsCount" does not exist.', 220, $this->source); })()), "html", null, true);
echo "\",
\"leadsCount\":\"";
// line 221
echo twig_escape_filter($this->env, (isset($context["leadsCount"]) || array_key_exists("leadsCount", $context) ? $context["leadsCount"] : (function () { throw new RuntimeError('Variable "leadsCount" does not exist.', 221, $this->source); })()), "html", null, true);
echo "\"
}
})'>
<div class=\"search-listing-card__wrapper\">
<a class=\"search-listing-card__container__link ";
// line 225
echo twig_escape_filter($this->env, (isset($context["relatedListingAnalytics"]) || array_key_exists("relatedListingAnalytics", $context) ? $context["relatedListingAnalytics"] : (function () { throw new RuntimeError('Variable "relatedListingAnalytics" does not exist.', 225, $this->source); })()), "html", null, true);
echo "\"
onclick=\"elementEvents.fireGTM( 'listingId',";
// line 226
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 226), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, json_encode((isset($context["listingEvents"]) || array_key_exists("listingEvents", $context) ? $context["listingEvents"] : (function () { throw new RuntimeError('Variable "listingEvents" does not exist.', 226, $this->source); })())), "html", null, true);
echo ")\"
href=\"";
// line 227
echo twig_escape_filter($this->env, (isset($context["LISTING_URL"]) || array_key_exists("LISTING_URL", $context) ? $context["LISTING_URL"] : (function () { throw new RuntimeError('Variable "LISTING_URL" does not exist.', 227, $this->source); })()), "html", null, true);
echo "\"></a>
<div class=\"search-listing-card__labels\">
";
// line 229
if ((isset($context["isUserHasActiveSubscription"]) || array_key_exists("isUserHasActiveSubscription", $context) ? $context["isUserHasActiveSubscription"] : (function () { throw new RuntimeError('Variable "isUserHasActiveSubscription" does not exist.', 229, $this->source); })())) {
// line 230
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["listing"], "featured", [], "any", false, false, false, 230) == (isset($context["PREMIUM_CONSTANT"]) || array_key_exists("PREMIUM_CONSTANT", $context) ? $context["PREMIUM_CONSTANT"] : (function () { throw new RuntimeError('Variable "PREMIUM_CONSTANT" does not exist.', 230, $this->source); })()))) {
// line 231
echo " <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
";
// line 232
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.premium_small"), "html", null, true);
echo "
</span>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 234
$context["listing"], "featured", [], "any", false, false, false, 234) == (isset($context["SPOTLIGHT_CONSTANT"]) || array_key_exists("SPOTLIGHT_CONSTANT", $context) ? $context["SPOTLIGHT_CONSTANT"] : (function () { throw new RuntimeError('Variable "SPOTLIGHT_CONSTANT" does not exist.', 234, $this->source); })()))) {
// line 235
echo " <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
";
// line 236
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.spotlight"), "html", null, true);
echo "
</span>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 238
$context["listing"], "featured", [], "any", false, false, false, 238) == (isset($context["SPONSORED_TYPE"]) || array_key_exists("SPONSORED_TYPE", $context) ? $context["SPONSORED_TYPE"] : (function () { throw new RuntimeError('Variable "SPONSORED_TYPE" does not exist.', 238, $this->source); })()))) {
// line 239
echo " <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
";
// line 240
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.sponsored"), "html", null, true);
echo "
</span>
";
} elseif (( // line 242
(isset($context["isCompoundSearchResultsCard"]) || array_key_exists("isCompoundSearchResultsCard", $context) ? $context["isCompoundSearchResultsCard"] : (function () { throw new RuntimeError('Variable "isCompoundSearchResultsCard" does not exist.', 242, $this->source); })()) && twig_get_attribute($this->env, $this->source, $context["listing"], "featured", [], "any", false, false, false, 242))) {
// line 243
echo " <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
";
// line 244
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.featured_small"), "html", null, true);
echo "
</span>
";
}
// line 247
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["listing"], "featured", [], "any", false, false, false, 247) == (isset($context["FEATURE_TYPE"]) || array_key_exists("FEATURE_TYPE", $context) ? $context["FEATURE_TYPE"] : (function () { throw new RuntimeError('Variable "FEATURE_TYPE" does not exist.', 247, $this->source); })()))) {
// line 248
echo " <span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
";
// line 249
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.featured_capital"), "html", null, true);
echo "
</span>
";
} elseif ( // line 251
(isset($context["isSoldByOwnerType"]) || array_key_exists("isSoldByOwnerType", $context) ? $context["isSoldByOwnerType"] : (function () { throw new RuntimeError('Variable "isSoldByOwnerType" does not exist.', 251, $this->source); })())) {
// line 252
echo " <span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
";
// line 253
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.sold_by_owner"), "html", null, true);
echo "
</span>
";
}
// line 256
echo " ";
}
// line 257
echo " ";
if ((isset($context["isVerified"]) || array_key_exists("isVerified", $context) ? $context["isVerified"] : (function () { throw new RuntimeError('Variable "isVerified" does not exist.', 257, $this->source); })())) {
// line 258
echo " <span class=\"search-listing-card__labels_card search-listing-card__labels_card_verified\">
";
// line 259
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.verified"), "html", null, true);
echo "
</span>
";
}
// line 262
echo " ";
if ((isset($context["isEligibleForMortgage"]) || array_key_exists("isEligibleForMortgage", $context) ? $context["isEligibleForMortgage"] : (function () { throw new RuntimeError('Variable "isEligibleForMortgage" does not exist.', 262, $this->source); })())) {
// line 263
echo " <span class=\"search-listing-card__labels_card search-listing-card__labels_card_mortgage\">
";
// line 264
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.is_mortgage"), "html", null, true);
echo "
</span>
";
}
// line 267
echo " ";
if ((isset($context["isRelatedToMainListing"]) || array_key_exists("isRelatedToMainListing", $context) ? $context["isRelatedToMainListing"] : (function () { throw new RuntimeError('Variable "isRelatedToMainListing" does not exist.', 267, $this->source); })())) {
// line 268
echo " <span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
";
// line 269
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->getSimilarLabel((isset($context["mainListingObj"]) || array_key_exists("mainListingObj", $context) ? $context["mainListingObj"] : (function () { throw new RuntimeError('Variable "mainListingObj" does not exist.', 269, $this->source); })()), $context["listing"])), "html", null, true);
echo "
</span>
";
}
// line 272
echo " </div>
<div class=\"search-listing-card__img embed-responsive embed-responsive-4by3\">
<div class=\"search-listing-card__img__wrapper embed-responsive-item\">
";
// line 275
if ((isset($context["isListingPhotosDefined"]) || array_key_exists("isListingPhotosDefined", $context) ? $context["isListingPhotosDefined"] : (function () { throw new RuntimeError('Variable "isListingPhotosDefined" does not exist.', 275, $this->source); })())) {
// line 276
echo "
";
// line 277
if ((isset($context["disableLazyLoadImgIndex"]) || array_key_exists("disableLazyLoadImgIndex", $context) ? $context["disableLazyLoadImgIndex"] : (function () { throw new RuntimeError('Variable "disableLazyLoadImgIndex" does not exist.', 277, $this->source); })())) {
// line 278
echo " <picture>
<source srcset=\"";
// line 279
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listingPhotos"]) || array_key_exists("listingPhotos", $context) ? $context["listingPhotos"] : (function () { throw new RuntimeError('Variable "listingPhotos" does not exist.', 279, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 279), [], "array", false, false, false, 279), "main", [], "any", false, false, false, 279), "file", [], "any", false, false, false, 279), "file"), "search-thumb-webp"), "html", null, true);
echo "\"
type=\"image/webp\">
<source srcset=\"";
// line 281
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listingPhotos"]) || array_key_exists("listingPhotos", $context) ? $context["listingPhotos"] : (function () { throw new RuntimeError('Variable "listingPhotos" does not exist.', 281, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 281), [], "array", false, false, false, 281), "main", [], "any", false, false, false, 281), "file", [], "any", false, false, false, 281), "file"), "search-thumb"), "html", null, true);
echo "\"
type=\"image/jpg\">
<img
alt=\"";
// line 284
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->excludeNumbers(twig_get_attribute($this->env, $this->source, $context["listing"], "title", [], "any", false, false, false, 284)), "html", null, true);
echo "\"
width=\"";
// line 285
echo twig_escape_filter($this->env, (isset($context["listingPhotoSize"]) || array_key_exists("listingPhotoSize", $context) ? $context["listingPhotoSize"] : (function () { throw new RuntimeError('Variable "listingPhotoSize" does not exist.', 285, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["listingPhotoSize"]) || array_key_exists("listingPhotoSize", $context) ? $context["listingPhotoSize"] : (function () { throw new RuntimeError('Variable "listingPhotoSize" does not exist.', 285, $this->source); })()), "html", null, true);
echo "\"
fetchpriority=\"high\" />
</picture>
";
} else {
// line 289
echo " <picture>
<source data-srcset=\"";
// line 290
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listingPhotos"]) || array_key_exists("listingPhotos", $context) ? $context["listingPhotos"] : (function () { throw new RuntimeError('Variable "listingPhotos" does not exist.', 290, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 290), [], "array", false, false, false, 290), "main", [], "any", false, false, false, 290), "file", [], "any", false, false, false, 290), "file"), "search-thumb-webp"), "html", null, true);
echo "\"
type=\"image/webp\">
<source data-srcset=\"";
// line 292
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listingPhotos"]) || array_key_exists("listingPhotos", $context) ? $context["listingPhotos"] : (function () { throw new RuntimeError('Variable "listingPhotos" does not exist.', 292, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 292), [], "array", false, false, false, 292), "main", [], "any", false, false, false, 292), "file", [], "any", false, false, false, 292), "file"), "search-thumb"), "html", null, true);
echo "\"
type=\"image/jpg\">
<img
src=\"/images/placeholder.svg\"
class=\"lazyload\"
alt=\"";
// line 297
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->excludeNumbers(twig_get_attribute($this->env, $this->source, $context["listing"], "title", [], "any", false, false, false, 297)), "html", null, true);
echo "\"
width=\"";
// line 298
echo twig_escape_filter($this->env, (isset($context["listingPhotoSize"]) || array_key_exists("listingPhotoSize", $context) ? $context["listingPhotoSize"] : (function () { throw new RuntimeError('Variable "listingPhotoSize" does not exist.', 298, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["listingPhotoSize"]) || array_key_exists("listingPhotoSize", $context) ? $context["listingPhotoSize"] : (function () { throw new RuntimeError('Variable "listingPhotoSize" does not exist.', 298, $this->source); })()), "html", null, true);
echo "\"
fetchpriority=\"low\" />
</picture>
";
}
// line 302
echo " ";
} elseif (twig_get_attribute($this->env, $this->source, $context["listing"], "mainPhoto", [], "any", false, false, false, 302)) {
// line 303
echo " ";
if ((isset($context["disableLazyLoadImgIndex"]) || array_key_exists("disableLazyLoadImgIndex", $context) ? $context["disableLazyLoadImgIndex"] : (function () { throw new RuntimeError('Variable "disableLazyLoadImgIndex" does not exist.', 303, $this->source); })())) {
// line 304
echo " <picture>
<source srcset=\"";
// line 305
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "mainPhoto", [], "any", false, false, false, 305), "file", [], "any", false, false, false, 305), "file"), "search-thumb-webp"), "html", null, true);
echo "\"
type=\"image/webp\">
<source srcset=\"";
// line 307
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "mainPhoto", [], "any", false, false, false, 307), "file", [], "any", false, false, false, 307), "file"), "search-thumb"), "html", null, true);
echo "\"
type=\"image/jpg\">
<img
alt=\"";
// line 310
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->excludeNumbers(twig_get_attribute($this->env, $this->source, $context["listing"], "title", [], "any", false, false, false, 310)), "html", null, true);
echo "\"
width=\"";
// line 311
echo twig_escape_filter($this->env, (isset($context["listingPhotoSize"]) || array_key_exists("listingPhotoSize", $context) ? $context["listingPhotoSize"] : (function () { throw new RuntimeError('Variable "listingPhotoSize" does not exist.', 311, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["listingPhotoSize"]) || array_key_exists("listingPhotoSize", $context) ? $context["listingPhotoSize"] : (function () { throw new RuntimeError('Variable "listingPhotoSize" does not exist.', 311, $this->source); })()), "html", null, true);
echo "\"
fetchpriority=\"high\" />
</picture>
";
} else {
// line 315
echo " <picture>
<source data-srcset=\"";
// line 316
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "mainPhoto", [], "any", false, false, false, 316), "file", [], "any", false, false, false, 316), "file"), "search-thumb-webp"), "html", null, true);
echo "\"
type=\"image/webp\">
<source data-srcset=\"";
// line 318
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "mainPhoto", [], "any", false, false, false, 318), "file", [], "any", false, false, false, 318), "file"), "search-thumb"), "html", null, true);
echo "\"
type=\"image/jpg\">
<img
src=\"/images/placeholder.svg\"
class=\"lazyload\"
alt=\"";
// line 323
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->excludeNumbers(twig_get_attribute($this->env, $this->source, $context["listing"], "title", [], "any", false, false, false, 323)), "html", null, true);
echo "\"
width=\"";
// line 324
echo twig_escape_filter($this->env, (isset($context["listingPhotoSize"]) || array_key_exists("listingPhotoSize", $context) ? $context["listingPhotoSize"] : (function () { throw new RuntimeError('Variable "listingPhotoSize" does not exist.', 324, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["listingPhotoSize"]) || array_key_exists("listingPhotoSize", $context) ? $context["listingPhotoSize"] : (function () { throw new RuntimeError('Variable "listingPhotoSize" does not exist.', 324, $this->source); })()), "html", null, true);
echo "\"
fetchpriority=\"low\" />
</picture>
";
}
// line 328
echo " ";
} else {
// line 329
echo " <div class=\"search-listing-card__img__no-photo\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.no_listing_photo"), "html", null, true);
echo "</div>
";
}
// line 331
echo " ";
if ((isset($context["showPhotosCount"]) || array_key_exists("showPhotosCount", $context) ? $context["showPhotosCount"] : (function () { throw new RuntimeError('Variable "showPhotosCount" does not exist.', 331, $this->source); })())) {
// line 332
echo " <div class=\"search-listing-card__img__thumbnail search-listing-card__img__thumbnail_bottom\">
<div class=\"search-listing-card__img__count\">
<span class=\"fa fa-image\"></span>
";
// line 335
if (twig_get_attribute($this->env, $this->source, ($context["listingPhotosCount"] ?? null), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 335), [], "array", true, true, false, 335)) {
// line 336
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["listingPhotosCount"]) || array_key_exists("listingPhotosCount", $context) ? $context["listingPhotosCount"] : (function () { throw new RuntimeError('Variable "listingPhotosCount" does not exist.', 336, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 336), [], "array", false, false, false, 336), "html", null, true);
echo "
";
} else {
// line 338
echo " 0
";
}
// line 340
echo " </div>
</div>
";
}
// line 343
echo " </div>
</div>
<div class=\"search-listing-card__details\">
";
// line 346
if ((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.', 346, $this->source); })()), "request", [], "any", false, false, false, 346), "attributes", [], "any", false, false, false, 346), "get", [0 => "_route"], "method", false, false, false, 346) != "aqarmap_user_listings")) {
// line 347
echo " ";
if ((isset($context["isListingLogoDefined"]) || array_key_exists("isListingLogoDefined", $context) ? $context["isListingLogoDefined"] : (function () { throw new RuntimeError('Variable "isListingLogoDefined" does not exist.', 347, $this->source); })())) {
// line 348
echo " ";
echo twig_call_macro($macros["_self"], "macro_userLogo", [$this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 349
(isset($context["listingPhotos"]) || array_key_exists("listingPhotos", $context) ? $context["listingPhotos"] : (function () { throw new RuntimeError('Variable "listingPhotos" does not exist.', 349, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 349), [], "array", false, false, false, 349), "logo", [], "any", false, false, false, 349), "file", [], "any", false, false, false, 349), "file"), "logo"), // line 350
(isset($context["disableLazyLoadImgIndex"]) || array_key_exists("disableLazyLoadImgIndex", $context) ? $context["disableLazyLoadImgIndex"] : (function () { throw new RuntimeError('Variable "disableLazyLoadImgIndex" does not exist.', 350, $this->source); })()), // line 351
(isset($context["listingUserPhotoSize"]) || array_key_exists("listingUserPhotoSize", $context) ? $context["listingUserPhotoSize"] : (function () { throw new RuntimeError('Variable "listingUserPhotoSize" does not exist.', 351, $this->source); })()), twig_get_attribute($this->env, $this->source, // line 352
$context["listing"], "id", [], "any", false, false, false, 352)], 348, $context, $this->getSourceContext());
// line 353
echo "
";
} elseif (twig_get_attribute($this->env, $this->source, // line 354
$context["listing"], "validUserLogo", [], "any", false, false, false, 354)) {
// line 355
echo " ";
echo twig_call_macro($macros["_self"], "macro_userLogo", [$this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, // line 356
$context["listing"], "validUserLogo", [], "any", false, false, false, 356), "file"), "logo"), // line 357
(isset($context["disableLazyLoadImgIndex"]) || array_key_exists("disableLazyLoadImgIndex", $context) ? $context["disableLazyLoadImgIndex"] : (function () { throw new RuntimeError('Variable "disableLazyLoadImgIndex" does not exist.', 357, $this->source); })()), // line 358
(isset($context["listingUserPhotoSize"]) || array_key_exists("listingUserPhotoSize", $context) ? $context["listingUserPhotoSize"] : (function () { throw new RuntimeError('Variable "listingUserPhotoSize" does not exist.', 358, $this->source); })()), twig_get_attribute($this->env, $this->source, // line 359
$context["listing"], "id", [], "any", false, false, false, 359)], 355, $context, $this->getSourceContext());
// line 360
echo "
";
}
// line 362
echo " ";
}
// line 363
echo " <div class=\"search-listing-card__details__wrapper\" >
";
// line 364
if ((isset($context["isCompoundSearchResultsCard"]) || array_key_exists("isCompoundSearchResultsCard", $context) ? $context["isCompoundSearchResultsCard"] : (function () { throw new RuntimeError('Variable "isCompoundSearchResultsCard" does not exist.', 364, $this->source); })())) {
// line 365
echo " ";
if ((array_key_exists("elasticScore", $context) && (isset($context["elasticScore"]) || array_key_exists("elasticScore", $context) ? $context["elasticScore"] : (function () { throw new RuntimeError('Variable "elasticScore" does not exist.', 365, $this->source); })()))) {
// line 366
echo " ";
if (((isset($context["elasticScore"]) || array_key_exists("elasticScore", $context) ? $context["elasticScore"] : (function () { throw new RuntimeError('Variable "elasticScore" does not exist.', 366, $this->source); })()) > 80)) {
// line 367
echo " <div class=\"matching-score matching-score_high\" role=\"alert\">";
echo twig_escape_filter($this->env, (isset($context["elasticScore"]) || array_key_exists("elasticScore", $context) ? $context["elasticScore"] : (function () { throw new RuntimeError('Variable "elasticScore" does not exist.', 367, $this->source); })()), "html", null, true);
echo "% ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.compounds_adviser.matching"), "html", null, true);
echo "
</div>
";
} elseif (( // line 369
(isset($context["elasticScore"]) || array_key_exists("elasticScore", $context) ? $context["elasticScore"] : (function () { throw new RuntimeError('Variable "elasticScore" does not exist.', 369, $this->source); })()) < 40)) {
// line 370
echo " <div class=\"matching-score matching-score_low\" role=\"alert\">";
echo twig_escape_filter($this->env, (isset($context["elasticScore"]) || array_key_exists("elasticScore", $context) ? $context["elasticScore"] : (function () { throw new RuntimeError('Variable "elasticScore" does not exist.', 370, $this->source); })()), "html", null, true);
echo "% ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.compounds_adviser.matching"), "html", null, true);
echo "
</div>
";
} else {
// line 373
echo " <div class=\"matching-score matching-score_mid\" role=\"alert\">";
echo twig_escape_filter($this->env, (isset($context["elasticScore"]) || array_key_exists("elasticScore", $context) ? $context["elasticScore"] : (function () { throw new RuntimeError('Variable "elasticScore" does not exist.', 373, $this->source); })()), "html", null, true);
echo "% ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.compounds_adviser.matching"), "html", null, true);
echo "
</div>
";
}
// line 376
echo " ";
}
// line 377
echo " <div class=\"search-listing-card__compound-title\">
<span> ";
// line 378
echo $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->fixArabicNumbers(twig_get_attribute($this->env, $this->source, $context["listing"], "title", [], "any", false, false, false, 378));
echo "</span>
</div>
<p class=\"search-listing-card__address search-listing-card__address_compound\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_location.svg\"
class=\"search-listing-card__attributes_icon\"
alt=\"";
// line 385
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "address", [], "any", false, false, false, 385), "html", null, true);
echo "\"
width=\"";
// line 386
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 386, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 386, $this->source); })()), "html", null, true);
echo "\"
/>
<span> ";
// line 388
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "address", [], "any", false, false, false, 388), "html", null, true);
echo " </span>
</p>
";
// line 390
if ((isset($context["showCompoundAveragePrices"]) || array_key_exists("showCompoundAveragePrices", $context) ? $context["showCompoundAveragePrices"] : (function () { throw new RuntimeError('Variable "showCompoundAveragePrices" does not exist.', 390, $this->source); })())) {
// line 391
echo " <div class=\"search-listing-card__units__wrapper\">
";
// line 392
if ((isset($context["isCompoundAveragePrices"]) || array_key_exists("isCompoundAveragePrices", $context) ? $context["isCompoundAveragePrices"] : (function () { throw new RuntimeError('Variable "isCompoundAveragePrices" does not exist.', 392, $this->source); })())) {
// line 393
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/compoundAveragePrices.html.twig", "@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig", 393)->display(twig_array_merge($context, ["units" => (isset($context["compoundAveragePrices"]) || array_key_exists("compoundAveragePrices", $context) ? $context["compoundAveragePrices"] : (function () { throw new RuntimeError('Variable "compoundAveragePrices" does not exist.', 393, $this->source); })())]));
// line 394
echo " ";
}
// line 395
echo " </div>
";
}
// line 397
echo "
<div class=\"search-listing-card__starting-price\">
";
// line 399
if ((isset($context["listingPrice"]) || array_key_exists("listingPrice", $context) ? $context["listingPrice"] : (function () { throw new RuntimeError('Variable "listingPrice" does not exist.', 399, $this->source); })())) {
// line 400
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.starting_from"), "html", null, true);
echo "
<span class=\"integer\">";
// line 401
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["listingPrice"]) || array_key_exists("listingPrice", $context) ? $context["listingPrice"] : (function () { throw new RuntimeError('Variable "listingPrice" does not exist.', 401, $this->source); })())), "html", null, true);
echo "</span>
<span>";
// line 402
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("general", "currency")), "html", null, true);
echo "</span>
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 403
$context["listing"], "section", [], "any", false, false, false, 403), "searchable", [], "any", false, false, false, 403)) {
// line 404
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.call_for_price"), "html", null, true);
echo "
";
}
// line 406
echo " </div>
";
} else {
// line 408
echo " ";
if ((isset($context["allowListingLabel"]) || array_key_exists("allowListingLabel", $context) ? $context["allowListingLabel"] : (function () { throw new RuntimeError('Variable "allowListingLabel" does not exist.', 408, $this->source); })())) {
// line 409
echo " <div class=\"search-listing-card__best-label\">
";
// line 410
if ((isset($context["isValidPrice"]) || array_key_exists("isValidPrice", $context) ? $context["isValidPrice"] : (function () { throw new RuntimeError('Variable "isValidPrice" does not exist.', 410, $this->source); })())) {
// line 411
echo " <img fetchpriority=\"low\" width=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 411, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 411, $this->source); })()), "html", null, true);
echo "\"
src=\"";
// line 412
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/picks/ic_money_blue.svg"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.valid_price"), "html", null, true);
echo "\" />
";
// line 413
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.valid_price"), "html", null, true);
echo "
";
} elseif ( // line 414
(isset($context["isTopViewed"]) || array_key_exists("isTopViewed", $context) ? $context["isTopViewed"] : (function () { throw new RuntimeError('Variable "isTopViewed" does not exist.', 414, $this->source); })())) {
// line 415
echo " <img fetchpriority=\"low\" width=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 415, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 415, $this->source); })()), "html", null, true);
echo "\"
src=\"";
// line 416
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/picks/analytics-arrow-up_blue.svg"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.top_viewed"), "html", null, true);
echo "\" />
";
// line 417
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.top_viewed"), "html", null, true);
echo "
";
} elseif ( // line 418
(isset($context["isTopFavourited"]) || array_key_exists("isTopFavourited", $context) ? $context["isTopFavourited"] : (function () { throw new RuntimeError('Variable "isTopFavourited" does not exist.', 418, $this->source); })())) {
// line 419
echo " <img fetchpriority=\"low\" width=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 419, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 419, $this->source); })()), "html", null, true);
echo "\"
src=\"";
// line 420
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/picks/ic_heart_blue.svg"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.top_favourite"), "html", null, true);
echo "\" />
";
// line 421
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.top_favourite"), "html", null, true);
echo "
";
}
// line 423
echo " </div>
";
}
// line 425
echo " <div class=\"search-listing-card__price\">
";
// line 426
if (twig_get_attribute($this->env, $this->source, $context["listing"], "price", [], "any", false, false, false, 426)) {
// line 427
echo " <span class=\"integer\">";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "price", [], "any", false, false, false, 427)), "html", null, true);
echo "</span>
<span class=\"mx-2\">";
// line 428
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("general", "currency")), "html", null, true);
echo "</span>
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 429
$context["listing"], "section", [], "any", false, false, false, 429), "searchable", [], "any", false, false, false, 429)) {
// line 430
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.call_for_price"), "html", null, true);
echo "
";
}
// line 432
echo " </div>
<h2 class=\"search-listing-card__title\">
";
// line 434
echo $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->fixArabicNumbers(twig_get_attribute($this->env, $this->source, $context["listing"], "title", [], "any", false, false, false, 434));
echo "
</h2>
<p class=\"search-listing-card__address\" >
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_location.svg\"
class=\"search-listing-card__attributes_icon\"
alt=\"";
// line 441
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "address", [], "any", false, false, false, 441), "html", null, true);
echo "\"
width=\"";
// line 442
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 442, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 442, $this->source); })()), "html", null, true);
echo "\"
/>
<span>";
// line 444
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "address", [], "any", false, false, false, 444), "html", null, true);
echo "</span>
</p>
<div class=\"search-listing-card__attributes\">
<label class=\"search-listing-card__attributes_item\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_size.svg\"
class=\"search-listing-card__attributes_icon\"
alt=\"Listing attributes\"
width=\"";
// line 453
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 453, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 453, $this->source); })()), "html", null, true);
echo "\"
/>
";
// line 455
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "area", [], "any", false, false, false, 455), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("general", "measurement_unit")), "html", null, true);
echo "
</label>
";
// line 457
if ((twig_length_filter($this->env, (isset($context["listing_attributes"]) || array_key_exists("listing_attributes", $context) ? $context["listing_attributes"] : (function () { throw new RuntimeError('Variable "listing_attributes" does not exist.', 457, $this->source); })())) > 0)) {
// line 458
echo " ";
if ((isset($context["listing_rooms"]) || array_key_exists("listing_rooms", $context) ? $context["listing_rooms"] : (function () { throw new RuntimeError('Variable "listing_rooms" does not exist.', 458, $this->source); })())) {
// line 459
echo " <label class=\"search-listing-card__attributes_item\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_bedroom.svg\"
class=\"search-listing-card__attributes_icon\"
alt=\"Listing attributes\"
width=\"";
// line 465
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 465, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 465, $this->source); })()), "html", null, true);
echo "\"
/>
";
// line 467
echo twig_escape_filter($this->env, (isset($context["listing_rooms"]) || array_key_exists("listing_rooms", $context) ? $context["listing_rooms"] : (function () { throw new RuntimeError('Variable "listing_rooms" does not exist.', 467, $this->source); })()), "html", null, true);
echo "
</label>
";
}
// line 470
echo " ";
if ((isset($context["listing_baths"]) || array_key_exists("listing_baths", $context) ? $context["listing_baths"] : (function () { throw new RuntimeError('Variable "listing_baths" does not exist.', 470, $this->source); })())) {
// line 471
echo " <label class=\"search-listing-card__attributes_item\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_bathroom.svg\"
class=\"search-listing-card__attributes_icon\"
alt=\"Listing attributes\"
width=\"";
// line 477
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 477, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 477, $this->source); })()), "html", null, true);
echo "\"
/>
";
// line 479
echo twig_escape_filter($this->env, (isset($context["listing_baths"]) || array_key_exists("listing_baths", $context) ? $context["listing_baths"] : (function () { throw new RuntimeError('Variable "listing_baths" does not exist.', 479, $this->source); })()), "html", null, true);
echo "
</label>
";
}
// line 482
echo " ";
}
// line 483
echo " </div>
";
}
// line 485
echo " </div>
</div>
</div>
";
// line 488
if ((array_key_exists("isEnabledDdeveloperCardData", $context) && (isset($context["isEnabledDdeveloperCardData"]) || array_key_exists("isEnabledDdeveloperCardData", $context) ? $context["isEnabledDdeveloperCardData"] : (function () { throw new RuntimeError('Variable "isEnabledDdeveloperCardData" does not exist.', 488, $this->source); })()))) {
// line 489
echo " <div class=\"search-listing-card__user-properties__container\">
<hr class=\"desktop-separator\">
<div class=\"search-listing-card__user-properties user-properties-container\">
";
// line 492
$this->loadTemplate("@AqarmapListingBundle/Listing/compoundCardDeveloperData.html.twig", "@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig", 492)->display(twig_array_merge($context, ["compound" => (isset($context["compoundField"]) || array_key_exists("compoundField", $context) ? $context["compoundField"] : (function () { throw new RuntimeError('Variable "compoundField" does not exist.', 492, $this->source); })())]));
// line 493
echo " </div>
</div>
";
}
// line 496
echo "
";
// line 497
if ((isset($context["showCtaButtons"]) || array_key_exists("showCtaButtons", $context) ? $context["showCtaButtons"] : (function () { throw new RuntimeError('Variable "showCtaButtons" does not exist.', 497, $this->source); })())) {
// line 498
echo " <div class=\"search-listing-card__footer\">
<hr class=\"desktop-separator\">
<div class=\"search-listing-card__cta w-100\">
";
// line 501
if (( !twig_test_empty((isset($context["listingPhones"]) || array_key_exists("listingPhones", $context) ? $context["listingPhones"] : (function () { throw new RuntimeError('Variable "listingPhones" does not exist.', 501, $this->source); })())) && !twig_get_attribute($this->env, $this->source, $context["listing"], "isCallRequest", [], "any", false, false, false, 501))) {
// line 502
echo " ";
if ((isset($context["hasWhatsapp"]) || array_key_exists("hasWhatsapp", $context) ? $context["hasWhatsapp"] : (function () { throw new RuntimeError('Variable "hasWhatsapp" does not exist.', 502, $this->source); })())) {
// line 503
echo " <button aria-label=\"text seller by whatsapp\"
class=\"search-listing-card__cta-button search-listing-card__cta-button_whatsapp whatsapp big\"
ng-click=\"onSendLead(\$event,{
leadType:'whatsapp' ,
actionType:'";
// line 507
echo twig_escape_filter($this->env, (isset($context["SEND_WHATSAPP_CONSTANT"]) || array_key_exists("SEND_WHATSAPP_CONSTANT", $context) ? $context["SEND_WHATSAPP_CONSTANT"] : (function () { throw new RuntimeError('Variable "SEND_WHATSAPP_CONSTANT" does not exist.', 507, $this->source); })()), "html", null, true);
echo "' ,
";
// line 509
echo " propertySection: '";
echo twig_escape_filter($this->env, (isset($context["propertySectionSlug"]) || array_key_exists("propertySectionSlug", $context) ? $context["propertySectionSlug"] : (function () { throw new RuntimeError('Variable "propertySectionSlug" does not exist.', 509, $this->source); })()), "html", null, true);
echo "' ,
propertyCategory: '";
// line 510
echo twig_escape_filter($this->env, (isset($context["propertyCategory"]) || array_key_exists("propertyCategory", $context) ? $context["propertyCategory"] : (function () { throw new RuntimeError('Variable "propertyCategory" does not exist.', 510, $this->source); })()), "html", null, true);
echo "',
leadSourcePage: '";
// line 511
echo twig_escape_filter($this->env, (isset($context["leadSourcePage"]) || array_key_exists("leadSourcePage", $context) ? $context["leadSourcePage"] : (function () { throw new RuntimeError('Variable "leadSourcePage" does not exist.', 511, $this->source); })()), "html", null, true);
echo "' ,
depthProduct: '";
// line 512
echo twig_escape_filter($this->env, (isset($context["depthProduct"]) || array_key_exists("depthProduct", $context) ? $context["depthProduct"] : (function () { throw new RuntimeError('Variable "depthProduct" does not exist.', 512, $this->source); })()), "html", null, true);
echo "',
listingId: '";
// line 513
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 513), "html", null, true);
echo "' ,
insideCompound : '";
// line 514
echo twig_escape_filter($this->env, (isset($context["insideCompound"]) || array_key_exists("insideCompound", $context) ? $context["insideCompound"] : (function () { throw new RuntimeError('Variable "insideCompound" does not exist.', 514, $this->source); })()), "html", null, true);
echo "'
});\"
>
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_whatsapp.svg\"
class=\"search-listing-card__cta-button_whatsapp_icon\"
alt=\"";
// line 521
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.lead.whatsApp"), "html", null, true);
echo "\"
width=\"";
// line 522
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 522, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 522, $this->source); })()), "html", null, true);
echo "\"
/>
";
// line 524
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.lead.whatsApp"), "html", null, true);
echo "
</button>
<div class=\"vertical-separator\"></div>
";
}
// line 528
echo " ";
$context["phoneBtnClass"] = ("search-listing-card__cta-button search-listing-card__cta-button_call " . (isset($context["callBtnClass"]) || array_key_exists("callBtnClass", $context) ? $context["callBtnClass"] : (function () { throw new RuntimeError('Variable "callBtnClass" does not exist.', 528, $this->source); })()));
// line 529
echo " <button class=\"";
echo twig_escape_filter($this->env, (isset($context["phoneBtnClass"]) || array_key_exists("phoneBtnClass", $context) ? $context["phoneBtnClass"] : (function () { throw new RuntimeError('Variable "phoneBtnClass" does not exist.', 529, $this->source); })()), "html", null, true);
echo "\" aria-label=\"show seller phone\"
submit-text=\"";
// line 530
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.show_seller_phone"), "html", null, true);
echo "\"
ng-click=\"searchActionType = 'showNumber';
onSendLead(\$event,{
leadType:'call' ,
actionType:'";
// line 534
echo twig_escape_filter($this->env, (isset($context["SHOW_PHONE_CONSTANT"]) || array_key_exists("SHOW_PHONE_CONSTANT", $context) ? $context["SHOW_PHONE_CONSTANT"] : (function () { throw new RuntimeError('Variable "SHOW_PHONE_CONSTANT" does not exist.', 534, $this->source); })()), "html", null, true);
echo "' ,
leadSourcePage: '";
// line 535
echo twig_escape_filter($this->env, (isset($context["leadSourcePage"]) || array_key_exists("leadSourcePage", $context) ? $context["leadSourcePage"] : (function () { throw new RuntimeError('Variable "leadSourcePage" does not exist.', 535, $this->source); })()), "html", null, true);
echo "' ,
propertySection: '";
// line 536
echo twig_escape_filter($this->env, (isset($context["propertySectionSlug"]) || array_key_exists("propertySectionSlug", $context) ? $context["propertySectionSlug"] : (function () { throw new RuntimeError('Variable "propertySectionSlug" does not exist.', 536, $this->source); })()), "html", null, true);
echo "' ,
propertyCategory: '";
// line 537
echo twig_escape_filter($this->env, (isset($context["propertyCategory"]) || array_key_exists("propertyCategory", $context) ? $context["propertyCategory"] : (function () { throw new RuntimeError('Variable "propertyCategory" does not exist.', 537, $this->source); })()), "html", null, true);
echo "',
depthProduct: '";
// line 538
echo twig_escape_filter($this->env, (isset($context["depthProduct"]) || array_key_exists("depthProduct", $context) ? $context["depthProduct"] : (function () { throw new RuntimeError('Variable "depthProduct" does not exist.', 538, $this->source); })()), "html", null, true);
echo "',
";
// line 540
echo " listingId: '";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 540), "html", null, true);
echo "' ,
insideCompound : '";
// line 541
echo twig_escape_filter($this->env, (isset($context["insideCompound"]) || array_key_exists("insideCompound", $context) ? $context["insideCompound"] : (function () { throw new RuntimeError('Variable "insideCompound" does not exist.', 541, $this->source); })()), "html", null, true);
echo "'
});\"
ng-if=\"!phoneShowed[";
// line 544
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 544), "html", null, true);
echo "]\"
data-gtm-listing-id=\"";
// line 545
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 545), "html", null, true);
echo "\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_phone.svg\"
class=\"search-listing-card__cta-button_call_icon\"
alt=\"";
// line 550
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.show_seller_phone"), "html", null, true);
echo "\"
width=\"";
// line 551
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 551, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 551, $this->source); })()), "html", null, true);
echo "\"
/>
<span class=\"cta-button-text\"> ";
// line 553
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.show_seller_phone"), "html", null, true);
echo "</span>
</button>
<button class=\"";
// line 555
echo twig_escape_filter($this->env, (isset($context["phoneBtnClass"]) || array_key_exists("phoneBtnClass", $context) ? $context["phoneBtnClass"] : (function () { throw new RuntimeError('Variable "phoneBtnClass" does not exist.', 555, $this->source); })()), "html", null, true);
echo "\" aria-label=\"seller phone\"
ng-cloak
ng-click=\"showPhoneModalByListingId(";
// line 557
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 557), "html", null, true);
echo ")\"
ng-if=\"phoneShowed[";
// line 558
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 558), "html", null, true);
echo "]\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_phone.svg\"
class=\"search-listing-card__cta-button_call_icon\"
alt=\"";
// line 563
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.show_seller_phone"), "html", null, true);
echo "\"
width=\"";
// line 564
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 564, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 564, $this->source); })()), "html", null, true);
echo "\"
/>
<span class=\"cta-button-text\"> ";
// line 566
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.show_seller_phone"), "html", null, true);
echo "</span>
</button>
";
} else {
// line 569
echo " <button aria-label=\"request seller call\"
class=\"search-listing-card__cta-button search-listing-card__cta-button_call-request big m-0\"
ng-hide=\"callRequested[";
// line 571
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 571), "html", null, true);
echo "]\"
ng-click=\"searchActionType = 'sendRequest';
onSendLead(\$event,{
leadType:'request_call' ,
actionType:'";
// line 575
echo twig_escape_filter($this->env, (isset($context["CALL_REQUEST_CONSTANT"]) || array_key_exists("CALL_REQUEST_CONSTANT", $context) ? $context["CALL_REQUEST_CONSTANT"] : (function () { throw new RuntimeError('Variable "CALL_REQUEST_CONSTANT" does not exist.', 575, $this->source); })()), "html", null, true);
echo "' ,
";
// line 577
echo " leadSourcePage: '";
echo twig_escape_filter($this->env, (isset($context["leadSourcePage"]) || array_key_exists("leadSourcePage", $context) ? $context["leadSourcePage"] : (function () { throw new RuntimeError('Variable "leadSourcePage" does not exist.', 577, $this->source); })()), "html", null, true);
echo "' ,
propertySection: '";
// line 578
echo twig_escape_filter($this->env, (isset($context["propertySectionSlug"]) || array_key_exists("propertySectionSlug", $context) ? $context["propertySectionSlug"] : (function () { throw new RuntimeError('Variable "propertySectionSlug" does not exist.', 578, $this->source); })()), "html", null, true);
echo "' ,
propertyCategory: '";
// line 579
echo twig_escape_filter($this->env, (isset($context["propertyCategory"]) || array_key_exists("propertyCategory", $context) ? $context["propertyCategory"] : (function () { throw new RuntimeError('Variable "propertyCategory" does not exist.', 579, $this->source); })()), "html", null, true);
echo "',
depthProduct: '";
// line 580
echo twig_escape_filter($this->env, (isset($context["depthProduct"]) || array_key_exists("depthProduct", $context) ? $context["depthProduct"] : (function () { throw new RuntimeError('Variable "depthProduct" does not exist.', 580, $this->source); })()), "html", null, true);
echo "',
listingId: '";
// line 581
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 581), "html", null, true);
echo "' ,
insideCompound : '";
// line 582
echo twig_escape_filter($this->env, (isset($context["insideCompound"]) || array_key_exists("insideCompound", $context) ? $context["insideCompound"] : (function () { throw new RuntimeError('Variable "insideCompound" does not exist.', 582, $this->source); })()), "html", null, true);
echo "'
});\"
>
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_phone.svg\"
class=\"search-listing-card__cta-button_call_icon\"
alt=\"";
// line 589
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.lead.call_request"), "html", null, true);
echo "\"
width=\"";
// line 590
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 590, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["iconSize"]) || array_key_exists("iconSize", $context) ? $context["iconSize"] : (function () { throw new RuntimeError('Variable "iconSize" does not exist.', 590, $this->source); })()), "html", null, true);
echo "\"
/>
<span ng-hide=\"callRequested[";
// line 592
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 592), "html", null, true);
echo "]\" class=\"cta-button-text\"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.lead.call_request"), "html", null, true);
echo " </span>
</button>
<button aria-label=\"seller call requested\"
class=\"search-listing-card__cta-button big success ng-hide\"
ng-show=\"callRequested[";
// line 596
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 596), "html", null, true);
echo "]\"
type= \"button\"
disabled
>
<i class=\"fa fa-check circle-badge success\"></i>
<span class=\"mx-1\"> ";
// line 601
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.lead.call_requested"), "html", null, true);
echo " </span>
</button>
";
}
// line 604
echo " </div>
</div>
";
}
// line 607
echo " </div>
";
// line 610
echo " ";
if ((isset($context["isEnabledElasticScoringDebug"]) || array_key_exists("isEnabledElasticScoringDebug", $context) ? $context["isEnabledElasticScoringDebug"] : (function () { throw new RuntimeError('Variable "isEnabledElasticScoringDebug" does not exist.', 610, $this->source); })())) {
// line 611
echo " ";
$this->loadTemplate("@AqarmapListing/ListingSearch/listingElasticScore.html.twig", "@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig", 611)->display($context);
// line 612
echo " ";
}
// line 613
echo " </div>
";
// line 614
if ((array_key_exists("showMobileFeedads", $context) && (isset($context["showMobileFeedads"]) || array_key_exists("showMobileFeedads", $context) ? $context["showMobileFeedads"] : (function () { throw new RuntimeError('Variable "showMobileFeedads" does not exist.', 614, $this->source); })()))) {
// line 615
echo " <div class=\"text-center col-12 visible-sm visible-xs\" style=\"margin-bottom: 24px;\">
";
// line 616
if (($this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("general", "country") == "SA")) {
// line 617
echo " <div id='div-gpt-ad-1611049193067-0' style='width: 320px; height: 320px; margin: 0 auto 10px;'>
<script>
setTimeout(function() {
if (typeof googletag !== 'undefined') {
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1611049193067-0'); });
}
}, 3000);
</script>
</div>
";
} else {
// line 627
echo " <div id='div-gpt-ad-1588541966744-0' style='width: 320px; height: 320px; margin: 0 auto 10px;'>
<script type=\"application/javascript\" v-pre defer>
setTimeout(function() {
if (typeof googletag !== 'undefined') {
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1588541966744-0'); });
}
}, 3000);
</script>
</div>
";
}
// line 637
echo " </div>
";
// line 638
$context["isInFeedAdAappeared"] = true;
// line 639
echo " ";
}
// line 640
echo " ";
$context["listingPhoto"] = (((isset($context["isListingPhotosDefined"]) || array_key_exists("isListingPhotosDefined", $context) ? $context["isListingPhotosDefined"] : (function () { throw new RuntimeError('Variable "isListingPhotosDefined" does not exist.', 640, $this->source); })())) ? ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listingPhotos"]) || array_key_exists("listingPhotos", $context) ? $context["listingPhotos"] : (function () { throw new RuntimeError('Variable "listingPhotos" does not exist.', 640, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["listing"], "id", [], "any", false, false, false, 640), [], "array", false, false, false, 640), "main", [], "any", false, false, false, 640), "file", [], "any", false, false, false, 640), "file"), "search-thumb-webp")) : (((twig_get_attribute($this->env, $this->source, $context["listing"], "mainPhoto", [], "any", false, false, false, 640)) ? ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "mainPhoto", [], "any", false, false, false, 640), "file", [], "any", false, false, false, 640), "file"), "search-thumb-webp")) : (""))));
// line 641
echo " ";
$this->displayBlock('headScripts', $context, $blocks);
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listing'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 666
echo "
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 641
public function block_headScripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headScripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headScripts"));
// line 642
echo " <script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"SingleFamilyResidence\",
\"name\" : \"";
// line 646
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 646, $this->source); })()), "title", [], "any", false, false, false, 646), "html", null, true);
echo "\",
\"image\": \"";
// line 647
echo twig_escape_filter($this->env, (isset($context["listingPhoto"]) || array_key_exists("listingPhoto", $context) ? $context["listingPhoto"] : (function () { throw new RuntimeError('Variable "listingPhoto" does not exist.', 647, $this->source); })()), "html", null, true);
echo "\",
\"url\": \"";
// line 648
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl((isset($context["LISTING_URL"]) || array_key_exists("LISTING_URL", $context) ? $context["LISTING_URL"] : (function () { throw new RuntimeError('Variable "LISTING_URL" does not exist.', 648, $this->source); })())), "html", null, true);
echo "\",
\"address\": {
\"@type\": \"PostalAddress\",
\"name\": \"";
// line 651
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 651, $this->source); })()), "location", [], "any", false, false, false, 651), "title", [], "any", false, false, false, 651), "html", null, true);
echo "\"
},
\"geo\": {
\"@type\": \"GeoCoordinates\",
\"latitude\": \"";
// line 655
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 655, $this->source); })()), "location", [], "any", false, false, false, 655), "centerLat", [], "any", false, false, false, 655), "html", null, true);
echo "\",
\"longitude\": \"";
// line 656
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 656, $this->source); })()), "location", [], "any", false, false, false, 656), "centerLng", [], "any", false, false, false, 656), "html", null, true);
echo "\"
},
\"floorSize\": {
\"@type\": \"QuantitativeValue\",
\"value\": \"";
// line 660
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 660, $this->source); })()), "area", [], "any", false, false, false, 660), "html", null, true);
echo "\"
}
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 36
public function macro_userLogo($__imgLink__ = null, $__disableLazyLoadImgIndex__ = null, $__listingUserPhotoSize__ = null, $__listingId__ = null, $__classList__ = "", ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"imgLink" => $__imgLink__,
"disableLazyLoadImgIndex" => $__disableLazyLoadImgIndex__,
"listingUserPhotoSize" => $__listingUserPhotoSize__,
"listingId" => $__listingId__,
"classList" => $__classList__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "userLogo"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "userLogo"));
// line 37
echo " <div class=\"search-listing-card__logo ";
echo twig_escape_filter($this->env, (isset($context["classList"]) || array_key_exists("classList", $context) ? $context["classList"] : (function () { throw new RuntimeError('Variable "classList" does not exist.', 37, $this->source); })()), "html", null, true);
echo "\">
<img
";
// line 39
if ((isset($context["disableLazyLoadImgIndex"]) || array_key_exists("disableLazyLoadImgIndex", $context) ? $context["disableLazyLoadImgIndex"] : (function () { throw new RuntimeError('Variable "disableLazyLoadImgIndex" does not exist.', 39, $this->source); })())) {
// line 40
echo " src=\"";
echo twig_escape_filter($this->env, (isset($context["imgLink"]) || array_key_exists("imgLink", $context) ? $context["imgLink"] : (function () { throw new RuntimeError('Variable "imgLink" does not exist.', 40, $this->source); })()), "html", null, true);
echo "\"
";
} else {
// line 42
echo " class=\"lazyload\"
src=\"\"
data-src=\"";
// line 44
echo twig_escape_filter($this->env, (isset($context["imgLink"]) || array_key_exists("imgLink", $context) ? $context["imgLink"] : (function () { throw new RuntimeError('Variable "imgLink" does not exist.', 44, $this->source); })()), "html", null, true);
echo "\"
";
}
// line 46
echo " width=\"";
echo twig_escape_filter($this->env, (isset($context["listingUserPhotoSize"]) || array_key_exists("listingUserPhotoSize", $context) ? $context["listingUserPhotoSize"] : (function () { throw new RuntimeError('Variable "listingUserPhotoSize" does not exist.', 46, $this->source); })()), "html", null, true);
echo "\"
height=\"";
// line 47
echo twig_escape_filter($this->env, (isset($context["listingUserPhotoSize"]) || array_key_exists("listingUserPhotoSize", $context) ? $context["listingUserPhotoSize"] : (function () { throw new RuntimeError('Variable "listingUserPhotoSize" does not exist.', 47, $this->source); })()), "html", null, true);
echo "\"
alt=\"user-logo-";
// line 48
echo twig_escape_filter($this->env, (isset($context["listingId"]) || array_key_exists("listingId", $context) ? $context["listingId"] : (function () { throw new RuntimeError('Variable "listingId" does not exist.', 48, $this->source); })()), "html", null, true);
echo "\"
fetchpriority=\"low\"
>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
public function getTemplateName()
{
return "@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1758 => 48, 1754 => 47, 1749 => 46, 1744 => 44, 1740 => 42, 1734 => 40, 1732 => 39, 1726 => 37, 1703 => 36, 1688 => 660, 1681 => 656, 1677 => 655, 1670 => 651, 1664 => 648, 1660 => 647, 1656 => 646, 1650 => 642, 1640 => 641, 1629 => 666, 1614 => 641, 1611 => 640, 1608 => 639, 1606 => 638, 1603 => 637, 1591 => 627, 1579 => 617, 1577 => 616, 1574 => 615, 1572 => 614, 1569 => 613, 1566 => 612, 1563 => 611, 1560 => 610, 1556 => 607, 1551 => 604, 1545 => 601, 1537 => 596, 1528 => 592, 1521 => 590, 1517 => 589, 1507 => 582, 1503 => 581, 1499 => 580, 1495 => 579, 1491 => 578, 1486 => 577, 1482 => 575, 1475 => 571, 1471 => 569, 1465 => 566, 1458 => 564, 1454 => 563, 1446 => 558, 1442 => 557, 1437 => 555, 1432 => 553, 1425 => 551, 1421 => 550, 1413 => 545, 1409 => 544, 1403 => 541, 1398 => 540, 1394 => 538, 1390 => 537, 1386 => 536, 1382 => 535, 1378 => 534, 1371 => 530, 1366 => 529, 1363 => 528, 1356 => 524, 1349 => 522, 1345 => 521, 1335 => 514, 1331 => 513, 1327 => 512, 1323 => 511, 1319 => 510, 1314 => 509, 1310 => 507, 1304 => 503, 1301 => 502, 1299 => 501, 1294 => 498, 1292 => 497, 1289 => 496, 1284 => 493, 1282 => 492, 1277 => 489, 1275 => 488, 1270 => 485, 1266 => 483, 1263 => 482, 1257 => 479, 1250 => 477, 1242 => 471, 1239 => 470, 1233 => 467, 1226 => 465, 1218 => 459, 1215 => 458, 1213 => 457, 1206 => 455, 1199 => 453, 1187 => 444, 1180 => 442, 1176 => 441, 1166 => 434, 1162 => 432, 1156 => 430, 1154 => 429, 1150 => 428, 1145 => 427, 1143 => 426, 1140 => 425, 1136 => 423, 1131 => 421, 1125 => 420, 1118 => 419, 1116 => 418, 1112 => 417, 1106 => 416, 1099 => 415, 1097 => 414, 1093 => 413, 1087 => 412, 1080 => 411, 1078 => 410, 1075 => 409, 1072 => 408, 1068 => 406, 1062 => 404, 1060 => 403, 1056 => 402, 1052 => 401, 1047 => 400, 1045 => 399, 1041 => 397, 1037 => 395, 1034 => 394, 1031 => 393, 1029 => 392, 1026 => 391, 1024 => 390, 1019 => 388, 1012 => 386, 1008 => 385, 998 => 378, 995 => 377, 992 => 376, 983 => 373, 974 => 370, 972 => 369, 964 => 367, 961 => 366, 958 => 365, 956 => 364, 953 => 363, 950 => 362, 946 => 360, 944 => 359, 943 => 358, 942 => 357, 941 => 356, 939 => 355, 937 => 354, 934 => 353, 932 => 352, 931 => 351, 930 => 350, 929 => 349, 927 => 348, 924 => 347, 922 => 346, 917 => 343, 912 => 340, 908 => 338, 902 => 336, 900 => 335, 895 => 332, 892 => 331, 886 => 329, 883 => 328, 874 => 324, 870 => 323, 862 => 318, 857 => 316, 854 => 315, 845 => 311, 841 => 310, 835 => 307, 830 => 305, 827 => 304, 824 => 303, 821 => 302, 812 => 298, 808 => 297, 800 => 292, 795 => 290, 792 => 289, 783 => 285, 779 => 284, 773 => 281, 768 => 279, 765 => 278, 763 => 277, 760 => 276, 758 => 275, 753 => 272, 747 => 269, 744 => 268, 741 => 267, 735 => 264, 732 => 263, 729 => 262, 723 => 259, 720 => 258, 717 => 257, 714 => 256, 708 => 253, 705 => 252, 703 => 251, 698 => 249, 695 => 248, 692 => 247, 686 => 244, 683 => 243, 681 => 242, 676 => 240, 673 => 239, 671 => 238, 666 => 236, 663 => 235, 661 => 234, 656 => 232, 653 => 231, 650 => 230, 648 => 229, 643 => 227, 637 => 226, 633 => 225, 626 => 221, 622 => 220, 618 => 219, 614 => 218, 609 => 216, 604 => 214, 600 => 213, 596 => 212, 592 => 211, 588 => 210, 584 => 209, 580 => 208, 576 => 207, 572 => 206, 566 => 203, 556 => 202, 553 => 201, 550 => 200, 548 => 199, 546 => 198, 544 => 197, 543 => 196, 541 => 195, 538 => 194, 535 => 193, 532 => 191, 529 => 190, 526 => 189, 523 => 188, 520 => 187, 517 => 186, 514 => 185, 511 => 184, 508 => 183, 505 => 182, 502 => 181, 499 => 180, 496 => 178, 493 => 177, 490 => 176, 487 => 175, 484 => 174, 481 => 173, 478 => 172, 475 => 171, 472 => 170, 469 => 169, 466 => 168, 463 => 167, 460 => 166, 457 => 165, 454 => 164, 451 => 163, 448 => 162, 445 => 161, 442 => 160, 439 => 159, 436 => 158, 433 => 157, 430 => 156, 427 => 155, 424 => 154, 421 => 153, 418 => 152, 415 => 151, 413 => 150, 410 => 149, 404 => 148, 401 => 147, 396 => 146, 393 => 145, 390 => 144, 387 => 143, 384 => 142, 381 => 141, 378 => 140, 375 => 139, 372 => 138, 369 => 137, 366 => 136, 363 => 135, 360 => 134, 357 => 133, 354 => 132, 351 => 131, 348 => 130, 345 => 129, 342 => 128, 339 => 127, 336 => 126, 333 => 125, 330 => 124, 327 => 123, 324 => 122, 321 => 121, 318 => 120, 315 => 119, 312 => 118, 309 => 117, 306 => 116, 303 => 115, 300 => 114, 297 => 113, 294 => 112, 291 => 111, 288 => 110, 285 => 109, 282 => 108, 279 => 107, 276 => 106, 273 => 105, 270 => 104, 267 => 103, 264 => 102, 261 => 101, 258 => 100, 255 => 99, 252 => 98, 249 => 97, 246 => 96, 243 => 95, 240 => 94, 237 => 93, 234 => 92, 231 => 91, 228 => 90, 225 => 89, 222 => 88, 219 => 87, 216 => 86, 213 => 85, 210 => 84, 207 => 83, 204 => 82, 201 => 81, 198 => 80, 195 => 79, 192 => 78, 189 => 76, 186 => 75, 183 => 74, 180 => 73, 177 => 72, 174 => 71, 171 => 70, 169 => 69, 166 => 68, 163 => 67, 160 => 66, 157 => 65, 154 => 64, 151 => 63, 148 => 62, 145 => 61, 142 => 60, 139 => 58, 136 => 57, 133 => 56, 130 => 55, 113 => 54, 110 => 53, 107 => 34, 105 => 33, 103 => 32, 101 => 31, 98 => 29, 96 => 28, 94 => 27, 92 => 26, 90 => 25, 88 => 24, 86 => 23, 83 => 21, 81 => 20, 79 => 19, 77 => 18, 75 => 17, 73 => 16, 71 => 15, 69 => 14, 67 => 13, 65 => 12, 63 => 11, 61 => 10, 59 => 9, 57 => 8, 55 => 7, 53 => 6, 51 => 5, 49 => 4, 47 => 3, 45 => 2,);
}
public function getSourceContext()
{
return new Source("{# Constants #}
{% set FIRST_LISTING_FOR_FREE_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::FIRST_LISTING_FOR_FREE') %}
{% set EBAWAB_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::EBAWAB') %}
{% set UNLIMITED_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::UNLIMITED') %}
{% set PAID_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::PAID') %}
{% set PROJECT_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::PROJECTS') %}
{% set SCRAPPED_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::SCRAPPED') %}
{% set SPONSORED_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SPONSORED') %}
{% set FEATURE_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::FEATURED') %}
{% set PREMIUM_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::PREMIUM') %}
{% set SPOTLIGHT_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SPOTLIGHT') %}
{% set SOLD_BY_OWNER_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SOLD_BY_OWNER') %}
{% set SOLD_BY_OWNER_SPONSORED_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SOLD_BY_OWNER_SPONSORED') %}
{% set SCRAPPED_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::SCRAPPED') %}
{% set SHOW_PHONE_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::SHOW_PHONE') %}
{% set SEND_WHATSAPP_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::WHATSAPP') %}
{% set CALL_REQUEST_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::CALL_REQUEST') %}
{% set TOP_VIEWED_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::TOP_VIEWED') %}
{% set TOP_FAVOURITAED_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::TOP_FAVORITE') %}
{% set VALID_PRICE_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::VALID_PRICE') %}
{# Toggles #}
{% set isEnabledSearchResultsActivity = (isEnabledFeature('web.activity.app') and isEnabledFeature('web.search.results.activities')) %}
{% set isTopCustomerListingsPage = app.request.attributes.get('_route') == 'aqarmap_user_listings' %}
{% set hideCtaButtons = hideCta is defined and hideCta %}
{% set isCtaButtonsEnabled = isEnabledFeature('listing_card.lead.button') and not hideCtaButtons %}
{% set showCtaButtons = isCtaButtonsEnabled %}
{% set isEnabledElasticScoringDebug = elasticScoringDebug is defined and elasticScoringDebug and app.request.get('esdebug') %}
{# inFeed #}
{% set inFeedAdAppearance = 6 %}
{% set isInFeedAdAappeared = false %}
{% set scrappedUserName = \"Aqarmap\" %}
{# user logo macro #}
{% macro userLogo(imgLink, disableLazyLoadImgIndex, listingUserPhotoSize, listingId, classList = \"\") %}
<div class=\"search-listing-card__logo {{ classList }}\">
<img
{% if disableLazyLoadImgIndex %}
src=\"{{ imgLink }}\"
{% else %}
class=\"lazyload\"
src=\"\"
data-src=\"{{ imgLink }}\"
{% endif %}
width=\"{{ listingUserPhotoSize }}\"
height=\"{{ listingUserPhotoSize }}\"
alt=\"user-logo-{{ listingId }}\"
fetchpriority=\"low\"
>
</div>
{% endmacro %}
{% for listing in listings %}
{% if agent is defined %}
{% set listing = listing['listing'] %}
{% endif %}
{# Listing Toggles #}
{% set isCompoundSearchResultsCard = isCompoundSearchResults is defined ? isCompoundSearchResults : false %}
{% set isVerified = ((listing.featured == SPONSORED_TYPE) or (listing.featured == SPOTLIGHT_CONSTANT)) and isEnabledFeature('web.show.verified.sign') %}
{% set isEligibleForMortgage = isEnabledFeature('web.mortgage.options') and listing.isMortgageApproved %}
{% set isSponsoredCard = loop.index == 1 and not topSellersResults and not isRelatedResults and (listing.featured == SPONSORED_TYPE or listing.featured == SOLD_BY_OWNER_SPONSORED_TYPE) %}
{% set isListingPhotosDefined = listingPhotos[listing.id] is defined and listingPhotos[listing.id].main is defined %}
{% set isListingLogoDefined = listingPhotos[listing.id] is defined and listingPhotos[listing.id].logo is defined %}
{% set disableLazyLoadImgIndex = loop.index in [1, 2] %}
{% set searchedByOneLocation = isSearchedByOneLocation is defined and isSearchedByOneLocation %}
{% if not isCompoundSearchResultsCard %}
{% set isPricesWidgetListingTypes = not defaultResults and not topSellersResults and searchedByOneLocation %}
{% set mobileFeedadsScreenLocation = loop.index == inFeedAdAppearance %}
{% set isMobileFeedadsToggledOn = isEnabledFeature('web.search.mobile.feedads') and isMobile and isUXVersion %}
{% set isFeedAdsWithinListingTypes = not defaultResults and not isInFeedAdAappeared %}
{% set showMobileFeedads = isMobileFeedadsToggledOn and isFeedAdsWithinListingTypes and mobileFeedadsScreenLocation %}
{% endif %}
{# Listing Vars #}
{% set listingCategory = listing.category %}
{% set urlSource = app.request.query.get(\"source\") ? app.request.query.get(\"source\") : ''%}
{% set containerSource = source is defined ? source : null %}
{% set leadSources = containerSource ? [containerSource] : [urlSource] %}
{% set financeFeatureValue = get_setting('features', 'finance_service') %}
{% set isRelatedToMainListing = isRelatedToListing is defined ? isRelatedToListing : false %}
{% set mainListingObj = (isRelatedToMainListing and mainListing is defined) ? mainListing : {} %}
{% if isEnabledFeature('listing_card.lead.button') %}
{% set listingPhones = isEnabledFeature('listing_user_phones') ? listing.phones : listing.listingPhones %}
{% else %}
{% set listingPhones = [] %}
{% endif %}
{% set listingPhone = null %}
{% if listingPhones is not empty %}
{% set listingPhone = listingPhones|first %}
{% endif %}
{% if listing.slug %}
{% set LISTING_URL = isRelatedResults ? path(\"listing_slug\", {id: listing.id, slug: listing.slug}|merge({'relatedseaarchlisting': true})) : path(\"listing_slug\", {id: listing.id, slug: listing.slug}) %}
{% else %}
{% set LISTING_URL = isRelatedResults ? path('listing_view', {'id': listing.id}|merge({'relatedseaarchlisting': true})) : path('listing_view', {'id': listing.id}) %}
{% endif %}
{% if isRelatedToMainListing %}
{% set LISTING_URL = LISTING_URL ~ '?source=listing-related' %}
{% endif %}
{% set relatedListingAnalytics = isRelatedResults ? 'gtm-btn-related-result-listing-click' : '' %}
{% set relatedListingClass = isRelatedResults ? 'related-listing__card' : '' %}
{% set searchListingCardClass = isTopPicksResults is defined and isTopPicksResults ? 'search-listing-card top-picks-card' : 'search-listing-card search-listing-card_mb-xl' %}
{% set listingEvents = [{'isFired':isVerified , 'trigger': 'gtm-btn-verified-listing-click' }] %}
{% set listingPhotoSize = 110 %}
{% set iconSize = 24 %}
{% set listingUserPhotoSize = 32 %}
{% set neighborhoodAppearance = 9 %}
{% set isExcludeWhatsappFromListing = isEnabledFeature('web.whatsapp.chat.exclude') and listing.getIsExcludedFromWhatsApp %}
{% set acceptedWhatsAppFeature = not isExcludeWhatsappFromListing or not isEnabledFeature('web.whatsapp.chat.exclude') %}
{% set isEnabledSendByWhatsapp = isEnabledFeature('web.whats.app.chat') and acceptedWhatsAppFeature %}
{% if isEnabledSendByWhatsapp %}
{% if (listing.user.getWhatsAppNumber) %}
{% set whatsAppNumber = listing.user.getWhatsAppNumber.getPhone.getNumber %}
{% endif %}
{% set hasWhatsapp = listing.user.getWhatsAppNumber %}
{% else %}
{% set hasWhatsapp = false %}
{% endif %}
{% set callBtnClass = not hasWhatsapp ? 'big': '' %}
{% set callBtnText = not hasWhatsapp ? 'listing.show_seller_phone'|trans : \"\" %}
{% set isProject = listingCategory == PROJECT_LISTING_CATEGORY %}
{% set projectListingChild = listing.parent != null %}
{% set notProjectListing = not isProject and not projectListingChild %}
{% set strictQuickRegistration = get_setting('features', 'strict_to_quick_registration') %}
{% set autoShowPhone = not strictQuickRegistration and notProjectListing %}
{% set isSoldByOwnerType = listing.featured == SOLD_BY_OWNER_TYPE or listing.featured == SOLD_BY_OWNER_SPONSORED_TYPE %}
{% set listing_attributes = listing.getAttributesList() %}
{% set listing_rooms = (listing_attributes[\"rooms\"]) is defined ? getRoomsLabel(listing_attributes[\"rooms\"]) : '' %}
{% set listing_baths = (listing_attributes[\"baths\"]) is defined ? getBathsLabel(listing_attributes[\"baths\"]) : '' %}
{% set backgroundClass = 'listing-phone-container_bg-white listing-phone-container_number-gray'%}
{% set cardGridSize = cardGridSize is defined ? cardGridSize : 'col-sm-6 col-12' %}
{% set showPhotosCount = disablePhotosCount is not defined or not disablePhotosCount %}
{% set sellerName = '' %}
{% set listingUser = listing.user %}
{% set sellerName = listingUser.fullName %}
{% set userLogo = listingUser.logo ? listingUser.logo.file : null %}
{% set logo = listing.validUserLogo %}
{% set sellerLogo = logo ? logo : userLogo %}
{% set sellerUrl = path('aqarmap_user_listings', {'id': listingUser.id})%}
{% set joinedData = listingUser.createdAt|date('Y')%}
{% set activeListingsCount = liveListingsPerUser[listing.user.id] is defined ? liveListingsPerUser[listing.user.id] : 0 %}
{% set leadsCount = listingUser.getClientServedCount() %}
{% set encodedSellerPhones = []%}
{% for phone in listingPhones %}
{% set encodedSellerPhones = encodedSellerPhones | merge([{'number': phone.number|phoneNumberEncode}]) %}
{% endfor %}
{% set listingLabelType = listing.label %}
{% set isListingTopPicks = listing.isTopPicks %}
{% set allowListingLabel = isSearchResultsPage and not isListingTopPicks %}
{% set isTopFavourited = listingLabelType == TOP_FAVOURITAED_CONST %}
{% set isValidPrice = listingLabelType == VALID_PRICE_CONST %}
{% set isTopViewed = listingLabelType == TOP_VIEWED_CONST %}
{% set labelLeadSource = '' %}
{% if isTopFavourited %}
{% set labelLeadSource = 'top-favourite' %}
{% set leadSources = leadSources|merge([labelLeadSource]) %}
{% elseif isValidPrice %}
{% set labelLeadSource = 'valid-price' %}
{% set leadSources = leadSources|merge([labelLeadSource]) %}
{% elseif isTopViewed %}
{% set labelLeadSource = 'top-viewed' %}
{% set leadSources = leadSources|merge([labelLeadSource]) %}
{% endif %}
{% set listingPrice = listing.price ?? null %}
{% set listingFeatured = listing.featured %}
{% set isSpotLight = listingFeatured == SPOTLIGHT_CONSTANT %}
{% set isSponserd = listingFeatured == SPONSORED_TYPE %}
{% set isPremium = listingFeatured == PREMIUM_CONSTANT %}
{% set isFeatured = listingFeatured == FEATURE_TYPE %}
{% set isPaid = listingCategory == PAID_LISTING_CATEGORY %}
{% set isScrapped = listingCategory == SCRAPPED_LISTING_CATEGORY %}
{% set isEBawab = listingCategory == EBAWAB_LISTING_CATEGORY %}
{% set isUnlimited = listingCategory == UNLIMITED_LISTING_CATEGORY %}
{% set isFlf2 = listingCategory == FIRST_LISTING_FOR_FREE_LISTING_CATEGORY %}
{# Compounds Listing Vars #}
{% if isCompoundSearchResultsCard %}
{% set compoundAveragePrices = listing.compoundAveragePrices is defined ? listing.compoundAveragePrices : [] %}
{% set isCompoundAveragePrices = compoundAveragePrices is not empty %}
{% set showCompoundAveragePrices = false %}
{% set compoundField = listing.CompoundField ? listing.CompoundField :{} %}
{% set isEnabledDdeveloperCardData = isCompoundSearchResultsCard and isEnabledFeature('web.developer.card.data') %}
{% set isCompoundPlannerPage = isCompoundPlanner is defined and isCompoundPlanner %}
{% set elasticScore = isCompoundPlannerPage ? listing.compoundElasticScore|round(2, 'floor') : null %}
{% set compoundPrice = listing.CompoundField ? listing.CompoundField.minPrice : null %}
{% set listingPrice = compoundPrice ?? listingPrice %}
{% endif %}
{# gtm events variables #}
{% set leadSourcePage = leadSourcePage is defined ? leadSourcePage : \"search_results\"%}
{% set propertySectionSlug = isProject ? \"projects\" : section is defined ? section.slug: listing.section.slug %}
{% set propertyCategory = isProject ? \"projects\" : isScrapped ? \"scrapped\" :
isPaid ? \"paid\" : isEBawab ? \"bawab\" : isUnlimited ? \"unlimited\" :
isFlf2 ? \"flf2\" : \"free\" %}
{% set depthProduct = isFeatured ? \"featured\" : isPremium ? \"premium\" :
isSponserd ? \"sponsored\": isSpotLight ? \"spotlight\" : \"regular\" %}
{% set insideCompound = isProject or listing.parent != null %}
<div id=\"{{listing.id}}\" class=\"{{ cardGridSize }} {{relatedListingClass}} {{searchListingCardClass}}\"
ng-init='setSourceRoute(\"{{ app.request.attributes.get('_route') }}\");'
itemscope itemtype=\"https://schema.org/SingleFamilyResidence\">
<div class=\"search-listing-card__container\" ng-content-loaded
callback='setListingDetail(\"{{listing.id}}\",{
\"section\": \"{{listing.section.id}}\",
\"sellerPhones\": {{encodedSellerPhones|serialize('json')}},
\"sellerPhone\": \"{{hasWhatsapp ? whatsAppNumber|phoneNumberEncode : listingPhone ? listingPhone.number|phoneNumberEncode : \"\" }}\",
\"financeUrl\":\"{{listing.getFinancialAidURL()}}\",
\"userEmail\": {{currentUserEmail|json_encode()}},
\"financeFeatureValue\": \"{{financeFeatureValue}}\",
\"listingName\" : {{listing.customSlug|default(listing.id)|serialize()}},
\"listingTitle\" : {{listing.title|serialize()}},
\"listingUser\": {
\"sellerName\" : {{sellerName|serialize()}},
\"sellerLogo\": \"\",
\"sellerUrl\": \"{{sellerUrl}}\",
\"joinedData\":\"{{joinedData}}\",
\"activeListingsCount\": \"{{activeListingsCount}}\",
\"leadsCount\":\"{{leadsCount}}\"
}
})'>
<div class=\"search-listing-card__wrapper\">
<a class=\"search-listing-card__container__link {{ relatedListingAnalytics }}\"
onclick=\"elementEvents.fireGTM( 'listingId',{{ listing.id }}, {{ listingEvents|json_encode() }})\"
href=\"{{ LISTING_URL }}\"></a>
<div class=\"search-listing-card__labels\">
{% if isUserHasActiveSubscription %}
{% if listing.featured == PREMIUM_CONSTANT %}
<span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
{{ 'search_results.premium_small'|trans }}
</span>
{% elseif listing.featured == SPOTLIGHT_CONSTANT %}
<span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
{{ 'search_results.spotlight'|trans }}
</span>
{% elseif listing.featured == SPONSORED_TYPE %}
<span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
{{ 'search_results.sponsored'|trans }}
</span>
{% elseif isCompoundSearchResultsCard and listing.featured %}
<span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
{{ 'search_results.featured_small'|trans }}
</span>
{% endif %}
{% if listing.featured == FEATURE_TYPE %}
<span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
{{ 'search_results.featured_capital'|trans }}
</span>
{% elseif isSoldByOwnerType %}
<span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
{{ 'search_results.sold_by_owner'|trans }}
</span>
{% endif %}
{% endif %}
{% if isVerified %}
<span class=\"search-listing-card__labels_card search-listing-card__labels_card_verified\">
{{ 'search_results.verified'|trans }}
</span>
{% endif %}
{% if isEligibleForMortgage %}
<span class=\"search-listing-card__labels_card search-listing-card__labels_card_mortgage\">
{{ 'search_results.is_mortgage'|trans }}
</span>
{% endif %}
{% if isRelatedToMainListing %}
<span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
{{ getSimilarLabel(mainListingObj, listing)|trans }}
</span>
{% endif %}
</div>
<div class=\"search-listing-card__img embed-responsive embed-responsive-4by3\">
<div class=\"search-listing-card__img__wrapper embed-responsive-item\">
{% if isListingPhotosDefined %}
{% if disableLazyLoadImgIndex %}
<picture>
<source srcset=\"{{ custom_vich_uploader_asset(listingPhotos[listing.id].main.file, 'file')|thumbnail('search-thumb-webp') }}\"
type=\"image/webp\">
<source srcset=\"{{ custom_vich_uploader_asset(listingPhotos[listing.id].main.file, 'file')|thumbnail('search-thumb') }}\"
type=\"image/jpg\">
<img
alt=\"{{ listing.title|excludeNumbers }}\"
width=\"{{ listingPhotoSize }}\" height=\"{{ listingPhotoSize }}\"
fetchpriority=\"high\" />
</picture>
{% else %}
<picture>
<source data-srcset=\"{{ custom_vich_uploader_asset(listingPhotos[listing.id].main.file, 'file')|thumbnail('search-thumb-webp') }}\"
type=\"image/webp\">
<source data-srcset=\"{{ custom_vich_uploader_asset(listingPhotos[listing.id].main.file, 'file')|thumbnail('search-thumb') }}\"
type=\"image/jpg\">
<img
src=\"/images/placeholder.svg\"
class=\"lazyload\"
alt=\"{{ listing.title|excludeNumbers }}\"
width=\"{{ listingPhotoSize }}\" height=\"{{ listingPhotoSize }}\"
fetchpriority=\"low\" />
</picture>
{% endif %}
{% elseif listing.mainPhoto %}
{% if disableLazyLoadImgIndex %}
<picture>
<source srcset=\"{{ custom_vich_uploader_asset(listing.mainPhoto.file, 'file')|thumbnail('search-thumb-webp') }}\"
type=\"image/webp\">
<source srcset=\"{{ custom_vich_uploader_asset(listing.mainPhoto.file, 'file')|thumbnail('search-thumb') }}\"
type=\"image/jpg\">
<img
alt=\"{{ listing.title|excludeNumbers }}\"
width=\"{{ listingPhotoSize }}\" height=\"{{ listingPhotoSize }}\"
fetchpriority=\"high\" />
</picture>
{% else %}
<picture>
<source data-srcset=\"{{ custom_vich_uploader_asset(listing.mainPhoto.file, 'file')|thumbnail('search-thumb-webp') }}\"
type=\"image/webp\">
<source data-srcset=\"{{ custom_vich_uploader_asset(listing.mainPhoto.file, 'file')|thumbnail('search-thumb') }}\"
type=\"image/jpg\">
<img
src=\"/images/placeholder.svg\"
class=\"lazyload\"
alt=\"{{ listing.title|excludeNumbers }}\"
width=\"{{ listingPhotoSize }}\" height=\"{{ listingPhotoSize }}\"
fetchpriority=\"low\" />
</picture>
{% endif %}
{% else %}
<div class=\"search-listing-card__img__no-photo\">{{ 'layout.no_listing_photo'|trans }}</div>
{% endif %}
{% if showPhotosCount %}
<div class=\"search-listing-card__img__thumbnail search-listing-card__img__thumbnail_bottom\">
<div class=\"search-listing-card__img__count\">
<span class=\"fa fa-image\"></span>
{% if listingPhotosCount[listing.id] is defined %}
{{ listingPhotosCount[listing.id] }}
{% else %}
0
{% endif %}
</div>
</div>
{% endif %}
</div>
</div>
<div class=\"search-listing-card__details\">
{% if app.request.attributes.get(\"_route\") != 'aqarmap_user_listings' %}
{% if isListingLogoDefined %}
{{ _self.userLogo(
custom_vich_uploader_asset(listingPhotos[listing.id].logo.file, 'file') | thumbnail('logo'),
disableLazyLoadImgIndex,
listingUserPhotoSize,
listing.id
) }}
{% elseif listing.validUserLogo %}
{{ _self.userLogo(
custom_vich_uploader_asset(listing.validUserLogo, 'file') | thumbnail('logo'),
disableLazyLoadImgIndex,
listingUserPhotoSize,
listing.id
) }}
{% endif %}
{% endif %}
<div class=\"search-listing-card__details__wrapper\" >
{% if isCompoundSearchResultsCard %}
{% if elasticScore is defined and elasticScore %}
{% if elasticScore > 80 %}
<div class=\"matching-score matching-score_high\" role=\"alert\">{{ elasticScore }}% {{ 'listing.compounds_adviser.matching'|trans }}
</div>
{% elseif elasticScore < 40 %}
<div class=\"matching-score matching-score_low\" role=\"alert\">{{ elasticScore }}% {{ 'listing.compounds_adviser.matching'|trans }}
</div>
{% else %}
<div class=\"matching-score matching-score_mid\" role=\"alert\">{{ elasticScore }}% {{ 'listing.compounds_adviser.matching'|trans }}
</div>
{% endif %}
{% endif %}
<div class=\"search-listing-card__compound-title\">
<span> {{ listing.title|fixArabicNumbers|raw }}</span>
</div>
<p class=\"search-listing-card__address search-listing-card__address_compound\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_location.svg\"
class=\"search-listing-card__attributes_icon\"
alt=\"{{ listing.address }}\"
width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
/>
<span> {{ listing.address }} </span>
</p>
{% if showCompoundAveragePrices %}
<div class=\"search-listing-card__units__wrapper\">
{% if isCompoundAveragePrices%}
{% include '@AqarmapListingBundle/Listing/compoundAveragePrices.html.twig' with {'units': compoundAveragePrices} %}
{% endif %}
</div>
{% endif %}
<div class=\"search-listing-card__starting-price\">
{% if listingPrice %}
{{ 'listing.starting_from'|trans }}
<span class=\"integer\">{{ listingPrice |number_format }}</span>
<span>{{ get_setting('general', 'currency')|trans }}</span>
{% elseif listing.section.searchable %}
{{ 'listing.call_for_price'|trans }}
{% endif %}
</div>
{% else %}
{% if allowListingLabel %}
<div class=\"search-listing-card__best-label\">
{% if isValidPrice %}
<img fetchpriority=\"low\" width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
src=\"{{ asset('images/picks/ic_money_blue.svg') }}\" alt=\"{{'listing.valid_price'|trans }}\" />
{{'listing.valid_price'|trans }}
{% elseif isTopViewed %}
<img fetchpriority=\"low\" width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
src=\"{{ asset('images/picks/analytics-arrow-up_blue.svg') }}\" alt=\"{{'listing.top_viewed'|trans }}\" />
{{'listing.top_viewed'|trans }}
{% elseif isTopFavourited %}
<img fetchpriority=\"low\" width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
src=\"{{ asset('images/picks/ic_heart_blue.svg') }}\" alt=\"{{'listing.top_favourite'|trans }}\" />
{{'listing.top_favourite'|trans }}
{% endif %}
</div>
{% endif %}
<div class=\"search-listing-card__price\">
{% if listing.price %}
<span class=\"integer\">{{ listing.price|number_format }}</span>
<span class=\"mx-2\">{{ get_setting('general', 'currency')|trans }}</span>
{% elseif listing.section.searchable %}
{{ 'listing.call_for_price'|trans }}
{% endif %}
</div>
<h2 class=\"search-listing-card__title\">
{{ listing.title|fixArabicNumbers|raw }}
</h2>
<p class=\"search-listing-card__address\" >
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_location.svg\"
class=\"search-listing-card__attributes_icon\"
alt=\"{{ listing.address }}\"
width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
/>
<span>{{ listing.address }}</span>
</p>
<div class=\"search-listing-card__attributes\">
<label class=\"search-listing-card__attributes_item\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_size.svg\"
class=\"search-listing-card__attributes_icon\"
alt=\"Listing attributes\"
width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
/>
{{ listing.area}} {{ get_setting('general', 'measurement_unit')|trans }}
</label>
{% if listing_attributes|length > 0 %}
{% if listing_rooms %}
<label class=\"search-listing-card__attributes_item\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_bedroom.svg\"
class=\"search-listing-card__attributes_icon\"
alt=\"Listing attributes\"
width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
/>
{{ listing_rooms }}
</label>
{% endif %}
{% if listing_baths %}
<label class=\"search-listing-card__attributes_item\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_bathroom.svg\"
class=\"search-listing-card__attributes_icon\"
alt=\"Listing attributes\"
width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
/>
{{ listing_baths }}
</label>
{% endif %}
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
{% if isEnabledDdeveloperCardData is defined and isEnabledDdeveloperCardData %}
<div class=\"search-listing-card__user-properties__container\">
<hr class=\"desktop-separator\">
<div class=\"search-listing-card__user-properties user-properties-container\">
{% include '@AqarmapListingBundle/Listing/compoundCardDeveloperData.html.twig' with {'compound': compoundField} %}
</div>
</div>
{% endif %}
{% if showCtaButtons %}
<div class=\"search-listing-card__footer\">
<hr class=\"desktop-separator\">
<div class=\"search-listing-card__cta w-100\">
{% if listingPhones is not empty and not listing.isCallRequest %}
{% if hasWhatsapp %}
<button aria-label=\"text seller by whatsapp\"
class=\"search-listing-card__cta-button search-listing-card__cta-button_whatsapp whatsapp big\"
ng-click=\"onSendLead(\$event,{
leadType:'whatsapp' ,
actionType:'{{ SEND_WHATSAPP_CONSTANT }}' ,
{# listingType: {{leadSources|serialize('json')}} , #}
propertySection: '{{propertySectionSlug}}' ,
propertyCategory: '{{propertyCategory}}',
leadSourcePage: '{{leadSourcePage}}' ,
depthProduct: '{{depthProduct}}',
listingId: '{{ listing.id }}' ,
insideCompound : '{{insideCompound}}'
});\"
>
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_whatsapp.svg\"
class=\"search-listing-card__cta-button_whatsapp_icon\"
alt=\"{{ 'label.lead.whatsApp'|trans }}\"
width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
/>
{{ 'label.lead.whatsApp'|trans }}
</button>
<div class=\"vertical-separator\"></div>
{% endif %}
{% set phoneBtnClass = 'search-listing-card__cta-button search-listing-card__cta-button_call ' ~ callBtnClass %}
<button class=\"{{ phoneBtnClass }}\" aria-label=\"show seller phone\"
submit-text=\"{{ 'listing.show_seller_phone'|trans }}\"
ng-click=\"searchActionType = 'showNumber';
onSendLead(\$event,{
leadType:'call' ,
actionType:'{{ SHOW_PHONE_CONSTANT }}' ,
leadSourcePage: '{{leadSourcePage}}' ,
propertySection: '{{propertySectionSlug}}' ,
propertyCategory: '{{propertyCategory}}',
depthProduct: '{{depthProduct}}',
{# listingType: {{leadSources|serialize('json')}} , #}
listingId: '{{ listing.id }}' ,
insideCompound : '{{insideCompound}}'
});\"
ng-if=\"!phoneShowed[{{listing.id}}]\"
data-gtm-listing-id=\"{{ listing.id }}\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_phone.svg\"
class=\"search-listing-card__cta-button_call_icon\"
alt=\"{{ 'listing.show_seller_phone'|trans }}\"
width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
/>
<span class=\"cta-button-text\"> {{ 'listing.show_seller_phone'|trans }}</span>
</button>
<button class=\"{{ phoneBtnClass }}\" aria-label=\"seller phone\"
ng-cloak
ng-click=\"showPhoneModalByListingId({{listing.id}})\"
ng-if=\"phoneShowed[{{listing.id}}]\">
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_phone.svg\"
class=\"search-listing-card__cta-button_call_icon\"
alt=\"{{ 'listing.show_seller_phone'|trans }}\"
width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
/>
<span class=\"cta-button-text\"> {{ 'listing.show_seller_phone'|trans }}</span>
</button>
{% else %}
<button aria-label=\"request seller call\"
class=\"search-listing-card__cta-button search-listing-card__cta-button_call-request big m-0\"
ng-hide=\"callRequested[{{listing.id}}]\"
ng-click=\"searchActionType = 'sendRequest';
onSendLead(\$event,{
leadType:'request_call' ,
actionType:'{{ CALL_REQUEST_CONSTANT }}' ,
{# listingType: {{leadSources|serialize('json')}} , #}
leadSourcePage: '{{leadSourcePage}}' ,
propertySection: '{{propertySectionSlug}}' ,
propertyCategory: '{{propertyCategory}}',
depthProduct: '{{depthProduct}}',
listingId: '{{ listing.id }}' ,
insideCompound : '{{insideCompound}}'
});\"
>
<img
fetchpriority=\"low\"
src=\"/images/BrandsIcons/listing/ic_phone.svg\"
class=\"search-listing-card__cta-button_call_icon\"
alt=\"{{ 'label.lead.call_request'|trans }}\"
width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
/>
<span ng-hide=\"callRequested[{{listing.id}}]\" class=\"cta-button-text\"> {{ 'label.lead.call_request'|trans }} </span>
</button>
<button aria-label=\"seller call requested\"
class=\"search-listing-card__cta-button big success ng-hide\"
ng-show=\"callRequested[{{listing.id}}]\"
type= \"button\"
disabled
>
<i class=\"fa fa-check circle-badge success\"></i>
<span class=\"mx-1\"> {{ 'label.lead.call_requested'|trans }} </span>
</button>
{% endif %}
</div>
</div>
{% endif %}
</div>
{# elastic scoring debug #}
{% if isEnabledElasticScoringDebug %}
{% include \"@AqarmapListing/ListingSearch/listingElasticScore.html.twig\" %}
{% endif %}
</div>
{% if showMobileFeedads is defined and showMobileFeedads %}
<div class=\"text-center col-12 visible-sm visible-xs\" style=\"margin-bottom: 24px;\">
{% if get_setting('general', 'country') == 'SA' %}
<div id='div-gpt-ad-1611049193067-0' style='width: 320px; height: 320px; margin: 0 auto 10px;'>
<script>
setTimeout(function() {
if (typeof googletag !== 'undefined') {
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1611049193067-0'); });
}
}, 3000);
</script>
</div>
{% else %}
<div id='div-gpt-ad-1588541966744-0' style='width: 320px; height: 320px; margin: 0 auto 10px;'>
<script type=\"application/javascript\" v-pre defer>
setTimeout(function() {
if (typeof googletag !== 'undefined') {
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1588541966744-0'); });
}
}, 3000);
</script>
</div>
{% endif %}
</div>
{% set isInFeedAdAappeared = true %}
{% endif %}
{% set listingPhoto = isListingPhotosDefined ? custom_vich_uploader_asset(listingPhotos[listing.id].main.file, 'file')|thumbnail('search-thumb-webp') : listing.mainPhoto ? custom_vich_uploader_asset(listing.mainPhoto.file, 'file')|thumbnail('search-thumb-webp') : \"\" %}
{% block headScripts %}
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"SingleFamilyResidence\",
\"name\" : \"{{listing.title}}\",
\"image\": \"{{listingPhoto}}\",
\"url\": \"{{ absolute_url(LISTING_URL) }}\",
\"address\": {
\"@type\": \"PostalAddress\",
\"name\": \"{{ listing.location.title }}\"
},
\"geo\": {
\"@type\": \"GeoCoordinates\",
\"latitude\": \"{{ listing.location.centerLat }}\",
\"longitude\": \"{{ listing.location.centerLng }}\"
},
\"floorSize\": {
\"@type\": \"QuantitativeValue\",
\"value\": \"{{ listing.area }}\"
}
}
</script>
{% endblock %}
{% endfor %}
", "@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig", "/srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Resources/views/ListingSearch/listingCardVertical.html.twig");
}
}