var/cache/dev/twig/ac/ac3632feabd1bea318613d27171b5a9f32bbb29f79c3ea7c2fddb560ab3e6247.php line 487

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. /* @AqarmapListing/Listing/read.html.twig */
  14. class __TwigTemplate_b1f201b571c1c871b9f304e1013325383cfcc848b22f88b15f2b2deaff344ea7 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->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'meta_description' => [$this'block_meta_description'],
  25.             'htmlhead' => [$this'block_htmlhead'],
  26.             'categorizedStylesheets' => [$this'block_categorizedStylesheets'],
  27.             'headerTop' => [$this'block_headerTop'],
  28.             'body' => [$this'block_body'],
  29.             'footer' => [$this'block_footer'],
  30.             'facebookLogin' => [$this'block_facebookLogin'],
  31.             'categorizedJavascripts' => [$this'block_categorizedJavascripts'],
  32.             'javascripts' => [$this'block_javascripts'],
  33.         ];
  34.     }
  35.     protected function doGetParent(array $context)
  36.     {
  37.         // line 1
  38.         return "base.html.twig";
  39.     }
  40.     protected function doDisplay(array $context, array $blocks = [])
  41.     {
  42.         $macros $this->macros;
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AqarmapListing/Listing/read.html.twig"));
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AqarmapListing/Listing/read.html.twig"));
  47.         // line 3
  48.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["quick_registration_form"]) || array_key_exists("quick_registration_form"$context) ? $context["quick_registration_form"] : (function () { throw new RuntimeError('Variable "quick_registration_form" does not exist.'3$this->source); })()), [=> "Form/form_div_layout.html.twig"], true);
  49.         // line 6
  50.         $context["FIRST_LISTING_FOR_FREE_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::FIRST_LISTING_FOR_FREE");
  51.         // line 7
  52.         $context["EBAWAB_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::EBAWAB");
  53.         // line 8
  54.         $context["UNLIMITED_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::UNLIMITED");
  55.         // line 9
  56.         $context["PAID_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::PAID");
  57.         // line 10
  58.         $context["PROJECT_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::PROJECTS");
  59.         // line 11
  60.         $context["SCRAPPED_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::SCRAPPED");
  61.         // line 12
  62.         $context["SHOW_PHONE_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::SHOW_PHONE");
  63.         // line 13
  64.         $context["SEND_MESSAGE_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::SEND_MESSAGE");
  65.         // line 14
  66.         $context["SEND_WHATSAPP_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::WHATSAPP");
  67.         // line 15
  68.         $context["CALL_REQUEST_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::CALL_REQUEST");
  69.         // line 16
  70.         $context["TOP_VIEWED_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::TOP_VIEWED");
  71.         // line 17
  72.         $context["TOP_FAVOURITAED_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::TOP_FAVORITE");
  73.         // line 18
  74.         $context["VALID_PRICE_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::VALID_PRICE");
  75.         // line 19
  76.         $context["SPONSORED_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SPONSORED");
  77.         // line 20
  78.         $context["FEATURE_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::FEATURED");
  79.         // line 21
  80.         $context["PREMIUM_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::PREMIUM");
  81.         // line 22
  82.         $context["SPOTLIGHT_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SPOTLIGHT");
  83.         // line 25
  84.         $context["listingFeatured"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'25$this->source); })()), "featured", [], "any"falsefalsefalse25);
  85.         // line 26
  86.         $context["isSpotLight"] = ((isset($context["listingFeatured"]) || array_key_exists("listingFeatured"$context) ? $context["listingFeatured"] : (function () { throw new RuntimeError('Variable "listingFeatured" does not exist.'26$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.'26$this->source); })()));
  87.         // line 27
  88.         $context["isSponserd"] = ((isset($context["listingFeatured"]) || array_key_exists("listingFeatured"$context) ? $context["listingFeatured"] : (function () { throw new RuntimeError('Variable "listingFeatured" does not exist.'27$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.'27$this->source); })()));
  89.         // line 28
  90.         $context["isPremium"] = ((isset($context["listingFeatured"]) || array_key_exists("listingFeatured"$context) ? $context["listingFeatured"] : (function () { throw new RuntimeError('Variable "listingFeatured" does not exist.'28$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.'28$this->source); })()));
  91.         // line 29
  92.         $context["isFeatured"] = ((isset($context["listingFeatured"]) || array_key_exists("listingFeatured"$context) ? $context["listingFeatured"] : (function () { throw new RuntimeError('Variable "listingFeatured" does not exist.'29$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.'29$this->source); })()));
  93.         // line 30
  94.         $context["listingCategory"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'30$this->source); })()), "category", [], "any"falsefalsefalse30);
  95.         // line 31
  96.         $context["isProject"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory"$context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.'31$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.'31$this->source); })()));
  97.         // line 32
  98.         $context["isPaid"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory"$context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.'32$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.'32$this->source); })()));
  99.         // line 33
  100.         $context["isScrapped"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory"$context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.'33$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.'33$this->source); })()));
  101.         // line 34
  102.         $context["isEBawab"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory"$context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.'34$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.'34$this->source); })()));
  103.         // line 35
  104.         $context["isUnlimited"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory"$context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.'35$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.'35$this->source); })()));
  105.         // line 36
  106.         $context["isFlf2"] = ((isset($context["listingCategory"]) || array_key_exists("listingCategory"$context) ? $context["listingCategory"] : (function () { throw new RuntimeError('Variable "listingCategory" does not exist.'36$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.'36$this->source); })()));
  107.         // line 37
  108.         $context["propertySectionSlug"] = (((isset($context["isProject"]) || array_key_exists("isProject"$context) ? $context["isProject"] : (function () { throw new RuntimeError('Variable "isProject" does not exist.'37$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.'37$this->source); })()), "slug", [], "any"falsefalsefalse37)) : (twig_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.'37$this->source); })()), "section", [], "any"falsefalsefalse37), "slug", [], "any"falsefalsefalse37)))));
  109.         // line 38
  110.         $context["propertyCategory"] = (((isset($context["isProject"]) || array_key_exists("isProject"$context) ? $context["isProject"] : (function () { throw new RuntimeError('Variable "isProject" does not exist.'38$this->source); })())) ? ("projects") : ((((isset($context["isScrapped"]) || array_key_exists("isScrapped"$context) ? $context["isScrapped"] : (function () { throw new RuntimeError('Variable "isScrapped" does not exist.'38$this->source); })())) ? ("scrapped") : (((        // line 39
  111. (isset($context["isPaid"]) || array_key_exists("isPaid"$context) ? $context["isPaid"] : (function () { throw new RuntimeError('Variable "isPaid" does not exist.'39$this->source); })())) ? ("paid") : ((((isset($context["isEBawab"]) || array_key_exists("isEBawab"$context) ? $context["isEBawab"] : (function () { throw new RuntimeError('Variable "isEBawab" does not exist.'39$this->source); })())) ? ("bawab") : ((((isset($context["isUnlimited"]) || array_key_exists("isUnlimited"$context) ? $context["isUnlimited"] : (function () { throw new RuntimeError('Variable "isUnlimited" does not exist.'39$this->source); })())) ? ("unlimited") : (((        // line 40
  112. (isset($context["isFlf2"]) || array_key_exists("isFlf2"$context) ? $context["isFlf2"] : (function () { throw new RuntimeError('Variable "isFlf2" does not exist.'40$this->source); })())) ? ("flf2") : ("free"))))))))))));
  113.         // line 41
  114.         $context["depthProduct"] = (((isset($context["isFeatured"]) || array_key_exists("isFeatured"$context) ? $context["isFeatured"] : (function () { throw new RuntimeError('Variable "isFeatured" does not exist.'41$this->source); })())) ? ("featured") : ((((isset($context["isPremium"]) || array_key_exists("isPremium"$context) ? $context["isPremium"] : (function () { throw new RuntimeError('Variable "isPremium" does not exist.'41$this->source); })())) ? ("premium") : (((        // line 42
  115. (isset($context["isSponserd"]) || array_key_exists("isSponserd"$context) ? $context["isSponserd"] : (function () { throw new RuntimeError('Variable "isSponserd" does not exist.'42$this->source); })())) ? ("sponsored") : ((((isset($context["isSpotLight"]) || array_key_exists("isSpotLight"$context) ? $context["isSpotLight"] : (function () { throw new RuntimeError('Variable "isSpotLight" does not exist.'42$this->source); })())) ? ("spotlight") : ("regular"))))))));
  116.         // line 43
  117.         $context["insideCompound"] = ((isset($context["isProject"]) || array_key_exists("isProject"$context) ? $context["isProject"] : (function () { throw new RuntimeError('Variable "isProject" does not exist.'43$this->source); })()) || (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'43$this->source); })()), "parent", [], "any"falsefalsefalse43) != null));
  118.         // line 46
  119.         $context["sendEmailBtnStyleClasses"] = "btn btn-block btn-lg cta-btn rounded-pill btn-gray";
  120.         // line 47
  121.         $context["phoneBtnStyleClasses"] = "btn btn-block btn-lg cta-btn rounded-pill btn-primary";
  122.         // line 49
  123.         $context["forRent"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingSections::FOR_RENT");
  124.         // line 50
  125.         $context["PROJECT_LISTING_CHILD"] = (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'50$this->source); })()), "parent", [], "any"falsefalsefalse50) != null);
  126.         // line 51
  127.         $context["isListingHasChildren"] =  !twig_test_empty((isset($context["liveUnitsPaginated"]) || array_key_exists("liveUnitsPaginated"$context) ? $context["liveUnitsPaginated"] : (function () { throw new RuntimeError('Variable "liveUnitsPaginated" does not exist.'51$this->source); })()));
  128.         // line 52
  129.         $context["PROJECT_LISTING_PARENT"] = (isset($context["isListingHasChildren"]) || array_key_exists("isListingHasChildren"$context) ? $context["isListingHasChildren"] : (function () { throw new RuntimeError('Variable "isListingHasChildren" does not exist.'52$this->source); })());
  130.         // line 53
  131.         $context["IS_PROJECT"] = ((twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'53$this->source); })()), "category", [], "any"falsefalsefalse53) == (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.'53$this->source); })())) || (isset($context["PROJECT_LISTING_CHILD"]) || array_key_exists("PROJECT_LISTING_CHILD"$context) ? $context["PROJECT_LISTING_CHILD"] : (function () { throw new RuntimeError('Variable "PROJECT_LISTING_CHILD" does not exist.'53$this->source); })()));
  132.         // line 54
  133.         $context["IS_PROJECT_PARENT"] = ((isset($context["PROJECT_LISTING_PARENT"]) || array_key_exists("PROJECT_LISTING_PARENT"$context) ? $context["PROJECT_LISTING_PARENT"] : (function () { throw new RuntimeError('Variable "PROJECT_LISTING_PARENT" does not exist.'54$this->source); })()) || (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'54$this->source); })()), "category", [], "any"falsefalsefalse54) == (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.'54$this->source); })())));
  134.         // line 55
  135.         $context["isScrapped"] = (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'55$this->source); })()), "category", [], "any"falsefalsefalse55) == (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.'55$this->source); })()));
  136.         // line 56
  137.         $context["parentId"] = ((twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'56$this->source); })()), "parent", [], "any"falsefalsefalse56)) ? (twig_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.'56$this->source); })()), "parent", [], "any"falsefalsefalse56), "id", [], "any"falsefalsefalse56)) : (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'56$this->source); })()), "id", [], "any"falsefalsefalse56)));
  138.         // line 57
  139.         $context["parentTitle"] = ((twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'57$this->source); })()), "parent", [], "any"falsefalsefalse57)) ? (twig_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.'57$this->source); })()), "parent", [], "any"falsefalsefalse57), "title", [], "any"falsefalsefalse57)) : (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'57$this->source); })()), "title", [], "any"falsefalsefalse57)));
  140.         // line 58
  141.         $context["isEnabledActivityToggles"] = ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.activity.app") && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.my.activities.build"));
  142.         // line 59
  143.         $context["isEnabledActivityListingPageToggles"] = ((isset($context["isEnabledActivityToggles"]) || array_key_exists("isEnabledActivityToggles"$context) ? $context["isEnabledActivityToggles"] : (function () { throw new RuntimeError('Variable "isEnabledActivityToggles" does not exist.'59$this->source); })()) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.listing.page.activities"));
  144.         // line 60
  145.         $context["isEnabledActivityListingPage"] = ((isset($context["isEnabledActivityListingPageToggles"]) || array_key_exists("isEnabledActivityListingPageToggles"$context) ? $context["isEnabledActivityListingPageToggles"] : (function () { throw new RuntimeError('Variable "isEnabledActivityListingPageToggles" does not exist.'60$this->source); })()) &&  !(isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'60$this->source); })()));
  146.         // line 61
  147.         $context["isEnabledLazyloadingActivitiesBuild"] = $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.async.vueapp");
  148.         // line 62
  149.         $context["isUnitsTabsEnabled"] = ((isset($context["IS_PROJECT"]) || array_key_exists("IS_PROJECT"$context) ? $context["IS_PROJECT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT" does not exist.'62$this->source); })()) && ((isset($context["PROJECT_LISTING_PARENT"]) || array_key_exists("PROJECT_LISTING_PARENT"$context) ? $context["PROJECT_LISTING_PARENT"] : (function () { throw new RuntimeError('Variable "PROJECT_LISTING_PARENT" does not exist.'62$this->source); })()) ||  !(isset($context["PROJECT_LISTING_CHILD"]) || array_key_exists("PROJECT_LISTING_CHILD"$context) ? $context["PROJECT_LISTING_CHILD"] : (function () { throw new RuntimeError('Variable "PROJECT_LISTING_CHILD" does not exist.'62$this->source); })())));
  150.         // line 63
  151.         $context["hasResaleUnits"] = (twig_length_filter($this->env, (isset($context["resaleUnitsPaginated"]) || array_key_exists("resaleUnitsPaginated"$context) ? $context["resaleUnitsPaginated"] : (function () { throw new RuntimeError('Variable "resaleUnitsPaginated" does not exist.'63$this->source); })())) > 0);
  152.         // line 64
  153.         $context["hasRentUnits"] = (twig_length_filter($this->env, (isset($context["rentUnitsPaginated"]) || array_key_exists("rentUnitsPaginated"$context) ? $context["rentUnitsPaginated"] : (function () { throw new RuntimeError('Variable "rentUnitsPaginated" does not exist.'64$this->source); })())) > 0);
  154.         // line 65
  155.         $context["hasPrimaryUnits"] = (twig_length_filter($this->env, (isset($context["liveUnitsPaginated"]) || array_key_exists("liveUnitsPaginated"$context) ? $context["liveUnitsPaginated"] : (function () { throw new RuntimeError('Variable "liveUnitsPaginated" does not exist.'65$this->source); })())) > 0);
  156.         // line 66
  157.         $context["isPrimaryUnitsSoldOut"] =  !(isset($context["hasPrimaryUnits"]) || array_key_exists("hasPrimaryUnits"$context) ? $context["hasPrimaryUnits"] : (function () { throw new RuntimeError('Variable "hasPrimaryUnits" does not exist.'66$this->source); })());
  158.         // line 67
  159.         $context["isRentUnitsSoldOut"] =  !(isset($context["hasRentUnits"]) || array_key_exists("hasRentUnits"$context) ? $context["hasRentUnits"] : (function () { throw new RuntimeError('Variable "hasRentUnits" does not exist.'67$this->source); })());
  160.         // line 68
  161.         $context["isResaleUnitsSoldOut"] =  !(isset($context["hasResaleUnits"]) || array_key_exists("hasResaleUnits"$context) ? $context["hasResaleUnits"] : (function () { throw new RuntimeError('Variable "hasResaleUnits" does not exist.'68$this->source); })());
  162.         // line 69
  163.         $context["isUnitsSoldOut"] = ((((isset($context["isUnitsTabsEnabled"]) || array_key_exists("isUnitsTabsEnabled"$context) ? $context["isUnitsTabsEnabled"] : (function () { throw new RuntimeError('Variable "isUnitsTabsEnabled" does not exist.'69$this->source); })()) && (isset($context["isRentUnitsSoldOut"]) || array_key_exists("isRentUnitsSoldOut"$context) ? $context["isRentUnitsSoldOut"] : (function () { throw new RuntimeError('Variable "isRentUnitsSoldOut" does not exist.'69$this->source); })())) && (isset($context["isResaleUnitsSoldOut"]) || array_key_exists("isResaleUnitsSoldOut"$context) ? $context["isResaleUnitsSoldOut"] : (function () { throw new RuntimeError('Variable "isResaleUnitsSoldOut" does not exist.'69$this->source); })())) && (isset($context["isPrimaryUnitsSoldOut"]) || array_key_exists("isPrimaryUnitsSoldOut"$context) ? $context["isPrimaryUnitsSoldOut"] : (function () { throw new RuntimeError('Variable "isPrimaryUnitsSoldOut" does not exist.'69$this->source); })()));
  164.         // line 70
  165.         $context["isPrimaryUnitsOnly"] = (((isset($context["hasPrimaryUnits"]) || array_key_exists("hasPrimaryUnits"$context) ? $context["hasPrimaryUnits"] : (function () { throw new RuntimeError('Variable "hasPrimaryUnits" does not exist.'70$this->source); })()) && (isset($context["isRentUnitsSoldOut"]) || array_key_exists("isRentUnitsSoldOut"$context) ? $context["isRentUnitsSoldOut"] : (function () { throw new RuntimeError('Variable "isRentUnitsSoldOut" does not exist.'70$this->source); })())) && (isset($context["isResaleUnitsSoldOut"]) || array_key_exists("isResaleUnitsSoldOut"$context) ? $context["isResaleUnitsSoldOut"] : (function () { throw new RuntimeError('Variable "isResaleUnitsSoldOut" does not exist.'70$this->source); })()));
  166.         // line 71
  167.         $context["isPrimarySoldOutCta"] = ((isset($context["isUnitsTabsEnabled"]) || array_key_exists("isUnitsTabsEnabled"$context) ? $context["isUnitsTabsEnabled"] : (function () { throw new RuntimeError('Variable "isUnitsTabsEnabled" does not exist.'71$this->source); })()) && (isset($context["isPrimaryUnitsSoldOut"]) || array_key_exists("isPrimaryUnitsSoldOut"$context) ? $context["isPrimaryUnitsSoldOut"] : (function () { throw new RuntimeError('Variable "isPrimaryUnitsSoldOut" does not exist.'71$this->source); })()));
  168.         // line 72
  169.         $context["isListingCallRequest"] = (((isset($context["isUnitsTabsEnabled"]) || array_key_exists("isUnitsTabsEnabled"$context) ? $context["isUnitsTabsEnabled"] : (function () { throw new RuntimeError('Variable "isUnitsTabsEnabled" does not exist.'72$this->source); })()) && (isset($context["isPrimaryUnitsSoldOut"]) || array_key_exists("isPrimaryUnitsSoldOut"$context) ? $context["isPrimaryUnitsSoldOut"] : (function () { throw new RuntimeError('Variable "isPrimaryUnitsSoldOut" does not exist.'72$this->source); })())) || twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'72$this->source); })()), "isCallRequest", [], "any"falsefalsefalse72));
  170.         // line 73
  171.         $context["isEligibleForMortgage"] = ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.mortgage.options") && twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'73$this->source); })()), "isMortgageApproved", [], "any"falsefalsefalse73));
  172.         // line 74
  173.         $context["isEnabledCompoundBuild"] = ((isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'74$this->source); })()) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.compound.listingpage.build"));
  174.         // line 76
  175.         $context["propertyType"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'76$this->source); })()), "propertyType", [], "any"falsefalsefalse76);
  176.         // line 77
  177.         $context["propertyTypeId"] = twig_get_attribute($this->env$this->source, (isset($context["propertyType"]) || array_key_exists("propertyType"$context) ? $context["propertyType"] : (function () { throw new RuntimeError('Variable "propertyType" does not exist.'77$this->source); })()), "id", [], "any"falsefalsefalse77);
  178.         // line 79
  179.         $context["section"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'79$this->source); })()), "section", [], "any"falsefalsefalse79);
  180.         // line 80
  181.         $context["sectionId"] = 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.'80$this->source); })()), "id", [], "any"falsefalsefalse80);
  182.         // line 82
  183.         $context["location"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'82$this->source); })()), "location", [], "any"falsefalsefalse82);
  184.         // line 83
  185.         $context["locationId"] = twig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'83$this->source); })()), "id", [], "any"falsefalsefalse83);
  186.         // line 85
  187.         $context["isCompaniesDataParamsDefined"] = true;
  188.         // line 87
  189.         $context["isListingForRent"] = ((isset($context["sectionId"]) || array_key_exists("sectionId"$context) ? $context["sectionId"] : (function () { throw new RuntimeError('Variable "sectionId" does not exist.'87$this->source); })()) == (isset($context["forRent"]) || array_key_exists("forRent"$context) ? $context["forRent"] : (function () { throw new RuntimeError('Variable "forRent" does not exist.'87$this->source); })()));
  190.         // line 88
  191.         $context["listingParent"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'88$this->source); })()), "parent", [], "any"falsefalsefalse88);
  192.         // line 89
  193.         $context["compoundField"] = (((isset($context["listingParent"]) || array_key_exists("listingParent"$context) ? $context["listingParent"] : (function () { throw new RuntimeError('Variable "listingParent" does not exist.'89$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["listingParent"]) || array_key_exists("listingParent"$context) ? $context["listingParent"] : (function () { throw new RuntimeError('Variable "listingParent" does not exist.'89$this->source); })()), "CompoundField", [], "any"falsefalsefalse89)) : (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'89$this->source); })()), "CompoundField", [], "any"falsefalsefalse89)));
  194.         // line 90
  195.         $context["showSellerInfo"] = ( !(isset($context["IS_PROJECT"]) || array_key_exists("IS_PROJECT"$context) ? $context["IS_PROJECT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT" does not exist.'90$this->source); })()) &&  !(isset($context["isScrapped"]) || array_key_exists("isScrapped"$context) ? $context["isScrapped"] : (function () { throw new RuntimeError('Variable "isScrapped" does not exist.'90$this->source); })()));
  196.         // line 91
  197.         $context["showTopSearchableCompaniesList"] = true;
  198.         // line 92
  199.         $context["listingPhones"] = (($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("listing_user_phones")) ? (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'92$this->source); })()), "phones", [], "any"falsefalsefalse92)) : (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'92$this->source); })()), "listingPhones", [], "any"falsefalsefalse92)));
  200.         // line 93
  201.         $context["listingPhone"] = null;
  202.         // line 94
  203.         if ( !twig_test_empty((isset($context["listingPhones"]) || array_key_exists("listingPhones"$context) ? $context["listingPhones"] : (function () { throw new RuntimeError('Variable "listingPhones" does not exist.'94$this->source); })()))) {
  204.             // line 95
  205.             $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.'95$this->source); })()));
  206.         }
  207.         // line 97
  208.         $context["financeFeatureValue"] = $this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("features""finance_service");
  209.         // line 98
  210.         $context["ALLOWED_LISTING_SECTIONS_TO_ADD_FINANCE_URL"] = twig_constant("Aqarmap\\Bundle\\FinancialAidsBundle\\Constant\\FinancialAidConstraints::ALLOWED_LISTING_SECTIONS_TO_ADD_FINANCE_URL");
  211.         // line 99
  212.         $context["showListingDetails"] = ( !(isset($context["isListingHasChildren"]) || array_key_exists("isListingHasChildren"$context) ? $context["isListingHasChildren"] : (function () { throw new RuntimeError('Variable "isListingHasChildren" does not exist.'99$this->source); })()) &&  !(isset($context["isUnitsTabsEnabled"]) || array_key_exists("isUnitsTabsEnabled"$context) ? $context["isUnitsTabsEnabled"] : (function () { throw new RuntimeError('Variable "isUnitsTabsEnabled" does not exist.'99$this->source); })()));
  213.         // line 100
  214.         $context["isSearchableListing"] = (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.'100$this->source); })()), "searchable", [], "any"falsefalsefalse100) == true);
  215.         // line 101
  216.         $context["metaTitle"] = twig_sprintf("%s %s %s . %s"twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'101$this->source); })()), "title", [], "any"falsefalsefalse101), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.in"), (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'101$this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name"));
  217.         // line 102
  218.         $context["metaDescription"] = $this->env->getRuntime('Twig\Extra\Markdown\MarkdownRuntime')->convert(twig_nl2br(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.'102$this->source); })()), "description", [], "any"falsefalsefalse102), "html"nulltrue)));
  219.         // line 103
  220.         if ((isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'103$this->source); })())) {
  221.             // line 104
  222.             if (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'104$this->source); })()), "metaTitle", [], "any"falsefalsefalse104)) {
  223.                 // line 105
  224.                 $context["metaTitle"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.project_listing_details_title_with_suffix", ["%project%" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'105$this->source); })()), "metaTitle", [], "any"falsefalsefalse105)]);
  225.             } else {
  226.                 // line 107
  227.                 $context["metaTitle"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.project_listing_details_title", ["%project%" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'107$this->source); })()), "title", [], "any"falsefalsefalse107)]);
  228.             }
  229.             // line 109
  230.             if (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'109$this->source); })()), "metaDescription", [], "any"falsefalsefalse109)) {
  231.                 // line 110
  232.                 $context["metaDescription"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'110$this->source); })()), "metaDescription", [], "any"falsefalsefalse110);
  233.             }
  234.         }
  235.         // line 119
  236.         $context["enable_project_faqs"] = (((isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'119$this->source); })()) && array_key_exists("compoundFaqs"$context)) && twig_length_filter($this->env, (isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs"$context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.'119$this->source); })())));
  237.         // line 121
  238.         if ((isset($context["enable_project_faqs"]) || array_key_exists("enable_project_faqs"$context) ? $context["enable_project_faqs"] : (function () { throw new RuntimeError('Variable "enable_project_faqs" does not exist.'121$this->source); })())) {
  239.             // line 122
  240.             $context["project_faqs"] = [=> ((twig_get_attribute($this->env$this->source,             // line 123
  241. (isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs"$context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.'123$this->source); })()), "location", [], "any"falsefalsefalse123)) ? (["@type" => "Question""name" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.faqs_project_page.location_count.name", ["%project%" => twig_get_attribute($this->env$this->source,             // line 126
  242. (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'126$this->source); })()), "title", [], "any"falsefalsefalse126)]), "acceptedAnswer" => ["@type" => "Answer""text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.faqs_project_page.location_count.answer", ["%project%" => twig_get_attribute($this->env$this->source,             // line 131
  243. (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'131$this->source); })()), "title", [], "any"falsefalsefalse131), "%location%" => twig_get_attribute($this->env$this->source,             // line 132
  244. (isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs"$context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.'132$this->source); })()), "location", [], "any"falsefalsefalse132)])]]) : ([])), => ((twig_get_attribute($this->env$this->source,             // line 136
  245. (isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs"$context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.'136$this->source); })()), "minimumUnitPrice", [], "any"falsefalsefalse136)) ? (["@type" => "Question""name" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.faqs_project_page.start_price.name", ["%project%" => twig_get_attribute($this->env$this->source,             // line 139
  246. (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'139$this->source); })()), "title", [], "any"falsefalsefalse139)]), "acceptedAnswer" => ["@type" => "Answer""text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.faqs_project_page.start_price.answer", ["%project%" => twig_get_attribute($this->env$this->source,             // line 144
  247. (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'144$this->source); })()), "title", [], "any"falsefalsefalse144), "%starting_price%" => twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source,             // line 145
  248. (isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs"$context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.'145$this->source); })()), "minimumUnitPrice", [], "any"falsefalsefalse145))])]]) : ([])), => ((twig_get_attribute($this->env$this->source,             // line 149
  249. (isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs"$context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.'149$this->source); })()), "minimumUnitArea", [], "any"falsefalsefalse149)) ? (["@type" => "Question""name" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.faqs_project_page.start_area.name", ["%project%" => twig_get_attribute($this->env$this->source,             // line 152
  250. (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'152$this->source); })()), "title", [], "any"falsefalsefalse152)]), "acceptedAnswer" => ["@type" => "Answer""text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.faqs_project_page.start_area.answer", ["%project%" => twig_get_attribute($this->env$this->source,             // line 157
  251. (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'157$this->source); })()), "title", [], "any"falsefalsefalse157), "%starting_area%" => twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source,             // line 158
  252. (isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs"$context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.'158$this->source); })()), "minimumUnitArea", [], "any"falsefalsefalse158))])]]) : ([])), => ((twig_get_attribute($this->env$this->source,             // line 162
  253. (isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs"$context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.'162$this->source); })()), "lastUpdate", [], "any"falsefalsefalse162)) ? (["@type" => "Question""name" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.faqs_project_page.data_updated.name"), "acceptedAnswer" => ["@type" => "Answer""text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.faqs_project_page.data_updated.answer", ["%project%" => twig_get_attribute($this->env$this->source,             // line 168
  254. (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'168$this->source); })()), "title", [], "any"falsefalsefalse168), "%date%" => twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source,             // line 169
  255. (isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs"$context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.'169$this->source); })()), "lastUpdate", [], "any"falsefalsefalse169), "m/d/Y")])]]) : ([])), => ((twig_get_attribute($this->env$this->source,             // line 173
  256. (isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs"$context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.'173$this->source); })()), "constructionStatus", [], "any"falsefalsefalse173)) ? (["@type" => "Question""name" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.faqs_project_page.status.name", ["%project%" => twig_get_attribute($this->env$this->source,             // line 176
  257. (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'176$this->source); })()), "title", [], "any"falsefalsefalse176)]), "acceptedAnswer" => ["@type" => "Answer""text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.faqs_project_page.status.answer", ["%project%" => twig_get_attribute($this->env$this->source,             // line 181
  258. (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'181$this->source); })()), "title", [], "any"falsefalsefalse181), "%status%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source,             // line 182
  259. (isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs"$context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.'182$this->source); })()), "constructionStatus", [], "any"falsefalsefalse182))])]]) : ([]))];
  260.         }
  261.         // line 234
  262.         $context["CTA_block"] = "";
  263.         // line 1
  264.         $this->parent $this->loadTemplate("base.html.twig""@AqarmapListing/Listing/read.html.twig"1);
  265.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  266.         
  267.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  268.         
  269.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  270.     }
  271.     // line 113
  272.     public function block_title($context, array $blocks = [])
  273.     {
  274.         $macros $this->macros;
  275.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  276.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  277.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  278.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  279.         echo twig_escape_filter($this->env, (isset($context["metaTitle"]) || array_key_exists("metaTitle"$context) ? $context["metaTitle"] : (function () { throw new RuntimeError('Variable "metaTitle" does not exist.'113$this->source); })()), "html"nulltrue);
  280.         
  281.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  282.         
  283.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  284.     }
  285.     // line 115
  286.     public function block_meta_description($context, array $blocks = [])
  287.     {
  288.         $macros $this->macros;
  289.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  290.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_description"));
  291.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  292.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_description"));
  293.         // line 116
  294.         echo "    ";
  295.         echo twig_escape_filter($this->env, (isset($context["metaDescription"]) || array_key_exists("metaDescription"$context) ? $context["metaDescription"] : (function () { throw new RuntimeError('Variable "metaDescription" does not exist.'116$this->source); })()), "html"nulltrue);
  296.         echo "
  297. ";
  298.         
  299.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  300.         
  301.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  302.     }
  303.     // line 189
  304.     public function block_htmlhead($context, array $blocks = [])
  305.     {
  306.         $macros $this->macros;
  307.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  308.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""htmlhead"));
  309.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  310.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""htmlhead"));
  311.         // line 190
  312.         echo "    ";
  313.         $context["LISTING_CATEGORIES_SCRAPPED"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::SCRAPPED");
  314.         // line 191
  315.         echo "    <meta name=\"twitter:card\" content=\"summary_large_image\" />
  316.     <meta name=\"twitter:site\" content=\"";
  317.         // line 192
  318.         echo twig_escape_filter($this->envtwig_sprintf("%s%s""@"$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name")), "html"nulltrue);
  319.         echo "\" />
  320.     <meta name=\"twitter:creator\" content=\"";
  321.         // line 193
  322.         echo twig_escape_filter($this->envtwig_sprintf("%s%s""@"$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name")), "html"nulltrue);
  323.         echo "\" />
  324.     <meta property=\"og:title\" content=\"";
  325.         // line 194
  326.         echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'194$this->source); })()), "category", [], "any"falsefalsefalse194) == (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.'194$this->source); })()))) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.project_listing_details_title", ["%project%" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'194$this->source); })()), "title", [], "any"falsefalsefalse194)])) : (twig_sprintf("%s %s %s . %s"twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'194$this->source); })()), "title", [], "any"falsefalsefalse194), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.in"), (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'194$this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name")))), "html"nulltrue);
  327.         echo "\"/>
  328.     <meta property=\"og:description\" content=\"";
  329.         // line 195
  330.         echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'195$this->source); })()), "category", [], "any"falsefalsefalse195) == (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.'195$this->source); })()))) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.compound_guide.sharing.description_location", ["%compound%" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'195$this->source); })()), "title", [], "any"falsefalsefalse195), "%location%" => (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'195$this->source); })())])) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.sharing.description", ["%location%" => (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'195$this->source); })())]))), "html"nulltrue);
  331.         echo "\" />
  332.     <meta property=\"og:url\" content=\"";
  333.         // line 196
  334.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("listing_slug", ["id" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'196$this->source); })()), "id", [], "any"falsefalsefalse196), "slug" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'196$this->source); })()), "slug", [], "any"falsefalsefalse196)]), "html"nulltrue);
  335.         echo "\" />
  336.     <meta property=\"og:site_name\" content=\"";
  337.         // line 197
  338.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name"), "html"nulltrue);
  339.         echo "\" />
  340.     <meta property=\"fb:app_id\" content=\"";
  341.         // line 198
  342.         echo twig_escape_filter($this->env, (isset($context["facebook_app_id"]) || array_key_exists("facebook_app_id"$context) ? $context["facebook_app_id"] : (function () { throw new RuntimeError('Variable "facebook_app_id" does not exist.'198$this->source); })()), "html"nulltrue);
  343.         echo "\"/>
  344.     <meta property=\"og:image\" content=\"";
  345.         // line 199
  346.         echo twig_escape_filter($this->env$this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->getSharingImage((isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'199$this->source); })())), "html"nulltrue);
  347.         echo "\" />
  348.     ";
  349.         // line 200
  350.         if ($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->shouldAddNoIndex((isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'200$this->source); })()))) {
  351.             // line 201
  352.             echo "        <meta name=\"robots\" content=\"noindex, nofollow\">
  353.     ";
  354.         }
  355.         // line 203
  356.         echo "
  357.     <link rel=\"canonical\" href=\"";
  358.         // line 204
  359.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("listing_slug", ["id" => (isset($context["parentId"]) || array_key_exists("parentId"$context) ? $context["parentId"] : (function () { throw new RuntimeError('Variable "parentId" does not exist.'204$this->source); })()), "slug" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'204$this->source); })()), "slug", [], "any"falsefalsefalse204)]), "html"nulltrue);
  360.         echo "\"/>
  361.     <link rel=\"shortlink\" href=\"";
  362.         // line 205
  363.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("listing_view", ["id" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'205$this->source); })()), "id", [], "any"falsefalsefalse205)]), "html"nulltrue);
  364.         echo "\"/>
  365.     ";
  366.         // line 206
  367.         if (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'206$this->source); })()), "slug", [], "any"falsefalsefalse206)) {
  368.             // line 207
  369.             echo "        <link rel=\"alternate\" hreflang=\"ar\" href=\"";
  370.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("listing_slug", ["id" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'207$this->source); })()), "id", [], "any"falsefalsefalse207), "slug" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'207$this->source); })()), "slug", [], "any"falsefalsefalse207), "_locale" => "ar"]), "html"nulltrue);
  371.             echo "\"/>
  372.         <link rel=\"alternate\" hreflang=\"en\" href=\"";
  373.             // line 208
  374.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("listing_slug", ["id" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'208$this->source); })()), "id", [], "any"falsefalsefalse208), "slug" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'208$this->source); })()), "slug", [], "any"falsefalsefalse208), "_locale" => "en"]), "html"nulltrue);
  375.             echo "\"/>
  376.         <link rel=\"alternate\" hreflang=\"x-default\"
  377.             href=\"";
  378.             // line 210
  379.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("listing_slug", ["id" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'210$this->source); })()), "id", [], "any"falsefalsefalse210), "slug" => twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'210$this->source); })()), "slug", [], "any"falsefalsefalse210), "_locale" => "ar"]), "html"nulltrue);
  380.             echo "\"/>
  381.     ";
  382.         }
  383.         // line 212
  384.         echo "    ";
  385.         if ((isset($context["enable_project_faqs"]) || array_key_exists("enable_project_faqs"$context) ? $context["enable_project_faqs"] : (function () { throw new RuntimeError('Variable "enable_project_faqs" does not exist.'212$this->source); })())) {
  386.             // line 213
  387.             echo "        <script type=\"application/ld+json\">
  388.             {
  389.                 \"@context\": \"https://schema.org\",
  390.                 \"@type\": \"FAQPage\",
  391.                 \"mainEntity\": ";
  392.             // line 217
  393.             echo json_encode((isset($context["project_faqs"]) || array_key_exists("project_faqs"$context) ? $context["project_faqs"] : (function () { throw new RuntimeError('Variable "project_faqs" does not exist.'217$this->source); })()));
  394.             echo "
  395.             }
  396.         </script>
  397.     ";
  398.         }
  399.         
  400.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  401.         
  402.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  403.     }
  404.     // line 222
  405.     public function block_categorizedStylesheets($context, array $blocks = [])
  406.     {
  407.         $macros $this->macros;
  408.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  409.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""categorizedStylesheets"));
  410.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  411.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""categorizedStylesheets"));
  412.         // line 223
  413.         echo "    ";
  414.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("activitiesApp");
  415.         echo "
  416.     ";
  417.         // line 224
  418.         if ((isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'224$this->source); })())) {
  419.             // line 225
  420.             echo "        <link rel=\"stylesheet\" href=\"";
  421.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("builds/css/projectDetailsBuild" . (((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'225$this->source); })()), "environment", [], "any"falsefalsefalse225) == "dev")) ? ("") : (".min"))) . ".css")), "html"nulltrue);
  422.             echo "\" />
  423.     ";
  424.         } else {
  425.             // line 227
  426.             echo "        <link rel=\"stylesheet\" href=\"";
  427.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("builds/css/listingDetailsBuild" . (((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'227$this->source); })()), "environment", [], "any"falsefalsefalse227) == "dev")) ? ("") : (".min"))) . ".css")), "html"nulltrue);
  428.             echo "\" />
  429.     ";
  430.         }
  431.         
  432.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  433.         
  434.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  435.     }
  436.     // line 231
  437.     public function block_headerTop($context, array $blocks = [])
  438.     {
  439.         $macros $this->macros;
  440.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  441.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerTop"));
  442.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  443.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerTop"));
  444.         
  445.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  446.         
  447.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  448.     }
  449.     // line 235
  450.     public function block_body($context, array $blocks = [])
  451.     {
  452.         $macros $this->macros;
  453.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  454.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  455.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  456.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  457.         // line 236
  458.         echo "    ";
  459.         $context["markupType"] = "SingleFamilyResidence";
  460.         // line 237
  461.         echo "    ";
  462.         $context["STATUS_LIVE_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingStatus::LIVE");
  463.         // line 238
  464.         echo "    ";
  465.         $context["PHOTO_MAIN_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\PhotoTypes::MAIN_PHOTO");
  466.         // line 239
  467.         echo "    ";
  468.         $context["STATUS_PENDING_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingStatus::PENDING");
  469.         // line 240
  470.         echo "    ";
  471.         $context["STATUS_USER_DELETED_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingStatus::USER_DELETED");
  472.         // line 241
  473.         echo "    ";
  474.         $context["PREMIUM_LISTING"] =  !(isset($context["isSearchableListing"]) || array_key_exists("isSearchableListing"$context) ? $context["isSearchableListing"] : (function () { throw new RuntimeError('Variable "isSearchableListing" does not exist.'241$this->source); })());
  475.         // line 242
  476.         echo "    ";
  477.         if ((isset($context["PREMIUM_LISTING"]) || array_key_exists("PREMIUM_LISTING"$context) ? $context["PREMIUM_LISTING"] : (function () { throw new RuntimeError('Variable "PREMIUM_LISTING" does not exist.'242$this->source); })())) {
  478.             echo " ";
  479.             $context["markupType"] = "GatedResidenceCommunity";
  480.             echo " ";
  481.         }
  482.         // line 243
  483.         echo "    ";
  484.         if (( !(isset($context["isSearchableListing"]) || array_key_exists("isSearchableListing"$context) ? $context["isSearchableListing"] : (function () { throw new RuntimeError('Variable "isSearchableListing" does not exist.'243$this->source); })()) || (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'243$this->source); })()), "parent", [], "any"falsefalsefalse243) &&  !twig_get_attribute($this->env$this->sourcetwig_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.'243$this->source); })()), "parent", [], "any"falsefalsefalse243), "section", [], "any"falsefalsefalse243), "searchable", [], "any"falsefalsefalse243)))) {
  485.             // line 244
  486.             echo "        ";
  487.             $context["LEAD_LISTING"] = true;
  488.             // line 245
  489.             echo "    ";
  490.         } else {
  491.             // line 246
  492.             echo "        ";
  493.             $context["LEAD_LISTING"] = false;
  494.             // line 247
  495.             echo "    ";
  496.         }
  497.         // line 248
  498.         echo "    ";
  499.         $context["STATUS_EXPIRED_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingStatus::USER_DELETED");
  500.         // line 249
  501.         echo "    ";
  502.         $context["LISTING_CATEGORIES_SCRAPPED"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::SCRAPPED");
  503.         // line 250
  504.         echo "    ";
  505.         $context["topCompaniesEnabled"] =  !$this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("features""top_companies");
  506.         // line 251
  507.         echo "    ";
  508.         $context["currentUser"] = twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'251$this->source); })()), "user", [], "any"falsefalsefalse251);
  509.         // line 252
  510.         echo "    ";
  511.         $context["currentUserEmail"] = (((isset($context["currentUser"]) || array_key_exists("currentUser"$context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.'252$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["currentUser"]) || array_key_exists("currentUser"$context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.'252$this->source); })()), "email", [], "any"falsefalsefalse252)) : (""));
  512.         // line 253
  513.         echo "    ";
  514.         if ((isset($context["isListingHasChildren"]) || array_key_exists("isListingHasChildren"$context) ? $context["isListingHasChildren"] : (function () { throw new RuntimeError('Variable "isListingHasChildren" does not exist.'253$this->source); })())) {
  515.             // line 254
  516.             echo "            ";
  517.             $context["sharingEvent"] = "compound-details";
  518.             // line 255
  519.             echo "        ";
  520.         } else {
  521.             // line 256
  522.             echo "            ";
  523.             $context["sharingEvent"] = "listing-details";
  524.             // line 257
  525.             echo "    ";
  526.         }
  527.         // line 258
  528.         $context["showTopSellersModal"] = ((isset($context["topSearchableCompaniesCount"]) || array_key_exists("topSearchableCompaniesCount"$context) ? $context["topSearchableCompaniesCount"] : (function () { throw new RuntimeError('Variable "topSearchableCompaniesCount" does not exist.'258$this->source); })()) &&  !(null === (isset($context["searchableLocation"]) || array_key_exists("searchableLocation"$context) ? $context["searchableLocation"] : (function () { throw new RuntimeError('Variable "searchableLocation" does not exist.'258$this->source); })())));
  529.         // line 259
  530.         $context["showRegisterSurvey"] = $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.registration.survey");
  531.         // line 260
  532.         $context["country"] = twig_lower_filter($this->env$this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("general""country"));
  533.         // line 261
  534.         $context["sellerName"] = "";
  535.         // line 262
  536.         $context["listingUser"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'262$this->source); })()), "user", [], "any"falsefalsefalse262);
  537.         // line 263
  538.         $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.'263$this->source); })()), "fullName", [], "any"falsefalsefalse263);
  539.         // line 264
  540.         $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.'264$this->source); })()), "logo", [], "any"falsefalsefalse264)) ? (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.'264$this->source); })()), "logo", [], "any"falsefalsefalse264), "file", [], "any"falsefalsefalse264)) : (null));
  541.         // line 265
  542.         $context["logo"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'265$this->source); })()), "validUserLogo", [], "any"falsefalsefalse265);
  543.         // line 266
  544.         $context["sellerLogo"] = (((isset($context["logo"]) || array_key_exists("logo"$context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.'266$this->source); })())) ? ((isset($context["logo"]) || array_key_exists("logo"$context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.'266$this->source); })())) : ((isset($context["userLogo"]) || array_key_exists("userLogo"$context) ? $context["userLogo"] : (function () { throw new RuntimeError('Variable "userLogo" does not exist.'266$this->source); })())));
  545.         // line 267
  546.         $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.'267$this->source); })()), "id", [], "any"falsefalsefalse267)]);
  547.         // line 268
  548.         $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.'268$this->source); })()), "createdAt", [], "any"falsefalsefalse268), "Y");
  549.         // line 269
  550.         $context["listingMainPhoto"] = "#";
  551.         // line 270
  552.         if (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'270$this->source); })()), "mainPhoto", [], "any"falsefalsefalse270)) {
  553.             // line 271
  554.             echo "    ";
  555.             $context["listingMainPhoto"] = $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, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'271$this->source); })()), "mainPhoto", [], "any"falsefalsefalse271), "file", [], "any"falsefalsefalse271), "file"), "search-thumb");
  556.         }
  557.         // line 273
  558.         $context["listing_attributes"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'273$this->source); })()), "getAttributesList", [], "method"falsefalsefalse273);
  559.         // line 274
  560.         $context["listing_floor"] = ((twig_get_attribute($this->env$this->source, ($context["listing_attributes"] ?? null), "floor", [], "array"truetruefalse274)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->getFloorLabel(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.'274$this->source); })()), "floor", [], "array"falsefalsefalse274)))) : (""));
  561.         // line 275
  562.         $context["listing_year_built"] = ((twig_get_attribute($this->env$this->source, ($context["listing_attributes"] ?? null), "year-built", [], "array"truetruefalse275)) ? (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.'275$this->source); })()), "year-built", [], "array"falsefalsefalse275)) : (""));
  563.         // line 276
  564.         $context["listing_baths"] = ((twig_get_attribute($this->env$this->source, ($context["listing_attributes"] ?? null), "baths", [], "array"truetruefalse276)) ? ($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.'276$this->source); })()), "baths", [], "array"falsefalsefalse276))) : (""));
  565.         // line 277
  566.         $context["listing_rooms"] = ((twig_get_attribute($this->env$this->source, ($context["listing_attributes"] ?? null), "rooms", [], "array"truetruefalse277)) ? ($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.'277$this->source); })()), "rooms", [], "array"falsefalsefalse277))) : (""));
  567.         // line 278
  568.         $context["listing_finish_type"] = ((twig_get_attribute($this->env$this->source, ($context["listing_attributes"] ?? null), "finish-type", [], "array"truetruefalse278)) ? (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.'278$this->source); })()), "finish-type", [], "array"falsefalsefalse278)) : (""));
  569.         // line 279
  570.         $context["topSellerTrigger"] = "gtm-action-topsellers-lead-listing-details";
  571.         // line 280
  572.         $context["topSellerEventAction"] = "ListingDetails";
  573.         // line 281
  574.         $context["listingHasPhotos"] = (twig_length_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.'281$this->source); })()), "photosForSlider", [], "any"falsefalsefalse281)) > 0);
  575.         // line 282
  576.         $context["ABtestingClasses"] = "listing-details-ab-testing-master virtical-related-listing virtical-related-listing_option-1";
  577.         // line 283
  578.         $context["encodedSellerPhones"] = [];
  579.         // line 284
  580.         $context['_parent'] = $context;
  581.         $context['_seq'] = twig_ensure_traversable((isset($context["listingPhones"]) || array_key_exists("listingPhones"$context) ? $context["listingPhones"] : (function () { throw new RuntimeError('Variable "listingPhones" does not exist.'284$this->source); })()));
  582.         foreach ($context['_seq'] as $context["_key"] => $context["phone"]) {
  583.             // line 285
  584.             echo "        ";
  585.             $context["encodedSellerPhones"] = twig_array_merge((isset($context["encodedSellerPhones"]) || array_key_exists("encodedSellerPhones"$context) ? $context["encodedSellerPhones"] : (function () { throw new RuntimeError('Variable "encodedSellerPhones" does not exist.'285$this->source); })()), [=> ["number" => $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->phoneNumberEncode(twig_get_attribute($this->env$this->source$context["phone"], "number", [], "any"falsefalsefalse285))]]);
  586.         }
  587.         $_parent $context['_parent'];
  588.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phone'], $context['_parent'], $context['loop']);
  589.         $context array_intersect_key($context$_parent) + $_parent;
  590.         // line 287
  591.         $context["listingLabelType"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'287$this->source); })()), "label", [], "any"falsefalsefalse287);
  592.         // line 288
  593.         $context["isListingTopPicks"] = twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'288$this->source); })()), "isTopPicks", [], "any"falsefalsefalse288);
  594.         // line 289
  595.         $context["allowListingLabel"] = (((isset($context["listingLabelType"]) || array_key_exists("listingLabelType"$context) ? $context["listingLabelType"] : (function () { throw new RuntimeError('Variable "listingLabelType" does not exist.'289$this->source); })()) &&  !(isset($context["isListingTopPicks"]) || array_key_exists("isListingTopPicks"$context) ? $context["isListingTopPicks"] : (function () { throw new RuntimeError('Variable "isListingTopPicks" does not exist.'289$this->source); })())) &&  !(isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'289$this->source); })()));
  596.         // line 290
  597.         $context["isTopFavourited"] = ((isset($context["listingLabelType"]) || array_key_exists("listingLabelType"$context) ? $context["listingLabelType"] : (function () { throw new RuntimeError('Variable "listingLabelType" does not exist.'290$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.'290$this->source); })()));
  598.         // line 291
  599.         $context["isValidPrice"] = ((isset($context["listingLabelType"]) || array_key_exists("listingLabelType"$context) ? $context["listingLabelType"] : (function () { throw new RuntimeError('Variable "listingLabelType" does not exist.'291$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.'291$this->source); })()));
  600.         // line 292
  601.         $context["isTopViewed"] = ((isset($context["listingLabelType"]) || array_key_exists("listingLabelType"$context) ? $context["listingLabelType"] : (function () { throw new RuntimeError('Variable "listingLabelType" does not exist.'292$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.'292$this->source); })()));
  602.         // line 293
  603.         $context["listingLabelUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("search"twig_array_merge(["section_slug" => 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.'293$this->source); })()), "slug", [], "any"falsefalsefalse293), "property_type_slug" => twig_get_attribute($this->env$this->source, (isset($context["propertyType"]) || array_key_exists("propertyType"$context) ? $context["propertyType"] : (function () { throw new RuntimeError('Variable "propertyType" does not exist.'293$this->source); })()), "slug", [], "any"falsefalsefalse293), "location_slug" => twig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'293$this->source); })()), "slug", [], "any"falsefalsefalse293)], ["label" => (isset($context["listingLabelType"]) || array_key_exists("listingLabelType"$context) ? $context["listingLabelType"] : (function () { throw new RuntimeError('Variable "listingLabelType" does not exist.'293$this->source); })())]));
  604.         // line 294
  605.         $context["enableSearchInListingDetails"] = ( !(isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'294$this->source); })()) &&  !$this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.search.full.filters"));
  606.         // line 295
  607.         $context["showRelatedListing"] = (((isset($context["relatedListingsCount"]) || array_key_exists("relatedListingsCount"$context) ? $context["relatedListingsCount"] : (function () { throw new RuntimeError('Variable "relatedListingsCount" does not exist.'295$this->source); })()) && (isset($context["isSearchableListing"]) || array_key_exists("isSearchableListing"$context) ? $context["isSearchableListing"] : (function () { throw new RuntimeError('Variable "isSearchableListing" does not exist.'295$this->source); })())) &&  !(isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'295$this->source); })()));
  608.         // line 296
  609.         $context["showOtherUnits"] = ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.other.units.details.page") && (twig_length_filter($this->env, (isset($context["otherUnits"]) || array_key_exists("otherUnits"$context) ? $context["otherUnits"] : (function () { throw new RuntimeError('Variable "otherUnits" does not exist.'296$this->source); })())) > 0));
  610.         // line 297
  611.         echo "
  612. ";
  613.         // line 299
  614.         $context["testingListingsIds"] = [=> 3747940=> 3813089=> 3626475=> 2705901];
  615.         // line 300
  616.         $context["isTestingListing"] = twig_in_filter(twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'300$this->source); })()), "id", [], "any"falsefalsefalse300), (isset($context["testingListingsIds"]) || array_key_exists("testingListingsIds"$context) ? $context["testingListingsIds"] : (function () { throw new RuntimeError('Variable "testingListingsIds" does not exist.'300$this->source); })()));
  617.         // line 301
  618.         $context["isListingSliderDisabledTest"] = ((isset($context["isTestingListing"]) || array_key_exists("isTestingListing"$context) ? $context["isTestingListing"] : (function () { throw new RuntimeError('Variable "isTestingListing" does not exist.'301$this->source); })()) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.disable.listingslider"));
  619.         // line 302
  620.         $context["isTopSellersDisabledTest"] = ((isset($context["isTestingListing"]) || array_key_exists("isTestingListing"$context) ? $context["isTestingListing"] : (function () { throw new RuntimeError('Variable "isTestingListing" does not exist.'302$this->source); })()) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.disable.topsellers"));
  621.         // line 303
  622.         $context["isRelatedListingsDisabledTest"] = ((isset($context["isTestingListing"]) || array_key_exists("isTestingListing"$context) ? $context["isTestingListing"] : (function () { throw new RuntimeError('Variable "isTestingListing" does not exist.'303$this->source); })()) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.disable.relatedlistings"));
  623.         // line 304
  624.         $context["isGoogleDoubleClickDisabledTest"] = ((isset($context["isTestingListing"]) || array_key_exists("isTestingListing"$context) ? $context["isTestingListing"] : (function () { throw new RuntimeError('Variable "isTestingListing" does not exist.'304$this->source); })()) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.disable.googledoubleclick"));
  625.         // line 305
  626.         $context["isEnabledActivityDisabledTest"] = ((isset($context["isTestingListing"]) || array_key_exists("isTestingListing"$context) ? $context["isTestingListing"] : (function () { throw new RuntimeError('Variable "isTestingListing" does not exist.'305$this->source); })()) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.disable.activities.test"));
  627.         // line 306
  628.         $context["isEnabledActivityListingPage"] = ((isset($context["isEnabledActivityListingPage"]) || array_key_exists("isEnabledActivityListingPage"$context) ? $context["isEnabledActivityListingPage"] : (function () { throw new RuntimeError('Variable "isEnabledActivityListingPage" does not exist.'306$this->source); })()) &&  !(isset($context["isEnabledActivityDisabledTest"]) || array_key_exists("isEnabledActivityDisabledTest"$context) ? $context["isEnabledActivityDisabledTest"] : (function () { throw new RuntimeError('Variable "isEnabledActivityDisabledTest" does not exist.'306$this->source); })()));
  629.         // line 307
  630.         echo "
  631. ";
  632.         // line 308
  633.         ob_start();
  634.         // line 309
  635.         echo "    <div class=\"row\">
  636.         ";
  637.         // line 310
  638.         $this->loadTemplate("@AqarmapListing/ListingSearch/listingCardVertical.html.twig""@AqarmapListing/Listing/read.html.twig"310)->display(twig_array_merge($context, ["listings" => (isset($context["related_listings"]) || array_key_exists("related_listings"$context) ? $context["related_listings"] : (function () { throw new RuntimeError('Variable "related_listings" does not exist.'310$this->source); })()), "mainListing" => (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'310$this->source); })()), "isRelatedToListing" => true"defaultResults" => false"topSellersResults" => false"isRelatedResults" => false"hideCta" => true"cardGridSize" => "related-listing-card-option-1""leadSourcePage" => "related_listings"]));
  639.         // line 311
  640.         echo "    </div>
  641. ";
  642.         $context["relatedListing"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  643.         // line 313
  644.         echo "<div class=\"listing-quick-lead\" ng-controller=\"quickLeadController\">
  645.     <div ng-content-loaded callback='setSourceRoute(\"";
  646.         // line 314
  647.         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.'314$this->source); })()), "request", [], "any"falsefalsefalse314), "attributes", [], "any"falsefalsefalse314), "get", [=> "_route"], "method"falsefalsefalse314), "html"nulltrue);
  648.         echo "\");
  649.             setListingDetail(\"";
  650.         // line 315
  651.         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.'315$this->source); })()), "id", [], "any"falsefalsefalse315), "html"nulltrue);
  652.         echo "\",{
  653.                 \"id\": \"";
  654.         // line 316
  655.         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.'316$this->source); })()), "id", [], "any"falsefalsefalse316), "html"nulltrue);
  656.         echo "\",
  657.                 \"section\": \"";
  658.         // line 317
  659.         echo twig_escape_filter($this->envtwig_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.'317$this->source); })()), "id", [], "any"falsefalsefalse317), "html"nulltrue);
  660.         echo "\",
  661.                 \"sectionTitle\": ";
  662.         // line 318
  663.         echo twig_escape_filter($this->env$this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize(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.'318$this->source); })()), "title", [], "any"falsefalsefalse318)), "html"nulltrue);
  664.         echo ",
  665.                 \"isProjectParent\": \"";
  666.         // line 319
  667.         echo twig_escape_filter($this->env, (isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'319$this->source); })()), "html"nulltrue);
  668.         echo "\" ,
  669.                 \"sellerPhones\": ";
  670.         // line 320
  671.         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.'320$this->source); })()), "json"), "html"nulltrue);
  672.         echo ",
  673.                 \"sellerPhone\": \"";
  674.         // line 321
  675.         (((isset($context["listingPhone"]) || array_key_exists("listingPhone"$context) ? $context["listingPhone"] : (function () { throw new RuntimeError('Variable "listingPhone" does not exist.'321$this->source); })())) ? (print (twig_escape_filter($this->env$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.'321$this->source); })()), "number", [], "any"falsefalsefalse321)), "html"nulltrue))) : (print ("")));
  676.         echo "\",
  677.                 \"financeUrl\":\"";
  678.         // line 322
  679.         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.'322$this->source); })()), "getFinancialAidURL", [], "method"falsefalsefalse322), "html"nulltrue);
  680.         echo "\",
  681.                 \"userEmail\": ";
  682.         // line 323
  683.         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.'323$this->source); })())), "html"nulltrue);
  684.         echo ",
  685.                 \"financeFeatureValue\": \"";
  686.         // line 324
  687.         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.'324$this->source); })()), "html"nulltrue);
  688.         echo "\",
  689.                 \"listingName\" : ";
  690.         // line 325
  691.         echo twig_escape_filter($this->env$this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize(((twig_get_attribute($this->env$this->source, ($context["listing"] ?? null), "customSlug", [], "any"truetruefalse325)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["listing"] ?? null), "customSlug", [], "any"falsefalsefalse325), twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'325$this->source); })()), "id", [], "any"falsefalsefalse325))) : (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'325$this->source); })()), "id", [], "any"falsefalsefalse325)))), "html"nulltrue);
  692.         echo ",
  693.                 \"listingTitle\" : ";
  694.         // line 326
  695.         echo twig_escape_filter($this->env$this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize(twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'326$this->source); })()), "title", [], "any"falsefalsefalse326)), "html"nulltrue);
  696.         echo ",
  697.                 \"location\": \"";
  698.         // line 327
  699.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'327$this->source); })()), "id", [], "any"falsefalsefalse327), "html"nulltrue);
  700.         echo "\",
  701.                 \"locationTitle\": ";
  702.         // line 328
  703.         echo twig_escape_filter($this->env$this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize(twig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'328$this->source); })()), "title", [], "any"falsefalsefalse328)), "html"nulltrue);
  704.         echo ",
  705.                 \"propertyType\": \"";
  706.         // line 329
  707.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["propertyType"]) || array_key_exists("propertyType"$context) ? $context["propertyType"] : (function () { throw new RuntimeError('Variable "propertyType" does not exist.'329$this->source); })()), "id", [], "any"falsefalsefalse329), "html"nulltrue);
  708.         echo "\",
  709.                 \"propertyTypeTitle\": ";
  710.         // line 330
  711.         echo twig_escape_filter($this->env$this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize(twig_get_attribute($this->env$this->source, (isset($context["propertyType"]) || array_key_exists("propertyType"$context) ? $context["propertyType"] : (function () { throw new RuntimeError('Variable "propertyType" does not exist.'330$this->source); })()), "title", [], "any"falsefalsefalse330)), "html"nulltrue);
  712.         echo ",
  713.                 \"price\": \"";
  714.         // line 331
  715.         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.'331$this->source); })()), "price", [], "any"falsefalsefalse331), "html"nulltrue);
  716.         echo "\",
  717.                 \"currency\": \"";
  718.         // line 332
  719.         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);
  720.         echo "\",
  721.                 \"area\": \"";
  722.         // line 333
  723.         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.'333$this->source); })()), "area", [], "any"falsefalsefalse333), "html"nulltrue);
  724.         echo "\",
  725.                 \"isCompound\": \"";
  726.         // line 334
  727.         echo twig_escape_filter($this->env, (isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'334$this->source); })()), "html"nulltrue);
  728.         echo "\",
  729.                 \"image\": \"";
  730.         // line 335
  731.         echo twig_escape_filter($this->env, (isset($context["listingMainPhoto"]) || array_key_exists("listingMainPhoto"$context) ? $context["listingMainPhoto"] : (function () { throw new RuntimeError('Variable "listingMainPhoto" does not exist.'335$this->source); })()), "html"nulltrue);
  732.         echo "\",
  733.                 \"paymentMethodLabel\": ";
  734.         // line 336
  735.         echo twig_escape_filter($this->env$this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'336$this->source); })()), "paymentMethodLabel", [], "any"falsefalsefalse336))), "html"nulltrue);
  736.         echo ",
  737.                 \"pricePerMeter\": \"";
  738.         // line 337
  739.         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.'337$this->source); })()), "calculatePricePerMeter", [], "any"falsefalsefalse337), "html"nulltrue);
  740.         echo "\",
  741.                 \"sellerRole\": ";
  742.         // line 338
  743.         echo twig_escape_filter($this->env$this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'338$this->source); })()), "sellerRoleLabel", [], "any"falsefalsefalse338))), "html"nulltrue);
  744.         echo ",
  745.                 \"floor\": \"";
  746.         // line 339
  747.         echo twig_escape_filter($this->env, (isset($context["listing_floor"]) || array_key_exists("listing_floor"$context) ? $context["listing_floor"] : (function () { throw new RuntimeError('Variable "listing_floor" does not exist.'339$this->source); })()), "html"nulltrue);
  748.         echo "\",
  749.                 \"baths\": \"";
  750.         // line 340
  751.         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.'340$this->source); })()), "html"nulltrue);
  752.         echo "\",
  753.                 \"rooms\": \"";
  754.         // line 341
  755.         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.'341$this->source); })()), "html"nulltrue);
  756.         echo "\",
  757.                 \"yearBuilt\": \"";
  758.         // line 342
  759.         echo twig_escape_filter($this->env, (isset($context["listing_year_built"]) || array_key_exists("listing_year_built"$context) ? $context["listing_year_built"] : (function () { throw new RuntimeError('Variable "listing_year_built" does not exist.'342$this->source); })()), "html"nulltrue);
  760.         echo "\",
  761.                 \"finishType\": \"";
  762.         // line 343
  763.         echo twig_escape_filter($this->env, (isset($context["listing_finish_type"]) || array_key_exists("listing_finish_type"$context) ? $context["listing_finish_type"] : (function () { throw new RuntimeError('Variable "listing_finish_type" does not exist.'343$this->source); })()), "html"nulltrue);
  764.         echo "\",
  765.                 \"publishDate\": \"";
  766.         // line 344
  767.         echo twig_escape_filter($this->envtwig_date_format_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.'344$this->source); })()), "publishedAt", [], "any"falsefalsefalse344), "Y-m-d h:i:s A"), "html"nulltrue);
  768.         echo "\",
  769.                 \"view\": ";
  770.         // line 345
  771.         echo twig_escape_filter($this->env$this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'345$this->source); })()), "propertyViewLabel", [], "any"falsefalsefalse345))), "html"nulltrue);
  772.         echo ",
  773.                 \"listingUser\": {
  774.                     \"sellerName\" : ";
  775.         // line 347
  776.         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.'347$this->source); })())), "html"nulltrue);
  777.         echo ",
  778.                     \"sellerLogo\": \"\",
  779.                     \"sellerUrl\": \"";
  780.         // line 349
  781.         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.'349$this->source); })()), "html"nulltrue);
  782.         echo "\",
  783.                     \"joinedData\":\"";
  784.         // line 350
  785.         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.'350$this->source); })()), "html"nulltrue);
  786.         echo "\",
  787.                     \"activeListingsCount\": \"";
  788.         // line 351
  789.         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.'351$this->source); })()), "html"nulltrue);
  790.         echo "\",
  791.                     \"leadsCount\":\"";
  792.         // line 352
  793.         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.'352$this->source); })()), "html"nulltrue);
  794.         echo "\"
  795.                 },
  796.                 \"description\": ";
  797.         // line 354
  798.         echo twig_escape_filter($this->env$this->env->getRuntime('JMS\Serializer\Twig\SerializerRuntimeHelper')->serialize(twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'354$this->source); })()), "description", [], "any"falsefalsefalse354)), "html"nulltrue);
  799.         echo ",
  800.             });'>
  801.         ";
  802.         // line 356
  803.         if ((isset($context["enableSearchInListingDetails"]) || array_key_exists("enableSearchInListingDetails"$context) ? $context["enableSearchInListingDetails"] : (function () { throw new RuntimeError('Variable "enableSearchInListingDetails" does not exist.'356$this->source); })())) {
  804.             // line 357
  805.             echo "            ";
  806.             $this->loadTemplate("@AqarmapListing/ListingSearch/searchFormFilter.html.twig""@AqarmapListing/Listing/read.html.twig"357)->display($context);
  807.             // line 358
  808.             echo "        ";
  809.         }
  810.         // line 359
  811.         echo "
  812.         <div class=\"container listingContainer listing_details_container ";
  813.         // line 360
  814.         echo ((((isset($context["relatedListingsCount"]) || array_key_exists("relatedListingsCount"$context) ? $context["relatedListingsCount"] : (function () { throw new RuntimeError('Variable "relatedListingsCount" does not exist.'360$this->source); })()) && (isset($context["isSearchableListing"]) || array_key_exists("isSearchableListing"$context) ? $context["isSearchableListing"] : (function () { throw new RuntimeError('Variable "isSearchableListing" does not exist.'360$this->source); })()))) ? ("has-related-listing") : (""));
  815.         echo " ";
  816.         if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.header.cta")) {
  817.             echo "overflow-hidden";
  818.         }
  819.         echo "\">
  820.             <div class=\"row\">
  821.                 ";
  822.         // line 362
  823.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingNav.html.twig""@AqarmapListing/Listing/read.html.twig"362)->display($context);
  824.         // line 363
  825.         echo "                <section
  826.                     class=\"col-md-12 listing-details ";
  827.         // line 364
  828.         echo twig_escape_filter($this->env, (isset($context["ABtestingClasses"]) || array_key_exists("ABtestingClasses"$context) ? $context["ABtestingClasses"] : (function () { throw new RuntimeError('Variable "ABtestingClasses" does not exist.'364$this->source); })()), "html"nulltrue);
  829.         echo "\"
  830.                     data-sticky-container
  831.                     itemscope
  832.                     itemtype=\"https://schema.org/";
  833.         // line 367
  834.         echo twig_escape_filter($this->env, (isset($context["markupType"]) || array_key_exists("markupType"$context) ? $context["markupType"] : (function () { throw new RuntimeError('Variable "markupType" does not exist.'367$this->source); })()), "html"nulltrue);
  835.         echo "\"
  836.                     >
  837.                     <div class=\"listing-slider-container padding-lg-zero padding-md-zero\" >
  838.                         ";
  839.         // line 370
  840.         if ((isset($context["listingHasPhotos"]) || array_key_exists("listingHasPhotos"$context) ? $context["listingHasPhotos"] : (function () { throw new RuntimeError('Variable "listingHasPhotos" does not exist.'370$this->source); })())) {
  841.             // line 371
  842.             echo "                            <div class=\"slider-wrapper section-wrapper\">
  843.                                 ";
  844.             // line 372
  845.             $this->loadTemplate("@AqarmapListingBundle/Listing/listingSlider.html.twig""@AqarmapListing/Listing/read.html.twig"372)->display($context);
  846.             // line 373
  847.             echo "                            </div>
  848.                         ";
  849.         }
  850.         // line 375
  851.         echo "                        ";
  852.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingContactWrapper.html.twig""@AqarmapListing/Listing/read.html.twig"375)->display($context);
  853.         // line 376
  854.         echo "                    </div>
  855.                     <div class=\"listing-details-container padding-md-zero\">
  856.                         ";
  857.         // line 378
  858.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingLabel.html.twig""@AqarmapListing/Listing/read.html.twig"378)->display($context);
  859.         // line 379
  860.         echo "                        ";
  861.         if ((isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'379$this->source); })())) {
  862.             // line 380
  863.             echo "                            ";
  864.             $this->loadTemplate("@AqarmapListingBundle/Listing/projectDetailsTitle.html.twig""@AqarmapListing/Listing/read.html.twig"380)->display($context);
  865.             // line 381
  866.             echo "                        ";
  867.         } else {
  868.             // line 382
  869.             echo "                            ";
  870.             $this->loadTemplate("@AqarmapListingBundle/Listing/listingTitle.html.twig""@AqarmapListing/Listing/read.html.twig"382)->display($context);
  871.             // line 383
  872.             echo "                        ";
  873.         }
  874.         // line 384
  875.         echo "
  876.                     </div>
  877.                     <div class=\"listing-details-container padding-md-zero\">
  878.                         ";
  879.         // line 387
  880.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingUnitsTabs.html.twig""@AqarmapListing/Listing/read.html.twig"387)->display($context);
  881.         // line 388
  882.         echo "                        ";
  883.         if ((isset($context["showListingDetails"]) || array_key_exists("showListingDetails"$context) ? $context["showListingDetails"] : (function () { throw new RuntimeError('Variable "showListingDetails" does not exist.'388$this->source); })())) {
  884.             // line 389
  885.             echo "                            ";
  886.             $this->loadTemplate("@AqarmapListingBundle/Listing/listingDetailsList.html.twig""@AqarmapListing/Listing/read.html.twig"389)->display($context);
  887.             // line 390
  888.             echo "                        ";
  889.         }
  890.         // line 391
  891.         echo "                        ";
  892.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingDescription.html.twig""@AqarmapListing/Listing/read.html.twig"391)->display($context);
  893.         // line 392
  894.         echo "                        ";
  895.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingMap.html.twig""@AqarmapListing/Listing/read.html.twig"392)->display($context);
  896.         // line 393
  897.         echo "                        ";
  898.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingSellerInfo.html.twig""@AqarmapListing/Listing/read.html.twig"393)->display($context);
  899.         // line 394
  900.         echo "                        ";
  901.         if ( !(isset($context["isTopSellersDisabledTest"]) || array_key_exists("isTopSellersDisabledTest"$context) ? $context["isTopSellersDisabledTest"] : (function () { throw new RuntimeError('Variable "isTopSellersDisabledTest" does not exist.'394$this->source); })())) {
  902.             // line 395
  903.             echo "                            ";
  904.             $this->loadTemplate("@AqarmapListingBundle/Listing/listingTopSellers.html.twig""@AqarmapListing/Listing/read.html.twig"395)->display($context);
  905.             // line 396
  906.             echo "                        ";
  907.         }
  908.         // line 397
  909.         echo "                        ";
  910.         if ((isset($context["IS_PROJECT"]) || array_key_exists("IS_PROJECT"$context) ? $context["IS_PROJECT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT" does not exist.'397$this->source); })())) {
  911.             // line 398
  912.             echo "                            ";
  913.             $this->loadTemplate("@AqarmapListingBundle/Listing/compoundRating.html.twig""@AqarmapListing/Listing/read.html.twig"398)->display($context);
  914.             // line 399
  915.             echo "                        ";
  916.         }
  917.         // line 400
  918.         echo "                        ";
  919.         $this->loadTemplate("@AqarmapListingBundle/Listing/otherUnitsTable.html.twig""@AqarmapListing/Listing/read.html.twig"400)->display($context);
  920.         // line 401
  921.         echo "                        ";
  922.         if ( !(isset($context["isRelatedListingsDisabledTest"]) || array_key_exists("isRelatedListingsDisabledTest"$context) ? $context["isRelatedListingsDisabledTest"] : (function () { throw new RuntimeError('Variable "isRelatedListingsDisabledTest" does not exist.'401$this->source); })())) {
  923.             // line 402
  924.             echo "                            ";
  925.             if ((isset($context["showRelatedListing"]) || array_key_exists("showRelatedListing"$context) ? $context["showRelatedListing"] : (function () { throw new RuntimeError('Variable "showRelatedListing" does not exist.'402$this->source); })())) {
  926.                 // line 403
  927.                 echo "                                <div class=\"listing-details-item card-container card-container_option-2\">
  928.                                     ";
  929.                 // line 404
  930.                 $this->loadTemplate("@AqarmapListingBundle/Listing/listingRelatedListingSection.html.twig""@AqarmapListing/Listing/read.html.twig"404)->display($context);
  931.                 // line 405
  932.                 echo "                                </div>
  933.                             ";
  934.             }
  935.             // line 407
  936.             echo "                        ";
  937.         }
  938.         // line 408
  939.         echo "                        ";
  940.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingNeighborhoodsSection.html.twig""@AqarmapListing/Listing/read.html.twig"408)->display($context);
  941.         // line 409
  942.         echo "                        ";
  943.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingDiscussionsSection.html.twig""@AqarmapListing/Listing/read.html.twig"409)->display($context);
  944.         // line 410
  945.         echo "                        ";
  946.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingFooter.html.twig""@AqarmapListing/Listing/read.html.twig"410)->display($context);
  947.         // line 411
  948.         echo "                    </div>
  949.                 </section>
  950.                 ";
  951.         // line 413
  952.         $this->loadTemplate("@AqarmapListingBundle/Listing/projectFaqs.html.twig""@AqarmapListing/Listing/read.html.twig"413)->display($context);
  953.         // line 414
  954.         echo "            </div>
  955.         </div>
  956.         ";
  957.         // line 417
  958.         if (( !(isset($context["isSearchableListing"]) || array_key_exists("isSearchableListing"$context) ? $context["isSearchableListing"] : (function () { throw new RuntimeError('Variable "isSearchableListing" does not exist.'417$this->source); })()) &&  !(isset($context["IS_PROJECT_PARENT"]) || array_key_exists("IS_PROJECT_PARENT"$context) ? $context["IS_PROJECT_PARENT"] : (function () { throw new RuntimeError('Variable "IS_PROJECT_PARENT" does not exist.'417$this->source); })()))) {
  959.             // line 418
  960.             echo "            ";
  961.             $context["section"] = (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'418$this->source); })());
  962.             // line 419
  963.             echo "
  964.             <div class=\"container\">
  965.                 <div class=\"compounds_quick_links\">
  966.                     ";
  967.             // line 422
  968.             $this->loadTemplate("@AqarmapListing/CompoundSearch/compoundsSubLinks.html.twig""@AqarmapListing/Listing/read.html.twig"422)->display($context);
  969.             // line 423
  970.             echo "                </div>
  971.             </div>
  972.         ";
  973.         }
  974.         // line 426
  975.         echo "
  976.         ";
  977.         // line 428
  978.         echo "        ";
  979.         if ( !(isset($context["isGoogleDoubleClickDisabledTest"]) || array_key_exists("isGoogleDoubleClickDisabledTest"$context) ? $context["isGoogleDoubleClickDisabledTest"] : (function () { throw new RuntimeError('Variable "isGoogleDoubleClickDisabledTest" does not exist.'428$this->source); })())) {
  980.             // line 429
  981.             echo "            ";
  982.             $this->loadTemplate("adsHeader.html.twig""@AqarmapListing/Listing/read.html.twig"429)->display($context);
  983.             // line 430
  984.             echo "        ";
  985.         }
  986.         // line 431
  987.         echo "
  988.         ";
  989.         // line 433
  990.         echo "        ";
  991.         if ( !(isset($context["isRelatedListingsDisabledTest"]) || array_key_exists("isRelatedListingsDisabledTest"$context) ? $context["isRelatedListingsDisabledTest"] : (function () { throw new RuntimeError('Variable "isRelatedListingsDisabledTest" does not exist.'433$this->source); })())) {
  992.             // line 434
  993.             echo "            ";
  994.             if ((isset($context["showRelatedListing"]) || array_key_exists("showRelatedListing"$context) ? $context["showRelatedListing"] : (function () { throw new RuntimeError('Variable "showRelatedListing" does not exist.'434$this->source); })())) {
  995.                 // line 435
  996.                 echo "                ";
  997.                 $this->loadTemplate("@AqarmapListingBundle/Listing/OnCloseListingPopup.html.twig""@AqarmapListing/Listing/read.html.twig"435)->display($context);
  998.                 // line 436
  999.                 echo "            ";
  1000.             }
  1001.             // line 437
  1002.             echo "        ";
  1003.         }
  1004.         // line 438
  1005.         echo "        ";
  1006.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingModalsContainer.html.twig""@AqarmapListing/Listing/read.html.twig"438)->display($context);
  1007.         // line 439
  1008.         echo "    </div>
  1009. </div>
  1010. ";
  1011.         // line 441
  1012.         $this->loadTemplate("@AqarmapListingBundle/Listing/listingBreadcrumb.html.twig""@AqarmapListing/Listing/read.html.twig"441)->display($context);
  1013.         
  1014.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1015.         
  1016.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1017.     }
  1018.     // line 444
  1019.     public function block_footer($context, array $blocks = [])
  1020.     {
  1021.         $macros $this->macros;
  1022.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1023.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  1024.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1025.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  1026.         // line 445
  1027.         echo "    ";
  1028.         $this->loadTemplate("footer.v2.html.twig""@AqarmapListing/Listing/read.html.twig"445)->display($context);
  1029.         
  1030.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1031.         
  1032.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1033.     }
  1034.     // line 448
  1035.     public function block_facebookLogin($context, array $blocks = [])
  1036.     {
  1037.         $macros $this->macros;
  1038.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1039.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""facebookLogin"));
  1040.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1041.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""facebookLogin"));
  1042.         // line 449
  1043.         echo "    ";
  1044.         if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.enable.quicklogin")) {
  1045.             // line 450
  1046.             echo "        ";
  1047.             $this->displayParentBlock("facebookLogin"$context$blocks);
  1048.             echo "
  1049.     ";
  1050.         }
  1051.         
  1052.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1053.         
  1054.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1055.     }
  1056.     // line 454
  1057.     public function block_categorizedJavascripts($context, array $blocks = [])
  1058.     {
  1059.         $macros $this->macros;
  1060.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1061.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""categorizedJavascripts"));
  1062.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1063.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""categorizedJavascripts"));
  1064.         // line 455
  1065.         echo "    <script type=\"application/javascript\" src=\"";
  1066.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("builds/js/buildListingDetailsCritical" . (((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'455$this->source); })()), "environment", [], "any"falsefalsefalse455) == "dev")) ? ("") : (".min"))) . ".js")), "html"nulltrue);
  1067.         echo "\"></script>
  1068.     <script defer type=\"application/javascript\" src=\"";
  1069.         // line 456
  1070.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("builds/js/buildListingDetailsMainVendors" . (((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'456$this->source); })()), "environment", [], "any"falsefalsefalse456) == "dev")) ? ("") : (".min"))) . ".js")), "html"nulltrue);
  1071.         echo "\"></script>
  1072.     <script defer type=\"application/javascript\" src=\"";
  1073.         // line 457
  1074.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("builds/js/buildListingDetailsExtraVendors" . (((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'457$this->source); })()), "environment", [], "any"falsefalsefalse457) == "dev")) ? ("") : (".min"))) . ".js")), "html"nulltrue);
  1075.         echo "\"></script>
  1076.     ";
  1077.         // line 459
  1078.         if ((isset($context["isEnabledCompoundBuild"]) || array_key_exists("isEnabledCompoundBuild"$context) ? $context["isEnabledCompoundBuild"] : (function () { throw new RuntimeError('Variable "isEnabledCompoundBuild" does not exist.'459$this->source); })())) {
  1079.             // line 460
  1080.             echo "        <script defer src=\"";
  1081.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("builds/js/compound.desktop.buildListingDetails" . (((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'460$this->source); })()), "environment", [], "any"falsefalsefalse460) == "dev")) ? ("") : (".min"))) . ".js")), "html"nulltrue);
  1082.             echo "\"></script>
  1083.     ";
  1084.         } else {
  1085.             // line 462
  1086.             echo "        <script defer src=\"";
  1087.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("builds/js/buildListingDetails" . (((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'462$this->source); })()), "environment", [], "any"falsefalsefalse462) == "dev")) ? ("") : (".min"))) . ".js")), "html"nulltrue);
  1088.             echo "\"></script>
  1089.     ";
  1090.         }
  1091.         // line 464
  1092.         echo "    <script defer type=\"application/javascript\" src=\"";
  1093.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("builds/js/buildTopSellers" . (((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'464$this->source); })()), "environment", [], "any"falsefalsefalse464) == "dev")) ? ("") : (".min"))) . ".js")), "html"nulltrue);
  1094.         echo "\"></script>
  1095.         ";
  1096.         // line 465
  1097.         if ((isset($context["isEnabledLazyloadingActivitiesBuild"]) || array_key_exists("isEnabledLazyloadingActivitiesBuild"$context) ? $context["isEnabledLazyloadingActivitiesBuild"] : (function () { throw new RuntimeError('Variable "isEnabledLazyloadingActivitiesBuild" does not exist.'465$this->source); })())) {
  1098.             // line 466
  1099.             echo "            ";
  1100.             $context['_parent'] = $context;
  1101.             $context['_seq'] = twig_ensure_traversable($this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->getWebpackJsFiles("activitiesApp"));
  1102.             foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
  1103.                 // line 467
  1104.                 echo "                <script async type='application/javascript' src='";
  1105.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["file"]), "html"nulltrue);
  1106.                 echo "'></script>
  1107.             ";
  1108.             }
  1109.             $_parent $context['_parent'];
  1110.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
  1111.             $context array_intersect_key($context$_parent) + $_parent;
  1112.             // line 469
  1113.             echo "        ";
  1114.         } else {
  1115.             // line 470
  1116.             echo "            ";
  1117.             echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("activitiesApp"null"_default", ["defer" => false]);
  1118.             echo "
  1119.         ";
  1120.         }
  1121.         // line 472
  1122.         echo "    ";
  1123.         if ((array_key_exists("topBar"$context) &&  !null)) {
  1124.             // line 473
  1125.             echo "        ";
  1126.             echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("countdown");
  1127.             echo "
  1128.     ";
  1129.         }
  1130.         
  1131.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1132.         
  1133.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1134.     }
  1135.     // line 476
  1136.     public function block_javascripts($context, array $blocks = [])
  1137.     {
  1138.         $macros $this->macros;
  1139.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1140.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  1141.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1142.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  1143.         // line 477
  1144.         echo "    <script src=\"//maps.google.com/maps/api/js?v=3.25&amp;key=";
  1145.         echo twig_escape_filter($this->env, (isset($context["google_maps_key"]) || array_key_exists("google_maps_key"$context) ? $context["google_maps_key"] : (function () { throw new RuntimeError('Variable "google_maps_key" does not exist.'477$this->source); })()), "html"nulltrue);
  1146.         echo "\"></script>
  1147.     ";
  1148.         // line 478
  1149.         $this->displayParentBlock("javascripts"$context$blocks);
  1150.         echo "
  1151.     <script>
  1152.         \$(document).ready(function () {
  1153.             imageSlider.lunchSlider(";
  1154.         // line 482
  1155.         if ((isset($context["isLocalArabic"]) || array_key_exists("isLocalArabic"$context) ? $context["isLocalArabic"] : (function () { throw new RuntimeError('Variable "isLocalArabic" does not exist.'482$this->source); })())) {
  1156.             echo "true";
  1157.         } else {
  1158.             echo "false";
  1159.         }
  1160.         echo ", false);
  1161.         });
  1162.     </script>
  1163.     <script>
  1164.         \$(document).ready(function () {
  1165.             dataLayer.push({
  1166.                 'listingName': '";
  1167.         // line 489
  1168.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["listing"] ?? null), "customSlug", [], "any"truetruefalse489)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["listing"] ?? null), "customSlug", [], "any"falsefalsefalse489), twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'489$this->source); })()), "id", [], "any"falsefalsefalse489))) : (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'489$this->source); })()), "id", [], "any"falsefalsefalse489))), "html"nulltrue);
  1169.         echo "',
  1170.                 'listingParentName': ";
  1171.         // line 490
  1172.         if (twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'490$this->source); })()), "parent", [], "any"falsefalsefalse490)) {
  1173.             echo "'";
  1174.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["listing"] ?? null), "parent", [], "any"falsetruefalse490), "customSlug", [], "any"truetruefalse490)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["listing"] ?? null), "parent", [], "any"falsetruefalse490), "customSlug", [], "any"falsefalsefalse490), twig_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.'490$this->source); })()), "parent", [], "any"falsefalsefalse490), "id", [], "any"falsefalsefalse490))) : (twig_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.'490$this->source); })()), "parent", [], "any"falsefalsefalse490), "id", [], "any"falsefalsefalse490))), "html"nulltrue);
  1175.             echo "'";
  1176.         } else {
  1177.             echo "null";
  1178.         }
  1179.         echo ",
  1180.                 'listingSection': '";
  1181.         // line 491
  1182.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["leadAnalytics"] ?? null), "listingSection", [], "any"truetruefalse491)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["leadAnalytics"] ?? null), "listingSection", [], "any"falsefalsefalse491), "")) : ("")), "html"nulltrue);
  1183.         echo "',
  1184.                 'listingSegment': '";
  1185.         // line 492
  1186.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["leadAnalytics"] ?? null), "listingSegment", [], "any"truetruefalse492)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["leadAnalytics"] ?? null), "listingSegment", [], "any"falsefalsefalse492), "")) : ("")), "html"nulltrue);
  1187.         echo "',
  1188.                 'hasParent': ";
  1189.         // line 493
  1190.         echo ((twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'493$this->source); })()), "parent", [], "any"falsefalsefalse493)) ? ("true") : ("false"));
  1191.         echo ",
  1192.                 'hasChildren': ";
  1193.         // line 494
  1194.         echo ((twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'494$this->source); })()), "isProject", [], "any"falsefalsefalse494)) ? ("true") : ("false"));
  1195.         echo ",
  1196.                 'isFeatured': ";
  1197.         // line 495
  1198.         echo ((twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'495$this->source); })()), "featured", [], "any"falsefalsefalse495)) ? ("true") : ("false"));
  1199.         echo "
  1200.             });
  1201.         });
  1202.     </script>
  1203.     <script>
  1204.         function getdivheight(){
  1205.             return \$('#listing-title-container').height() > 0 ? \$('#listing-title-container').height() : 100;
  1206.         }
  1207.         function updateDivMargin(){
  1208.             //add 5 pix to height
  1209.             var temp_margintop = getdivheight() + 5;
  1210.             \$('#listingContactWrapper').attr('data-margin-top',temp_margintop);
  1211.         }
  1212.         \$(document).ready(function () {
  1213.             updateDivMargin();
  1214.         });
  1215.         \$( window ).resize(function() {
  1216.             updateDivMargin();
  1217.         });
  1218.     </script>
  1219.     ";
  1220.         // line 521
  1221.         echo "    ";
  1222.         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.'521$this->source); })()), "request", [], "any"falsefalsefalse521), "query", [], "any"falsefalsefalse521), "get", [=> "contact_seller"], "method"falsefalsefalse521)) {
  1223.             // line 522
  1224.             echo "        <script>
  1225.             // Google Tag Manager
  1226.             \$(document).ready(function () {
  1227.                 dataLayer.push({'event': 'gtm-action-seller-message'});
  1228.             });
  1229.         </script>
  1230.     ";
  1231.         }
  1232.         // line 529
  1233.         echo "    ";
  1234.         if (((null === twig_get_attribute($this->env$this->source, (isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'529$this->source); })()), "parent", [], "any"falsefalsefalse529)) && (isset($context["isSearchableListing"]) || array_key_exists("isSearchableListing"$context) ? $context["isSearchableListing"] : (function () { throw new RuntimeError('Variable "isSearchableListing" does not exist.'529$this->source); })()))) {
  1235.             // line 530
  1236.             echo "    <script>
  1237.         ";
  1238.             // line 531
  1239.             if ( !(null === (isset($context["searchableLocation"]) || array_key_exists("searchableLocation"$context) ? $context["searchableLocation"] : (function () { throw new RuntimeError('Variable "searchableLocation" does not exist.'531$this->source); })()))) {
  1240.                 // line 532
  1241.                 echo "        var locationId = ";
  1242.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'532$this->source); })()), "nearestSearchable", [], "any"falsefalsefalse532), "id", [], "any"falsefalsefalse532), "html"nulltrue);
  1243.                 echo ";
  1244.         ";
  1245.             } else {
  1246.                 // line 534
  1247.                 echo "        var locationId = null;
  1248.         ";
  1249.             }
  1250.             // line 536
  1251.             echo "        jQuery(document).mouseleave(function (e) {
  1252.         if(e.clientY < 100)
  1253.         {
  1254.             if (!locationsLocalStorage.locationExists(locationId))
  1255.             {
  1256.                 \$('.modal').modal('hide');
  1257.                 \$('#on-close-popup').modal('show');
  1258.                 locationsLocalStorage.setLocationId(locationId);
  1259.             }else
  1260.             {
  1261.                 if (locationsLocalStorage.isLocationExpired(locationId))
  1262.                 {
  1263.                     \$('.modal').modal('hide');
  1264.                     \$('#on-close-popup').modal('show');
  1265.                     dataLayer.push({'event': 'gtm-action-request-call-popup'});
  1266.                     locationsLocalStorage.updateLocationExpiryDate(locationId);
  1267.                 }
  1268.             }
  1269.         }
  1270.         });
  1271.     </script>
  1272.     ";
  1273.         }
  1274.         
  1275.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1276.         
  1277.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1278.     }
  1279.     public function getTemplateName()
  1280.     {
  1281.         return "@AqarmapListing/Listing/read.html.twig";
  1282.     }
  1283.     public function isTraitable()
  1284.     {
  1285.         return false;
  1286.     }
  1287.     public function getDebugInfo()
  1288.     {
  1289.         return array (  1319 => 536,  1315 => 534,  1309 => 532,  1307 => 531,  1304 => 530,  1301 => 529,  1292 => 522,  1289 => 521,  1261 => 495,  1257 => 494,  1253 => 493,  1249 => 492,  1245 => 491,  1235 => 490,  1231 => 489,  1217 => 482,  1210 => 478,  1205 => 477,  1195 => 476,  1181 => 473,  1178 => 472,  1172 => 470,  1169 => 469,  1160 => 467,  1155 => 466,  1153 => 465,  1148 => 464,  1142 => 462,  1136 => 460,  1134 => 459,  1129 => 457,  1125 => 456,  1120 => 455,  1110 => 454,  1096 => 450,  1093 => 449,  1083 => 448,  1072 => 445,  1062 => 444,  1052 => 441,  1048 => 439,  1045 => 438,  1042 => 437,  1039 => 436,  1036 => 435,  1033 => 434,  1030 => 433,  1027 => 431,  1024 => 430,  1021 => 429,  1018 => 428,  1015 => 426,  1010 => 423,  1008 => 422,  1003 => 419,  1000 => 418,  998 => 417,  993 => 414,  991 => 413,  987 => 411,  984 => 410,  981 => 409,  978 => 408,  975 => 407,  971 => 405,  969 => 404,  966 => 403,  963 => 402,  960 => 401,  957 => 400,  954 => 399,  951 => 398,  948 => 397,  945 => 396,  942 => 395,  939 => 394,  936 => 393,  933 => 392,  930 => 391,  927 => 390,  924 => 389,  921 => 388,  919 => 387,  914 => 384,  911 => 383,  908 => 382,  905 => 381,  902 => 380,  899 => 379,  897 => 378,  893 => 376,  890 => 375,  886 => 373,  884 => 372,  881 => 371,  879 => 370,  873 => 367,  867 => 364,  864 => 363,  862 => 362,  853 => 360,  850 => 359,  847 => 358,  844 => 357,  842 => 356,  837 => 354,  832 => 352,  828 => 351,  824 => 350,  820 => 349,  815 => 347,  810 => 345,  806 => 344,  802 => 343,  798 => 342,  794 => 341,  790 => 340,  786 => 339,  782 => 338,  778 => 337,  774 => 336,  770 => 335,  766 => 334,  762 => 333,  758 => 332,  754 => 331,  750 => 330,  746 => 329,  742 => 328,  738 => 327,  734 => 326,  730 => 325,  726 => 324,  722 => 323,  718 => 322,  714 => 321,  710 => 320,  706 => 319,  702 => 318,  698 => 317,  694 => 316,  690 => 315,  686 => 314,  683 => 313,  679 => 311,  677 => 310,  674 => 309,  672 => 308,  669 => 307,  667 => 306,  665 => 305,  663 => 304,  661 => 303,  659 => 302,  657 => 301,  655 => 300,  653 => 299,  650 => 297,  648 => 296,  646 => 295,  644 => 294,  642 => 293,  640 => 292,  638 => 291,  636 => 290,  634 => 289,  632 => 288,  630 => 287,  623 => 285,  619 => 284,  617 => 283,  615 => 282,  613 => 281,  611 => 280,  609 => 279,  607 => 278,  605 => 277,  603 => 276,  601 => 275,  599 => 274,  597 => 273,  593 => 271,  591 => 270,  589 => 269,  587 => 268,  585 => 267,  583 => 266,  581 => 265,  579 => 264,  577 => 263,  575 => 262,  573 => 261,  571 => 260,  569 => 259,  567 => 258,  564 => 257,  561 => 256,  558 => 255,  555 => 254,  552 => 253,  549 => 252,  546 => 251,  543 => 250,  540 => 249,  537 => 248,  534 => 247,  531 => 246,  528 => 245,  525 => 244,  522 => 243,  515 => 242,  512 => 241,  509 => 240,  506 => 239,  503 => 238,  500 => 237,  497 => 236,  487 => 235,  469 => 231,  455 => 227,  449 => 225,  447 => 224,  442 => 223,  432 => 222,  417 => 217,  411 => 213,  408 => 212,  403 => 210,  398 => 208,  393 => 207,  391 => 206,  387 => 205,  383 => 204,  380 => 203,  376 => 201,  374 => 200,  370 => 199,  366 => 198,  362 => 197,  358 => 196,  354 => 195,  350 => 194,  346 => 193,  342 => 192,  339 => 191,  336 => 190,  326 => 189,  313 => 116,  303 => 115,  284 => 113,  273 => 1,  271 => 234,  268 => 182,  267 => 181,  266 => 176,  265 => 173,  264 => 169,  263 => 168,  262 => 162,  261 => 158,  260 => 157,  259 => 152,  258 => 149,  257 => 145,  256 => 144,  255 => 139,  254 => 136,  253 => 132,  252 => 131,  251 => 126,  250 => 123,  249 => 122,  247 => 121,  245 => 119,  241 => 110,  239 => 109,  236 => 107,  233 => 105,  231 => 104,  229 => 103,  227 => 102,  225 => 101,  223 => 100,  221 => 99,  219 => 98,  217 => 97,  214 => 95,  212 => 94,  210 => 93,  208 => 92,  206 => 91,  204 => 90,  202 => 89,  200 => 88,  198 => 87,  196 => 85,  194 => 83,  192 => 82,  190 => 80,  188 => 79,  186 => 77,  184 => 76,  182 => 74,  180 => 73,  178 => 72,  176 => 71,  174 => 70,  172 => 69,  170 => 68,  168 => 67,  166 => 66,  164 => 65,  162 => 64,  160 => 63,  158 => 62,  156 => 61,  154 => 60,  152 => 59,  150 => 58,  148 => 57,  146 => 56,  144 => 55,  142 => 54,  140 => 53,  138 => 52,  136 => 51,  134 => 50,  132 => 49,  130 => 47,  128 => 46,  126 => 43,  124 => 42,  123 => 41,  121 => 40,  120 => 39,  119 => 38,  117 => 37,  115 => 36,  113 => 35,  111 => 34,  109 => 33,  107 => 32,  105 => 31,  103 => 30,  101 => 29,  99 => 28,  97 => 27,  95 => 26,  93 => 25,  91 => 22,  89 => 21,  87 => 20,  85 => 19,  83 => 18,  81 => 17,  79 => 16,  77 => 15,  75 => 14,  73 => 13,  71 => 12,  69 => 11,  67 => 10,  65 => 9,  63 => 8,  61 => 7,  59 => 6,  57 => 3,  44 => 1,);
  1290.     }
  1291.     public function getSourceContext()
  1292.     {
  1293.         return new Source("{% extends \"base.html.twig\" %}
  1294. {% form_theme quick_registration_form 'Form/form_div_layout.html.twig' %}
  1295. {# Constants #}
  1296. {% set FIRST_LISTING_FOR_FREE_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::FIRST_LISTING_FOR_FREE') %}
  1297. {% set EBAWAB_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::EBAWAB') %}
  1298. {% set UNLIMITED_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::UNLIMITED') %}
  1299. {% set PAID_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::PAID') %}
  1300. {% set PROJECT_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::PROJECTS') %}
  1301. {% set SCRAPPED_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::SCRAPPED') %}
  1302. {% set SHOW_PHONE_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::SHOW_PHONE') %}
  1303. {% set SEND_MESSAGE_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::SEND_MESSAGE') %}
  1304. {% set SEND_WHATSAPP_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::WHATSAPP') %}
  1305. {% set CALL_REQUEST_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::CALL_REQUEST') %}
  1306. {% set TOP_VIEWED_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::TOP_VIEWED') %}
  1307. {% set TOP_FAVOURITAED_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::TOP_FAVORITE')  %}
  1308. {% set VALID_PRICE_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::VALID_PRICE')  %}
  1309. {% set SPONSORED_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SPONSORED') %}
  1310. {% set FEATURE_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::FEATURED') %}
  1311. {% set PREMIUM_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::PREMIUM') %}
  1312. {% set SPOTLIGHT_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SPOTLIGHT') %}
  1313. {# gtm events variables  #}
  1314. {% set listingFeatured = listing.featured  %}
  1315. {% set isSpotLight = listingFeatured == SPOTLIGHT_CONSTANT %}
  1316. {% set isSponserd = listingFeatured == SPONSORED_TYPE %}
  1317. {% set isPremium = listingFeatured == PREMIUM_CONSTANT %}
  1318. {% set isFeatured = listingFeatured == FEATURE_TYPE %}
  1319. {% set listingCategory =   listing.category %}
  1320. {% set isProject = listingCategory == PROJECT_LISTING_CATEGORY %}
  1321. {% set isPaid = listingCategory == PAID_LISTING_CATEGORY %}
  1322. {% set isScrapped = listingCategory == SCRAPPED_LISTING_CATEGORY %}
  1323. {% set isEBawab = listingCategory == EBAWAB_LISTING_CATEGORY %}
  1324. {% set isUnlimited = listingCategory == UNLIMITED_LISTING_CATEGORY %}
  1325. {% set isFlf2 = listingCategory == FIRST_LISTING_FOR_FREE_LISTING_CATEGORY %}
  1326. {% set propertySectionSlug = isProject ? \"projects\" :  section is defined ? section.slug: listing.section.slug %}
  1327. {% set propertyCategory = isProject ? \"projects\" :  isScrapped ? \"scrapped\" :
  1328.     isPaid ? \"paid\" : isEBawab ? \"bawab\" : isUnlimited ? \"unlimited\" :
  1329.     isFlf2 ? \"flf2\" : \"free\" %}
  1330. {% set depthProduct = isFeatured ? \"featured\" : isPremium ? \"premium\" :
  1331.     isSponserd ? \"sponsored\": isSpotLight ? \"spotlight\" : \"regular\" %}
  1332. {% set insideCompound = isProject or listing.parent != null  %}
  1333. {# classes names variables #}
  1334. {% set sendEmailBtnStyleClasses = 'btn btn-block btn-lg cta-btn rounded-pill btn-gray' %}
  1335. {% set phoneBtnStyleClasses = 'btn btn-block btn-lg cta-btn rounded-pill btn-primary'  %}
  1336. {% set forRent = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingSections::FOR_RENT')%}
  1337. {% set PROJECT_LISTING_CHILD = listing.parent != null %}
  1338. {% set isListingHasChildren = liveUnitsPaginated is not empty %}
  1339. {% set PROJECT_LISTING_PARENT = isListingHasChildren %}
  1340. {% set IS_PROJECT = listing.category == PROJECT_LISTING_CATEGORY or PROJECT_LISTING_CHILD %}
  1341. {% set IS_PROJECT_PARENT = PROJECT_LISTING_PARENT or listing.category == PROJECT_LISTING_CATEGORY %}
  1342. {% set isScrapped = listing.category == SCRAPPED_LISTING_CATEGORY %}
  1343. {% set parentId = listing.parent ? listing.parent.id : listing.id %}
  1344. {% set parentTitle = listing.parent ? listing.parent.title : listing.title %}
  1345. {% set isEnabledActivityToggles = isEnabledFeature('web.activity.app') and isEnabledFeature('web.my.activities.build') %}
  1346. {% set isEnabledActivityListingPageToggles = isEnabledActivityToggles and isEnabledFeature('web.listing.page.activities') %}
  1347. {% set isEnabledActivityListingPage = isEnabledActivityListingPageToggles and not IS_PROJECT_PARENT %}
  1348. {% set isEnabledLazyloadingActivitiesBuild = isEnabledFeature('web.async.vueapp') %}
  1349. {% set isUnitsTabsEnabled = IS_PROJECT and (PROJECT_LISTING_PARENT or not PROJECT_LISTING_CHILD) %}
  1350. {% set hasResaleUnits =   resaleUnitsPaginated|length > 0  %}
  1351. {% set hasRentUnits = rentUnitsPaginated|length > 0  %}
  1352. {% set hasPrimaryUnits = liveUnitsPaginated|length > 0  %}
  1353. {% set isPrimaryUnitsSoldOut = not hasPrimaryUnits  %}
  1354. {% set isRentUnitsSoldOut = not hasRentUnits  %}
  1355. {% set isResaleUnitsSoldOut = not hasResaleUnits  %}
  1356. {% set isUnitsSoldOut = isUnitsTabsEnabled and isRentUnitsSoldOut and isResaleUnitsSoldOut and isPrimaryUnitsSoldOut  %}
  1357. {% set isPrimaryUnitsOnly = hasPrimaryUnits and isRentUnitsSoldOut and isResaleUnitsSoldOut %}
  1358. {% set isPrimarySoldOutCta = isUnitsTabsEnabled and isPrimaryUnitsSoldOut %}
  1359. {% set isListingCallRequest = (isUnitsTabsEnabled and isPrimaryUnitsSoldOut) or listing.isCallRequest %}
  1360. {% set isEligibleForMortgage = isEnabledFeature('web.mortgage.options') and listing.isMortgageApproved  %}
  1361. {% set isEnabledCompoundBuild = IS_PROJECT_PARENT and isEnabledFeature('web.compound.listingpage.build') %}
  1362. {% set propertyType = listing.propertyType %}
  1363. {% set propertyTypeId =  propertyType.id %}
  1364. {% set section = listing.section %}
  1365. {% set sectionId = section.id %}
  1366. {% set location = listing.location %}
  1367. {% set locationId =  location.id  %}
  1368. {% set isCompaniesDataParamsDefined = true %}
  1369. {% set isListingForRent = sectionId == forRent %}
  1370. {% set listingParent = listing.parent %}
  1371. {% set compoundField = listingParent ? listingParent.CompoundField : listing.CompoundField %}
  1372. {% set showSellerInfo = not IS_PROJECT and not isScrapped %}
  1373. {% set showTopSearchableCompaniesList = true %}
  1374. {% set listingPhones = isEnabledFeature('listing_user_phones') ? listing.phones : listing.listingPhones %}
  1375. {% set listingPhone = null %}
  1376. {% if listingPhones is not empty %}
  1377.     {% set listingPhone = listingPhones|first %}
  1378. {% endif %}
  1379. {% set financeFeatureValue = get_setting('features', 'finance_service') %}
  1380. {% set ALLOWED_LISTING_SECTIONS_TO_ADD_FINANCE_URL = constant('Aqarmap\\\\Bundle\\\\FinancialAidsBundle\\\\Constant\\\\FinancialAidConstraints::ALLOWED_LISTING_SECTIONS_TO_ADD_FINANCE_URL')%}
  1381. {% set showListingDetails  = not isListingHasChildren and not isUnitsTabsEnabled %}
  1382. {% set isSearchableListing = section.searchable == true %}
  1383. {% set metaTitle = \"%s %s %s . %s\"|format(listing.title,'layout.in'|trans, location,'layout.app_name'|trans) %}
  1384. {% set metaDescription =  listing.description|nl2br|markdown_to_html %}
  1385. {% if IS_PROJECT_PARENT %}
  1386.     {% if listing.metaTitle %}
  1387.         {% set metaTitle = 'layout.project_listing_details_title_with_suffix'|trans({'%project%': listing.metaTitle}) %}
  1388.     {% else %}
  1389.         {% set metaTitle = 'layout.project_listing_details_title'|trans({'%project%': listing.title}) %}
  1390.     {% endif %}
  1391.     {% if listing.metaDescription %}
  1392.         {% set metaDescription = listing.metaDescription %}
  1393.     {% endif %}
  1394. {% endif %}
  1395. {% block title %}{{ metaTitle }}{% endblock %}
  1396. {% block meta_description %}
  1397.     {{ metaDescription }}
  1398. {% endblock %}
  1399. {% set enable_project_faqs = IS_PROJECT_PARENT and compoundFaqs is defined and compoundFaqs|length %}
  1400. {% if enable_project_faqs %}
  1401.     {% set project_faqs = [
  1402.         compoundFaqs.location ? {
  1403.             \"@type\": \"Question\",
  1404.             \"name\": 'layout.faqs_project_page.location_count.name'|trans({
  1405.             '%project%': listing.title
  1406.         }),
  1407.             \"acceptedAnswer\": {
  1408.             \"@type\": \"Answer\",
  1409.             \"text\": 'layout.faqs_project_page.location_count.answer'|trans({
  1410.                 '%project%': listing.title,
  1411.                 '%location%': compoundFaqs.location,
  1412.             }),
  1413.         }
  1414.         } : {},
  1415.         compoundFaqs.minimumUnitPrice ? {
  1416.             \"@type\": \"Question\",
  1417.             \"name\": 'layout.faqs_project_page.start_price.name'|trans({
  1418.             '%project%': listing.title
  1419.         }),
  1420.             \"acceptedAnswer\": {
  1421.             \"@type\": \"Answer\",
  1422.             \"text\": 'layout.faqs_project_page.start_price.answer'|trans({
  1423.                 '%project%': listing.title,
  1424.                 '%starting_price%': compoundFaqs.minimumUnitPrice|number_format,
  1425.             }),
  1426.         }
  1427.         } : {},
  1428.         compoundFaqs.minimumUnitArea ? {
  1429.             \"@type\": \"Question\",
  1430.             \"name\": 'layout.faqs_project_page.start_area.name'|trans({
  1431.             '%project%': listing.title
  1432.         }),
  1433.             \"acceptedAnswer\": {
  1434.             \"@type\": \"Answer\",
  1435.             \"text\": 'layout.faqs_project_page.start_area.answer'|trans({
  1436.                 '%project%': listing.title,
  1437.                 '%starting_area%': compoundFaqs.minimumUnitArea|number_format,
  1438.             }),
  1439.         }
  1440.         } : {},
  1441.         compoundFaqs.lastUpdate ? {
  1442.             \"@type\": \"Question\",
  1443.             \"name\": 'layout.faqs_project_page.data_updated.name'|trans,
  1444.             \"acceptedAnswer\": {
  1445.             \"@type\": \"Answer\",
  1446.             \"text\": 'layout.faqs_project_page.data_updated.answer'|trans({
  1447.                 '%project%': listing.title,
  1448.                 '%date%': compoundFaqs.lastUpdate|date(\"m/d/Y\"),
  1449.             }),
  1450.         }
  1451.         } : {},
  1452.         compoundFaqs.constructionStatus ? {
  1453.             \"@type\": \"Question\",
  1454.             \"name\": 'layout.faqs_project_page.status.name'|trans({
  1455.             '%project%': listing.title
  1456.         }),
  1457.             \"acceptedAnswer\": {
  1458.             \"@type\": \"Answer\",
  1459.             \"text\": 'layout.faqs_project_page.status.answer'|trans({
  1460.                 '%project%': listing.title,
  1461.                 '%status%': compoundFaqs.constructionStatus|trans,
  1462.             }),
  1463.         }
  1464.         } : {},
  1465.     ] %}
  1466. {% endif %}
  1467. {% block htmlhead %}
  1468.     {% set LISTING_CATEGORIES_SCRAPPED = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::SCRAPPED') %}
  1469.     <meta name=\"twitter:card\" content=\"summary_large_image\" />
  1470.     <meta name=\"twitter:site\" content=\"{{ \"%s%s\"|format('@', 'layout.app_name'|trans) }}\" />
  1471.     <meta name=\"twitter:creator\" content=\"{{ \"%s%s\"|format('@', 'layout.app_name'|trans) }}\" />
  1472.     <meta property=\"og:title\" content=\"{{ listing.category == PROJECT_LISTING_CATEGORY ?  'layout.project_listing_details_title'|trans({'%project%': listing.title}) : \"%s %s %s . %s\"|format(listing.title,'layout.in'|trans, location,'layout.app_name'|trans) }}\"/>
  1473.     <meta property=\"og:description\" content=\"{{ listing.category == PROJECT_LISTING_CATEGORY ? 'listing.compound_guide.sharing.description_location'|trans({'%compound%': listing.title, '%location%': location}) : 'listing.sharing.description'|trans({'%location%': location}) }}\" />
  1474.     <meta property=\"og:url\" content=\"{{ url('listing_slug', {id: listing.id, slug: listing.slug}) }}\" />
  1475.     <meta property=\"og:site_name\" content=\"{{ 'layout.app_name'|trans }}\" />
  1476.     <meta property=\"fb:app_id\" content=\"{{ facebook_app_id }}\"/>
  1477.     <meta property=\"og:image\" content=\"{{ getSharingImage(listing) }}\" />
  1478.     {% if shouldAddNoIndex(listing) %}
  1479.         <meta name=\"robots\" content=\"noindex, nofollow\">
  1480.     {% endif %}
  1481.     <link rel=\"canonical\" href=\"{{ url('listing_slug', {id: parentId, slug: listing.slug}) }}\"/>
  1482.     <link rel=\"shortlink\" href=\"{{ url('listing_view', {id: listing.id}) }}\"/>
  1483.     {% if  listing.slug %}
  1484.         <link rel=\"alternate\" hreflang=\"ar\" href=\"{{ url('listing_slug', {id: listing.id, slug: listing.slug, _locale: 'ar'}) }}\"/>
  1485.         <link rel=\"alternate\" hreflang=\"en\" href=\"{{ url('listing_slug', {id: listing.id, slug: listing.slug, _locale: 'en'}) }}\"/>
  1486.         <link rel=\"alternate\" hreflang=\"x-default\"
  1487.             href=\"{{ url('listing_slug', {id: listing.id, slug: listing.slug, _locale: 'ar'}) }}\"/>
  1488.     {% endif %}
  1489.     {% if enable_project_faqs %}
  1490.         <script type=\"application/ld+json\">
  1491.             {
  1492.                 \"@context\": \"https://schema.org\",
  1493.                 \"@type\": \"FAQPage\",
  1494.                 \"mainEntity\": {{ project_faqs | json_encode | raw }}
  1495.             }
  1496.         </script>
  1497.     {% endif %}
  1498. {% endblock %}
  1499. {% block categorizedStylesheets %}
  1500.     {{ encore_entry_link_tags('activitiesApp') }}
  1501.     {% if IS_PROJECT_PARENT %}
  1502.         <link rel=\"stylesheet\" href=\"{{ asset('builds/css/projectDetailsBuild'~ (app.environment == 'dev' ? '' : '.min') ~'.css') }}\" />
  1503.     {% else %}
  1504.         <link rel=\"stylesheet\" href=\"{{ asset('builds/css/listingDetailsBuild'~ (app.environment == 'dev' ? '' : '.min') ~'.css') }}\" />
  1505.     {% endif %}
  1506. {% endblock %}
  1507. {% block headerTop %}
  1508. {% endblock %}
  1509. {% set CTA_block = \"\" %}
  1510. {% block body %}
  1511.     {% set markupType = \"SingleFamilyResidence\" %}
  1512.     {% set STATUS_LIVE_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingStatus::LIVE') %}
  1513.     {% set PHOTO_MAIN_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\PhotoTypes::MAIN_PHOTO') %}
  1514.     {% set STATUS_PENDING_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingStatus::PENDING') %}
  1515.     {% set STATUS_USER_DELETED_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingStatus::USER_DELETED') %}
  1516.     {% set PREMIUM_LISTING = not isSearchableListing %}
  1517.     {% if PREMIUM_LISTING %} {% set markupType = \"GatedResidenceCommunity\" %} {% endif %}
  1518.     {% if not isSearchableListing or (listing.parent and not listing.parent.section.searchable) %}
  1519.         {% set LEAD_LISTING = true %}
  1520.     {% else %}
  1521.         {% set LEAD_LISTING = false %}
  1522.     {% endif %}
  1523.     {% set STATUS_EXPIRED_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingStatus::USER_DELETED') %}
  1524.     {% set LISTING_CATEGORIES_SCRAPPED = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::SCRAPPED') %}
  1525.     {% set topCompaniesEnabled = not get_setting('features', 'top_companies') %}
  1526.     {% set currentUser = app.user %}
  1527.     {% set currentUserEmail = currentUser ? currentUser.email : '' %}
  1528.     {% if isListingHasChildren %}
  1529.             {% set sharingEvent = \"compound-details\" %}
  1530.         {% else %}
  1531.             {% set sharingEvent = \"listing-details\" %}
  1532.     {% endif %}
  1533. {% set showTopSellersModal = topSearchableCompaniesCount and searchableLocation is not null %}
  1534. {% set showRegisterSurvey = isEnabledFeature('web.registration.survey')  %}
  1535. {% set country = get_setting('general', 'country') | lower %}
  1536. {% set sellerName = '' %}
  1537. {% set listingUser = listing.user %}
  1538. {% set sellerName =  listingUser.fullName %}
  1539. {% set userLogo = listingUser.logo ? listingUser.logo.file : null %}
  1540. {% set logo = listing.validUserLogo %}
  1541. {% set sellerLogo = logo ? logo : userLogo %}
  1542. {% set sellerUrl = path('aqarmap_user_listings', {'id': listingUser.id})%}
  1543. {% set joinedData = listingUser.createdAt|date('Y')%}
  1544. {% set listingMainPhoto = '#' %}
  1545. {% if listing.mainPhoto %}
  1546.     {% set listingMainPhoto = custom_vich_uploader_asset(listing.mainPhoto.file, 'file') | thumbnail('search-thumb') %}
  1547. {% endif %}
  1548. {% set listing_attributes = listing.getAttributesList() %}
  1549. {% set listing_floor = (listing_attributes[\"floor\"]) is defined ? getFloorLabel(listing_attributes[\"floor\"])|trans : '' %}
  1550. {% set listing_year_built = (listing_attributes[\"year-built\"]) is defined ? listing_attributes[\"year-built\"] : '' %}
  1551. {% set listing_baths = (listing_attributes[\"baths\"]) is defined ? getRoomsLabel(listing_attributes[\"baths\"]) : '' %}
  1552. {% set listing_rooms = (listing_attributes[\"rooms\"]) is defined ? getRoomsLabel(listing_attributes[\"rooms\"]) : '' %}
  1553. {% set listing_finish_type = (listing_attributes[\"finish-type\"]) is defined ? listing_attributes[\"finish-type\"] : '' %}
  1554. {% set topSellerTrigger = 'gtm-action-topsellers-lead-listing-details' %}
  1555. {% set topSellerEventAction = 'ListingDetails' %}
  1556. {% set listingHasPhotos = listing.photosForSlider|length > 0 %}
  1557. {% set ABtestingClasses = \"listing-details-ab-testing-master virtical-related-listing virtical-related-listing_option-1\" %}
  1558. {% set encodedSellerPhones = []%}
  1559. {% for phone in listingPhones %}
  1560.         {% set encodedSellerPhones = encodedSellerPhones | merge([{'number': phone.number|phoneNumberEncode}]) %}
  1561. {% endfor %}
  1562. {% set listingLabelType = listing.label %}
  1563. {% set isListingTopPicks = listing.isTopPicks %}
  1564. {% set allowListingLabel = listingLabelType and not isListingTopPicks and not IS_PROJECT_PARENT %}
  1565. {% set isTopFavourited = listingLabelType == TOP_FAVOURITAED_CONST %}
  1566. {% set isValidPrice = listingLabelType == VALID_PRICE_CONST %}
  1567. {% set isTopViewed = listingLabelType == TOP_VIEWED_CONST %}
  1568. {% set listingLabelUrl = path('search' , {'section_slug' : section.slug, 'property_type_slug' : propertyType.slug, 'location_slug': location.slug }|merge({'label': listingLabelType}))%}
  1569. {% set enableSearchInListingDetails = not IS_PROJECT_PARENT and not isEnabledFeature('web.search.full.filters') %}
  1570. {% set showRelatedListing = relatedListingsCount and isSearchableListing and not IS_PROJECT_PARENT %}
  1571. {% set showOtherUnits = isEnabledFeature('web.other.units.details.page') and otherUnits|length > 0 %}
  1572. {# Testing listings #}
  1573. {% set testingListingsIds = [3747940, 3813089, 3626475, 2705901] %}
  1574. {% set isTestingListing = listing.id in testingListingsIds %}
  1575. {% set isListingSliderDisabledTest = isTestingListing and isEnabledFeature('web.disable.listingslider') %}
  1576. {% set isTopSellersDisabledTest = isTestingListing and isEnabledFeature('web.disable.topsellers') %}
  1577. {% set isRelatedListingsDisabledTest = isTestingListing and isEnabledFeature('web.disable.relatedlistings') %}
  1578. {% set isGoogleDoubleClickDisabledTest = isTestingListing and isEnabledFeature('web.disable.googledoubleclick') %}
  1579. {% set isEnabledActivityDisabledTest = isTestingListing and isEnabledFeature('web.disable.activities.test') %}
  1580. {% set isEnabledActivityListingPage = isEnabledActivityListingPage and not isEnabledActivityDisabledTest %}
  1581. {% set relatedListing %}
  1582.     <div class=\"row\">
  1583.         {% include \"@AqarmapListing/ListingSearch/listingCardVertical.html.twig\" with {'listings': related_listings, 'mainListing': listing, 'isRelatedToListing': true, 'defaultResults' : false, 'topSellersResults' : false, 'isRelatedResults' : false, 'hideCta': true , 'cardGridSize': 'related-listing-card-option-1' , 'leadSourcePage': 'related_listings'} %}
  1584.     </div>
  1585. {% endset %}
  1586. <div class=\"listing-quick-lead\" ng-controller=\"quickLeadController\">
  1587.     <div ng-content-loaded callback='setSourceRoute(\"{{ app.request.attributes.get('_route') }}\");
  1588.             setListingDetail(\"{{listing.id}}\",{
  1589.                 \"id\": \"{{listing.id}}\",
  1590.                 \"section\": \"{{section.id}}\",
  1591.                 \"sectionTitle\": {{section.title|serialize()}},
  1592.                 \"isProjectParent\": \"{{IS_PROJECT_PARENT}}\" ,
  1593.                 \"sellerPhones\": {{encodedSellerPhones|serialize('json')}},
  1594.                 \"sellerPhone\": \"{{listingPhone ? listingPhone.number|phoneNumberEncode: \"\"}}\",
  1595.                 \"financeUrl\":\"{{listing.getFinancialAidURL()}}\",
  1596.                 \"userEmail\": {{currentUserEmail|json_encode()}},
  1597.                 \"financeFeatureValue\": \"{{financeFeatureValue}}\",
  1598.                 \"listingName\" : {{listing.customSlug|default(listing.id)|serialize()}},
  1599.                 \"listingTitle\" : {{listing.title|serialize()}},
  1600.                 \"location\": \"{{location.id}}\",
  1601.                 \"locationTitle\": {{location.title|serialize()}},
  1602.                 \"propertyType\": \"{{propertyType.id}}\",
  1603.                 \"propertyTypeTitle\": {{propertyType.title|serialize()}},
  1604.                 \"price\": \"{{listing.price}}\",
  1605.                 \"currency\": \"{{ get_setting('general', 'currency')|trans }}\",
  1606.                 \"area\": \"{{listing.area}}\",
  1607.                 \"isCompound\": \"{{IS_PROJECT_PARENT}}\",
  1608.                 \"image\": \"{{ listingMainPhoto }}\",
  1609.                 \"paymentMethodLabel\": {{ listing.paymentMethodLabel|trans|serialize() }},
  1610.                 \"pricePerMeter\": \"{{listing.calculatePricePerMeter }}\",
  1611.                 \"sellerRole\": {{listing.sellerRoleLabel|trans|serialize()}},
  1612.                 \"floor\": \"{{  listing_floor }}\",
  1613.                 \"baths\": \"{{  listing_baths }}\",
  1614.                 \"rooms\": \"{{  listing_rooms }}\",
  1615.                 \"yearBuilt\": \"{{  listing_year_built }}\",
  1616.                 \"finishType\": \"{{  listing_finish_type }}\",
  1617.                 \"publishDate\": \"{{  listing.publishedAt|date('Y-m-d h:i:s A') }}\",
  1618.                 \"view\": {{ listing.propertyViewLabel|trans|serialize() }},
  1619.                 \"listingUser\": {
  1620.                     \"sellerName\" : {{sellerName|serialize()}},
  1621.                     \"sellerLogo\": \"\",
  1622.                     \"sellerUrl\": \"{{sellerUrl}}\",
  1623.                     \"joinedData\":\"{{joinedData}}\",
  1624.                     \"activeListingsCount\": \"{{activeListingsCount}}\",
  1625.                     \"leadsCount\":\"{{leadsCount}}\"
  1626.                 },
  1627.                 \"description\": {{ listing.description|serialize() }},
  1628.             });'>
  1629.         {% if enableSearchInListingDetails %}
  1630.             {% include \"@AqarmapListing/ListingSearch/searchFormFilter.html.twig\" %}
  1631.         {% endif %}
  1632.         <div class=\"container listingContainer listing_details_container {{ relatedListingsCount and isSearchableListing ? 'has-related-listing' : ''}} {% if isEnabledFeature('web.header.cta') %}overflow-hidden{% endif %}\">
  1633.             <div class=\"row\">
  1634.                 {% include '@AqarmapListingBundle/Listing/listingNav.html.twig' %}
  1635.                 <section
  1636.                     class=\"col-md-12 listing-details {{ ABtestingClasses }}\"
  1637.                     data-sticky-container
  1638.                     itemscope
  1639.                     itemtype=\"https://schema.org/{{ markupType }}\"
  1640.                     >
  1641.                     <div class=\"listing-slider-container padding-lg-zero padding-md-zero\" >
  1642.                         {% if listingHasPhotos %}
  1643.                             <div class=\"slider-wrapper section-wrapper\">
  1644.                                 {% include '@AqarmapListingBundle/Listing/listingSlider.html.twig' %}
  1645.                             </div>
  1646.                         {% endif %}
  1647.                         {% include '@AqarmapListingBundle/Listing/listingContactWrapper.html.twig' %}
  1648.                     </div>
  1649.                     <div class=\"listing-details-container padding-md-zero\">
  1650.                         {% include '@AqarmapListingBundle/Listing/listingLabel.html.twig' %}
  1651.                         {% if IS_PROJECT_PARENT %}
  1652.                             {% include '@AqarmapListingBundle/Listing/projectDetailsTitle.html.twig' %}
  1653.                         {% else %}
  1654.                             {% include '@AqarmapListingBundle/Listing/listingTitle.html.twig' %}
  1655.                         {% endif %}
  1656.                     </div>
  1657.                     <div class=\"listing-details-container padding-md-zero\">
  1658.                         {% include '@AqarmapListingBundle/Listing/listingUnitsTabs.html.twig' %}
  1659.                         {% if showListingDetails %}
  1660.                             {% include \"@AqarmapListingBundle/Listing/listingDetailsList.html.twig\" %}
  1661.                         {% endif %}
  1662.                         {% include \"@AqarmapListingBundle/Listing/listingDescription.html.twig\" %}
  1663.                         {% include \"@AqarmapListingBundle/Listing/listingMap.html.twig\" %}
  1664.                         {% include \"@AqarmapListingBundle/Listing/listingSellerInfo.html.twig\" %}
  1665.                         {% if not isTopSellersDisabledTest %}
  1666.                             {% include \"@AqarmapListingBundle/Listing/listingTopSellers.html.twig\" %}
  1667.                         {% endif %}
  1668.                         {% if IS_PROJECT %}
  1669.                             {% include \"@AqarmapListingBundle/Listing/compoundRating.html.twig\" %}
  1670.                         {% endif %}
  1671.                         {% include '@AqarmapListingBundle/Listing/otherUnitsTable.html.twig' %}
  1672.                         {% if not isRelatedListingsDisabledTest %}
  1673.                             {% if showRelatedListing %}
  1674.                                 <div class=\"listing-details-item card-container card-container_option-2\">
  1675.                                     {% include '@AqarmapListingBundle/Listing/listingRelatedListingSection.html.twig' %}
  1676.                                 </div>
  1677.                             {% endif %}
  1678.                         {% endif %}
  1679.                         {% include '@AqarmapListingBundle/Listing/listingNeighborhoodsSection.html.twig' %}
  1680.                         {% include '@AqarmapListingBundle/Listing/listingDiscussionsSection.html.twig' %}
  1681.                         {% include '@AqarmapListingBundle/Listing/listingFooter.html.twig' %}
  1682.                     </div>
  1683.                 </section>
  1684.                 {% include '@AqarmapListingBundle/Listing/projectFaqs.html.twig' %}
  1685.             </div>
  1686.         </div>
  1687.         {% if not isSearchableListing and not IS_PROJECT_PARENT %}
  1688.             {% set section = section %}
  1689.             <div class=\"container\">
  1690.                 <div class=\"compounds_quick_links\">
  1691.                     {% include \"@AqarmapListing/CompoundSearch/compoundsSubLinks.html.twig\" %}
  1692.                 </div>
  1693.             </div>
  1694.         {% endif %}
  1695.         {# Google double click ads #}
  1696.         {% if not isGoogleDoubleClickDisabledTest %}
  1697.             {% include \"adsHeader.html.twig\" %}
  1698.         {% endif %}
  1699.         {# Modals container #}
  1700.         {% if not isRelatedListingsDisabledTest %}
  1701.             {% if showRelatedListing %}
  1702.                 {% include '@AqarmapListingBundle/Listing/OnCloseListingPopup.html.twig' %}
  1703.             {% endif %}
  1704.         {% endif %}
  1705.         {% include '@AqarmapListingBundle/Listing/listingModalsContainer.html.twig' %}
  1706.     </div>
  1707. </div>
  1708. {% include '@AqarmapListingBundle/Listing/listingBreadcrumb.html.twig' %}
  1709. {% endblock %}
  1710. {% block footer %}
  1711.     {% include \"footer.v2.html.twig\" %}
  1712. {% endblock %}
  1713. {% block facebookLogin %}
  1714.     {% if isEnabledFeature('web.enable.quicklogin') %}
  1715.         {{ parent() }}
  1716.     {% endif %}
  1717. {% endblock %}
  1718. {% block categorizedJavascripts %}
  1719.     <script type=\"application/javascript\" src=\"{{ asset('builds/js/buildListingDetailsCritical'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
  1720.     <script defer type=\"application/javascript\" src=\"{{ asset('builds/js/buildListingDetailsMainVendors'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
  1721.     <script defer type=\"application/javascript\" src=\"{{ asset('builds/js/buildListingDetailsExtraVendors'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
  1722.     {% if isEnabledCompoundBuild %}
  1723.         <script defer src=\"{{ asset('builds/js/compound.desktop.buildListingDetails'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
  1724.     {% else %}
  1725.         <script defer src=\"{{ asset('builds/js/buildListingDetails'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
  1726.     {% endif %}
  1727.     <script defer type=\"application/javascript\" src=\"{{ asset('builds/js/buildTopSellers'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
  1728.         {% if isEnabledLazyloadingActivitiesBuild %}
  1729.             {% for file in encore_entry_js_files('activitiesApp') %}
  1730.                 <script async type='application/javascript' src='{{ asset(file) }}'></script>
  1731.             {% endfor %}
  1732.         {% else %}
  1733.             {{ encore_entry_script_tags('activitiesApp', attributes={defer: false}) }}
  1734.         {% endif %}
  1735.     {% if topBar is defined and  not null %}
  1736.         {{ encore_entry_script_tags('countdown') }}
  1737.     {% endif %}
  1738. {% endblock %}
  1739. {% block javascripts %}
  1740.     <script src=\"//maps.google.com/maps/api/js?v=3.25&amp;key={{ google_maps_key }}\"></script>
  1741.     {{ parent() }}
  1742.     <script>
  1743.         \$(document).ready(function () {
  1744.             imageSlider.lunchSlider({% if isLocalArabic %}true{% else %}false{% endif %}, false);
  1745.         });
  1746.     </script>
  1747.     <script>
  1748.         \$(document).ready(function () {
  1749.             dataLayer.push({
  1750.                 'listingName': '{{ listing.customSlug|default(listing.id) }}',
  1751.                 'listingParentName': {% if listing.parent %}'{{ listing.parent.customSlug|default(listing.parent.id) }}'{% else %}null{% endif %},
  1752.                 'listingSection': '{{ leadAnalytics.listingSection|default('') }}',
  1753.                 'listingSegment': '{{ leadAnalytics.listingSegment|default('') }}',
  1754.                 'hasParent': {{ listing.parent ? 'true' : 'false' }},
  1755.                 'hasChildren': {{ listing.isProject ? 'true' : 'false' }},
  1756.                 'isFeatured': {{ listing.featured ? 'true' : 'false' }}
  1757.             });
  1758.         });
  1759.     </script>
  1760.     <script>
  1761.         function getdivheight(){
  1762.             return \$('#listing-title-container').height() > 0 ? \$('#listing-title-container').height() : 100;
  1763.         }
  1764.         function updateDivMargin(){
  1765.             //add 5 pix to height
  1766.             var temp_margintop = getdivheight() + 5;
  1767.             \$('#listingContactWrapper').attr('data-margin-top',temp_margintop);
  1768.         }
  1769.         \$(document).ready(function () {
  1770.             updateDivMargin();
  1771.         });
  1772.         \$( window ).resize(function() {
  1773.             updateDivMargin();
  1774.         });
  1775.     </script>
  1776.     {# Google tag manager for contact the seller after submit #}
  1777.     {% if app.request.query.get('contact_seller') %}
  1778.         <script>
  1779.             // Google Tag Manager
  1780.             \$(document).ready(function () {
  1781.                 dataLayer.push({'event': 'gtm-action-seller-message'});
  1782.             });
  1783.         </script>
  1784.     {% endif %}
  1785.     {% if listing.parent is null and isSearchableListing %}
  1786.     <script>
  1787.         {% if searchableLocation is not null %}
  1788.         var locationId = {{location.nearestSearchable.id}};
  1789.         {% else %}
  1790.         var locationId = null;
  1791.         {% endif %}
  1792.         jQuery(document).mouseleave(function (e) {
  1793.         if(e.clientY < 100)
  1794.         {
  1795.             if (!locationsLocalStorage.locationExists(locationId))
  1796.             {
  1797.                 \$('.modal').modal('hide');
  1798.                 \$('#on-close-popup').modal('show');
  1799.                 locationsLocalStorage.setLocationId(locationId);
  1800.             }else
  1801.             {
  1802.                 if (locationsLocalStorage.isLocationExpired(locationId))
  1803.                 {
  1804.                     \$('.modal').modal('hide');
  1805.                     \$('#on-close-popup').modal('show');
  1806.                     dataLayer.push({'event': 'gtm-action-request-call-popup'});
  1807.                     locationsLocalStorage.updateLocationExpiryDate(locationId);
  1808.                 }
  1809.             }
  1810.         }
  1811.         });
  1812.     </script>
  1813.     {% endif %}
  1814. {% endblock %}
  1815. ""@AqarmapListing/Listing/read.html.twig""/srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Resources/views/Listing/read.html.twig");
  1816.     }
  1817. }