var/cache/dev/twig/99/99ec4efc05970bf6facb3ef41928b3e82d21b576a7f0fe51d860b23ad2a102ad.php line 830

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig */
  14. class __TwigTemplate_97e309dc9753f7a975faada214368c00ffb50829e479b4ab8f810cc3115eefbb extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'headScripts' => [$this'block_headScripts'],
  25.         ];
  26.         $macros["_self"] = $this->macros["_self"] = $this;
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig"));
  35.         // line 2
  36.         $context["FIRST_LISTING_FOR_FREE_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::FIRST_LISTING_FOR_FREE");
  37.         // line 3
  38.         $context["EBAWAB_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::EBAWAB");
  39.         // line 4
  40.         $context["UNLIMITED_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::UNLIMITED");
  41.         // line 5
  42.         $context["PAID_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::PAID");
  43.         // line 6
  44.         $context["PROJECT_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::PROJECTS");
  45.         // line 7
  46.         $context["SCRAPPED_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::SCRAPPED");
  47.         // line 8
  48.         $context["SPONSORED_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SPONSORED");
  49.         // line 9
  50.         $context["FEATURE_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::FEATURED");
  51.         // line 10
  52.         $context["PREMIUM_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::PREMIUM");
  53.         // line 11
  54.         $context["SPOTLIGHT_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SPOTLIGHT");
  55.         // line 12
  56.         $context["SOLD_BY_OWNER_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SOLD_BY_OWNER");
  57.         // line 13
  58.         $context["SOLD_BY_OWNER_SPONSORED_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SOLD_BY_OWNER_SPONSORED");
  59.         // line 14
  60.         $context["SCRAPPED_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::SCRAPPED");
  61.         // line 15
  62.         $context["SHOW_PHONE_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::SHOW_PHONE");
  63.         // line 16
  64.         $context["SEND_WHATSAPP_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::WHATSAPP");
  65.         // line 17
  66.         $context["CALL_REQUEST_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::CALL_REQUEST");
  67.         // line 18
  68.         $context["TOP_VIEWED_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::TOP_VIEWED");
  69.         // line 19
  70.         $context["TOP_FAVOURITAED_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::TOP_FAVORITE");
  71.         // line 20
  72.         $context["VALID_PRICE_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::VALID_PRICE");
  73.         // line 21
  74.         echo "
  75. ";
  76.         // line 23
  77.         $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"));
  78.         // line 24
  79.         $context["isTopCustomerListingsPage"] = (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse24), "attributes", [], "any"falsefalsefalse24), "get", [=> "_route"], "method"falsefalsefalse24) == "aqarmap_user_listings");
  80.         // line 25
  81.         $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); })()));
  82.         // line 26
  83.         $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); })()));
  84.         // line 27
  85.         $context["showCtaButtons"] = (isset($context["isCtaButtonsEnabled"]) || array_key_exists("isCtaButtonsEnabled"$context) ? $context["isCtaButtonsEnabled"] : (function () { throw new RuntimeError('Variable "isCtaButtonsEnabled" does not exist.'27$this->source); })());
  86.         // line 28
  87.         $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->sourcetwig_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"falsefalsefalse28), "get", [=> "esdebug"], "method"falsefalsefalse28));
  88.         // line 29
  89.         echo "
  90. ";
  91.         // line 31
  92.         $context["inFeedAdAppearance"] = 6;
  93.         // line 32
  94.         $context["isInFeedAdAappeared"] = false;
  95.         // line 33
  96.         $context["scrappedUserName"] = "Aqarmap";
  97.         // line 34
  98.         echo "
  99. ";
  100.         // line 53
  101.         echo "
  102. ";
  103.         // line 54
  104.         $context['_parent'] = $context;
  105.         $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); })()));
  106.         $context['loop'] = [
  107.           'parent' => $context['_parent'],
  108.           'index0' => 0,
  109.           'index'  => 1,
  110.           'first'  => true,
  111.         ];
  112.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  113.             $length count($context['_seq']);
  114.             $context['loop']['revindex0'] = $length 1;
  115.             $context['loop']['revindex'] = $length;
  116.             $context['loop']['length'] = $length;
  117.             $context['loop']['last'] = === $length;
  118.         }
  119.         foreach ($context['_seq'] as $context["_key"] => $context["listing"]) {
  120.             // line 55
  121.             echo "    ";
  122.             if (array_key_exists("agent"$context)) {
  123.                 // line 56
  124.                 echo "        ";
  125.                 $context["listing"] = twig_get_attribute($this->env$this->source$context["listing"], "listing", [], "array"falsefalsefalse56);
  126.                 // line 57
  127.                 echo "    ";
  128.             }
  129.             // line 58
  130.             echo "
  131.     ";
  132.             // line 60
  133.             echo "    ";
  134.             $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));
  135.             // line 61
  136.             echo "    ";
  137.             $context["isVerified"] = (((twig_get_attribute($this->env$this->source$context["listing"], "featured", [], "any"falsefalsefalse61) == (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"falsefalsefalse61) == (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"));
  138.             // line 62
  139.             echo "    ";
  140.             $context["isEligibleForMortgage"] = ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.mortgage.options") && twig_get_attribute($this->env$this->source$context["listing"], "isMortgageApproved", [], "any"falsefalsefalse62));
  141.             // line 63
  142.             echo "    ";
  143.             $context["isSponsoredCard"] = ((((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse63) == 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"falsefalsefalse63) == (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"falsefalsefalse63) == (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); })()))));
  144.             // line 64
  145.             echo "    ";
  146.             $context["isListingPhotosDefined"] = (twig_get_attribute($this->env$this->source, ($context["listingPhotos"] ?? null), twig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse64), [], "array"truetruefalse64) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["listingPhotos"] ?? null), twig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse64), [], "array"falsetruefalse64), "main", [], "any"truetruefalse64));
  147.             // line 65
  148.             echo "    ";
  149.             $context["isListingLogoDefined"] = (twig_get_attribute($this->env$this->source, ($context["listingPhotos"] ?? null), twig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse65), [], "array"truetruefalse65) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["listingPhotos"] ?? null), twig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse65), [], "array"falsetruefalse65), "logo", [], "any"truetruefalse65));
  150.             // line 66
  151.             echo "    ";
  152.             $context["disableLazyLoadImgIndex"] = twig_in_filter(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse66), [=> 1=> 2]);
  153.             // line 67
  154.             echo "    ";
  155.             $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); })()));
  156.             // line 68
  157.             echo "
  158.     ";
  159.             // line 69
  160.             if ( !(isset($context["isCompoundSearchResultsCard"]) || array_key_exists("isCompoundSearchResultsCard"$context) ? $context["isCompoundSearchResultsCard"] : (function () { throw new RuntimeError('Variable "isCompoundSearchResultsCard" does not exist.'69$this->source); })())) {
  161.                 // line 70
  162.                 echo "        ";
  163.                 $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); })()));
  164.                 // line 71
  165.                 echo "        ";
  166.                 $context["mobileFeedadsScreenLocation"] = (twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse71) == (isset($context["inFeedAdAppearance"]) || array_key_exists("inFeedAdAppearance"$context) ? $context["inFeedAdAppearance"] : (function () { throw new RuntimeError('Variable "inFeedAdAppearance" does not exist.'71$this->source); })()));
  167.                 // line 72
  168.                 echo "        ";
  169.                 $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); })()));
  170.                 // line 73
  171.                 echo "        ";
  172.                 $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); })()));
  173.                 // line 74
  174.                 echo "        ";
  175.                 $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); })()));
  176.                 // line 75
  177.                 echo "    ";
  178.             }
  179.             // line 76
  180.             echo "
  181.     ";
  182.             // line 78
  183.             echo "    ";
  184.             $context["listingCategory"] = twig_get_attribute($this->env$this->source$context["listing"], "category", [], "any"falsefalsefalse78);
  185.             // line 79
  186.             echo "    ";
  187.             $context["urlSource"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse79), "query", [], "any"falsefalsefalse79), "get", [=> "source"], "method"falsefalsefalse79)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse79), "query", [], "any"falsefalsefalse79), "get", [=> "source"], "method"falsefalsefalse79)) : (""));
  188.             // line 80
  189.             echo "    ";
  190.             $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));
  191.             // line 81
  192.             echo "    ";
  193.             $context["leadSources"] = (((isset($context["containerSource"]) || array_key_exists("containerSource"$context) ? $context["containerSource"] : (function () { throw new RuntimeError('Variable "containerSource" does not exist.'81$this->source); })())) ? ([=> (isset($context["containerSource"]) || array_key_exists("containerSource"$context) ? $context["containerSource"] : (function () { throw new RuntimeError('Variable "containerSource" does not exist.'81$this->source); })())]) : ([=> (isset($context["urlSource"]) || array_key_exists("urlSource"$context) ? $context["urlSource"] : (function () { throw new RuntimeError('Variable "urlSource" does not exist.'81$this->source); })())]));
  194.             // line 82
  195.             echo "    ";
  196.             $context["financeFeatureValue"] = $this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("features""finance_service");
  197.             // line 83
  198.             echo "    ";
  199.             $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));
  200.             // line 84
  201.             echo "    ";
  202.             $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); })())) : ([]));
  203.             // line 85
  204.             echo "    ";
  205.             if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("listing_card.lead.button")) {
  206.                 // line 86
  207.                 echo "        ";
  208.                 $context["listingPhones"] = (($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("listing_user_phones")) ? (twig_get_attribute($this->env$this->source$context["listing"], "phones", [], "any"falsefalsefalse86)) : (twig_get_attribute($this->env$this->source$context["listing"], "listingPhones", [], "any"falsefalsefalse86)));
  209.                 // line 87
  210.                 echo "    ";
  211.             } else {
  212.                 // line 88
  213.                 echo "        ";
  214.                 $context["listingPhones"] = [];
  215.                 // line 89
  216.                 echo "    ";
  217.             }
  218.             // line 90
  219.             echo "    ";
  220.             $context["listingPhone"] = null;
  221.             // line 91
  222.             echo "    ";
  223.             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); })()))) {
  224.                 // line 92
  225.                 echo "        ";
  226.                 $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); })()));
  227.                 // line 93
  228.                 echo "    ";
  229.             }
  230.             // line 94
  231.             echo "    ";
  232.             if (twig_get_attribute($this->env$this->source$context["listing"], "slug", [], "any"falsefalsefalse94)) {
  233.                 // line 95
  234.                 echo "        ";
  235.                 $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"falsefalsefalse95), "slug" => twig_get_attribute($this->env$this->source$context["listing"], "slug", [], "any"falsefalsefalse95)], ["relatedseaarchlisting" => true]))) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listing_slug", ["id" => twig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse95), "slug" => twig_get_attribute($this->env$this->source$context["listing"], "slug", [], "any"falsefalsefalse95)])));
  236.                 // line 96
  237.                 echo "    ";
  238.             } else {
  239.                 // line 97
  240.                 echo "        ";
  241.                 $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"falsefalsefalse97)], ["relatedseaarchlisting" => true]))) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listing_view", ["id" => twig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse97)])));
  242.                 // line 98
  243.                 echo "    ";
  244.             }
  245.             // line 99
  246.             echo "    ";
  247.             if ((isset($context["isRelatedToMainListing"]) || array_key_exists("isRelatedToMainListing"$context) ? $context["isRelatedToMainListing"] : (function () { throw new RuntimeError('Variable "isRelatedToMainListing" does not exist.'99$this->source); })())) {
  248.                 // line 100
  249.                 echo "            ";
  250.                 $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");
  251.                 // line 101
  252.                 echo "    ";
  253.             }
  254.             // line 102
  255.             echo "    ";
  256.             $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") : (""));
  257.             // line 103
  258.             echo "    ";
  259.             $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") : (""));
  260.             // line 104
  261.             echo "    ";
  262.             $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"));
  263.             // line 105
  264.             echo "    ";
  265.             $context["listingEvents"] = [=> ["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"]];
  266.             // line 106
  267.             echo "    ";
  268.             $context["listingPhotoSize"] = 110;
  269.             // line 107
  270.             echo "    ";
  271.             $context["iconSize"] = 24;
  272.             // line 108
  273.             echo "    ";
  274.             $context["listingUserPhotoSize"] = 32;
  275.             // line 109
  276.             echo "    ";
  277.             $context["neighborhoodAppearance"] = 9;
  278.             // line 110
  279.             echo "    ";
  280.             $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"falsefalsefalse110));
  281.             // line 111
  282.             echo "    ";
  283.             $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"));
  284.             // line 112
  285.             echo "    ";
  286.             $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); })()));
  287.             // line 113
  288.             echo "    ";
  289.             if ((isset($context["isEnabledSendByWhatsapp"]) || array_key_exists("isEnabledSendByWhatsapp"$context) ? $context["isEnabledSendByWhatsapp"] : (function () { throw new RuntimeError('Variable "isEnabledSendByWhatsapp" does not exist.'113$this->source); })())) {
  290.                 // line 114
  291.                 echo "        ";
  292.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "user", [], "any"falsefalsefalse114), "getWhatsAppNumber", [], "any"falsefalsefalse114)) {
  293.                     // line 115
  294.                     echo "            ";
  295.                     $context["whatsAppNumber"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "user", [], "any"falsefalsefalse115), "getWhatsAppNumber", [], "any"falsefalsefalse115), "getPhone", [], "any"falsefalsefalse115), "getNumber", [], "any"falsefalsefalse115);
  296.                     // line 116
  297.                     echo "        ";
  298.                 }
  299.                 // line 117
  300.                 echo "        ";
  301.                 $context["hasWhatsapp"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "user", [], "any"falsefalsefalse117), "getWhatsAppNumber", [], "any"falsefalsefalse117);
  302.                 // line 118
  303.                 echo "    ";
  304.             } else {
  305.                 // line 119
  306.                 echo "        ";
  307.                 $context["hasWhatsapp"] = false;
  308.                 // line 120
  309.                 echo "    ";
  310.             }
  311.             // line 121
  312.             echo "    ";
  313.             $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") : (""));
  314.             // line 122
  315.             echo "    ";
  316.             $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")) : (""));
  317.             // line 123
  318.             echo "    ";
  319.             $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); })()));
  320.             // line 124
  321.             echo "    ";
  322.             $context["projectListingChild"] = (twig_get_attribute($this->env$this->source$context["listing"], "parent", [], "any"falsefalsefalse124) != null);
  323.             // line 125
  324.             echo "    ";
  325.             $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); })()));
  326.             // line 126
  327.             echo "    ";
  328.             $context["strictQuickRegistration"] = $this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("features""strict_to_quick_registration");
  329.             // line 127
  330.             echo "    ";
  331.             $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); })()));
  332.             // line 128
  333.             echo "    ";
  334.             $context["isSoldByOwnerType"] = ((twig_get_attribute($this->env$this->source$context["listing"], "featured", [], "any"falsefalsefalse128) == (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"falsefalsefalse128) == (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); })())));
  335.             // line 129
  336.             echo "    ";
  337.             $context["listing_attributes"] = twig_get_attribute($this->env$this->source$context["listing"], "getAttributesList", [], "method"falsefalsefalse129);
  338.             // line 130
  339.             echo "    ";
  340.             $context["listing_rooms"] = ((twig_get_attribute($this->env$this->source, ($context["listing_attributes"] ?? null), "rooms", [], "array"truetruefalse130)) ? ($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"falsefalsefalse130))) : (""));
  341.             // line 131
  342.             echo "    ";
  343.             $context["listing_baths"] = ((twig_get_attribute($this->env$this->source, ($context["listing_attributes"] ?? null), "baths", [], "array"truetruefalse131)) ? ($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"falsefalsefalse131))) : (""));
  344.             // line 132
  345.             echo "    ";
  346.             $context["backgroundClass"] = "listing-phone-container_bg-white listing-phone-container_number-gray";
  347.             // line 133
  348.             echo "    ";
  349.             $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"));
  350.             // line 134
  351.             echo "    ";
  352.             $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); })()));
  353.             // line 135
  354.             echo "    ";
  355.             $context["sellerName"] = "";
  356.             // line 136
  357.             echo "    ";
  358.             $context["listingUser"] = twig_get_attribute($this->env$this->source$context["listing"], "user", [], "any"falsefalsefalse136);
  359.             // line 137
  360.             echo "    ";
  361.             $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"falsefalsefalse137);
  362.             // line 138
  363.             echo "    ";
  364.             $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"falsefalsefalse138)) ? (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse138), "file", [], "any"falsefalsefalse138)) : (null));
  365.             // line 139
  366.             echo "    ";
  367.             $context["logo"] = twig_get_attribute($this->env$this->source$context["listing"], "validUserLogo", [], "any"falsefalsefalse139);
  368.             // line 140
  369.             echo "    ";
  370.             $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); })())));
  371.             // line 141
  372.             echo "    ";
  373.             $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"falsefalsefalse141)]);
  374.             // line 142
  375.             echo "    ";
  376.             $context["joinedData"] = twig_date_format_filter($this->envtwig_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"falsefalsefalse142), "Y");
  377.             // line 143
  378.             echo "    ";
  379.             $context["activeListingsCount"] = ((twig_get_attribute($this->env$this->source, ($context["liveListingsPerUser"] ?? null), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "user", [], "any"falsefalsefalse143), "id", [], "any"falsefalsefalse143), [], "array"truetruefalse143)) ? (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->sourcetwig_get_attribute($this->env$this->source$context["listing"], "user", [], "any"falsefalsefalse143), "id", [], "any"falsefalsefalse143), [], "array"falsefalsefalse143)) : (0));
  380.             // line 144
  381.             echo "    ";
  382.             $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"falsefalsefalse144);
  383.             // line 145
  384.             echo "    ";
  385.             $context["encodedSellerPhones"] = [];
  386.             // line 146
  387.             echo "    ";
  388.             $context['_parent'] = $context;
  389.             $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); })()));
  390.             foreach ($context['_seq'] as $context["_key"] => $context["phone"]) {
  391.                 // line 147
  392.                 echo "        ";
  393.                 $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); })()), [=> ["number" => $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->phoneNumberEncode(twig_get_attribute($this->env$this->source$context["phone"], "number", [], "any"falsefalsefalse147))]]);
  394.                 // line 148
  395.                 echo "    ";
  396.             }
  397.             $_parent $context['_parent'];
  398.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phone'], $context['_parent'], $context['loop']);
  399.             $context array_intersect_key($context$_parent) + $_parent;
  400.             // line 149
  401.             echo "
  402.     ";
  403.             // line 150
  404.             $context["listingLabelType"] = twig_get_attribute($this->env$this->source$context["listing"], "label", [], "any"falsefalsefalse150);
  405.             // line 151
  406.             echo "    ";
  407.             $context["isListingTopPicks"] = twig_get_attribute($this->env$this->source$context["listing"], "isTopPicks", [], "any"falsefalsefalse151);
  408.             // line 152
  409.             echo "    ";
  410.             $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); })()));
  411.             // line 153
  412.             echo "    ";
  413.             $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); })()));
  414.             // line 154
  415.             echo "    ";
  416.             $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); })()));
  417.             // line 155
  418.             echo "    ";
  419.             $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); })()));
  420.             // line 156
  421.             echo "    ";
  422.             $context["labelLeadSource"] = "";
  423.             // line 157
  424.             echo "    ";
  425.             if ((isset($context["isTopFavourited"]) || array_key_exists("isTopFavourited"$context) ? $context["isTopFavourited"] : (function () { throw new RuntimeError('Variable "isTopFavourited" does not exist.'157$this->source); })())) {
  426.                 // line 158
  427.                 echo "        ";
  428.                 $context["labelLeadSource"] = "top-favourite";
  429.                 // line 159
  430.                 echo "        ";
  431.                 $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); })()), [=> (isset($context["labelLeadSource"]) || array_key_exists("labelLeadSource"$context) ? $context["labelLeadSource"] : (function () { throw new RuntimeError('Variable "labelLeadSource" does not exist.'159$this->source); })())]);
  432.                 // line 160
  433.                 echo "    ";
  434.             } elseif ((isset($context["isValidPrice"]) || array_key_exists("isValidPrice"$context) ? $context["isValidPrice"] : (function () { throw new RuntimeError('Variable "isValidPrice" does not exist.'160$this->source); })())) {
  435.                 // line 161
  436.                 echo "        ";
  437.                 $context["labelLeadSource"] = "valid-price";
  438.                 // line 162
  439.                 echo "         ";
  440.                 $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); })()), [=> (isset($context["labelLeadSource"]) || array_key_exists("labelLeadSource"$context) ? $context["labelLeadSource"] : (function () { throw new RuntimeError('Variable "labelLeadSource" does not exist.'162$this->source); })())]);
  441.                 // line 163
  442.                 echo "    ";
  443.             } elseif ((isset($context["isTopViewed"]) || array_key_exists("isTopViewed"$context) ? $context["isTopViewed"] : (function () { throw new RuntimeError('Variable "isTopViewed" does not exist.'163$this->source); })())) {
  444.                 // line 164
  445.                 echo "        ";
  446.                 $context["labelLeadSource"] = "top-viewed";
  447.                 // line 165
  448.                 echo "        ";
  449.                 $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); })()), [=> (isset($context["labelLeadSource"]) || array_key_exists("labelLeadSource"$context) ? $context["labelLeadSource"] : (function () { throw new RuntimeError('Variable "labelLeadSource" does not exist.'165$this->source); })())]);
  450.                 // line 166
  451.                 echo "    ";
  452.             }
  453.             // line 167
  454.             echo "    ";
  455.             $context["listingPrice"] = (((twig_get_attribute($this->env$this->source$context["listing"], "price", [], "any"truetruefalse167) &&  !(null === twig_get_attribute($this->env$this->source$context["listing"], "price", [], "any"falsefalsefalse167)))) ? (twig_get_attribute($this->env$this->source$context["listing"], "price", [], "any"falsefalsefalse167)) : (null));
  456.             // line 168
  457.             echo "    ";
  458.             $context["listingFeatured"] = twig_get_attribute($this->env$this->source$context["listing"], "featured", [], "any"falsefalsefalse168);
  459.             // line 169
  460.             echo "    ";
  461.             $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); })()));
  462.             // line 170
  463.             echo "    ";
  464.             $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); })()));
  465.             // line 171
  466.             echo "    ";
  467.             $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); })()));
  468.             // line 172
  469.             echo "    ";
  470.             $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); })()));
  471.             // line 173
  472.             echo "    ";
  473.             $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); })()));
  474.             // line 174
  475.             echo "    ";
  476.             $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); })()));
  477.             // line 175
  478.             echo "    ";
  479.             $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); })()));
  480.             // line 176
  481.             echo "    ";
  482.             $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); })()));
  483.             // line 177
  484.             echo "    ";
  485.             $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); })()));
  486.             // line 178
  487.             echo "
  488.     ";
  489.             // line 180
  490.             echo "    ";
  491.             if ((isset($context["isCompoundSearchResultsCard"]) || array_key_exists("isCompoundSearchResultsCard"$context) ? $context["isCompoundSearchResultsCard"] : (function () { throw new RuntimeError('Variable "isCompoundSearchResultsCard" does not exist.'180$this->source); })())) {
  492.                 // line 181
  493.                 echo "        ";
  494.                 $context["compoundAveragePrices"] = ((twig_get_attribute($this->env$this->source$context["listing"], "compoundAveragePrices", [], "any"truetruefalse181)) ? (twig_get_attribute($this->env$this->source$context["listing"], "compoundAveragePrices", [], "any"falsefalsefalse181)) : ([]));
  495.                 // line 182
  496.                 echo "        ";
  497.                 $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); })()));
  498.                 // line 183
  499.                 echo "        ";
  500.                 $context["showCompoundAveragePrices"] = false;
  501.                 // line 184
  502.                 echo "        ";
  503.                 $context["compoundField"] = ((twig_get_attribute($this->env$this->source$context["listing"], "CompoundField", [], "any"falsefalsefalse184)) ? (twig_get_attribute($this->env$this->source$context["listing"], "CompoundField", [], "any"falsefalsefalse184)) : ([]));
  504.                 // line 185
  505.                 echo "        ";
  506.                 $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"));
  507.                 // line 186
  508.                 echo "        ";
  509.                 $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); })()));
  510.                 // line 187
  511.                 echo "        ";
  512.                 $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"falsefalsefalse187), 2"floor")) : (null));
  513.                 // line 188
  514.                 echo "        ";
  515.                 $context["compoundPrice"] = ((twig_get_attribute($this->env$this->source$context["listing"], "CompoundField", [], "any"falsefalsefalse188)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "CompoundField", [], "any"falsefalsefalse188), "minPrice", [], "any"falsefalsefalse188)) : (null));
  516.                 // line 189
  517.                 echo "        ";
  518.                 $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); })())));
  519.                 // line 190
  520.                 echo "    ";
  521.             }
  522.             // line 191
  523.             echo "
  524.     ";
  525.             // line 193
  526.             echo "    ";
  527.             $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"));
  528.             // line 194
  529.             echo "    ";
  530.             $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"falsefalsefalse194)) : (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "section", [], "any"falsefalsefalse194), "slug", [], "any"falsefalsefalse194)))));
  531.             // line 195
  532.             echo "    ";
  533.             $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
  534. (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
  535. (isset($context["isFlf2"]) || array_key_exists("isFlf2"$context) ? $context["isFlf2"] : (function () { throw new RuntimeError('Variable "isFlf2" does not exist.'197$this->source); })())) ? ("flf2") : ("free"))))))))))));
  536.             // line 198
  537.             echo "    ";
  538.             $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
  539. (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"))))))));
  540.             // line 200
  541.             echo "    ";
  542.             $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"falsefalsefalse200) != null));
  543.             // line 201
  544.             echo "
  545.     <div id=\"";
  546.             // line 202
  547.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse202), "html"nulltrue);
  548.             echo "\" class=\"";
  549.             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"nulltrue);
  550.             echo " ";
  551.             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"nulltrue);
  552.             echo " ";
  553.             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"nulltrue);
  554.             echo "\"
  555.          ng-init='setSourceRoute(\"";
  556.             // line 203
  557.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse203), "attributes", [], "any"falsefalsefalse203), "get", [=> "_route"], "method"falsefalsefalse203), "html"nulltrue);
  558.             echo "\");'
  559.         itemscope itemtype=\"https://schema.org/SingleFamilyResidence\">
  560.          <div class=\"search-listing-card__container\" ng-content-loaded
  561.                 callback='setListingDetail(\"";
  562.             // line 206
  563.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse206), "html"nulltrue);
  564.             echo "\",{
  565.                     \"section\": \"";
  566.             // line 207
  567.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "section", [], "any"falsefalsefalse207), "id", [], "any"falsefalsefalse207), "html"nulltrue);
  568.             echo "\",
  569.                     \"sellerPhones\": ";
  570.             // line 208
  571.             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"nulltrue);
  572.             echo ",
  573.                     \"sellerPhone\": \"";
  574.             // line 209
  575.             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"falsefalsefalse209))) : ("")))), "html"nulltrue);
  576.             echo "\",
  577.                     \"financeUrl\":\"";
  578.             // line 210
  579.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "getFinancialAidURL", [], "method"falsefalsefalse210), "html"nulltrue);
  580.             echo "\",
  581.                     \"userEmail\": ";
  582.             // line 211
  583.             echo twig_escape_filter($this->envjson_encode((isset($context["currentUserEmail"]) || array_key_exists("currentUserEmail"$context) ? $context["currentUserEmail"] : (function () { throw new RuntimeError('Variable "currentUserEmail" does not exist.'211$this->source); })())), "html"nulltrue);
  584.             echo ",
  585.                     \"financeFeatureValue\": \"";
  586.             // line 212
  587.             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"nulltrue);
  588.             echo "\",
  589.                     \"listingName\" : ";
  590.             // line 213
  591.             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"truetruefalse213)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["listing"], "customSlug", [], "any"falsefalsefalse213), twig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse213))) : (twig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse213)))), "html"nulltrue);
  592.             echo ",
  593.                     \"listingTitle\" : ";
  594.             // line 214
  595.             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"falsefalsefalse214)), "html"nulltrue);
  596.             echo ",
  597.                     \"listingUser\": {
  598.                         \"sellerName\" : ";
  599.             // line 216
  600.             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"nulltrue);
  601.             echo ",
  602.                         \"sellerLogo\": \"\",
  603.                         \"sellerUrl\": \"";
  604.             // line 218
  605.             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"nulltrue);
  606.             echo "\",
  607.                         \"joinedData\":\"";
  608.             // line 219
  609.             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"nulltrue);
  610.             echo "\",
  611.                         \"activeListingsCount\": \"";
  612.             // line 220
  613.             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"nulltrue);
  614.             echo "\",
  615.                         \"leadsCount\":\"";
  616.             // line 221
  617.             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"nulltrue);
  618.             echo "\"
  619.                     }
  620.                 })'>
  621.             <div class=\"search-listing-card__wrapper\">
  622.                 <a class=\"search-listing-card__container__link ";
  623.             // line 225
  624.             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"nulltrue);
  625.             echo "\"
  626.                     onclick=\"elementEvents.fireGTM( 'listingId',";
  627.             // line 226
  628.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse226), "html"nulltrue);
  629.             echo ", ";
  630.             echo twig_escape_filter($this->envjson_encode((isset($context["listingEvents"]) || array_key_exists("listingEvents"$context) ? $context["listingEvents"] : (function () { throw new RuntimeError('Variable "listingEvents" does not exist.'226$this->source); })())), "html"nulltrue);
  631.             echo ")\"
  632.                     href=\"";
  633.             // line 227
  634.             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"nulltrue);
  635.             echo "\"></a>
  636.                 <div class=\"search-listing-card__labels\">
  637.                     ";
  638.             // line 229
  639.             if ((isset($context["isUserHasActiveSubscription"]) || array_key_exists("isUserHasActiveSubscription"$context) ? $context["isUserHasActiveSubscription"] : (function () { throw new RuntimeError('Variable "isUserHasActiveSubscription" does not exist.'229$this->source); })())) {
  640.                 // line 230
  641.                 echo "                        ";
  642.                 if ((twig_get_attribute($this->env$this->source$context["listing"], "featured", [], "any"falsefalsefalse230) == (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); })()))) {
  643.                     // line 231
  644.                     echo "                            <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
  645.                                 ";
  646.                     // line 232
  647.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.premium_small"), "html"nulltrue);
  648.                     echo "
  649.                             </span>
  650.                         ";
  651.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 234
  652. $context["listing"], "featured", [], "any"falsefalsefalse234) == (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); })()))) {
  653.                     // line 235
  654.                     echo "                            <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
  655.                                 ";
  656.                     // line 236
  657.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.spotlight"), "html"nulltrue);
  658.                     echo "
  659.                             </span>
  660.                         ";
  661.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 238
  662. $context["listing"], "featured", [], "any"falsefalsefalse238) == (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); })()))) {
  663.                     // line 239
  664.                     echo "                            <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
  665.                                 ";
  666.                     // line 240
  667.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.sponsored"), "html"nulltrue);
  668.                     echo "
  669.                             </span>
  670.                         ";
  671.                 } elseif ((                // line 242
  672. (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"falsefalsefalse242))) {
  673.                     // line 243
  674.                     echo "                            <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
  675.                                 ";
  676.                     // line 244
  677.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.featured_small"), "html"nulltrue);
  678.                     echo "
  679.                             </span>
  680.                         ";
  681.                 }
  682.                 // line 247
  683.                 echo "                        ";
  684.                 if ((twig_get_attribute($this->env$this->source$context["listing"], "featured", [], "any"falsefalsefalse247) == (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); })()))) {
  685.                     // line 248
  686.                     echo "                            <span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
  687.                                 ";
  688.                     // line 249
  689.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.featured_capital"), "html"nulltrue);
  690.                     echo "
  691.                             </span>
  692.                         ";
  693.                 } elseif (                // line 251
  694. (isset($context["isSoldByOwnerType"]) || array_key_exists("isSoldByOwnerType"$context) ? $context["isSoldByOwnerType"] : (function () { throw new RuntimeError('Variable "isSoldByOwnerType" does not exist.'251$this->source); })())) {
  695.                     // line 252
  696.                     echo "                            <span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
  697.                                 ";
  698.                     // line 253
  699.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.sold_by_owner"), "html"nulltrue);
  700.                     echo "
  701.                             </span>
  702.                         ";
  703.                 }
  704.                 // line 256
  705.                 echo "                    ";
  706.             }
  707.             // line 257
  708.             echo "                        ";
  709.             if ((isset($context["isVerified"]) || array_key_exists("isVerified"$context) ? $context["isVerified"] : (function () { throw new RuntimeError('Variable "isVerified" does not exist.'257$this->source); })())) {
  710.                 // line 258
  711.                 echo "                        <span class=\"search-listing-card__labels_card search-listing-card__labels_card_verified\">
  712.                             ";
  713.                 // line 259
  714.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.verified"), "html"nulltrue);
  715.                 echo "
  716.                         </span>
  717.                     ";
  718.             }
  719.             // line 262
  720.             echo "                    ";
  721.             if ((isset($context["isEligibleForMortgage"]) || array_key_exists("isEligibleForMortgage"$context) ? $context["isEligibleForMortgage"] : (function () { throw new RuntimeError('Variable "isEligibleForMortgage" does not exist.'262$this->source); })())) {
  722.                 // line 263
  723.                 echo "                        <span class=\"search-listing-card__labels_card search-listing-card__labels_card_mortgage\">
  724.                             ";
  725.                 // line 264
  726.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_results.is_mortgage"), "html"nulltrue);
  727.                 echo "
  728.                         </span>
  729.                     ";
  730.             }
  731.             // line 267
  732.             echo "                    ";
  733.             if ((isset($context["isRelatedToMainListing"]) || array_key_exists("isRelatedToMainListing"$context) ? $context["isRelatedToMainListing"] : (function () { throw new RuntimeError('Variable "isRelatedToMainListing" does not exist.'267$this->source); })())) {
  734.                 // line 268
  735.                 echo "                        <span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
  736.                             ";
  737.                 // line 269
  738.                 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"nulltrue);
  739.                 echo "
  740.                         </span>
  741.                     ";
  742.             }
  743.             // line 272
  744.             echo "                </div>
  745.                 <div class=\"search-listing-card__img embed-responsive embed-responsive-4by3\">
  746.                     <div class=\"search-listing-card__img__wrapper embed-responsive-item\">
  747.                         ";
  748.             // line 275
  749.             if ((isset($context["isListingPhotosDefined"]) || array_key_exists("isListingPhotosDefined"$context) ? $context["isListingPhotosDefined"] : (function () { throw new RuntimeError('Variable "isListingPhotosDefined" does not exist.'275$this->source); })())) {
  750.                 // line 276
  751.                 echo "
  752.                             ";
  753.                 // line 277
  754.                 if ((isset($context["disableLazyLoadImgIndex"]) || array_key_exists("disableLazyLoadImgIndex"$context) ? $context["disableLazyLoadImgIndex"] : (function () { throw new RuntimeError('Variable "disableLazyLoadImgIndex" does not exist.'277$this->source); })())) {
  755.                     // line 278
  756.                     echo "                                <picture>
  757.                                     <source  srcset=\"";
  758.                     // line 279
  759.                     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->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse279), [], "array"falsefalsefalse279), "main", [], "any"falsefalsefalse279), "file", [], "any"falsefalsefalse279), "file"), "search-thumb-webp"), "html"nulltrue);
  760.                     echo "\"
  761.                                         type=\"image/webp\">
  762.                                     <source srcset=\"";
  763.                     // line 281
  764.                     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->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse281), [], "array"falsefalsefalse281), "main", [], "any"falsefalsefalse281), "file", [], "any"falsefalsefalse281), "file"), "search-thumb"), "html"nulltrue);
  765.                     echo "\"
  766.                                         type=\"image/jpg\">
  767.                                     <img
  768.                                         alt=\"";
  769.                     // line 284
  770.                     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"falsefalsefalse284)), "html"nulltrue);
  771.                     echo "\"
  772.                                         width=\"";
  773.                     // line 285
  774.                     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"nulltrue);
  775.                     echo "\" height=\"";
  776.                     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"nulltrue);
  777.                     echo "\"
  778.                                         fetchpriority=\"high\" />
  779.                                 </picture>
  780.                             ";
  781.                 } else {
  782.                     // line 289
  783.                     echo "                                <picture>
  784.                                     <source  data-srcset=\"";
  785.                     // line 290
  786.                     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->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse290), [], "array"falsefalsefalse290), "main", [], "any"falsefalsefalse290), "file", [], "any"falsefalsefalse290), "file"), "search-thumb-webp"), "html"nulltrue);
  787.                     echo "\"
  788.                                         type=\"image/webp\">
  789.                                     <source  data-srcset=\"";
  790.                     // line 292
  791.                     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->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse292), [], "array"falsefalsefalse292), "main", [], "any"falsefalsefalse292), "file", [], "any"falsefalsefalse292), "file"), "search-thumb"), "html"nulltrue);
  792.                     echo "\"
  793.                                         type=\"image/jpg\">
  794.                                     <img
  795.                                         src=\"/images/placeholder.svg\"
  796.                                         class=\"lazyload\"
  797.                                         alt=\"";
  798.                     // line 297
  799.                     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"falsefalsefalse297)), "html"nulltrue);
  800.                     echo "\"
  801.                                         width=\"";
  802.                     // line 298
  803.                     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"nulltrue);
  804.                     echo "\" height=\"";
  805.                     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"nulltrue);
  806.                     echo "\"
  807.                                         fetchpriority=\"low\" />
  808.                                 </picture>
  809.                             ";
  810.                 }
  811.                 // line 302
  812.                 echo "                        ";
  813.             } elseif (twig_get_attribute($this->env$this->source$context["listing"], "mainPhoto", [], "any"falsefalsefalse302)) {
  814.                 // line 303
  815.                 echo "                            ";
  816.                 if ((isset($context["disableLazyLoadImgIndex"]) || array_key_exists("disableLazyLoadImgIndex"$context) ? $context["disableLazyLoadImgIndex"] : (function () { throw new RuntimeError('Variable "disableLazyLoadImgIndex" does not exist.'303$this->source); })())) {
  817.                     // line 304
  818.                     echo "                                <picture>
  819.                                     <source  srcset=\"";
  820.                     // line 305
  821.                     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->sourcetwig_get_attribute($this->env$this->source$context["listing"], "mainPhoto", [], "any"falsefalsefalse305), "file", [], "any"falsefalsefalse305), "file"), "search-thumb-webp"), "html"nulltrue);
  822.                     echo "\"
  823.                                         type=\"image/webp\">
  824.                                     <source  srcset=\"";
  825.                     // line 307
  826.                     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->sourcetwig_get_attribute($this->env$this->source$context["listing"], "mainPhoto", [], "any"falsefalsefalse307), "file", [], "any"falsefalsefalse307), "file"), "search-thumb"), "html"nulltrue);
  827.                     echo "\"
  828.                                         type=\"image/jpg\">
  829.                                     <img
  830.                                         alt=\"";
  831.                     // line 310
  832.                     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"falsefalsefalse310)), "html"nulltrue);
  833.                     echo "\"
  834.                                         width=\"";
  835.                     // line 311
  836.                     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"nulltrue);
  837.                     echo "\" height=\"";
  838.                     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"nulltrue);
  839.                     echo "\"
  840.                                         fetchpriority=\"high\" />
  841.                                 </picture>
  842.                             ";
  843.                 } else {
  844.                     // line 315
  845.                     echo "                                <picture>
  846.                                     <source  data-srcset=\"";
  847.                     // line 316
  848.                     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->sourcetwig_get_attribute($this->env$this->source$context["listing"], "mainPhoto", [], "any"falsefalsefalse316), "file", [], "any"falsefalsefalse316), "file"), "search-thumb-webp"), "html"nulltrue);
  849.                     echo "\"
  850.                                         type=\"image/webp\">
  851.                                     <source  data-srcset=\"";
  852.                     // line 318
  853.                     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->sourcetwig_get_attribute($this->env$this->source$context["listing"], "mainPhoto", [], "any"falsefalsefalse318), "file", [], "any"falsefalsefalse318), "file"), "search-thumb"), "html"nulltrue);
  854.                     echo "\"
  855.                                         type=\"image/jpg\">
  856.                                     <img
  857.                                         src=\"/images/placeholder.svg\"
  858.                                         class=\"lazyload\"
  859.                                         alt=\"";
  860.                     // line 323
  861.                     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"falsefalsefalse323)), "html"nulltrue);
  862.                     echo "\"
  863.                                         width=\"";
  864.                     // line 324
  865.                     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"nulltrue);
  866.                     echo "\" height=\"";
  867.                     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"nulltrue);
  868.                     echo "\"
  869.                                         fetchpriority=\"low\" />
  870.                                 </picture>
  871.                             ";
  872.                 }
  873.                 // line 328
  874.                 echo "                        ";
  875.             } else {
  876.                 // line 329
  877.                 echo "                            <div class=\"search-listing-card__img__no-photo\">";
  878.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.no_listing_photo"), "html"nulltrue);
  879.                 echo "</div>
  880.                         ";
  881.             }
  882.             // line 331
  883.             echo "                        ";
  884.             if ((isset($context["showPhotosCount"]) || array_key_exists("showPhotosCount"$context) ? $context["showPhotosCount"] : (function () { throw new RuntimeError('Variable "showPhotosCount" does not exist.'331$this->source); })())) {
  885.                 // line 332
  886.                 echo "                            <div class=\"search-listing-card__img__thumbnail search-listing-card__img__thumbnail_bottom\">
  887.                                 <div class=\"search-listing-card__img__count\">
  888.                                     <span class=\"fa fa-image\"></span>
  889.                                     ";
  890.                 // line 335
  891.                 if (twig_get_attribute($this->env$this->source, ($context["listingPhotosCount"] ?? null), twig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse335), [], "array"truetruefalse335)) {
  892.                     // line 336
  893.                     echo "                                        ";
  894.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse336), [], "array"falsefalsefalse336), "html"nulltrue);
  895.                     echo "
  896.                                     ";
  897.                 } else {
  898.                     // line 338
  899.                     echo "                                        0
  900.                                     ";
  901.                 }
  902.                 // line 340
  903.                 echo "                                </div>
  904.                             </div>
  905.                         ";
  906.             }
  907.             // line 343
  908.             echo "                    </div>
  909.                 </div>
  910.                 <div class=\"search-listing-card__details\">
  911.                     ";
  912.             // line 346
  913.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse346), "attributes", [], "any"falsefalsefalse346), "get", [=> "_route"], "method"falsefalsefalse346) != "aqarmap_user_listings")) {
  914.                 // line 347
  915.                 echo "                        ";
  916.                 if ((isset($context["isListingLogoDefined"]) || array_key_exists("isListingLogoDefined"$context) ? $context["isListingLogoDefined"] : (function () { throw new RuntimeError('Variable "isListingLogoDefined" does not exist.'347$this->source); })())) {
  917.                     // line 348
  918.                     echo "                            ";
  919.                     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->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                     // line 349
  920. (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"falsefalsefalse349), [], "array"falsefalsefalse349), "logo", [], "any"falsefalsefalse349), "file", [], "any"falsefalsefalse349), "file"), "logo"),                     // line 350
  921. (isset($context["disableLazyLoadImgIndex"]) || array_key_exists("disableLazyLoadImgIndex"$context) ? $context["disableLazyLoadImgIndex"] : (function () { throw new RuntimeError('Variable "disableLazyLoadImgIndex" does not exist.'350$this->source); })()),                     // line 351
  922. (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
  923. $context["listing"], "id", [], "any"falsefalsefalse352)], 348$context$this->getSourceContext());
  924.                     // line 353
  925.                     echo "
  926.                         ";
  927.                 } elseif (twig_get_attribute($this->env$this->source,                 // line 354
  928. $context["listing"], "validUserLogo", [], "any"falsefalsefalse354)) {
  929.                     // line 355
  930.                     echo "                            ";
  931.                     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
  932. $context["listing"], "validUserLogo", [], "any"falsefalsefalse356), "file"), "logo"),                     // line 357
  933. (isset($context["disableLazyLoadImgIndex"]) || array_key_exists("disableLazyLoadImgIndex"$context) ? $context["disableLazyLoadImgIndex"] : (function () { throw new RuntimeError('Variable "disableLazyLoadImgIndex" does not exist.'357$this->source); })()),                     // line 358
  934. (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
  935. $context["listing"], "id", [], "any"falsefalsefalse359)], 355$context$this->getSourceContext());
  936.                     // line 360
  937.                     echo "
  938.                         ";
  939.                 }
  940.                 // line 362
  941.                 echo "                    ";
  942.             }
  943.             // line 363
  944.             echo "                    <div class=\"search-listing-card__details__wrapper\" >
  945.                         ";
  946.             // line 364
  947.             if ((isset($context["isCompoundSearchResultsCard"]) || array_key_exists("isCompoundSearchResultsCard"$context) ? $context["isCompoundSearchResultsCard"] : (function () { throw new RuntimeError('Variable "isCompoundSearchResultsCard" does not exist.'364$this->source); })())) {
  948.                 // line 365
  949.                 echo "                            ";
  950.                 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); })()))) {
  951.                     // line 366
  952.                     echo "                                ";
  953.                     if (((isset($context["elasticScore"]) || array_key_exists("elasticScore"$context) ? $context["elasticScore"] : (function () { throw new RuntimeError('Variable "elasticScore" does not exist.'366$this->source); })()) > 80)) {
  954.                         // line 367
  955.                         echo "                                    <div class=\"matching-score matching-score_high\" role=\"alert\">";
  956.                         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"nulltrue);
  957.                         echo "% ";
  958.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.compounds_adviser.matching"), "html"nulltrue);
  959.                         echo "
  960.                                     </div>
  961.                                 ";
  962.                     } elseif ((                    // line 369
  963. (isset($context["elasticScore"]) || array_key_exists("elasticScore"$context) ? $context["elasticScore"] : (function () { throw new RuntimeError('Variable "elasticScore" does not exist.'369$this->source); })()) < 40)) {
  964.                         // line 370
  965.                         echo "                                    <div class=\"matching-score matching-score_low\" role=\"alert\">";
  966.                         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"nulltrue);
  967.                         echo "% ";
  968.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.compounds_adviser.matching"), "html"nulltrue);
  969.                         echo "
  970.                                     </div>
  971.                                 ";
  972.                     } else {
  973.                         // line 373
  974.                         echo "                                    <div class=\"matching-score matching-score_mid\" role=\"alert\">";
  975.                         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"nulltrue);
  976.                         echo "% ";
  977.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.compounds_adviser.matching"), "html"nulltrue);
  978.                         echo "
  979.                                     </div>
  980.                                 ";
  981.                     }
  982.                     // line 376
  983.                     echo "                            ";
  984.                 }
  985.                 // line 377
  986.                 echo "                            <div class=\"search-listing-card__compound-title\">
  987.                                 <span> ";
  988.                 // line 378
  989.                 echo $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->fixArabicNumbers(twig_get_attribute($this->env$this->source$context["listing"], "title", [], "any"falsefalsefalse378));
  990.                 echo "</span>
  991.                             </div>
  992.                             <p class=\"search-listing-card__address search-listing-card__address_compound\">
  993.                                 <img
  994.                                     fetchpriority=\"low\"
  995.                                     src=\"/images/BrandsIcons/listing/ic_location.svg\"
  996.                                     class=\"search-listing-card__attributes_icon\"
  997.                                     alt=\"";
  998.                 // line 385
  999.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "address", [], "any"falsefalsefalse385), "html"nulltrue);
  1000.                 echo "\"
  1001.                                     width=\"";
  1002.                 // line 386
  1003.                 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"nulltrue);
  1004.                 echo "\" height=\"";
  1005.                 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"nulltrue);
  1006.                 echo "\"
  1007.                                 />
  1008.                                 <span> ";
  1009.                 // line 388
  1010.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "address", [], "any"falsefalsefalse388), "html"nulltrue);
  1011.                 echo " </span>
  1012.                             </p>
  1013.                             ";
  1014.                 // line 390
  1015.                 if ((isset($context["showCompoundAveragePrices"]) || array_key_exists("showCompoundAveragePrices"$context) ? $context["showCompoundAveragePrices"] : (function () { throw new RuntimeError('Variable "showCompoundAveragePrices" does not exist.'390$this->source); })())) {
  1016.                     // line 391
  1017.                     echo "                                <div class=\"search-listing-card__units__wrapper\">
  1018.                                     ";
  1019.                     // line 392
  1020.                     if ((isset($context["isCompoundAveragePrices"]) || array_key_exists("isCompoundAveragePrices"$context) ? $context["isCompoundAveragePrices"] : (function () { throw new RuntimeError('Variable "isCompoundAveragePrices" does not exist.'392$this->source); })())) {
  1021.                         // line 393
  1022.                         echo "                                        ";
  1023.                         $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); })())]));
  1024.                         // line 394
  1025.                         echo "                                    ";
  1026.                     }
  1027.                     // line 395
  1028.                     echo "                                </div>
  1029.                             ";
  1030.                 }
  1031.                 // line 397
  1032.                 echo "
  1033.                             <div class=\"search-listing-card__starting-price\">
  1034.                                 ";
  1035.                 // line 399
  1036.                 if ((isset($context["listingPrice"]) || array_key_exists("listingPrice"$context) ? $context["listingPrice"] : (function () { throw new RuntimeError('Variable "listingPrice" does not exist.'399$this->source); })())) {
  1037.                     // line 400
  1038.                     echo "                                    ";
  1039.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.starting_from"), "html"nulltrue);
  1040.                     echo "
  1041.                                     <span class=\"integer\">";
  1042.                     // line 401
  1043.                     echo twig_escape_filter($this->envtwig_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"nulltrue);
  1044.                     echo "</span>
  1045.                                     <span>";
  1046.                     // line 402
  1047.                     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"nulltrue);
  1048.                     echo "</span>
  1049.                                 ";
  1050.                 } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 403
  1051. $context["listing"], "section", [], "any"falsefalsefalse403), "searchable", [], "any"falsefalsefalse403)) {
  1052.                     // line 404
  1053.                     echo "                                    ";
  1054.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.call_for_price"), "html"nulltrue);
  1055.                     echo "
  1056.                                 ";
  1057.                 }
  1058.                 // line 406
  1059.                 echo "                            </div>
  1060.                         ";
  1061.             } else {
  1062.                 // line 408
  1063.                 echo "                            ";
  1064.                 if ((isset($context["allowListingLabel"]) || array_key_exists("allowListingLabel"$context) ? $context["allowListingLabel"] : (function () { throw new RuntimeError('Variable "allowListingLabel" does not exist.'408$this->source); })())) {
  1065.                     // line 409
  1066.                     echo "                                <div class=\"search-listing-card__best-label\">
  1067.                                     ";
  1068.                     // line 410
  1069.                     if ((isset($context["isValidPrice"]) || array_key_exists("isValidPrice"$context) ? $context["isValidPrice"] : (function () { throw new RuntimeError('Variable "isValidPrice" does not exist.'410$this->source); })())) {
  1070.                         // line 411
  1071.                         echo "                                        <img fetchpriority=\"low\" width=\"";
  1072.                         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"nulltrue);
  1073.                         echo "\" height=\"";
  1074.                         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"nulltrue);
  1075.                         echo "\"
  1076.                                         src=\"";
  1077.                         // line 412
  1078.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/picks/ic_money_blue.svg"), "html"nulltrue);
  1079.                         echo "\" alt=\"";
  1080.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.valid_price"), "html"nulltrue);
  1081.                         echo "\" />
  1082.                                         ";
  1083.                         // line 413
  1084.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.valid_price"), "html"nulltrue);
  1085.                         echo "
  1086.                                     ";
  1087.                     } elseif (                    // line 414
  1088. (isset($context["isTopViewed"]) || array_key_exists("isTopViewed"$context) ? $context["isTopViewed"] : (function () { throw new RuntimeError('Variable "isTopViewed" does not exist.'414$this->source); })())) {
  1089.                         // line 415
  1090.                         echo "                                        <img fetchpriority=\"low\" width=\"";
  1091.                         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"nulltrue);
  1092.                         echo "\" height=\"";
  1093.                         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"nulltrue);
  1094.                         echo "\"
  1095.                                         src=\"";
  1096.                         // line 416
  1097.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/picks/analytics-arrow-up_blue.svg"), "html"nulltrue);
  1098.                         echo "\" alt=\"";
  1099.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.top_viewed"), "html"nulltrue);
  1100.                         echo "\" />
  1101.                                         ";
  1102.                         // line 417
  1103.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.top_viewed"), "html"nulltrue);
  1104.                         echo "
  1105.                                     ";
  1106.                     } elseif (                    // line 418
  1107. (isset($context["isTopFavourited"]) || array_key_exists("isTopFavourited"$context) ? $context["isTopFavourited"] : (function () { throw new RuntimeError('Variable "isTopFavourited" does not exist.'418$this->source); })())) {
  1108.                         // line 419
  1109.                         echo "                                        <img fetchpriority=\"low\" width=\"";
  1110.                         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"nulltrue);
  1111.                         echo "\" height=\"";
  1112.                         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"nulltrue);
  1113.                         echo "\"
  1114.                                         src=\"";
  1115.                         // line 420
  1116.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/picks/ic_heart_blue.svg"), "html"nulltrue);
  1117.                         echo "\" alt=\"";
  1118.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.top_favourite"), "html"nulltrue);
  1119.                         echo "\" />
  1120.                                         ";
  1121.                         // line 421
  1122.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.top_favourite"), "html"nulltrue);
  1123.                         echo "
  1124.                                     ";
  1125.                     }
  1126.                     // line 423
  1127.                     echo "                                </div>
  1128.                             ";
  1129.                 }
  1130.                 // line 425
  1131.                 echo "                            <div class=\"search-listing-card__price\">
  1132.                                 ";
  1133.                 // line 426
  1134.                 if (twig_get_attribute($this->env$this->source$context["listing"], "price", [], "any"falsefalsefalse426)) {
  1135.                     // line 427
  1136.                     echo "                                    <span class=\"integer\">";
  1137.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "price", [], "any"falsefalsefalse427)), "html"nulltrue);
  1138.                     echo "</span>
  1139.                                     <span class=\"mx-2\">";
  1140.                     // line 428
  1141.                     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"nulltrue);
  1142.                     echo "</span>
  1143.                                 ";
  1144.                 } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 429
  1145. $context["listing"], "section", [], "any"falsefalsefalse429), "searchable", [], "any"falsefalsefalse429)) {
  1146.                     // line 430
  1147.                     echo "                                    ";
  1148.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.call_for_price"), "html"nulltrue);
  1149.                     echo "
  1150.                                 ";
  1151.                 }
  1152.                 // line 432
  1153.                 echo "                            </div>
  1154.                             <h2 class=\"search-listing-card__title\">
  1155.                                 ";
  1156.                 // line 434
  1157.                 echo $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->fixArabicNumbers(twig_get_attribute($this->env$this->source$context["listing"], "title", [], "any"falsefalsefalse434));
  1158.                 echo "
  1159.                             </h2>
  1160.                             <p class=\"search-listing-card__address\" >
  1161.                                 <img
  1162.                                     fetchpriority=\"low\"
  1163.                                     src=\"/images/BrandsIcons/listing/ic_location.svg\"
  1164.                                     class=\"search-listing-card__attributes_icon\"
  1165.                                     alt=\"";
  1166.                 // line 441
  1167.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "address", [], "any"falsefalsefalse441), "html"nulltrue);
  1168.                 echo "\"
  1169.                                     width=\"";
  1170.                 // line 442
  1171.                 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"nulltrue);
  1172.                 echo "\" height=\"";
  1173.                 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"nulltrue);
  1174.                 echo "\"
  1175.                                 />
  1176.                                 <span>";
  1177.                 // line 444
  1178.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "address", [], "any"falsefalsefalse444), "html"nulltrue);
  1179.                 echo "</span>
  1180.                             </p>
  1181.                             <div class=\"search-listing-card__attributes\">
  1182.                                 <label class=\"search-listing-card__attributes_item\">
  1183.                                     <img
  1184.                                         fetchpriority=\"low\"
  1185.                                         src=\"/images/BrandsIcons/listing/ic_size.svg\"
  1186.                                         class=\"search-listing-card__attributes_icon\"
  1187.                                         alt=\"Listing attributes\"
  1188.                                         width=\"";
  1189.                 // line 453
  1190.                 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"nulltrue);
  1191.                 echo "\" height=\"";
  1192.                 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"nulltrue);
  1193.                 echo "\"
  1194.                                     />
  1195.                                     ";
  1196.                 // line 455
  1197.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "area", [], "any"falsefalsefalse455), "html"nulltrue);
  1198.                 echo " ";
  1199.                 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"nulltrue);
  1200.                 echo "
  1201.                                 </label>
  1202.                                 ";
  1203.                 // line 457
  1204.                 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)) {
  1205.                     // line 458
  1206.                     echo "                                    ";
  1207.                     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); })())) {
  1208.                         // line 459
  1209.                         echo "                                        <label class=\"search-listing-card__attributes_item\">
  1210.                                             <img
  1211.                                                 fetchpriority=\"low\"
  1212.                                                 src=\"/images/BrandsIcons/listing/ic_bedroom.svg\"
  1213.                                                 class=\"search-listing-card__attributes_icon\"
  1214.                                                 alt=\"Listing attributes\"
  1215.                                                 width=\"";
  1216.                         // line 465
  1217.                         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"nulltrue);
  1218.                         echo "\" height=\"";
  1219.                         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"nulltrue);
  1220.                         echo "\"
  1221.                                             />
  1222.                                             ";
  1223.                         // line 467
  1224.                         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"nulltrue);
  1225.                         echo "
  1226.                                         </label>
  1227.                                     ";
  1228.                     }
  1229.                     // line 470
  1230.                     echo "                                    ";
  1231.                     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); })())) {
  1232.                         // line 471
  1233.                         echo "                                        <label class=\"search-listing-card__attributes_item\">
  1234.                                             <img
  1235.                                                 fetchpriority=\"low\"
  1236.                                                 src=\"/images/BrandsIcons/listing/ic_bathroom.svg\"
  1237.                                                 class=\"search-listing-card__attributes_icon\"
  1238.                                                 alt=\"Listing attributes\"
  1239.                                                 width=\"";
  1240.                         // line 477
  1241.                         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"nulltrue);
  1242.                         echo "\" height=\"";
  1243.                         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"nulltrue);
  1244.                         echo "\"
  1245.                                             />
  1246.                                             ";
  1247.                         // line 479
  1248.                         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"nulltrue);
  1249.                         echo "
  1250.                                         </label>
  1251.                                     ";
  1252.                     }
  1253.                     // line 482
  1254.                     echo "                                ";
  1255.                 }
  1256.                 // line 483
  1257.                 echo "                            </div>
  1258.                         ";
  1259.             }
  1260.             // line 485
  1261.             echo "                    </div>
  1262.                 </div>
  1263.             </div>
  1264.             ";
  1265.             // line 488
  1266.             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); })()))) {
  1267.                 // line 489
  1268.                 echo "                <div class=\"search-listing-card__user-properties__container\">
  1269.                     <hr class=\"desktop-separator\">
  1270.                     <div class=\"search-listing-card__user-properties user-properties-container\">
  1271.                         ";
  1272.                 // line 492
  1273.                 $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); })())]));
  1274.                 // line 493
  1275.                 echo "                    </div>
  1276.                 </div>
  1277.             ";
  1278.             }
  1279.             // line 496
  1280.             echo "
  1281.             ";
  1282.             // line 497
  1283.             if ((isset($context["showCtaButtons"]) || array_key_exists("showCtaButtons"$context) ? $context["showCtaButtons"] : (function () { throw new RuntimeError('Variable "showCtaButtons" does not exist.'497$this->source); })())) {
  1284.                 // line 498
  1285.                 echo "                <div class=\"search-listing-card__footer\">
  1286.                     <hr class=\"desktop-separator\">
  1287.                     <div class=\"search-listing-card__cta w-100\">
  1288.                         ";
  1289.                 // line 501
  1290.                 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"falsefalsefalse501))) {
  1291.                     // line 502
  1292.                     echo "                            ";
  1293.                     if ((isset($context["hasWhatsapp"]) || array_key_exists("hasWhatsapp"$context) ? $context["hasWhatsapp"] : (function () { throw new RuntimeError('Variable "hasWhatsapp" does not exist.'502$this->source); })())) {
  1294.                         // line 503
  1295.                         echo "                                <button aria-label=\"text seller by whatsapp\"
  1296.                                     class=\"search-listing-card__cta-button search-listing-card__cta-button_whatsapp whatsapp big\"
  1297.                                     ng-click=\"onSendLead(\$event,{
  1298.                                         leadType:'whatsapp' ,
  1299.                                         actionType:'";
  1300.                         // line 507
  1301.                         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"nulltrue);
  1302.                         echo "' ,
  1303.                                         ";
  1304.                         // line 509
  1305.                         echo "                                        propertySection: '";
  1306.                         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"nulltrue);
  1307.                         echo "' ,
  1308.                                         propertyCategory: '";
  1309.                         // line 510
  1310.                         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"nulltrue);
  1311.                         echo "',
  1312.                                         leadSourcePage: '";
  1313.                         // line 511
  1314.                         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"nulltrue);
  1315.                         echo "' ,
  1316.                                         depthProduct: '";
  1317.                         // line 512
  1318.                         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"nulltrue);
  1319.                         echo "',
  1320.                                         listingId: '";
  1321.                         // line 513
  1322.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse513), "html"nulltrue);
  1323.                         echo "' ,
  1324.                                         insideCompound : '";
  1325.                         // line 514
  1326.                         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"nulltrue);
  1327.                         echo "'
  1328.                                     });\"
  1329.                                     >
  1330.                                     <img
  1331.                                         fetchpriority=\"low\"
  1332.                                         src=\"/images/BrandsIcons/listing/ic_whatsapp.svg\"
  1333.                                         class=\"search-listing-card__cta-button_whatsapp_icon\"
  1334.                                         alt=\"";
  1335.                         // line 521
  1336.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.lead.whatsApp"), "html"nulltrue);
  1337.                         echo "\"
  1338.                                         width=\"";
  1339.                         // line 522
  1340.                         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"nulltrue);
  1341.                         echo "\" height=\"";
  1342.                         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"nulltrue);
  1343.                         echo "\"
  1344.                                     />
  1345.                                     ";
  1346.                         // line 524
  1347.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.lead.whatsApp"), "html"nulltrue);
  1348.                         echo "
  1349.                                 </button>
  1350.                                 <div class=\"vertical-separator\"></div>
  1351.                             ";
  1352.                     }
  1353.                     // line 528
  1354.                     echo "                            ";
  1355.                     $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); })()));
  1356.                     // line 529
  1357.                     echo "                            <button class=\"";
  1358.                     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"nulltrue);
  1359.                     echo "\" aria-label=\"show seller phone\"
  1360.                                 submit-text=\"";
  1361.                     // line 530
  1362.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.show_seller_phone"), "html"nulltrue);
  1363.                     echo "\"
  1364.                                 ng-click=\"searchActionType = 'showNumber';
  1365.                                         onSendLead(\$event,{
  1366.                                             leadType:'call' ,
  1367.                                             actionType:'";
  1368.                     // line 534
  1369.                     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"nulltrue);
  1370.                     echo "' ,
  1371.                                             leadSourcePage: '";
  1372.                     // line 535
  1373.                     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"nulltrue);
  1374.                     echo "' ,
  1375.                                             propertySection: '";
  1376.                     // line 536
  1377.                     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"nulltrue);
  1378.                     echo "' ,
  1379.                                             propertyCategory: '";
  1380.                     // line 537
  1381.                     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"nulltrue);
  1382.                     echo "',
  1383.                                             depthProduct: '";
  1384.                     // line 538
  1385.                     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"nulltrue);
  1386.                     echo "',
  1387.                                             ";
  1388.                     // line 540
  1389.                     echo "                                            listingId: '";
  1390.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse540), "html"nulltrue);
  1391.                     echo "' ,
  1392.                                             insideCompound : '";
  1393.                     // line 541
  1394.                     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"nulltrue);
  1395.                     echo "'
  1396.                                         });\"
  1397.                                 ng-if=\"!phoneShowed[";
  1398.                     // line 544
  1399.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse544), "html"nulltrue);
  1400.                     echo "]\"
  1401.                                 data-gtm-listing-id=\"";
  1402.                     // line 545
  1403.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse545), "html"nulltrue);
  1404.                     echo "\">
  1405.                                 <img
  1406.                                     fetchpriority=\"low\"
  1407.                                     src=\"/images/BrandsIcons/listing/ic_phone.svg\"
  1408.                                     class=\"search-listing-card__cta-button_call_icon\"
  1409.                                     alt=\"";
  1410.                     // line 550
  1411.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.show_seller_phone"), "html"nulltrue);
  1412.                     echo "\"
  1413.                                     width=\"";
  1414.                     // line 551
  1415.                     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"nulltrue);
  1416.                     echo "\" height=\"";
  1417.                     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"nulltrue);
  1418.                     echo "\"
  1419.                                 />
  1420.                                 <span class=\"cta-button-text\"> ";
  1421.                     // line 553
  1422.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.show_seller_phone"), "html"nulltrue);
  1423.                     echo "</span>
  1424.                             </button>
  1425.                             <button class=\"";
  1426.                     // line 555
  1427.                     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"nulltrue);
  1428.                     echo "\" aria-label=\"seller phone\"
  1429.                                 ng-cloak
  1430.                                 ng-click=\"showPhoneModalByListingId(";
  1431.                     // line 557
  1432.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse557), "html"nulltrue);
  1433.                     echo ")\"
  1434.                                 ng-if=\"phoneShowed[";
  1435.                     // line 558
  1436.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse558), "html"nulltrue);
  1437.                     echo "]\">
  1438.                                 <img
  1439.                                     fetchpriority=\"low\"
  1440.                                     src=\"/images/BrandsIcons/listing/ic_phone.svg\"
  1441.                                     class=\"search-listing-card__cta-button_call_icon\"
  1442.                                     alt=\"";
  1443.                     // line 563
  1444.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.show_seller_phone"), "html"nulltrue);
  1445.                     echo "\"
  1446.                                     width=\"";
  1447.                     // line 564
  1448.                     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"nulltrue);
  1449.                     echo "\" height=\"";
  1450.                     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"nulltrue);
  1451.                     echo "\"
  1452.                                 />
  1453.                                 <span class=\"cta-button-text\"> ";
  1454.                     // line 566
  1455.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.show_seller_phone"), "html"nulltrue);
  1456.                     echo "</span>
  1457.                             </button>
  1458.                         ";
  1459.                 } else {
  1460.                     // line 569
  1461.                     echo "                            <button aria-label=\"request seller call\"
  1462.                                 class=\"search-listing-card__cta-button search-listing-card__cta-button_call-request big m-0\"
  1463.                                 ng-hide=\"callRequested[";
  1464.                     // line 571
  1465.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse571), "html"nulltrue);
  1466.                     echo "]\"
  1467.                                 ng-click=\"searchActionType = 'sendRequest';
  1468.                                     onSendLead(\$event,{
  1469.                                         leadType:'request_call' ,
  1470.                                         actionType:'";
  1471.                     // line 575
  1472.                     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"nulltrue);
  1473.                     echo "' ,
  1474.                                         ";
  1475.                     // line 577
  1476.                     echo "                                        leadSourcePage: '";
  1477.                     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"nulltrue);
  1478.                     echo "' ,
  1479.                                         propertySection: '";
  1480.                     // line 578
  1481.                     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"nulltrue);
  1482.                     echo "' ,
  1483.                                         propertyCategory: '";
  1484.                     // line 579
  1485.                     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"nulltrue);
  1486.                     echo "',
  1487.                                         depthProduct: '";
  1488.                     // line 580
  1489.                     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"nulltrue);
  1490.                     echo "',
  1491.                                         listingId: '";
  1492.                     // line 581
  1493.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse581), "html"nulltrue);
  1494.                     echo "' ,
  1495.                                         insideCompound : '";
  1496.                     // line 582
  1497.                     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"nulltrue);
  1498.                     echo "'
  1499.                                     });\"
  1500.                                 >
  1501.                                 <img
  1502.                                     fetchpriority=\"low\"
  1503.                                     src=\"/images/BrandsIcons/listing/ic_phone.svg\"
  1504.                                     class=\"search-listing-card__cta-button_call_icon\"
  1505.                                     alt=\"";
  1506.                     // line 589
  1507.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.lead.call_request"), "html"nulltrue);
  1508.                     echo "\"
  1509.                                     width=\"";
  1510.                     // line 590
  1511.                     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"nulltrue);
  1512.                     echo "\" height=\"";
  1513.                     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"nulltrue);
  1514.                     echo "\"
  1515.                                 />
  1516.                                 <span ng-hide=\"callRequested[";
  1517.                     // line 592
  1518.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse592), "html"nulltrue);
  1519.                     echo "]\" class=\"cta-button-text\"> ";
  1520.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.lead.call_request"), "html"nulltrue);
  1521.                     echo " </span>
  1522.                             </button>
  1523.                             <button  aria-label=\"seller call requested\"
  1524.                                 class=\"search-listing-card__cta-button big success ng-hide\"
  1525.                                 ng-show=\"callRequested[";
  1526.                     // line 596
  1527.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "id", [], "any"falsefalsefalse596), "html"nulltrue);
  1528.                     echo "]\"
  1529.                                 type= \"button\"
  1530.                                 disabled
  1531.                                 >
  1532.                                 <i class=\"fa fa-check circle-badge success\"></i>
  1533.                                 <span class=\"mx-1\"> ";
  1534.                     // line 601
  1535.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.lead.call_requested"), "html"nulltrue);
  1536.                     echo "  </span>
  1537.                             </button>
  1538.                         ";
  1539.                 }
  1540.                 // line 604
  1541.                 echo "                    </div>
  1542.                 </div>
  1543.             ";
  1544.             }
  1545.             // line 607
  1546.             echo "        </div>
  1547.         ";
  1548.             // line 610
  1549.             echo "        ";
  1550.             if ((isset($context["isEnabledElasticScoringDebug"]) || array_key_exists("isEnabledElasticScoringDebug"$context) ? $context["isEnabledElasticScoringDebug"] : (function () { throw new RuntimeError('Variable "isEnabledElasticScoringDebug" does not exist.'610$this->source); })())) {
  1551.                 // line 611
  1552.                 echo "            ";
  1553.                 $this->loadTemplate("@AqarmapListing/ListingSearch/listingElasticScore.html.twig""@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig"611)->display($context);
  1554.                 // line 612
  1555.                 echo "        ";
  1556.             }
  1557.             // line 613
  1558.             echo "    </div>
  1559.     ";
  1560.             // line 614
  1561.             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); })()))) {
  1562.                 // line 615
  1563.                 echo "        <div class=\"text-center col-12 visible-sm visible-xs\" style=\"margin-bottom: 24px;\">
  1564.             ";
  1565.                 // line 616
  1566.                 if (($this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("general""country") == "SA")) {
  1567.                     // line 617
  1568.                     echo "                <div id='div-gpt-ad-1611049193067-0' style='width: 320px; height: 320px;  margin: 0 auto 10px;'>
  1569.                     <script>
  1570.                         setTimeout(function() {
  1571.                             if (typeof googletag !== 'undefined') {
  1572.                                 googletag.cmd.push(function() { googletag.display('div-gpt-ad-1611049193067-0'); });
  1573.                             }
  1574.                         }, 3000);
  1575.                     </script>
  1576.                 </div>
  1577.             ";
  1578.                 } else {
  1579.                     // line 627
  1580.                     echo "                <div id='div-gpt-ad-1588541966744-0' style='width: 320px; height: 320px; margin: 0 auto 10px;'>
  1581.                     <script type=\"application/javascript\" v-pre defer>
  1582.                         setTimeout(function() {
  1583.                             if (typeof googletag !== 'undefined') {
  1584.                                 googletag.cmd.push(function() { googletag.display('div-gpt-ad-1588541966744-0'); });
  1585.                             }
  1586.                         }, 3000);
  1587.                     </script>
  1588.                 </div>
  1589.             ";
  1590.                 }
  1591.                 // line 637
  1592.                 echo "        </div>
  1593.         ";
  1594.                 // line 638
  1595.                 $context["isInFeedAdAappeared"] = true;
  1596.                 // line 639
  1597.                 echo "    ";
  1598.             }
  1599.             // line 640
  1600.             echo "    ";
  1601.             $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->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse640), [], "array"falsefalsefalse640), "main", [], "any"falsefalsefalse640), "file", [], "any"falsefalsefalse640), "file"), "search-thumb-webp")) : (((twig_get_attribute($this->env$this->source$context["listing"], "mainPhoto", [], "any"falsefalsefalse640)) ? ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "mainPhoto", [], "any"falsefalsefalse640), "file", [], "any"falsefalsefalse640), "file"), "search-thumb-webp")) : (""))));
  1602.             // line 641
  1603.             echo "    ";
  1604.             $this->displayBlock('headScripts'$context$blocks);
  1605.             ++$context['loop']['index0'];
  1606.             ++$context['loop']['index'];
  1607.             $context['loop']['first'] = false;
  1608.             if (isset($context['loop']['length'])) {
  1609.                 --$context['loop']['revindex0'];
  1610.                 --$context['loop']['revindex'];
  1611.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  1612.             }
  1613.         }
  1614.         $_parent $context['_parent'];
  1615.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listing'], $context['_parent'], $context['loop']);
  1616.         $context array_intersect_key($context$_parent) + $_parent;
  1617.         // line 666
  1618.         echo "
  1619. ";
  1620.         
  1621.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1622.         
  1623.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1624.     }
  1625.     // line 641
  1626.     public function block_headScripts($context, array $blocks = [])
  1627.     {
  1628.         $macros $this->macros;
  1629.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1630.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headScripts"));
  1631.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1632.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headScripts"));
  1633.         // line 642
  1634.         echo "        <script type=\"application/ld+json\">
  1635.             {
  1636.                 \"@context\": \"https://schema.org\",
  1637.                 \"@type\": \"SingleFamilyResidence\",
  1638.                 \"name\" : \"";
  1639.         // line 646
  1640.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse646), "html"nulltrue);
  1641.         echo "\",
  1642.                 \"image\": \"";
  1643.         // line 647
  1644.         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"nulltrue);
  1645.         echo "\",
  1646.                 \"url\": \"";
  1647.         // line 648
  1648.         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"nulltrue);
  1649.         echo "\",
  1650.                 \"address\": {
  1651.                     \"@type\": \"PostalAddress\",
  1652.                     \"name\": \"";
  1653.         // line 651
  1654.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse651), "title", [], "any"falsefalsefalse651), "html"nulltrue);
  1655.         echo "\"
  1656.                 },
  1657.                 \"geo\": {
  1658.                     \"@type\": \"GeoCoordinates\",
  1659.                     \"latitude\": \"";
  1660.         // line 655
  1661.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse655), "centerLat", [], "any"falsefalsefalse655), "html"nulltrue);
  1662.         echo "\",
  1663.                     \"longitude\": \"";
  1664.         // line 656
  1665.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse656), "centerLng", [], "any"falsefalsefalse656), "html"nulltrue);
  1666.         echo "\"
  1667.                 },
  1668.                 \"floorSize\": {
  1669.                     \"@type\": \"QuantitativeValue\",
  1670.                     \"value\": \"";
  1671.         // line 660
  1672.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse660), "html"nulltrue);
  1673.         echo "\"
  1674.                 }
  1675.             }
  1676.         </script>
  1677.     ";
  1678.         
  1679.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1680.         
  1681.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1682.     }
  1683.     // line 36
  1684.     public function macro_userLogo($__imgLink__ null$__disableLazyLoadImgIndex__ null$__listingUserPhotoSize__ null$__listingId__ null$__classList__ "", ...$__varargs__)
  1685.     {
  1686.         $macros $this->macros;
  1687.         $context $this->env->mergeGlobals([
  1688.             "imgLink" => $__imgLink__,
  1689.             "disableLazyLoadImgIndex" => $__disableLazyLoadImgIndex__,
  1690.             "listingUserPhotoSize" => $__listingUserPhotoSize__,
  1691.             "listingId" => $__listingId__,
  1692.             "classList" => $__classList__,
  1693.             "varargs" => $__varargs__,
  1694.         ]);
  1695.         $blocks = [];
  1696.         ob_start();
  1697.         try {
  1698.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1699.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""userLogo"));
  1700.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1701.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""userLogo"));
  1702.             // line 37
  1703.             echo "    <div class=\"search-listing-card__logo ";
  1704.             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"nulltrue);
  1705.             echo "\">
  1706.         <img
  1707.             ";
  1708.             // line 39
  1709.             if ((isset($context["disableLazyLoadImgIndex"]) || array_key_exists("disableLazyLoadImgIndex"$context) ? $context["disableLazyLoadImgIndex"] : (function () { throw new RuntimeError('Variable "disableLazyLoadImgIndex" does not exist.'39$this->source); })())) {
  1710.                 // line 40
  1711.                 echo "                src=\"";
  1712.                 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"nulltrue);
  1713.                 echo "\"
  1714.             ";
  1715.             } else {
  1716.                 // line 42
  1717.                 echo "                class=\"lazyload\"
  1718.                 src=\"\"
  1719.                 data-src=\"";
  1720.                 // line 44
  1721.                 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"nulltrue);
  1722.                 echo "\"
  1723.             ";
  1724.             }
  1725.             // line 46
  1726.             echo "            width=\"";
  1727.             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"nulltrue);
  1728.             echo "\"
  1729.             height=\"";
  1730.             // line 47
  1731.             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"nulltrue);
  1732.             echo "\"
  1733.             alt=\"user-logo-";
  1734.             // line 48
  1735.             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"nulltrue);
  1736.             echo "\"
  1737.             fetchpriority=\"low\"
  1738.         >
  1739.     </div>
  1740. ";
  1741.             
  1742.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1743.             
  1744.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1745.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  1746.         } finally {
  1747.             ob_end_clean();
  1748.         }
  1749.     }
  1750.     public function getTemplateName()
  1751.     {
  1752.         return "@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig";
  1753.     }
  1754.     public function isTraitable()
  1755.     {
  1756.         return false;
  1757.     }
  1758.     public function getDebugInfo()
  1759.     {
  1760.         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,);
  1761.     }
  1762.     public function getSourceContext()
  1763.     {
  1764.         return new Source("{# Constants #}
  1765. {% set FIRST_LISTING_FOR_FREE_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::FIRST_LISTING_FOR_FREE') %}
  1766. {% set EBAWAB_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::EBAWAB') %}
  1767. {% set UNLIMITED_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::UNLIMITED') %}
  1768. {% set PAID_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::PAID') %}
  1769. {% set PROJECT_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::PROJECTS') %}
  1770. {% set SCRAPPED_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::SCRAPPED') %}
  1771. {% set SPONSORED_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SPONSORED') %}
  1772. {% set FEATURE_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::FEATURED') %}
  1773. {% set PREMIUM_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::PREMIUM') %}
  1774. {% set SPOTLIGHT_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SPOTLIGHT') %}
  1775. {% set SOLD_BY_OWNER_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SOLD_BY_OWNER') %}
  1776. {% set SOLD_BY_OWNER_SPONSORED_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SOLD_BY_OWNER_SPONSORED') %}
  1777. {% set SCRAPPED_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::SCRAPPED') %}
  1778. {% set SHOW_PHONE_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::SHOW_PHONE') %}
  1779. {% set SEND_WHATSAPP_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::WHATSAPP') %}
  1780. {% set CALL_REQUEST_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::CALL_REQUEST') %}
  1781. {% set TOP_VIEWED_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::TOP_VIEWED') %}
  1782. {% set TOP_FAVOURITAED_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::TOP_FAVORITE')  %}
  1783. {% set VALID_PRICE_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::VALID_PRICE')  %}
  1784. {# Toggles #}
  1785. {% set isEnabledSearchResultsActivity = (isEnabledFeature('web.activity.app') and isEnabledFeature('web.search.results.activities')) %}
  1786. {% set isTopCustomerListingsPage = app.request.attributes.get('_route') == 'aqarmap_user_listings' %}
  1787. {% set hideCtaButtons = hideCta is defined and hideCta %}
  1788. {% set isCtaButtonsEnabled = isEnabledFeature('listing_card.lead.button') and not hideCtaButtons %}
  1789. {% set showCtaButtons = isCtaButtonsEnabled %}
  1790. {% set isEnabledElasticScoringDebug = elasticScoringDebug is defined and elasticScoringDebug and app.request.get('esdebug') %}
  1791. {# inFeed #}
  1792. {% set inFeedAdAppearance = 6 %}
  1793. {% set isInFeedAdAappeared = false %}
  1794. {% set scrappedUserName =  \"Aqarmap\" %}
  1795. {# user logo macro #}
  1796. {% macro userLogo(imgLink, disableLazyLoadImgIndex, listingUserPhotoSize, listingId, classList = \"\") %}
  1797.     <div class=\"search-listing-card__logo {{ classList }}\">
  1798.         <img
  1799.             {% if disableLazyLoadImgIndex %}
  1800.                 src=\"{{ imgLink }}\"
  1801.             {% else %}
  1802.                 class=\"lazyload\"
  1803.                 src=\"\"
  1804.                 data-src=\"{{ imgLink }}\"
  1805.             {% endif %}
  1806.             width=\"{{ listingUserPhotoSize }}\"
  1807.             height=\"{{ listingUserPhotoSize }}\"
  1808.             alt=\"user-logo-{{ listingId }}\"
  1809.             fetchpriority=\"low\"
  1810.         >
  1811.     </div>
  1812. {% endmacro %}
  1813. {% for listing in listings %}
  1814.     {% if agent is defined %}
  1815.         {% set listing = listing['listing'] %}
  1816.     {% endif %}
  1817.     {# Listing Toggles #}
  1818.     {% set isCompoundSearchResultsCard = isCompoundSearchResults is defined ? isCompoundSearchResults : false %}
  1819.     {% set isVerified = ((listing.featured == SPONSORED_TYPE) or (listing.featured == SPOTLIGHT_CONSTANT)) and isEnabledFeature('web.show.verified.sign') %}
  1820.     {% set isEligibleForMortgage = isEnabledFeature('web.mortgage.options') and listing.isMortgageApproved  %}
  1821.     {% set isSponsoredCard = loop.index == 1 and not topSellersResults and not isRelatedResults and (listing.featured == SPONSORED_TYPE or listing.featured == SOLD_BY_OWNER_SPONSORED_TYPE) %}
  1822.     {% set isListingPhotosDefined = listingPhotos[listing.id] is defined and listingPhotos[listing.id].main is defined %}
  1823.     {% set isListingLogoDefined = listingPhotos[listing.id] is defined and listingPhotos[listing.id].logo is defined %}
  1824.     {% set disableLazyLoadImgIndex = loop.index in [1, 2] %}
  1825.     {% set searchedByOneLocation = isSearchedByOneLocation is defined and isSearchedByOneLocation %}
  1826.     {% if not isCompoundSearchResultsCard %}
  1827.         {% set isPricesWidgetListingTypes = not defaultResults and not topSellersResults and searchedByOneLocation %}
  1828.         {% set mobileFeedadsScreenLocation = loop.index == inFeedAdAppearance %}
  1829.         {% set isMobileFeedadsToggledOn = isEnabledFeature('web.search.mobile.feedads') and isMobile and isUXVersion %}
  1830.         {% set isFeedAdsWithinListingTypes = not defaultResults and not isInFeedAdAappeared %}
  1831.         {% set showMobileFeedads = isMobileFeedadsToggledOn and isFeedAdsWithinListingTypes and mobileFeedadsScreenLocation %}
  1832.     {% endif %}
  1833.     {# Listing Vars #}
  1834.     {% set listingCategory =   listing.category %}
  1835.     {% set urlSource = app.request.query.get(\"source\") ? app.request.query.get(\"source\") : ''%}
  1836.     {% set containerSource = source is defined ? source : null %}
  1837.     {% set leadSources = containerSource ? [containerSource] : [urlSource] %}
  1838.     {% set financeFeatureValue = get_setting('features', 'finance_service') %}
  1839.     {% set isRelatedToMainListing = isRelatedToListing is defined ? isRelatedToListing : false %}
  1840.     {% set mainListingObj = (isRelatedToMainListing and mainListing is defined) ? mainListing : {} %}
  1841.     {% if isEnabledFeature('listing_card.lead.button') %}
  1842.         {% set listingPhones = isEnabledFeature('listing_user_phones') ? listing.phones : listing.listingPhones %}
  1843.     {% else %}
  1844.         {% set listingPhones = [] %}
  1845.     {% endif %}
  1846.     {% set listingPhone = null %}
  1847.     {% if listingPhones is not empty %}
  1848.         {% set listingPhone = listingPhones|first %}
  1849.     {% endif %}
  1850.     {% if listing.slug %}
  1851.         {% 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}) %}
  1852.     {% else %}
  1853.         {% set LISTING_URL = isRelatedResults ? path('listing_view', {'id': listing.id}|merge({'relatedseaarchlisting': true})) : path('listing_view', {'id': listing.id}) %}
  1854.     {% endif %}
  1855.     {% if isRelatedToMainListing %}
  1856.             {% set LISTING_URL = LISTING_URL ~ '?source=listing-related' %}
  1857.     {% endif %}
  1858.     {% set relatedListingAnalytics = isRelatedResults ? 'gtm-btn-related-result-listing-click' : '' %}
  1859.     {% set relatedListingClass = isRelatedResults ? 'related-listing__card' : '' %}
  1860.     {% set searchListingCardClass = isTopPicksResults is defined and isTopPicksResults ? 'search-listing-card  top-picks-card' : 'search-listing-card search-listing-card_mb-xl' %}
  1861.     {% set listingEvents = [{'isFired':isVerified , 'trigger': 'gtm-btn-verified-listing-click' }] %}
  1862.     {% set listingPhotoSize = 110 %}
  1863.     {% set iconSize = 24 %}
  1864.     {% set listingUserPhotoSize = 32 %}
  1865.     {% set neighborhoodAppearance = 9 %}
  1866.     {% set isExcludeWhatsappFromListing = isEnabledFeature('web.whatsapp.chat.exclude') and listing.getIsExcludedFromWhatsApp %}
  1867.     {% set acceptedWhatsAppFeature = not isExcludeWhatsappFromListing or not isEnabledFeature('web.whatsapp.chat.exclude') %}
  1868.     {% set isEnabledSendByWhatsapp = isEnabledFeature('web.whats.app.chat') and acceptedWhatsAppFeature %}
  1869.     {% if isEnabledSendByWhatsapp %}
  1870.         {% if (listing.user.getWhatsAppNumber) %}
  1871.             {% set whatsAppNumber = listing.user.getWhatsAppNumber.getPhone.getNumber %}
  1872.         {% endif %}
  1873.         {% set hasWhatsapp = listing.user.getWhatsAppNumber %}
  1874.     {% else %}
  1875.         {% set hasWhatsapp = false %}
  1876.     {% endif %}
  1877.     {% set callBtnClass = not hasWhatsapp ? 'big': '' %}
  1878.     {% set callBtnText = not hasWhatsapp ? 'listing.show_seller_phone'|trans : \"\" %}
  1879.     {% set isProject = listingCategory == PROJECT_LISTING_CATEGORY %}
  1880.     {% set projectListingChild = listing.parent != null %}
  1881.     {% set notProjectListing = not isProject and not projectListingChild %}
  1882.     {% set strictQuickRegistration = get_setting('features', 'strict_to_quick_registration') %}
  1883.     {% set autoShowPhone = not strictQuickRegistration and notProjectListing  %}
  1884.     {% set isSoldByOwnerType = listing.featured == SOLD_BY_OWNER_TYPE or listing.featured == SOLD_BY_OWNER_SPONSORED_TYPE %}
  1885.     {% set listing_attributes = listing.getAttributesList() %}
  1886.     {% set listing_rooms = (listing_attributes[\"rooms\"]) is defined ? getRoomsLabel(listing_attributes[\"rooms\"]) : '' %}
  1887.     {% set listing_baths = (listing_attributes[\"baths\"]) is defined ? getBathsLabel(listing_attributes[\"baths\"]) : '' %}
  1888.     {% set backgroundClass = 'listing-phone-container_bg-white listing-phone-container_number-gray'%}
  1889.     {% set cardGridSize = cardGridSize is defined ? cardGridSize : 'col-sm-6 col-12' %}
  1890.     {% set showPhotosCount = disablePhotosCount is not defined or not disablePhotosCount %}
  1891.     {% set sellerName = '' %}
  1892.     {% set listingUser = listing.user %}
  1893.     {% set sellerName =  listingUser.fullName %}
  1894.     {% set userLogo = listingUser.logo ? listingUser.logo.file : null %}
  1895.     {% set logo = listing.validUserLogo %}
  1896.     {% set sellerLogo = logo ? logo : userLogo %}
  1897.     {% set sellerUrl = path('aqarmap_user_listings', {'id': listingUser.id})%}
  1898.     {% set joinedData = listingUser.createdAt|date('Y')%}
  1899.     {% set activeListingsCount = liveListingsPerUser[listing.user.id] is defined ? liveListingsPerUser[listing.user.id] : 0 %}
  1900.     {% set leadsCount = listingUser.getClientServedCount() %}
  1901.     {% set encodedSellerPhones = []%}
  1902.     {% for phone in listingPhones %}
  1903.         {% set encodedSellerPhones = encodedSellerPhones | merge([{'number': phone.number|phoneNumberEncode}]) %}
  1904.     {% endfor %}
  1905.     {% set listingLabelType = listing.label %}
  1906.     {% set isListingTopPicks = listing.isTopPicks %}
  1907.     {% set allowListingLabel = isSearchResultsPage and not isListingTopPicks %}
  1908.     {% set isTopFavourited = listingLabelType == TOP_FAVOURITAED_CONST %}
  1909.     {% set isValidPrice = listingLabelType == VALID_PRICE_CONST %}
  1910.     {% set isTopViewed = listingLabelType == TOP_VIEWED_CONST %}
  1911.     {% set labelLeadSource = '' %}
  1912.     {% if isTopFavourited %}
  1913.         {% set labelLeadSource = 'top-favourite' %}
  1914.         {% set leadSources = leadSources|merge([labelLeadSource]) %}
  1915.     {% elseif isValidPrice %}
  1916.         {% set labelLeadSource = 'valid-price' %}
  1917.          {% set leadSources = leadSources|merge([labelLeadSource]) %}
  1918.     {% elseif isTopViewed %}
  1919.         {% set labelLeadSource = 'top-viewed' %}
  1920.         {% set leadSources = leadSources|merge([labelLeadSource]) %}
  1921.     {% endif %}
  1922.     {% set listingPrice = listing.price ?? null  %}
  1923.     {% set listingFeatured = listing.featured  %}
  1924.     {% set isSpotLight = listingFeatured == SPOTLIGHT_CONSTANT %}
  1925.     {% set isSponserd = listingFeatured == SPONSORED_TYPE %}
  1926.     {% set isPremium = listingFeatured == PREMIUM_CONSTANT %}
  1927.     {% set isFeatured = listingFeatured == FEATURE_TYPE %}
  1928.     {% set isPaid = listingCategory == PAID_LISTING_CATEGORY %}
  1929.     {% set isScrapped = listingCategory == SCRAPPED_LISTING_CATEGORY %}
  1930.     {% set isEBawab = listingCategory == EBAWAB_LISTING_CATEGORY %}
  1931.     {% set isUnlimited = listingCategory == UNLIMITED_LISTING_CATEGORY %}
  1932.     {% set isFlf2 = listingCategory == FIRST_LISTING_FOR_FREE_LISTING_CATEGORY %}
  1933.     {# Compounds Listing Vars #}
  1934.     {% if isCompoundSearchResultsCard %}
  1935.         {% set compoundAveragePrices = listing.compoundAveragePrices is defined ? listing.compoundAveragePrices : [] %}
  1936.         {% set isCompoundAveragePrices = compoundAveragePrices is not empty %}
  1937.         {% set showCompoundAveragePrices = false %}
  1938.         {% set compoundField = listing.CompoundField ? listing.CompoundField :{}  %}
  1939.         {% set isEnabledDdeveloperCardData = isCompoundSearchResultsCard and isEnabledFeature('web.developer.card.data') %}
  1940.         {% set isCompoundPlannerPage = isCompoundPlanner is defined and isCompoundPlanner %}
  1941.         {% set elasticScore = isCompoundPlannerPage ? listing.compoundElasticScore|round(2, 'floor') : null %}
  1942.         {% set compoundPrice = listing.CompoundField ? listing.CompoundField.minPrice : null %}
  1943.         {% set listingPrice = compoundPrice ?? listingPrice %}
  1944.     {% endif %}
  1945.     {# gtm events variables #}
  1946.     {% set leadSourcePage = leadSourcePage is defined ? leadSourcePage : \"search_results\"%}
  1947.     {% set propertySectionSlug = isProject ? \"projects\" :  section is defined ? section.slug: listing.section.slug %}
  1948.     {% set propertyCategory = isProject ? \"projects\" :  isScrapped ? \"scrapped\" :
  1949.     isPaid ? \"paid\" : isEBawab ? \"bawab\" : isUnlimited ? \"unlimited\" :
  1950.     isFlf2 ? \"flf2\" : \"free\" %}
  1951.     {% set depthProduct = isFeatured ? \"featured\" : isPremium ? \"premium\" :
  1952.     isSponserd ? \"sponsored\": isSpotLight ? \"spotlight\" : \"regular\" %}
  1953.     {% set insideCompound = isProject or listing.parent != null  %}
  1954.     <div id=\"{{listing.id}}\" class=\"{{ cardGridSize }} {{relatedListingClass}} {{searchListingCardClass}}\"
  1955.          ng-init='setSourceRoute(\"{{ app.request.attributes.get('_route') }}\");'
  1956.         itemscope itemtype=\"https://schema.org/SingleFamilyResidence\">
  1957.          <div class=\"search-listing-card__container\" ng-content-loaded
  1958.                 callback='setListingDetail(\"{{listing.id}}\",{
  1959.                     \"section\": \"{{listing.section.id}}\",
  1960.                     \"sellerPhones\": {{encodedSellerPhones|serialize('json')}},
  1961.                     \"sellerPhone\": \"{{hasWhatsapp  ? whatsAppNumber|phoneNumberEncode : listingPhone ? listingPhone.number|phoneNumberEncode : \"\" }}\",
  1962.                     \"financeUrl\":\"{{listing.getFinancialAidURL()}}\",
  1963.                     \"userEmail\": {{currentUserEmail|json_encode()}},
  1964.                     \"financeFeatureValue\": \"{{financeFeatureValue}}\",
  1965.                     \"listingName\" : {{listing.customSlug|default(listing.id)|serialize()}},
  1966.                     \"listingTitle\" : {{listing.title|serialize()}},
  1967.                     \"listingUser\": {
  1968.                         \"sellerName\" : {{sellerName|serialize()}},
  1969.                         \"sellerLogo\": \"\",
  1970.                         \"sellerUrl\": \"{{sellerUrl}}\",
  1971.                         \"joinedData\":\"{{joinedData}}\",
  1972.                         \"activeListingsCount\": \"{{activeListingsCount}}\",
  1973.                         \"leadsCount\":\"{{leadsCount}}\"
  1974.                     }
  1975.                 })'>
  1976.             <div class=\"search-listing-card__wrapper\">
  1977.                 <a class=\"search-listing-card__container__link {{ relatedListingAnalytics }}\"
  1978.                     onclick=\"elementEvents.fireGTM( 'listingId',{{ listing.id }}, {{ listingEvents|json_encode() }})\"
  1979.                     href=\"{{ LISTING_URL }}\"></a>
  1980.                 <div class=\"search-listing-card__labels\">
  1981.                     {% if isUserHasActiveSubscription %}
  1982.                         {% if listing.featured == PREMIUM_CONSTANT %}
  1983.                             <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
  1984.                                 {{ 'search_results.premium_small'|trans }}
  1985.                             </span>
  1986.                         {% elseif listing.featured == SPOTLIGHT_CONSTANT %}
  1987.                             <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
  1988.                                 {{ 'search_results.spotlight'|trans }}
  1989.                             </span>
  1990.                         {% elseif listing.featured == SPONSORED_TYPE %}
  1991.                             <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
  1992.                                 {{ 'search_results.sponsored'|trans }}
  1993.                             </span>
  1994.                         {% elseif isCompoundSearchResultsCard and listing.featured %}
  1995.                             <span class=\"search-listing-card__labels_card search-listing-card__labels_card_sponsored\">
  1996.                                 {{ 'search_results.featured_small'|trans }}
  1997.                             </span>
  1998.                         {% endif %}
  1999.                         {% if listing.featured == FEATURE_TYPE %}
  2000.                             <span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
  2001.                                 {{ 'search_results.featured_capital'|trans }}
  2002.                             </span>
  2003.                         {% elseif isSoldByOwnerType %}
  2004.                             <span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
  2005.                                 {{ 'search_results.sold_by_owner'|trans }}
  2006.                             </span>
  2007.                         {% endif %}
  2008.                     {% endif %}
  2009.                         {% if isVerified %}
  2010.                         <span class=\"search-listing-card__labels_card search-listing-card__labels_card_verified\">
  2011.                             {{ 'search_results.verified'|trans }}
  2012.                         </span>
  2013.                     {% endif %}
  2014.                     {% if isEligibleForMortgage %}
  2015.                         <span class=\"search-listing-card__labels_card search-listing-card__labels_card_mortgage\">
  2016.                             {{ 'search_results.is_mortgage'|trans }}
  2017.                         </span>
  2018.                     {% endif %}
  2019.                     {% if isRelatedToMainListing %}
  2020.                         <span class=\"search-listing-card__labels_card search-listing-card__labels_card_featured\">
  2021.                             {{ getSimilarLabel(mainListingObj, listing)|trans }}
  2022.                         </span>
  2023.                     {% endif %}
  2024.                 </div>
  2025.                 <div class=\"search-listing-card__img embed-responsive embed-responsive-4by3\">
  2026.                     <div class=\"search-listing-card__img__wrapper embed-responsive-item\">
  2027.                         {% if isListingPhotosDefined %}
  2028.                             {% if disableLazyLoadImgIndex %}
  2029.                                 <picture>
  2030.                                     <source  srcset=\"{{ custom_vich_uploader_asset(listingPhotos[listing.id].main.file, 'file')|thumbnail('search-thumb-webp') }}\"
  2031.                                         type=\"image/webp\">
  2032.                                     <source srcset=\"{{ custom_vich_uploader_asset(listingPhotos[listing.id].main.file, 'file')|thumbnail('search-thumb') }}\"
  2033.                                         type=\"image/jpg\">
  2034.                                     <img
  2035.                                         alt=\"{{ listing.title|excludeNumbers }}\"
  2036.                                         width=\"{{ listingPhotoSize }}\" height=\"{{ listingPhotoSize }}\"
  2037.                                         fetchpriority=\"high\" />
  2038.                                 </picture>
  2039.                             {% else %}
  2040.                                 <picture>
  2041.                                     <source  data-srcset=\"{{ custom_vich_uploader_asset(listingPhotos[listing.id].main.file, 'file')|thumbnail('search-thumb-webp') }}\"
  2042.                                         type=\"image/webp\">
  2043.                                     <source  data-srcset=\"{{ custom_vich_uploader_asset(listingPhotos[listing.id].main.file, 'file')|thumbnail('search-thumb') }}\"
  2044.                                         type=\"image/jpg\">
  2045.                                     <img
  2046.                                         src=\"/images/placeholder.svg\"
  2047.                                         class=\"lazyload\"
  2048.                                         alt=\"{{ listing.title|excludeNumbers }}\"
  2049.                                         width=\"{{ listingPhotoSize }}\" height=\"{{ listingPhotoSize }}\"
  2050.                                         fetchpriority=\"low\" />
  2051.                                 </picture>
  2052.                             {% endif %}
  2053.                         {% elseif listing.mainPhoto %}
  2054.                             {% if disableLazyLoadImgIndex %}
  2055.                                 <picture>
  2056.                                     <source  srcset=\"{{ custom_vich_uploader_asset(listing.mainPhoto.file, 'file')|thumbnail('search-thumb-webp') }}\"
  2057.                                         type=\"image/webp\">
  2058.                                     <source  srcset=\"{{ custom_vich_uploader_asset(listing.mainPhoto.file, 'file')|thumbnail('search-thumb') }}\"
  2059.                                         type=\"image/jpg\">
  2060.                                     <img
  2061.                                         alt=\"{{ listing.title|excludeNumbers }}\"
  2062.                                         width=\"{{ listingPhotoSize }}\" height=\"{{ listingPhotoSize }}\"
  2063.                                         fetchpriority=\"high\" />
  2064.                                 </picture>
  2065.                             {% else %}
  2066.                                 <picture>
  2067.                                     <source  data-srcset=\"{{ custom_vich_uploader_asset(listing.mainPhoto.file, 'file')|thumbnail('search-thumb-webp') }}\"
  2068.                                         type=\"image/webp\">
  2069.                                     <source  data-srcset=\"{{ custom_vich_uploader_asset(listing.mainPhoto.file, 'file')|thumbnail('search-thumb') }}\"
  2070.                                         type=\"image/jpg\">
  2071.                                     <img
  2072.                                         src=\"/images/placeholder.svg\"
  2073.                                         class=\"lazyload\"
  2074.                                         alt=\"{{ listing.title|excludeNumbers }}\"
  2075.                                         width=\"{{ listingPhotoSize }}\" height=\"{{ listingPhotoSize }}\"
  2076.                                         fetchpriority=\"low\" />
  2077.                                 </picture>
  2078.                             {% endif %}
  2079.                         {% else %}
  2080.                             <div class=\"search-listing-card__img__no-photo\">{{ 'layout.no_listing_photo'|trans }}</div>
  2081.                         {% endif %}
  2082.                         {% if showPhotosCount %}
  2083.                             <div class=\"search-listing-card__img__thumbnail search-listing-card__img__thumbnail_bottom\">
  2084.                                 <div class=\"search-listing-card__img__count\">
  2085.                                     <span class=\"fa fa-image\"></span>
  2086.                                     {% if listingPhotosCount[listing.id] is defined %}
  2087.                                         {{ listingPhotosCount[listing.id] }}
  2088.                                     {% else %}
  2089.                                         0
  2090.                                     {% endif %}
  2091.                                 </div>
  2092.                             </div>
  2093.                         {% endif %}
  2094.                     </div>
  2095.                 </div>
  2096.                 <div class=\"search-listing-card__details\">
  2097.                     {% if app.request.attributes.get(\"_route\") != 'aqarmap_user_listings'  %}
  2098.                         {% if isListingLogoDefined %}
  2099.                             {{ _self.userLogo(
  2100.                                 custom_vich_uploader_asset(listingPhotos[listing.id].logo.file, 'file')  | thumbnail('logo'),
  2101.                                 disableLazyLoadImgIndex,
  2102.                                 listingUserPhotoSize,
  2103.                                 listing.id
  2104.                             ) }}
  2105.                         {% elseif listing.validUserLogo %}
  2106.                             {{ _self.userLogo(
  2107.                                 custom_vich_uploader_asset(listing.validUserLogo, 'file')  | thumbnail('logo'),
  2108.                                 disableLazyLoadImgIndex,
  2109.                                 listingUserPhotoSize,
  2110.                                 listing.id
  2111.                             ) }}
  2112.                         {% endif %}
  2113.                     {% endif %}
  2114.                     <div class=\"search-listing-card__details__wrapper\" >
  2115.                         {% if isCompoundSearchResultsCard %}
  2116.                             {% if elasticScore is defined and elasticScore %}
  2117.                                 {% if elasticScore > 80 %}
  2118.                                     <div class=\"matching-score matching-score_high\" role=\"alert\">{{ elasticScore }}% {{ 'listing.compounds_adviser.matching'|trans }}
  2119.                                     </div>
  2120.                                 {% elseif elasticScore < 40 %}
  2121.                                     <div class=\"matching-score matching-score_low\" role=\"alert\">{{ elasticScore }}% {{ 'listing.compounds_adviser.matching'|trans }}
  2122.                                     </div>
  2123.                                 {% else %}
  2124.                                     <div class=\"matching-score matching-score_mid\" role=\"alert\">{{ elasticScore }}% {{ 'listing.compounds_adviser.matching'|trans }}
  2125.                                     </div>
  2126.                                 {% endif %}
  2127.                             {% endif %}
  2128.                             <div class=\"search-listing-card__compound-title\">
  2129.                                 <span> {{ listing.title|fixArabicNumbers|raw }}</span>
  2130.                             </div>
  2131.                             <p class=\"search-listing-card__address search-listing-card__address_compound\">
  2132.                                 <img
  2133.                                     fetchpriority=\"low\"
  2134.                                     src=\"/images/BrandsIcons/listing/ic_location.svg\"
  2135.                                     class=\"search-listing-card__attributes_icon\"
  2136.                                     alt=\"{{ listing.address }}\"
  2137.                                     width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2138.                                 />
  2139.                                 <span> {{ listing.address }} </span>
  2140.                             </p>
  2141.                             {% if showCompoundAveragePrices %}
  2142.                                 <div class=\"search-listing-card__units__wrapper\">
  2143.                                     {% if isCompoundAveragePrices%}
  2144.                                         {% include '@AqarmapListingBundle/Listing/compoundAveragePrices.html.twig' with {'units': compoundAveragePrices} %}
  2145.                                     {% endif %}
  2146.                                 </div>
  2147.                             {% endif %}
  2148.                             <div class=\"search-listing-card__starting-price\">
  2149.                                 {% if listingPrice %}
  2150.                                     {{ 'listing.starting_from'|trans }}
  2151.                                     <span class=\"integer\">{{ listingPrice |number_format }}</span>
  2152.                                     <span>{{ get_setting('general', 'currency')|trans }}</span>
  2153.                                 {% elseif listing.section.searchable %}
  2154.                                     {{ 'listing.call_for_price'|trans }}
  2155.                                 {% endif %}
  2156.                             </div>
  2157.                         {% else %}
  2158.                             {% if allowListingLabel %}
  2159.                                 <div class=\"search-listing-card__best-label\">
  2160.                                     {% if isValidPrice %}
  2161.                                         <img fetchpriority=\"low\" width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2162.                                         src=\"{{ asset('images/picks/ic_money_blue.svg') }}\" alt=\"{{'listing.valid_price'|trans }}\" />
  2163.                                         {{'listing.valid_price'|trans }}
  2164.                                     {% elseif isTopViewed %}
  2165.                                         <img fetchpriority=\"low\" width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2166.                                         src=\"{{ asset('images/picks/analytics-arrow-up_blue.svg') }}\" alt=\"{{'listing.top_viewed'|trans }}\" />
  2167.                                         {{'listing.top_viewed'|trans }}
  2168.                                     {% elseif isTopFavourited %}
  2169.                                         <img fetchpriority=\"low\" width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2170.                                         src=\"{{ asset('images/picks/ic_heart_blue.svg') }}\" alt=\"{{'listing.top_favourite'|trans }}\" />
  2171.                                         {{'listing.top_favourite'|trans }}
  2172.                                     {% endif %}
  2173.                                 </div>
  2174.                             {% endif %}
  2175.                             <div class=\"search-listing-card__price\">
  2176.                                 {% if listing.price %}
  2177.                                     <span class=\"integer\">{{ listing.price|number_format }}</span>
  2178.                                     <span class=\"mx-2\">{{ get_setting('general', 'currency')|trans }}</span>
  2179.                                 {% elseif listing.section.searchable %}
  2180.                                     {{ 'listing.call_for_price'|trans }}
  2181.                                 {% endif %}
  2182.                             </div>
  2183.                             <h2 class=\"search-listing-card__title\">
  2184.                                 {{ listing.title|fixArabicNumbers|raw }}
  2185.                             </h2>
  2186.                             <p class=\"search-listing-card__address\" >
  2187.                                 <img
  2188.                                     fetchpriority=\"low\"
  2189.                                     src=\"/images/BrandsIcons/listing/ic_location.svg\"
  2190.                                     class=\"search-listing-card__attributes_icon\"
  2191.                                     alt=\"{{ listing.address }}\"
  2192.                                     width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2193.                                 />
  2194.                                 <span>{{ listing.address }}</span>
  2195.                             </p>
  2196.                             <div class=\"search-listing-card__attributes\">
  2197.                                 <label class=\"search-listing-card__attributes_item\">
  2198.                                     <img
  2199.                                         fetchpriority=\"low\"
  2200.                                         src=\"/images/BrandsIcons/listing/ic_size.svg\"
  2201.                                         class=\"search-listing-card__attributes_icon\"
  2202.                                         alt=\"Listing attributes\"
  2203.                                         width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2204.                                     />
  2205.                                     {{ listing.area}} {{ get_setting('general', 'measurement_unit')|trans }}
  2206.                                 </label>
  2207.                                 {% if listing_attributes|length > 0 %}
  2208.                                     {% if listing_rooms %}
  2209.                                         <label class=\"search-listing-card__attributes_item\">
  2210.                                             <img
  2211.                                                 fetchpriority=\"low\"
  2212.                                                 src=\"/images/BrandsIcons/listing/ic_bedroom.svg\"
  2213.                                                 class=\"search-listing-card__attributes_icon\"
  2214.                                                 alt=\"Listing attributes\"
  2215.                                                 width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2216.                                             />
  2217.                                             {{ listing_rooms }}
  2218.                                         </label>
  2219.                                     {% endif %}
  2220.                                     {% if listing_baths %}
  2221.                                         <label class=\"search-listing-card__attributes_item\">
  2222.                                             <img
  2223.                                                 fetchpriority=\"low\"
  2224.                                                 src=\"/images/BrandsIcons/listing/ic_bathroom.svg\"
  2225.                                                 class=\"search-listing-card__attributes_icon\"
  2226.                                                 alt=\"Listing attributes\"
  2227.                                                 width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2228.                                             />
  2229.                                             {{ listing_baths }}
  2230.                                         </label>
  2231.                                     {% endif %}
  2232.                                 {% endif %}
  2233.                             </div>
  2234.                         {% endif %}
  2235.                     </div>
  2236.                 </div>
  2237.             </div>
  2238.             {% if isEnabledDdeveloperCardData is defined and isEnabledDdeveloperCardData %}
  2239.                 <div class=\"search-listing-card__user-properties__container\">
  2240.                     <hr class=\"desktop-separator\">
  2241.                     <div class=\"search-listing-card__user-properties user-properties-container\">
  2242.                         {% include '@AqarmapListingBundle/Listing/compoundCardDeveloperData.html.twig' with {'compound': compoundField} %}
  2243.                     </div>
  2244.                 </div>
  2245.             {% endif %}
  2246.             {% if showCtaButtons %}
  2247.                 <div class=\"search-listing-card__footer\">
  2248.                     <hr class=\"desktop-separator\">
  2249.                     <div class=\"search-listing-card__cta w-100\">
  2250.                         {% if listingPhones is not empty and not listing.isCallRequest %}
  2251.                             {% if hasWhatsapp %}
  2252.                                 <button aria-label=\"text seller by whatsapp\"
  2253.                                     class=\"search-listing-card__cta-button search-listing-card__cta-button_whatsapp whatsapp big\"
  2254.                                     ng-click=\"onSendLead(\$event,{
  2255.                                         leadType:'whatsapp' ,
  2256.                                         actionType:'{{ SEND_WHATSAPP_CONSTANT }}' ,
  2257.                                         {# listingType:  {{leadSources|serialize('json')}} , #}
  2258.                                         propertySection: '{{propertySectionSlug}}' ,
  2259.                                         propertyCategory: '{{propertyCategory}}',
  2260.                                         leadSourcePage: '{{leadSourcePage}}' ,
  2261.                                         depthProduct: '{{depthProduct}}',
  2262.                                         listingId: '{{ listing.id }}' ,
  2263.                                         insideCompound : '{{insideCompound}}'
  2264.                                     });\"
  2265.                                     >
  2266.                                     <img
  2267.                                         fetchpriority=\"low\"
  2268.                                         src=\"/images/BrandsIcons/listing/ic_whatsapp.svg\"
  2269.                                         class=\"search-listing-card__cta-button_whatsapp_icon\"
  2270.                                         alt=\"{{ 'label.lead.whatsApp'|trans }}\"
  2271.                                         width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2272.                                     />
  2273.                                     {{ 'label.lead.whatsApp'|trans }}
  2274.                                 </button>
  2275.                                 <div class=\"vertical-separator\"></div>
  2276.                             {% endif %}
  2277.                             {% set phoneBtnClass = 'search-listing-card__cta-button search-listing-card__cta-button_call ' ~ callBtnClass %}
  2278.                             <button class=\"{{ phoneBtnClass }}\" aria-label=\"show seller phone\"
  2279.                                 submit-text=\"{{ 'listing.show_seller_phone'|trans }}\"
  2280.                                 ng-click=\"searchActionType = 'showNumber';
  2281.                                         onSendLead(\$event,{
  2282.                                             leadType:'call' ,
  2283.                                             actionType:'{{ SHOW_PHONE_CONSTANT }}' ,
  2284.                                             leadSourcePage: '{{leadSourcePage}}' ,
  2285.                                             propertySection: '{{propertySectionSlug}}' ,
  2286.                                             propertyCategory: '{{propertyCategory}}',
  2287.                                             depthProduct: '{{depthProduct}}',
  2288.                                             {# listingType:  {{leadSources|serialize('json')}} , #}
  2289.                                             listingId: '{{ listing.id }}' ,
  2290.                                             insideCompound : '{{insideCompound}}'
  2291.                                         });\"
  2292.                                 ng-if=\"!phoneShowed[{{listing.id}}]\"
  2293.                                 data-gtm-listing-id=\"{{ listing.id }}\">
  2294.                                 <img
  2295.                                     fetchpriority=\"low\"
  2296.                                     src=\"/images/BrandsIcons/listing/ic_phone.svg\"
  2297.                                     class=\"search-listing-card__cta-button_call_icon\"
  2298.                                     alt=\"{{ 'listing.show_seller_phone'|trans }}\"
  2299.                                     width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2300.                                 />
  2301.                                 <span class=\"cta-button-text\"> {{ 'listing.show_seller_phone'|trans }}</span>
  2302.                             </button>
  2303.                             <button class=\"{{ phoneBtnClass }}\" aria-label=\"seller phone\"
  2304.                                 ng-cloak
  2305.                                 ng-click=\"showPhoneModalByListingId({{listing.id}})\"
  2306.                                 ng-if=\"phoneShowed[{{listing.id}}]\">
  2307.                                 <img
  2308.                                     fetchpriority=\"low\"
  2309.                                     src=\"/images/BrandsIcons/listing/ic_phone.svg\"
  2310.                                     class=\"search-listing-card__cta-button_call_icon\"
  2311.                                     alt=\"{{ 'listing.show_seller_phone'|trans }}\"
  2312.                                     width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2313.                                 />
  2314.                                 <span class=\"cta-button-text\"> {{ 'listing.show_seller_phone'|trans }}</span>
  2315.                             </button>
  2316.                         {% else %}
  2317.                             <button aria-label=\"request seller call\"
  2318.                                 class=\"search-listing-card__cta-button search-listing-card__cta-button_call-request big m-0\"
  2319.                                 ng-hide=\"callRequested[{{listing.id}}]\"
  2320.                                 ng-click=\"searchActionType = 'sendRequest';
  2321.                                     onSendLead(\$event,{
  2322.                                         leadType:'request_call' ,
  2323.                                         actionType:'{{ CALL_REQUEST_CONSTANT }}' ,
  2324.                                         {# listingType:  {{leadSources|serialize('json')}} , #}
  2325.                                         leadSourcePage: '{{leadSourcePage}}' ,
  2326.                                         propertySection: '{{propertySectionSlug}}' ,
  2327.                                         propertyCategory: '{{propertyCategory}}',
  2328.                                         depthProduct: '{{depthProduct}}',
  2329.                                         listingId: '{{ listing.id }}' ,
  2330.                                         insideCompound : '{{insideCompound}}'
  2331.                                     });\"
  2332.                                 >
  2333.                                 <img
  2334.                                     fetchpriority=\"low\"
  2335.                                     src=\"/images/BrandsIcons/listing/ic_phone.svg\"
  2336.                                     class=\"search-listing-card__cta-button_call_icon\"
  2337.                                     alt=\"{{ 'label.lead.call_request'|trans }}\"
  2338.                                     width=\"{{ iconSize }}\" height=\"{{ iconSize }}\"
  2339.                                 />
  2340.                                 <span ng-hide=\"callRequested[{{listing.id}}]\" class=\"cta-button-text\"> {{ 'label.lead.call_request'|trans }} </span>
  2341.                             </button>
  2342.                             <button  aria-label=\"seller call requested\"
  2343.                                 class=\"search-listing-card__cta-button big success ng-hide\"
  2344.                                 ng-show=\"callRequested[{{listing.id}}]\"
  2345.                                 type= \"button\"
  2346.                                 disabled
  2347.                                 >
  2348.                                 <i class=\"fa fa-check circle-badge success\"></i>
  2349.                                 <span class=\"mx-1\"> {{ 'label.lead.call_requested'|trans }}  </span>
  2350.                             </button>
  2351.                         {% endif %}
  2352.                     </div>
  2353.                 </div>
  2354.             {% endif %}
  2355.         </div>
  2356.         {# elastic scoring debug #}
  2357.         {% if isEnabledElasticScoringDebug %}
  2358.             {% include \"@AqarmapListing/ListingSearch/listingElasticScore.html.twig\" %}
  2359.         {% endif %}
  2360.     </div>
  2361.     {% if showMobileFeedads is defined and showMobileFeedads %}
  2362.         <div class=\"text-center col-12 visible-sm visible-xs\" style=\"margin-bottom: 24px;\">
  2363.             {% if get_setting('general', 'country') == 'SA' %}
  2364.                 <div id='div-gpt-ad-1611049193067-0' style='width: 320px; height: 320px;  margin: 0 auto 10px;'>
  2365.                     <script>
  2366.                         setTimeout(function() {
  2367.                             if (typeof googletag !== 'undefined') {
  2368.                                 googletag.cmd.push(function() { googletag.display('div-gpt-ad-1611049193067-0'); });
  2369.                             }
  2370.                         }, 3000);
  2371.                     </script>
  2372.                 </div>
  2373.             {% else %}
  2374.                 <div id='div-gpt-ad-1588541966744-0' style='width: 320px; height: 320px; margin: 0 auto 10px;'>
  2375.                     <script type=\"application/javascript\" v-pre defer>
  2376.                         setTimeout(function() {
  2377.                             if (typeof googletag !== 'undefined') {
  2378.                                 googletag.cmd.push(function() { googletag.display('div-gpt-ad-1588541966744-0'); });
  2379.                             }
  2380.                         }, 3000);
  2381.                     </script>
  2382.                 </div>
  2383.             {% endif %}
  2384.         </div>
  2385.         {% set isInFeedAdAappeared = true  %}
  2386.     {% endif %}
  2387.     {% 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')  : \"\" %}
  2388.     {% block headScripts %}
  2389.         <script type=\"application/ld+json\">
  2390.             {
  2391.                 \"@context\": \"https://schema.org\",
  2392.                 \"@type\": \"SingleFamilyResidence\",
  2393.                 \"name\" : \"{{listing.title}}\",
  2394.                 \"image\": \"{{listingPhoto}}\",
  2395.                 \"url\": \"{{ absolute_url(LISTING_URL) }}\",
  2396.                 \"address\": {
  2397.                     \"@type\": \"PostalAddress\",
  2398.                     \"name\": \"{{ listing.location.title }}\"
  2399.                 },
  2400.                 \"geo\": {
  2401.                     \"@type\": \"GeoCoordinates\",
  2402.                     \"latitude\": \"{{ listing.location.centerLat }}\",
  2403.                     \"longitude\": \"{{ listing.location.centerLng }}\"
  2404.                 },
  2405.                 \"floorSize\": {
  2406.                     \"@type\": \"QuantitativeValue\",
  2407.                     \"value\": \"{{ listing.area }}\"
  2408.                 }
  2409.             }
  2410.         </script>
  2411.     {% endblock %}
  2412. {% endfor %}
  2413. ""@AqarmapListingBundle/ListingSearch/listingCardVertical.html.twig""/srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Resources/views/ListingSearch/listingCardVertical.html.twig");
  2414.     }
  2415. }