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

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