<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @AqarmapListing/Listing/read.html.twig */
class __TwigTemplate_b1f201b571c1c871b9f304e1013325383cfcc848b22f88b15f2b2deaff344ea7 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'meta_description' => [$this, 'block_meta_description'],
'htmlhead' => [$this, 'block_htmlhead'],
'categorizedStylesheets' => [$this, 'block_categorizedStylesheets'],
'headerTop' => [$this, 'block_headerTop'],
'body' => [$this, 'block_body'],
'footer' => [$this, 'block_footer'],
'facebookLogin' => [$this, 'block_facebookLogin'],
'categorizedJavascripts' => [$this, 'block_categorizedJavascripts'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AqarmapListing/Listing/read.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AqarmapListing/Listing/read.html.twig"));
// line 3
$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); })()), [0 => "Form/form_div_layout.html.twig"], true);
// line 6
$context["FIRST_LISTING_FOR_FREE_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::FIRST_LISTING_FOR_FREE");
// line 7
$context["EBAWAB_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::EBAWAB");
// line 8
$context["UNLIMITED_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::UNLIMITED");
// line 9
$context["PAID_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::PAID");
// line 10
$context["PROJECT_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::PROJECTS");
// line 11
$context["SCRAPPED_LISTING_CATEGORY"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::SCRAPPED");
// line 12
$context["SHOW_PHONE_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::SHOW_PHONE");
// line 13
$context["SEND_MESSAGE_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::SEND_MESSAGE");
// line 14
$context["SEND_WHATSAPP_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::WHATSAPP");
// line 15
$context["CALL_REQUEST_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::CALL_REQUEST");
// line 16
$context["TOP_VIEWED_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::TOP_VIEWED");
// line 17
$context["TOP_FAVOURITAED_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::TOP_FAVORITE");
// line 18
$context["VALID_PRICE_CONST"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingLabel::VALID_PRICE");
// line 19
$context["SPONSORED_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SPONSORED");
// line 20
$context["FEATURE_TYPE"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::FEATURED");
// line 21
$context["PREMIUM_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::PREMIUM");
// line 22
$context["SPOTLIGHT_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingFeaturedTypes::SPOTLIGHT");
// line 25
$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", false, false, false, 25);
// line 26
$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); })()));
// line 27
$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); })()));
// line 28
$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); })()));
// line 29
$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); })()));
// line 30
$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", false, false, false, 30);
// line 31
$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); })()));
// line 32
$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); })()));
// line 33
$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); })()));
// line 34
$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); })()));
// line 35
$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); })()));
// line 36
$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); })()));
// line 37
$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", false, false, false, 37)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 37, $this->source); })()), "section", [], "any", false, false, false, 37), "slug", [], "any", false, false, false, 37)))));
// line 38
$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
(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
(isset($context["isFlf2"]) || array_key_exists("isFlf2", $context) ? $context["isFlf2"] : (function () { throw new RuntimeError('Variable "isFlf2" does not exist.', 40, $this->source); })())) ? ("flf2") : ("free"))))))))))));
// line 41
$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
(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"))))))));
// line 43
$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", false, false, false, 43) != null));
// line 46
$context["sendEmailBtnStyleClasses"] = "btn btn-block btn-lg cta-btn rounded-pill btn-gray";
// line 47
$context["phoneBtnStyleClasses"] = "btn btn-block btn-lg cta-btn rounded-pill btn-primary";
// line 49
$context["forRent"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingSections::FOR_RENT");
// line 50
$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", false, false, false, 50) != null);
// line 51
$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); })()));
// line 52
$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); })());
// line 53
$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", false, false, false, 53) == (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); })()));
// line 54
$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", false, false, false, 54) == (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); })())));
// line 55
$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", false, false, false, 55) == (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); })()));
// line 56
$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", false, false, false, 56)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 56, $this->source); })()), "parent", [], "any", false, false, false, 56), "id", [], "any", false, false, false, 56)) : (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", false, false, false, 56)));
// line 57
$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", false, false, false, 57)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 57, $this->source); })()), "parent", [], "any", false, false, false, 57), "title", [], "any", false, false, false, 57)) : (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", false, false, false, 57)));
// line 58
$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"));
// line 59
$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"));
// line 60
$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); })()));
// line 61
$context["isEnabledLazyloadingActivitiesBuild"] = $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.async.vueapp");
// line 62
$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); })())));
// line 63
$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);
// line 64
$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);
// line 65
$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);
// line 66
$context["isPrimaryUnitsSoldOut"] = !(isset($context["hasPrimaryUnits"]) || array_key_exists("hasPrimaryUnits", $context) ? $context["hasPrimaryUnits"] : (function () { throw new RuntimeError('Variable "hasPrimaryUnits" does not exist.', 66, $this->source); })());
// line 67
$context["isRentUnitsSoldOut"] = !(isset($context["hasRentUnits"]) || array_key_exists("hasRentUnits", $context) ? $context["hasRentUnits"] : (function () { throw new RuntimeError('Variable "hasRentUnits" does not exist.', 67, $this->source); })());
// line 68
$context["isResaleUnitsSoldOut"] = !(isset($context["hasResaleUnits"]) || array_key_exists("hasResaleUnits", $context) ? $context["hasResaleUnits"] : (function () { throw new RuntimeError('Variable "hasResaleUnits" does not exist.', 68, $this->source); })());
// line 69
$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); })()));
// line 70
$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); })()));
// line 71
$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); })()));
// line 72
$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", false, false, false, 72));
// line 73
$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", false, false, false, 73));
// line 74
$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"));
// line 76
$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", false, false, false, 76);
// line 77
$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", false, false, false, 77);
// line 79
$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", false, false, false, 79);
// line 80
$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", false, false, false, 80);
// line 82
$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", false, false, false, 82);
// line 83
$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", false, false, false, 83);
// line 85
$context["isCompaniesDataParamsDefined"] = true;
// line 87
$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); })()));
// line 88
$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", false, false, false, 88);
// line 89
$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", false, false, false, 89)) : (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", false, false, false, 89)));
// line 90
$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); })()));
// line 91
$context["showTopSearchableCompaniesList"] = true;
// line 92
$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", false, false, false, 92)) : (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", false, false, false, 92)));
// line 93
$context["listingPhone"] = null;
// line 94
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); })()))) {
// line 95
$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); })()));
}
// line 97
$context["financeFeatureValue"] = $this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("features", "finance_service");
// line 98
$context["ALLOWED_LISTING_SECTIONS_TO_ADD_FINANCE_URL"] = twig_constant("Aqarmap\\Bundle\\FinancialAidsBundle\\Constant\\FinancialAidConstraints::ALLOWED_LISTING_SECTIONS_TO_ADD_FINANCE_URL");
// line 99
$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); })()));
// line 100
$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", false, false, false, 100) == true);
// line 101
$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", false, false, false, 101), $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"));
// line 102
$context["metaDescription"] = $this->env->getRuntime('Twig\Extra\Markdown\MarkdownRuntime')->convert(twig_nl2br(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.', 102, $this->source); })()), "description", [], "any", false, false, false, 102), "html", null, true)));
// line 103
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); })())) {
// line 104
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", false, false, false, 104)) {
// line 105
$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", false, false, false, 105)]);
} else {
// line 107
$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", false, false, false, 107)]);
}
// line 109
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", false, false, false, 109)) {
// line 110
$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", false, false, false, 110);
}
}
// line 119
$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); })())));
// line 121
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); })())) {
// line 122
$context["project_faqs"] = [0 => ((twig_get_attribute($this->env, $this->source, // line 123
(isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs", $context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.', 123, $this->source); })()), "location", [], "any", false, false, false, 123)) ? (["@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
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 126, $this->source); })()), "title", [], "any", false, false, false, 126)]), "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
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 131, $this->source); })()), "title", [], "any", false, false, false, 131), "%location%" => twig_get_attribute($this->env, $this->source, // line 132
(isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs", $context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.', 132, $this->source); })()), "location", [], "any", false, false, false, 132)])]]) : ([])), 1 => ((twig_get_attribute($this->env, $this->source, // line 136
(isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs", $context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.', 136, $this->source); })()), "minimumUnitPrice", [], "any", false, false, false, 136)) ? (["@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
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 139, $this->source); })()), "title", [], "any", false, false, false, 139)]), "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
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 144, $this->source); })()), "title", [], "any", false, false, false, 144), "%starting_price%" => twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, // line 145
(isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs", $context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.', 145, $this->source); })()), "minimumUnitPrice", [], "any", false, false, false, 145))])]]) : ([])), 2 => ((twig_get_attribute($this->env, $this->source, // line 149
(isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs", $context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.', 149, $this->source); })()), "minimumUnitArea", [], "any", false, false, false, 149)) ? (["@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
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 152, $this->source); })()), "title", [], "any", false, false, false, 152)]), "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
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 157, $this->source); })()), "title", [], "any", false, false, false, 157), "%starting_area%" => twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, // line 158
(isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs", $context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.', 158, $this->source); })()), "minimumUnitArea", [], "any", false, false, false, 158))])]]) : ([])), 3 => ((twig_get_attribute($this->env, $this->source, // line 162
(isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs", $context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.', 162, $this->source); })()), "lastUpdate", [], "any", false, false, false, 162)) ? (["@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
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 168, $this->source); })()), "title", [], "any", false, false, false, 168), "%date%" => twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, // line 169
(isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs", $context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.', 169, $this->source); })()), "lastUpdate", [], "any", false, false, false, 169), "m/d/Y")])]]) : ([])), 4 => ((twig_get_attribute($this->env, $this->source, // line 173
(isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs", $context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.', 173, $this->source); })()), "constructionStatus", [], "any", false, false, false, 173)) ? (["@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
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 176, $this->source); })()), "title", [], "any", false, false, false, 176)]), "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
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 181, $this->source); })()), "title", [], "any", false, false, false, 181), "%status%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, // line 182
(isset($context["compoundFaqs"]) || array_key_exists("compoundFaqs", $context) ? $context["compoundFaqs"] : (function () { throw new RuntimeError('Variable "compoundFaqs" does not exist.', 182, $this->source); })()), "constructionStatus", [], "any", false, false, false, 182))])]]) : ([]))];
}
// line 237
$context["CTA_block"] = "";
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "@AqarmapListing/Listing/read.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 113
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
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", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 115
public function block_meta_description($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_description"));
// line 116
echo " ";
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", null, true);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 189
public function block_htmlhead($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "htmlhead"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "htmlhead"));
// line 190
echo " ";
$context["LISTING_CATEGORIES_SCRAPPED"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::SCRAPPED");
// line 191
echo " <meta name=\"twitter:card\" content=\"summary_large_image\" />
<meta name=\"twitter:site\" content=\"";
// line 192
echo twig_escape_filter($this->env, twig_sprintf("%s%s", "@", $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name")), "html", null, true);
echo "\" />
<meta name=\"twitter:creator\" content=\"";
// line 193
echo twig_escape_filter($this->env, twig_sprintf("%s%s", "@", $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name")), "html", null, true);
echo "\" />
<meta property=\"og:title\" content=\"";
// line 194
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", false, false, false, 194) == (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", false, false, false, 194)])) : (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", false, false, false, 194), $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", null, true);
echo "\"/>
<meta property=\"og:description\" content=\"";
// line 195
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", false, false, false, 195) == (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", false, false, false, 195), "%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", null, true);
echo "\" />
<meta property=\"og:url\" content=\"";
// line 196
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", false, false, false, 196), "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", false, false, false, 196)]), "html", null, true);
echo "\" />
<meta property=\"og:site_name\" content=\"";
// line 197
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name"), "html", null, true);
echo "\" />
<meta property=\"fb:app_id\" content=\"";
// line 198
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", null, true);
echo "\"/>
<meta property=\"og:image\" content=\"";
// line 199
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", null, true);
echo "\" />
";
// line 200
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); })()))) {
// line 201
echo " <meta name=\"robots\" content=\"noindex, nofollow\">
";
}
// line 203
echo "
<link rel=\"canonical\" href=\"";
// line 204
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", false, false, false, 204)]), "html", null, true);
echo "\"/>
<link rel=\"shortlink\" href=\"";
// line 205
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", false, false, false, 205)]), "html", null, true);
echo "\"/>
";
// line 206
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", false, false, false, 206)) {
// line 207
echo " <link rel=\"alternate\" hreflang=\"ar\" href=\"";
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", false, false, false, 207), "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", false, false, false, 207), "_locale" => "ar"]), "html", null, true);
echo "\"/>
<link rel=\"alternate\" hreflang=\"en\" href=\"";
// line 208
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", false, false, false, 208), "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", false, false, false, 208), "_locale" => "en"]), "html", null, true);
echo "\"/>
<link rel=\"alternate\" hreflang=\"x-default\"
href=\"";
// line 210
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", false, false, false, 210), "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", false, false, false, 210), "_locale" => "ar"]), "html", null, true);
echo "\"/>
";
}
// line 212
echo " ";
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); })())) {
// line 213
echo " <script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"FAQPage\",
\"mainEntity\": ";
// line 217
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); })()));
echo "
}
</script>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 222
public function block_categorizedStylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "categorizedStylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "categorizedStylesheets"));
// line 223
echo " ";
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); })()))) {
// line 224
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("activitiesApp");
echo "
";
}
// line 226
echo "
";
// line 227
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); })())) {
// line 228
echo " <link rel=\"stylesheet\" href=\"";
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", false, false, false, 228) == "dev")) ? ("") : (".min"))) . ".css")), "html", null, true);
echo "\" />
";
} else {
// line 230
echo " <link rel=\"stylesheet\" href=\"";
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", false, false, false, 230) == "dev")) ? ("") : (".min"))) . ".css")), "html", null, true);
echo "\" />
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 234
public function block_headerTop($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerTop"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerTop"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 238
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 239
echo " ";
$context["markupType"] = "SingleFamilyResidence";
// line 240
echo " ";
$context["STATUS_LIVE_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingStatus::LIVE");
// line 241
echo " ";
$context["PHOTO_MAIN_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\PhotoTypes::MAIN_PHOTO");
// line 242
echo " ";
$context["STATUS_PENDING_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingStatus::PENDING");
// line 243
echo " ";
$context["STATUS_USER_DELETED_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingStatus::USER_DELETED");
// line 244
echo " ";
$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); })());
// line 245
echo " ";
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); })())) {
echo " ";
$context["markupType"] = "GatedResidenceCommunity";
echo " ";
}
// line 246
echo " ";
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", false, false, false, 246) && !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 246, $this->source); })()), "parent", [], "any", false, false, false, 246), "section", [], "any", false, false, false, 246), "searchable", [], "any", false, false, false, 246)))) {
// line 247
echo " ";
$context["LEAD_LISTING"] = true;
// line 248
echo " ";
} else {
// line 249
echo " ";
$context["LEAD_LISTING"] = false;
// line 250
echo " ";
}
// line 251
echo " ";
$context["STATUS_EXPIRED_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingStatus::USER_DELETED");
// line 252
echo " ";
$context["LISTING_CATEGORIES_SCRAPPED"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\ListingCategories::SCRAPPED");
// line 253
echo " ";
$context["topCompaniesEnabled"] = !$this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("features", "top_companies");
// line 254
echo " ";
$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", false, false, false, 254);
// line 255
echo " ";
$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", false, false, false, 255)) : (""));
// line 256
echo " ";
if ((isset($context["isListingHasChildren"]) || array_key_exists("isListingHasChildren", $context) ? $context["isListingHasChildren"] : (function () { throw new RuntimeError('Variable "isListingHasChildren" does not exist.', 256, $this->source); })())) {
// line 257
echo " ";
$context["sharingEvent"] = "compound-details";
// line 258
echo " ";
} else {
// line 259
echo " ";
$context["sharingEvent"] = "listing-details";
// line 260
echo " ";
}
// line 261
$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); })())));
// line 262
$context["showRegisterSurvey"] = $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.registration.survey");
// line 263
$context["country"] = twig_lower_filter($this->env, $this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("general", "country"));
// line 264
$context["sellerName"] = "";
// line 265
$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", false, false, false, 265);
// line 266
$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", false, false, false, 266);
// line 267
$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", false, false, false, 267)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listingUser"]) || array_key_exists("listingUser", $context) ? $context["listingUser"] : (function () { throw new RuntimeError('Variable "listingUser" does not exist.', 267, $this->source); })()), "logo", [], "any", false, false, false, 267), "file", [], "any", false, false, false, 267)) : (null));
// line 268
$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", false, false, false, 268);
// line 269
$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); })())));
// line 270
$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", false, false, false, 270)]);
// line 271
$context["joinedData"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["listingUser"]) || array_key_exists("listingUser", $context) ? $context["listingUser"] : (function () { throw new RuntimeError('Variable "listingUser" does not exist.', 271, $this->source); })()), "createdAt", [], "any", false, false, false, 271), "Y");
// line 272
$context["listingMainPhoto"] = "#";
// line 273
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", false, false, false, 273)) {
// line 274
echo " ";
$context["listingMainPhoto"] = $this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 274, $this->source); })()), "mainPhoto", [], "any", false, false, false, 274), "file", [], "any", false, false, false, 274), "file"), "search-thumb");
}
// line 276
$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", false, false, false, 276);
// line 277
$context["listing_floor"] = ((twig_get_attribute($this->env, $this->source, ($context["listing_attributes"] ?? null), "floor", [], "array", true, true, false, 277)) ? ($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", false, false, false, 277)))) : (""));
// line 278
$context["listing_year_built"] = ((twig_get_attribute($this->env, $this->source, ($context["listing_attributes"] ?? null), "year-built", [], "array", true, true, false, 278)) ? (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", false, false, false, 278)) : (""));
// line 279
$context["listing_baths"] = ((twig_get_attribute($this->env, $this->source, ($context["listing_attributes"] ?? null), "baths", [], "array", true, true, false, 279)) ? ($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", false, false, false, 279))) : (""));
// line 280
$context["listing_rooms"] = ((twig_get_attribute($this->env, $this->source, ($context["listing_attributes"] ?? null), "rooms", [], "array", true, true, false, 280)) ? ($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", false, false, false, 280))) : (""));
// line 281
$context["listing_finish_type"] = ((twig_get_attribute($this->env, $this->source, ($context["listing_attributes"] ?? null), "finish-type", [], "array", true, true, false, 281)) ? (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", false, false, false, 281)) : (""));
// line 282
$context["topSellerTrigger"] = "gtm-action-topsellers-lead-listing-details";
// line 283
$context["topSellerEventAction"] = "ListingDetails";
// line 284
$context["listingHasPhotos"] = (twig_length_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.', 284, $this->source); })()), "photosForSlider", [], "any", false, false, false, 284)) > 0);
// line 285
$context["ABtestingClasses"] = "listing-details-ab-testing-master virtical-related-listing virtical-related-listing_option-1";
// line 286
$context["encodedSellerPhones"] = [];
// line 287
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["listingPhones"]) || array_key_exists("listingPhones", $context) ? $context["listingPhones"] : (function () { throw new RuntimeError('Variable "listingPhones" does not exist.', 287, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phone"]) {
// line 288
echo " ";
$context["encodedSellerPhones"] = twig_array_merge((isset($context["encodedSellerPhones"]) || array_key_exists("encodedSellerPhones", $context) ? $context["encodedSellerPhones"] : (function () { throw new RuntimeError('Variable "encodedSellerPhones" does not exist.', 288, $this->source); })()), [0 => ["number" => $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->phoneNumberEncode(twig_get_attribute($this->env, $this->source, $context["phone"], "number", [], "any", false, false, false, 288))]]);
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phone'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 290
$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", false, false, false, 290);
// line 291
$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", false, false, false, 291);
// line 292
$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); })()));
// line 293
$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); })()));
// line 294
$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); })()));
// line 295
$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); })()));
// line 296
$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", false, false, false, 296), "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", false, false, false, 296), "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", false, false, false, 296)], ["label" => (isset($context["listingLabelType"]) || array_key_exists("listingLabelType", $context) ? $context["listingLabelType"] : (function () { throw new RuntimeError('Variable "listingLabelType" does not exist.', 296, $this->source); })())]));
// line 297
$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"));
// line 298
$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); })()));
// line 299
$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));
// line 300
echo "
";
// line 302
$context["testingListingsIds"] = [0 => 3747940, 1 => 3813089, 2 => 3626475, 3 => 2705901];
// line 303
$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", false, false, false, 303), (isset($context["testingListingsIds"]) || array_key_exists("testingListingsIds", $context) ? $context["testingListingsIds"] : (function () { throw new RuntimeError('Variable "testingListingsIds" does not exist.', 303, $this->source); })()));
// line 304
$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"));
// line 305
$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"));
// line 306
$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"));
// line 307
$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"));
// line 308
$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"));
// line 309
$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); })()));
// line 310
echo "
";
// line 311
ob_start();
// line 312
echo " <div class=\"row\">
";
// line 313
$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"]));
// line 314
echo " </div>
";
$context["relatedListing"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 316
echo "<div class=\"listing-quick-lead\" ng-controller=\"quickLeadController\">
<div ng-content-loaded callback='setSourceRoute(\"";
// line 317
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 317, $this->source); })()), "request", [], "any", false, false, false, 317), "attributes", [], "any", false, false, false, 317), "get", [0 => "_route"], "method", false, false, false, 317), "html", null, true);
echo "\");
setListingDetail(\"";
// line 318
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.', 318, $this->source); })()), "id", [], "any", false, false, false, 318), "html", null, true);
echo "\",{
\"id\": \"";
// line 319
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.', 319, $this->source); })()), "id", [], "any", false, false, false, 319), "html", null, true);
echo "\",
\"section\": \"";
// line 320
echo twig_escape_filter($this->env, 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.', 320, $this->source); })()), "id", [], "any", false, false, false, 320), "html", null, true);
echo "\",
\"sectionTitle\": ";
// line 321
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", false, false, false, 321)), "html", null, true);
echo ",
\"isProjectParent\": \"";
// line 322
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", null, true);
echo "\" ,
\"sellerPhones\": ";
// line 323
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", null, true);
echo ",
\"sellerPhone\": \"";
// line 324
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", false, false, false, 324)), "html", null, true);
echo "\",
\"financeUrl\":\"";
// line 325
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.', 325, $this->source); })()), "getFinancialAidURL", [], "method", false, false, false, 325), "html", null, true);
echo "\",
\"userEmail\": ";
// line 326
echo twig_escape_filter($this->env, json_encode((isset($context["currentUserEmail"]) || array_key_exists("currentUserEmail", $context) ? $context["currentUserEmail"] : (function () { throw new RuntimeError('Variable "currentUserEmail" does not exist.', 326, $this->source); })())), "html", null, true);
echo ",
\"financeFeatureValue\": \"";
// line 327
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", null, true);
echo "\",
\"listingName\" : ";
// line 328
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", true, true, false, 328)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["listing"] ?? null), "customSlug", [], "any", false, false, false, 328), 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", false, false, false, 328))) : (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", false, false, false, 328)))), "html", null, true);
echo ",
\"listingTitle\" : ";
// line 329
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", false, false, false, 329)), "html", null, true);
echo ",
\"location\": \"";
// line 330
echo twig_escape_filter($this->env, 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.', 330, $this->source); })()), "id", [], "any", false, false, false, 330), "html", null, true);
echo "\",
\"locationTitle\": ";
// line 331
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", false, false, false, 331)), "html", null, true);
echo ",
\"propertyType\": \"";
// line 332
echo twig_escape_filter($this->env, 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.', 332, $this->source); })()), "id", [], "any", false, false, false, 332), "html", null, true);
echo "\",
\"propertyTypeTitle\": ";
// line 333
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", false, false, false, 333)), "html", null, true);
echo ",
\"price\": \"";
// line 334
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.', 334, $this->source); })()), "price", [], "any", false, false, false, 334), "html", null, true);
echo "\",
\"currency\": \"";
// line 335
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("general", "currency")), "html", null, true);
echo "\",
\"area\": \"";
// line 336
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.', 336, $this->source); })()), "area", [], "any", false, false, false, 336), "html", null, true);
echo "\",
\"isCompound\": \"";
// line 337
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", null, true);
echo "\",
\"image\": \"";
// line 338
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", null, true);
echo "\",
\"paymentMethodLabel\": ";
// line 339
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", false, false, false, 339))), "html", null, true);
echo ",
\"pricePerMeter\": \"";
// line 340
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.', 340, $this->source); })()), "calculatePricePerMeter", [], "any", false, false, false, 340), "html", null, true);
echo "\",
\"sellerRole\": ";
// line 341
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", false, false, false, 341))), "html", null, true);
echo ",
\"floor\": \"";
// line 342
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", null, true);
echo "\",
\"baths\": \"";
// line 343
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", null, true);
echo "\",
\"rooms\": \"";
// line 344
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", null, true);
echo "\",
\"yearBuilt\": \"";
// line 345
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", null, true);
echo "\",
\"finishType\": \"";
// line 346
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", null, true);
echo "\",
\"publishDate\": \"";
// line 347
echo twig_escape_filter($this->env, twig_date_format_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.', 347, $this->source); })()), "publishedAt", [], "any", false, false, false, 347), "Y-m-d h:i:s A"), "html", null, true);
echo "\",
\"view\": ";
// line 348
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", false, false, false, 348))), "html", null, true);
echo ",
\"listingUser\": {
\"sellerName\" : ";
// line 350
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", null, true);
echo ",
\"sellerLogo\": \"\",
\"sellerUrl\": \"";
// line 352
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", null, true);
echo "\",
\"joinedData\":\"";
// line 353
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", null, true);
echo "\",
\"activeListingsCount\": \"";
// line 354
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", null, true);
echo "\",
\"leadsCount\":\"";
// line 355
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", null, true);
echo "\"
},
\"description\": ";
// line 357
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", false, false, false, 357)), "html", null, true);
echo ",
});'>
";
// line 359
if ((isset($context["enableSearchInListingDetails"]) || array_key_exists("enableSearchInListingDetails", $context) ? $context["enableSearchInListingDetails"] : (function () { throw new RuntimeError('Variable "enableSearchInListingDetails" does not exist.', 359, $this->source); })())) {
// line 360
echo " ";
$this->loadTemplate("@AqarmapListing/ListingSearch/searchFormFilter.html.twig", "@AqarmapListing/Listing/read.html.twig", 360)->display($context);
// line 361
echo " ";
}
// line 362
echo "
<div class=\"container listingContainer listing_details_container ";
// line 363
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") : (""));
echo " ";
if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.header.cta")) {
echo "overflow-hidden";
}
echo "\">
<div class=\"row\">
";
// line 365
$this->loadTemplate("@AqarmapListingBundle/Listing/listingNav.html.twig", "@AqarmapListing/Listing/read.html.twig", 365)->display($context);
// line 366
echo " <section
class=\"col-md-12 listing-details ";
// line 367
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", null, true);
echo "\"
data-sticky-container
itemscope
itemtype=\"https://schema.org/";
// line 370
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", null, true);
echo "\"
>
<div class=\"listing-slider-container padding-lg-zero padding-md-zero\" >
";
// line 373
if ((isset($context["listingHasPhotos"]) || array_key_exists("listingHasPhotos", $context) ? $context["listingHasPhotos"] : (function () { throw new RuntimeError('Variable "listingHasPhotos" does not exist.', 373, $this->source); })())) {
// line 374
echo " <div class=\"slider-wrapper section-wrapper\">
";
// line 375
$this->loadTemplate("@AqarmapListingBundle/Listing/listingSlider.html.twig", "@AqarmapListing/Listing/read.html.twig", 375)->display($context);
// line 376
echo " </div>
";
}
// line 378
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/listingContactWrapper.html.twig", "@AqarmapListing/Listing/read.html.twig", 378)->display($context);
// line 379
echo " </div>
<div class=\"listing-details-container padding-md-zero\">
";
// line 381
$this->loadTemplate("@AqarmapListingBundle/Listing/listingLabel.html.twig", "@AqarmapListing/Listing/read.html.twig", 381)->display($context);
// line 382
echo " ";
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); })())) {
// line 383
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/projectDetailsTitle.html.twig", "@AqarmapListing/Listing/read.html.twig", 383)->display($context);
// line 384
echo " ";
} else {
// line 385
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/listingTitle.html.twig", "@AqarmapListing/Listing/read.html.twig", 385)->display($context);
// line 386
echo " ";
}
// line 387
echo "
</div>
<div class=\"listing-details-container padding-md-zero\">
";
// line 390
$this->loadTemplate("@AqarmapListingBundle/Listing/listingUnitsTabs.html.twig", "@AqarmapListing/Listing/read.html.twig", 390)->display($context);
// line 391
echo " ";
if ((isset($context["showListingDetails"]) || array_key_exists("showListingDetails", $context) ? $context["showListingDetails"] : (function () { throw new RuntimeError('Variable "showListingDetails" does not exist.', 391, $this->source); })())) {
// line 392
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/listingDetailsList.html.twig", "@AqarmapListing/Listing/read.html.twig", 392)->display($context);
// line 393
echo " ";
}
// line 394
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/listingDescription.html.twig", "@AqarmapListing/Listing/read.html.twig", 394)->display($context);
// line 395
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/listingMap.html.twig", "@AqarmapListing/Listing/read.html.twig", 395)->display($context);
// line 396
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/listingSellerInfo.html.twig", "@AqarmapListing/Listing/read.html.twig", 396)->display($context);
// line 397
echo " ";
if ( !(isset($context["isTopSellersDisabledTest"]) || array_key_exists("isTopSellersDisabledTest", $context) ? $context["isTopSellersDisabledTest"] : (function () { throw new RuntimeError('Variable "isTopSellersDisabledTest" does not exist.', 397, $this->source); })())) {
// line 398
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/listingTopSellers.html.twig", "@AqarmapListing/Listing/read.html.twig", 398)->display($context);
// line 399
echo " ";
}
// line 400
echo " ";
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); })())) {
// line 401
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/compoundRating.html.twig", "@AqarmapListing/Listing/read.html.twig", 401)->display($context);
// line 402
echo " ";
}
// line 403
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/otherUnitsTable.html.twig", "@AqarmapListing/Listing/read.html.twig", 403)->display($context);
// line 404
echo " ";
if ( !(isset($context["isRelatedListingsDisabledTest"]) || array_key_exists("isRelatedListingsDisabledTest", $context) ? $context["isRelatedListingsDisabledTest"] : (function () { throw new RuntimeError('Variable "isRelatedListingsDisabledTest" does not exist.', 404, $this->source); })())) {
// line 405
echo " ";
if ((isset($context["showRelatedListing"]) || array_key_exists("showRelatedListing", $context) ? $context["showRelatedListing"] : (function () { throw new RuntimeError('Variable "showRelatedListing" does not exist.', 405, $this->source); })())) {
// line 406
echo " <div class=\"listing-details-item card-container card-container_option-2\">
";
// line 407
$this->loadTemplate("@AqarmapListingBundle/Listing/listingRelatedListingSection.html.twig", "@AqarmapListing/Listing/read.html.twig", 407)->display($context);
// line 408
echo " </div>
";
}
// line 410
echo " ";
}
// line 411
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/listingNeighborhoodsSection.html.twig", "@AqarmapListing/Listing/read.html.twig", 411)->display($context);
// line 412
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/listingDiscussionsSection.html.twig", "@AqarmapListing/Listing/read.html.twig", 412)->display($context);
// line 413
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/listingFooter.html.twig", "@AqarmapListing/Listing/read.html.twig", 413)->display($context);
// line 414
echo " </div>
</section>
";
// line 416
$this->loadTemplate("@AqarmapListingBundle/Listing/projectFaqs.html.twig", "@AqarmapListing/Listing/read.html.twig", 416)->display($context);
// line 417
echo " </div>
</div>
";
// line 420
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); })()))) {
// line 421
echo " ";
$context["section"] = (isset($context["section"]) || array_key_exists("section", $context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.', 421, $this->source); })());
// line 422
echo "
<div class=\"container\">
<div class=\"compounds_quick_links\">
";
// line 425
$this->loadTemplate("@AqarmapListing/CompoundSearch/compoundsSubLinks.html.twig", "@AqarmapListing/Listing/read.html.twig", 425)->display($context);
// line 426
echo " </div>
</div>
";
}
// line 429
echo "
";
// line 431
echo " ";
if ( !(isset($context["isGoogleDoubleClickDisabledTest"]) || array_key_exists("isGoogleDoubleClickDisabledTest", $context) ? $context["isGoogleDoubleClickDisabledTest"] : (function () { throw new RuntimeError('Variable "isGoogleDoubleClickDisabledTest" does not exist.', 431, $this->source); })())) {
// line 432
echo " ";
$this->loadTemplate("adsHeader.html.twig", "@AqarmapListing/Listing/read.html.twig", 432)->display($context);
// line 433
echo " ";
}
// line 434
echo "
";
// line 436
echo " ";
if ( !(isset($context["isRelatedListingsDisabledTest"]) || array_key_exists("isRelatedListingsDisabledTest", $context) ? $context["isRelatedListingsDisabledTest"] : (function () { throw new RuntimeError('Variable "isRelatedListingsDisabledTest" does not exist.', 436, $this->source); })())) {
// line 437
echo " ";
if ((isset($context["showRelatedListing"]) || array_key_exists("showRelatedListing", $context) ? $context["showRelatedListing"] : (function () { throw new RuntimeError('Variable "showRelatedListing" does not exist.', 437, $this->source); })())) {
// line 438
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/OnCloseListingPopup.html.twig", "@AqarmapListing/Listing/read.html.twig", 438)->display($context);
// line 439
echo " ";
}
// line 440
echo " ";
}
// line 441
echo " ";
$this->loadTemplate("@AqarmapListingBundle/Listing/listingModalsContainer.html.twig", "@AqarmapListing/Listing/read.html.twig", 441)->display($context);
// line 442
echo " </div>
</div>
";
// line 444
$this->loadTemplate("@AqarmapListingBundle/Listing/listingBreadcrumb.html.twig", "@AqarmapListing/Listing/read.html.twig", 444)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 447
public function block_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 448
echo " ";
$this->loadTemplate("footer.v2.html.twig", "@AqarmapListing/Listing/read.html.twig", 448)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 451
public function block_facebookLogin($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "facebookLogin"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "facebookLogin"));
// line 452
echo " ";
if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.enable.quicklogin")) {
// line 453
echo " ";
$this->displayParentBlock("facebookLogin", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 457
public function block_categorizedJavascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "categorizedJavascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "categorizedJavascripts"));
// line 458
echo " <script type=\"application/javascript\" src=\"";
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", false, false, false, 458) == "dev")) ? ("") : (".min"))) . ".js")), "html", null, true);
echo "\"></script>
<script defer type=\"application/javascript\" src=\"";
// line 459
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", false, false, false, 459) == "dev")) ? ("") : (".min"))) . ".js")), "html", null, true);
echo "\"></script>
<script defer type=\"application/javascript\" src=\"";
// line 460
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", false, false, false, 460) == "dev")) ? ("") : (".min"))) . ".js")), "html", null, true);
echo "\"></script>
";
// line 462
if ((isset($context["isEnabledCompoundBuild"]) || array_key_exists("isEnabledCompoundBuild", $context) ? $context["isEnabledCompoundBuild"] : (function () { throw new RuntimeError('Variable "isEnabledCompoundBuild" does not exist.', 462, $this->source); })())) {
// line 463
echo " <script defer src=\"";
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", false, false, false, 463) == "dev")) ? ("") : (".min"))) . ".js")), "html", null, true);
echo "\"></script>
";
} else {
// line 465
echo " <script defer src=\"";
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", false, false, false, 465) == "dev")) ? ("") : (".min"))) . ".js")), "html", null, true);
echo "\"></script>
";
}
// line 467
echo " <script defer type=\"application/javascript\" src=\"";
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", false, false, false, 467) == "dev")) ? ("") : (".min"))) . ".js")), "html", null, true);
echo "\"></script>
";
// line 469
if ((isset($context["isEnabledActivityListingPage"]) || array_key_exists("isEnabledActivityListingPage", $context) ? $context["isEnabledActivityListingPage"] : (function () { throw new RuntimeError('Variable "isEnabledActivityListingPage" does not exist.', 469, $this->source); })())) {
// line 470
echo " ";
if ((isset($context["isEnabledLazyloadingActivitiesBuild"]) || array_key_exists("isEnabledLazyloadingActivitiesBuild", $context) ? $context["isEnabledLazyloadingActivitiesBuild"] : (function () { throw new RuntimeError('Variable "isEnabledLazyloadingActivitiesBuild" does not exist.', 470, $this->source); })())) {
// line 471
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->getWebpackJsFiles("activitiesApp"));
foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
// line 472
echo " <script async type='application/javascript' src='";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["file"]), "html", null, true);
echo "'></script>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 474
echo " ";
} else {
// line 475
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("activitiesApp", null, "_default", ["defer" => false]);
echo "
";
}
// line 477
echo " ";
}
// line 478
echo "
";
// line 479
if ((array_key_exists("topBar", $context) && !null)) {
// line 480
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("countdown");
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 483
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 484
echo " <script src=\"//maps.google.com/maps/api/js?v=3.25&key=";
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", null, true);
echo "\"></script>
";
// line 485
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script>
\$(document).ready(function () {
imageSlider.lunchSlider(";
// line 489
if ((isset($context["isLocalArabic"]) || array_key_exists("isLocalArabic", $context) ? $context["isLocalArabic"] : (function () { throw new RuntimeError('Variable "isLocalArabic" does not exist.', 489, $this->source); })())) {
echo "true";
} else {
echo "false";
}
echo ", false);
});
</script>
<script>
\$(document).ready(function () {
dataLayer.push({
'listingName': '";
// line 496
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["listing"] ?? null), "customSlug", [], "any", true, true, false, 496)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["listing"] ?? null), "customSlug", [], "any", false, false, false, 496), 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", false, false, false, 496))) : (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", false, false, false, 496))), "html", null, true);
echo "',
'listingParentName': ";
// line 497
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", false, false, false, 497)) {
echo "'";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["listing"] ?? null), "parent", [], "any", false, true, false, 497), "customSlug", [], "any", true, true, false, 497)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["listing"] ?? null), "parent", [], "any", false, true, false, 497), "customSlug", [], "any", false, false, false, 497), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 497, $this->source); })()), "parent", [], "any", false, false, false, 497), "id", [], "any", false, false, false, 497))) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 497, $this->source); })()), "parent", [], "any", false, false, false, 497), "id", [], "any", false, false, false, 497))), "html", null, true);
echo "'";
} else {
echo "null";
}
echo ",
'listingSection': '";
// line 498
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["leadAnalytics"] ?? null), "listingSection", [], "any", true, true, false, 498)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["leadAnalytics"] ?? null), "listingSection", [], "any", false, false, false, 498), "")) : ("")), "html", null, true);
echo "',
'listingSegment': '";
// line 499
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["leadAnalytics"] ?? null), "listingSegment", [], "any", true, true, false, 499)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["leadAnalytics"] ?? null), "listingSegment", [], "any", false, false, false, 499), "")) : ("")), "html", null, true);
echo "',
'hasParent': ";
// line 500
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", false, false, false, 500)) ? ("true") : ("false"));
echo ",
'hasChildren': ";
// line 501
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", false, false, false, 501)) ? ("true") : ("false"));
echo ",
'isFeatured': ";
// line 502
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", false, false, false, 502)) ? ("true") : ("false"));
echo "
});
});
</script>
<script>
function getdivheight(){
return \$('#listing-title-container').height() > 0 ? \$('#listing-title-container').height() : 100;
}
function updateDivMargin(){
//add 5 pix to height
var temp_margintop = getdivheight() + 5;
\$('#listingContactWrapper').attr('data-margin-top',temp_margintop);
}
\$(document).ready(function () {
updateDivMargin();
});
\$( window ).resize(function() {
updateDivMargin();
});
</script>
";
// line 528
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 528, $this->source); })()), "request", [], "any", false, false, false, 528), "query", [], "any", false, false, false, 528), "get", [0 => "contact_seller"], "method", false, false, false, 528)) {
// line 529
echo " <script>
// Google Tag Manager
\$(document).ready(function () {
dataLayer.push({'event': 'gtm-action-seller-message'});
});
</script>
";
}
// line 536
echo " ";
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", false, false, false, 536)) && (isset($context["isSearchableListing"]) || array_key_exists("isSearchableListing", $context) ? $context["isSearchableListing"] : (function () { throw new RuntimeError('Variable "isSearchableListing" does not exist.', 536, $this->source); })()))) {
// line 537
echo " <script>
";
// line 538
if ( !(null === (isset($context["searchableLocation"]) || array_key_exists("searchableLocation", $context) ? $context["searchableLocation"] : (function () { throw new RuntimeError('Variable "searchableLocation" does not exist.', 538, $this->source); })()))) {
// line 539
echo " var locationId = ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 539, $this->source); })()), "nearestSearchable", [], "any", false, false, false, 539), "id", [], "any", false, false, false, 539), "html", null, true);
echo ";
";
} else {
// line 541
echo " var locationId = null;
";
}
// line 543
echo " jQuery(document).mouseleave(function (e) {
if(e.clientY < 100)
{
if (!locationsLocalStorage.locationExists(locationId))
{
\$('.modal').modal('hide');
\$('#on-close-popup').modal('show');
locationsLocalStorage.setLocationId(locationId);
}else
{
if (locationsLocalStorage.isLocationExpired(locationId))
{
\$('.modal').modal('hide');
\$('#on-close-popup').modal('show');
dataLayer.push({'event': 'gtm-action-request-call-popup'});
locationsLocalStorage.updateLocationExpiryDate(locationId);
}
}
}
});
</script>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@AqarmapListing/Listing/read.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% form_theme quick_registration_form 'Form/form_div_layout.html.twig' %}
{# Constants #}
{% set FIRST_LISTING_FOR_FREE_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::FIRST_LISTING_FOR_FREE') %}
{% set EBAWAB_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::EBAWAB') %}
{% set UNLIMITED_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::UNLIMITED') %}
{% set PAID_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::PAID') %}
{% set PROJECT_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::PROJECTS') %}
{% set SCRAPPED_LISTING_CATEGORY = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::SCRAPPED') %}
{% set SHOW_PHONE_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::SHOW_PHONE') %}
{% set SEND_MESSAGE_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::SEND_MESSAGE') %}
{% set SEND_WHATSAPP_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::WHATSAPP') %}
{% set CALL_REQUEST_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::CALL_REQUEST') %}
{% set TOP_VIEWED_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::TOP_VIEWED') %}
{% set TOP_FAVOURITAED_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::TOP_FAVORITE') %}
{% set VALID_PRICE_CONST = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingLabel::VALID_PRICE') %}
{% set SPONSORED_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SPONSORED') %}
{% set FEATURE_TYPE = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::FEATURED') %}
{% set PREMIUM_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::PREMIUM') %}
{% set SPOTLIGHT_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingFeaturedTypes::SPOTLIGHT') %}
{# gtm events variables #}
{% set listingFeatured = listing.featured %}
{% set isSpotLight = listingFeatured == SPOTLIGHT_CONSTANT %}
{% set isSponserd = listingFeatured == SPONSORED_TYPE %}
{% set isPremium = listingFeatured == PREMIUM_CONSTANT %}
{% set isFeatured = listingFeatured == FEATURE_TYPE %}
{% set listingCategory = listing.category %}
{% set isProject = listingCategory == PROJECT_LISTING_CATEGORY %}
{% set isPaid = listingCategory == PAID_LISTING_CATEGORY %}
{% set isScrapped = listingCategory == SCRAPPED_LISTING_CATEGORY %}
{% set isEBawab = listingCategory == EBAWAB_LISTING_CATEGORY %}
{% set isUnlimited = listingCategory == UNLIMITED_LISTING_CATEGORY %}
{% set isFlf2 = listingCategory == FIRST_LISTING_FOR_FREE_LISTING_CATEGORY %}
{% set propertySectionSlug = isProject ? \"projects\" : section is defined ? section.slug: listing.section.slug %}
{% set propertyCategory = isProject ? \"projects\" : isScrapped ? \"scrapped\" :
isPaid ? \"paid\" : isEBawab ? \"bawab\" : isUnlimited ? \"unlimited\" :
isFlf2 ? \"flf2\" : \"free\" %}
{% set depthProduct = isFeatured ? \"featured\" : isPremium ? \"premium\" :
isSponserd ? \"sponsored\": isSpotLight ? \"spotlight\" : \"regular\" %}
{% set insideCompound = isProject or listing.parent != null %}
{# classes names variables #}
{% set sendEmailBtnStyleClasses = 'btn btn-block btn-lg cta-btn rounded-pill btn-gray' %}
{% set phoneBtnStyleClasses = 'btn btn-block btn-lg cta-btn rounded-pill btn-primary' %}
{% set forRent = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingSections::FOR_RENT')%}
{% set PROJECT_LISTING_CHILD = listing.parent != null %}
{% set isListingHasChildren = liveUnitsPaginated is not empty %}
{% set PROJECT_LISTING_PARENT = isListingHasChildren %}
{% set IS_PROJECT = listing.category == PROJECT_LISTING_CATEGORY or PROJECT_LISTING_CHILD %}
{% set IS_PROJECT_PARENT = PROJECT_LISTING_PARENT or listing.category == PROJECT_LISTING_CATEGORY %}
{% set isScrapped = listing.category == SCRAPPED_LISTING_CATEGORY %}
{% set parentId = listing.parent ? listing.parent.id : listing.id %}
{% set parentTitle = listing.parent ? listing.parent.title : listing.title %}
{% set isEnabledActivityToggles = isEnabledFeature('web.activity.app') and isEnabledFeature('web.my.activities.build') %}
{% set isEnabledActivityListingPageToggles = isEnabledActivityToggles and isEnabledFeature('web.listing.page.activities') %}
{% set isEnabledActivityListingPage = isEnabledActivityListingPageToggles and not IS_PROJECT_PARENT %}
{% set isEnabledLazyloadingActivitiesBuild = isEnabledFeature('web.async.vueapp') %}
{% set isUnitsTabsEnabled = IS_PROJECT and (PROJECT_LISTING_PARENT or not PROJECT_LISTING_CHILD) %}
{% set hasResaleUnits = resaleUnitsPaginated|length > 0 %}
{% set hasRentUnits = rentUnitsPaginated|length > 0 %}
{% set hasPrimaryUnits = liveUnitsPaginated|length > 0 %}
{% set isPrimaryUnitsSoldOut = not hasPrimaryUnits %}
{% set isRentUnitsSoldOut = not hasRentUnits %}
{% set isResaleUnitsSoldOut = not hasResaleUnits %}
{% set isUnitsSoldOut = isUnitsTabsEnabled and isRentUnitsSoldOut and isResaleUnitsSoldOut and isPrimaryUnitsSoldOut %}
{% set isPrimaryUnitsOnly = hasPrimaryUnits and isRentUnitsSoldOut and isResaleUnitsSoldOut %}
{% set isPrimarySoldOutCta = isUnitsTabsEnabled and isPrimaryUnitsSoldOut %}
{% set isListingCallRequest = (isUnitsTabsEnabled and isPrimaryUnitsSoldOut) or listing.isCallRequest %}
{% set isEligibleForMortgage = isEnabledFeature('web.mortgage.options') and listing.isMortgageApproved %}
{% set isEnabledCompoundBuild = IS_PROJECT_PARENT and isEnabledFeature('web.compound.listingpage.build') %}
{% set propertyType = listing.propertyType %}
{% set propertyTypeId = propertyType.id %}
{% set section = listing.section %}
{% set sectionId = section.id %}
{% set location = listing.location %}
{% set locationId = location.id %}
{% set isCompaniesDataParamsDefined = true %}
{% set isListingForRent = sectionId == forRent %}
{% set listingParent = listing.parent %}
{% set compoundField = listingParent ? listingParent.CompoundField : listing.CompoundField %}
{% set showSellerInfo = not IS_PROJECT and not isScrapped %}
{% set showTopSearchableCompaniesList = true %}
{% set listingPhones = isEnabledFeature('listing_user_phones') ? listing.phones : listing.listingPhones %}
{% set listingPhone = null %}
{% if listingPhones is not empty %}
{% set listingPhone = listingPhones|first %}
{% endif %}
{% set financeFeatureValue = get_setting('features', 'finance_service') %}
{% set ALLOWED_LISTING_SECTIONS_TO_ADD_FINANCE_URL = constant('Aqarmap\\\\Bundle\\\\FinancialAidsBundle\\\\Constant\\\\FinancialAidConstraints::ALLOWED_LISTING_SECTIONS_TO_ADD_FINANCE_URL')%}
{% set showListingDetails = not isListingHasChildren and not isUnitsTabsEnabled %}
{% set isSearchableListing = section.searchable == true %}
{% set metaTitle = \"%s %s %s . %s\"|format(listing.title,'layout.in'|trans, location,'layout.app_name'|trans) %}
{% set metaDescription = listing.description|nl2br|markdown_to_html %}
{% if IS_PROJECT_PARENT %}
{% if listing.metaTitle %}
{% set metaTitle = 'layout.project_listing_details_title_with_suffix'|trans({'%project%': listing.metaTitle}) %}
{% else %}
{% set metaTitle = 'layout.project_listing_details_title'|trans({'%project%': listing.title}) %}
{% endif %}
{% if listing.metaDescription %}
{% set metaDescription = listing.metaDescription %}
{% endif %}
{% endif %}
{% block title %}{{ metaTitle }}{% endblock %}
{% block meta_description %}
{{ metaDescription }}
{% endblock %}
{% set enable_project_faqs = IS_PROJECT_PARENT and compoundFaqs is defined and compoundFaqs|length %}
{% if enable_project_faqs %}
{% set project_faqs = [
compoundFaqs.location ? {
\"@type\": \"Question\",
\"name\": 'layout.faqs_project_page.location_count.name'|trans({
'%project%': listing.title
}),
\"acceptedAnswer\": {
\"@type\": \"Answer\",
\"text\": 'layout.faqs_project_page.location_count.answer'|trans({
'%project%': listing.title,
'%location%': compoundFaqs.location,
}),
}
} : {},
compoundFaqs.minimumUnitPrice ? {
\"@type\": \"Question\",
\"name\": 'layout.faqs_project_page.start_price.name'|trans({
'%project%': listing.title
}),
\"acceptedAnswer\": {
\"@type\": \"Answer\",
\"text\": 'layout.faqs_project_page.start_price.answer'|trans({
'%project%': listing.title,
'%starting_price%': compoundFaqs.minimumUnitPrice|number_format,
}),
}
} : {},
compoundFaqs.minimumUnitArea ? {
\"@type\": \"Question\",
\"name\": 'layout.faqs_project_page.start_area.name'|trans({
'%project%': listing.title
}),
\"acceptedAnswer\": {
\"@type\": \"Answer\",
\"text\": 'layout.faqs_project_page.start_area.answer'|trans({
'%project%': listing.title,
'%starting_area%': compoundFaqs.minimumUnitArea|number_format,
}),
}
} : {},
compoundFaqs.lastUpdate ? {
\"@type\": \"Question\",
\"name\": 'layout.faqs_project_page.data_updated.name'|trans,
\"acceptedAnswer\": {
\"@type\": \"Answer\",
\"text\": 'layout.faqs_project_page.data_updated.answer'|trans({
'%project%': listing.title,
'%date%': compoundFaqs.lastUpdate|date(\"m/d/Y\"),
}),
}
} : {},
compoundFaqs.constructionStatus ? {
\"@type\": \"Question\",
\"name\": 'layout.faqs_project_page.status.name'|trans({
'%project%': listing.title
}),
\"acceptedAnswer\": {
\"@type\": \"Answer\",
\"text\": 'layout.faqs_project_page.status.answer'|trans({
'%project%': listing.title,
'%status%': compoundFaqs.constructionStatus|trans,
}),
}
} : {},
] %}
{% endif %}
{% block htmlhead %}
{% set LISTING_CATEGORIES_SCRAPPED = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::SCRAPPED') %}
<meta name=\"twitter:card\" content=\"summary_large_image\" />
<meta name=\"twitter:site\" content=\"{{ \"%s%s\"|format('@', 'layout.app_name'|trans) }}\" />
<meta name=\"twitter:creator\" content=\"{{ \"%s%s\"|format('@', 'layout.app_name'|trans) }}\" />
<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) }}\"/>
<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}) }}\" />
<meta property=\"og:url\" content=\"{{ url('listing_slug', {id: listing.id, slug: listing.slug}) }}\" />
<meta property=\"og:site_name\" content=\"{{ 'layout.app_name'|trans }}\" />
<meta property=\"fb:app_id\" content=\"{{ facebook_app_id }}\"/>
<meta property=\"og:image\" content=\"{{ getSharingImage(listing) }}\" />
{% if shouldAddNoIndex(listing) %}
<meta name=\"robots\" content=\"noindex, nofollow\">
{% endif %}
<link rel=\"canonical\" href=\"{{ url('listing_slug', {id: parentId, slug: listing.slug}) }}\"/>
<link rel=\"shortlink\" href=\"{{ url('listing_view', {id: listing.id}) }}\"/>
{% if listing.slug %}
<link rel=\"alternate\" hreflang=\"ar\" href=\"{{ url('listing_slug', {id: listing.id, slug: listing.slug, _locale: 'ar'}) }}\"/>
<link rel=\"alternate\" hreflang=\"en\" href=\"{{ url('listing_slug', {id: listing.id, slug: listing.slug, _locale: 'en'}) }}\"/>
<link rel=\"alternate\" hreflang=\"x-default\"
href=\"{{ url('listing_slug', {id: listing.id, slug: listing.slug, _locale: 'ar'}) }}\"/>
{% endif %}
{% if enable_project_faqs %}
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"FAQPage\",
\"mainEntity\": {{ project_faqs | json_encode | raw }}
}
</script>
{% endif %}
{% endblock %}
{% block categorizedStylesheets %}
{% if isEnabledFeature('web.chat.app') or isEnabledActivityListingPage %}
{{ encore_entry_link_tags('activitiesApp') }}
{% endif %}
{% if IS_PROJECT_PARENT %}
<link rel=\"stylesheet\" href=\"{{ asset('builds/css/projectDetailsBuild'~ (app.environment == 'dev' ? '' : '.min') ~'.css') }}\" />
{% else %}
<link rel=\"stylesheet\" href=\"{{ asset('builds/css/listingDetailsBuild'~ (app.environment == 'dev' ? '' : '.min') ~'.css') }}\" />
{% endif %}
{% endblock %}
{% block headerTop %}
{% endblock %}
{% set CTA_block = \"\" %}
{% block body %}
{% set markupType = \"SingleFamilyResidence\" %}
{% set STATUS_LIVE_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingStatus::LIVE') %}
{% set PHOTO_MAIN_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\PhotoTypes::MAIN_PHOTO') %}
{% set STATUS_PENDING_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingStatus::PENDING') %}
{% set STATUS_USER_DELETED_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingStatus::USER_DELETED') %}
{% set PREMIUM_LISTING = not isSearchableListing %}
{% if PREMIUM_LISTING %} {% set markupType = \"GatedResidenceCommunity\" %} {% endif %}
{% if not isSearchableListing or (listing.parent and not listing.parent.section.searchable) %}
{% set LEAD_LISTING = true %}
{% else %}
{% set LEAD_LISTING = false %}
{% endif %}
{% set STATUS_EXPIRED_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingStatus::USER_DELETED') %}
{% set LISTING_CATEGORIES_SCRAPPED = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\ListingCategories::SCRAPPED') %}
{% set topCompaniesEnabled = not get_setting('features', 'top_companies') %}
{% set currentUser = app.user %}
{% set currentUserEmail = currentUser ? currentUser.email : '' %}
{% if isListingHasChildren %}
{% set sharingEvent = \"compound-details\" %}
{% else %}
{% set sharingEvent = \"listing-details\" %}
{% endif %}
{% set showTopSellersModal = topSearchableCompaniesCount and searchableLocation is not null %}
{% set showRegisterSurvey = isEnabledFeature('web.registration.survey') %}
{% set country = get_setting('general', 'country') | lower %}
{% set sellerName = '' %}
{% set listingUser = listing.user %}
{% set sellerName = listingUser.fullName %}
{% set userLogo = listingUser.logo ? listingUser.logo.file : null %}
{% set logo = listing.validUserLogo %}
{% set sellerLogo = logo ? logo : userLogo %}
{% set sellerUrl = path('aqarmap_user_listings', {'id': listingUser.id})%}
{% set joinedData = listingUser.createdAt|date('Y')%}
{% set listingMainPhoto = '#' %}
{% if listing.mainPhoto %}
{% set listingMainPhoto = custom_vich_uploader_asset(listing.mainPhoto.file, 'file') | thumbnail('search-thumb') %}
{% endif %}
{% set listing_attributes = listing.getAttributesList() %}
{% set listing_floor = (listing_attributes[\"floor\"]) is defined ? getFloorLabel(listing_attributes[\"floor\"])|trans : '' %}
{% set listing_year_built = (listing_attributes[\"year-built\"]) is defined ? listing_attributes[\"year-built\"] : '' %}
{% set listing_baths = (listing_attributes[\"baths\"]) is defined ? getRoomsLabel(listing_attributes[\"baths\"]) : '' %}
{% set listing_rooms = (listing_attributes[\"rooms\"]) is defined ? getRoomsLabel(listing_attributes[\"rooms\"]) : '' %}
{% set listing_finish_type = (listing_attributes[\"finish-type\"]) is defined ? listing_attributes[\"finish-type\"] : '' %}
{% set topSellerTrigger = 'gtm-action-topsellers-lead-listing-details' %}
{% set topSellerEventAction = 'ListingDetails' %}
{% set listingHasPhotos = listing.photosForSlider|length > 0 %}
{% set ABtestingClasses = \"listing-details-ab-testing-master virtical-related-listing virtical-related-listing_option-1\" %}
{% set encodedSellerPhones = []%}
{% for phone in listingPhones %}
{% set encodedSellerPhones = encodedSellerPhones | merge([{'number': phone.number|phoneNumberEncode}]) %}
{% endfor %}
{% set listingLabelType = listing.label %}
{% set isListingTopPicks = listing.isTopPicks %}
{% set allowListingLabel = listingLabelType and not isListingTopPicks and not IS_PROJECT_PARENT %}
{% set isTopFavourited = listingLabelType == TOP_FAVOURITAED_CONST %}
{% set isValidPrice = listingLabelType == VALID_PRICE_CONST %}
{% set isTopViewed = listingLabelType == TOP_VIEWED_CONST %}
{% set listingLabelUrl = path('search' , {'section_slug' : section.slug, 'property_type_slug' : propertyType.slug, 'location_slug': location.slug }|merge({'label': listingLabelType}))%}
{% set enableSearchInListingDetails = not IS_PROJECT_PARENT and not isEnabledFeature('web.search.full.filters') %}
{% set showRelatedListing = relatedListingsCount and isSearchableListing and not IS_PROJECT_PARENT %}
{% set showOtherUnits = isEnabledFeature('web.other.units.details.page') and otherUnits|length > 0 %}
{# Testing listings #}
{% set testingListingsIds = [3747940, 3813089, 3626475, 2705901] %}
{% set isTestingListing = listing.id in testingListingsIds %}
{% set isListingSliderDisabledTest = isTestingListing and isEnabledFeature('web.disable.listingslider') %}
{% set isTopSellersDisabledTest = isTestingListing and isEnabledFeature('web.disable.topsellers') %}
{% set isRelatedListingsDisabledTest = isTestingListing and isEnabledFeature('web.disable.relatedlistings') %}
{% set isGoogleDoubleClickDisabledTest = isTestingListing and isEnabledFeature('web.disable.googledoubleclick') %}
{% set isEnabledActivityDisabledTest = isTestingListing and isEnabledFeature('web.disable.activities.test') %}
{% set isEnabledActivityListingPage = isEnabledActivityListingPage and not isEnabledActivityDisabledTest %}
{% set relatedListing %}
<div class=\"row\">
{% 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'} %}
</div>
{% endset %}
<div class=\"listing-quick-lead\" ng-controller=\"quickLeadController\">
<div ng-content-loaded callback='setSourceRoute(\"{{ app.request.attributes.get('_route') }}\");
setListingDetail(\"{{listing.id}}\",{
\"id\": \"{{listing.id}}\",
\"section\": \"{{section.id}}\",
\"sectionTitle\": {{section.title|serialize()}},
\"isProjectParent\": \"{{IS_PROJECT_PARENT}}\" ,
\"sellerPhones\": {{encodedSellerPhones|serialize('json')}},
\"sellerPhone\": \"{{listingPhone.number|phoneNumberEncode}}\",
\"financeUrl\":\"{{listing.getFinancialAidURL()}}\",
\"userEmail\": {{currentUserEmail|json_encode()}},
\"financeFeatureValue\": \"{{financeFeatureValue}}\",
\"listingName\" : {{listing.customSlug|default(listing.id)|serialize()}},
\"listingTitle\" : {{listing.title|serialize()}},
\"location\": \"{{location.id}}\",
\"locationTitle\": {{location.title|serialize()}},
\"propertyType\": \"{{propertyType.id}}\",
\"propertyTypeTitle\": {{propertyType.title|serialize()}},
\"price\": \"{{listing.price}}\",
\"currency\": \"{{ get_setting('general', 'currency')|trans }}\",
\"area\": \"{{listing.area}}\",
\"isCompound\": \"{{IS_PROJECT_PARENT}}\",
\"image\": \"{{ listingMainPhoto }}\",
\"paymentMethodLabel\": {{ listing.paymentMethodLabel|trans|serialize() }},
\"pricePerMeter\": \"{{listing.calculatePricePerMeter }}\",
\"sellerRole\": {{listing.sellerRoleLabel|trans|serialize()}},
\"floor\": \"{{ listing_floor }}\",
\"baths\": \"{{ listing_baths }}\",
\"rooms\": \"{{ listing_rooms }}\",
\"yearBuilt\": \"{{ listing_year_built }}\",
\"finishType\": \"{{ listing_finish_type }}\",
\"publishDate\": \"{{ listing.publishedAt|date('Y-m-d h:i:s A') }}\",
\"view\": {{ listing.propertyViewLabel|trans|serialize() }},
\"listingUser\": {
\"sellerName\" : {{sellerName|serialize()}},
\"sellerLogo\": \"\",
\"sellerUrl\": \"{{sellerUrl}}\",
\"joinedData\":\"{{joinedData}}\",
\"activeListingsCount\": \"{{activeListingsCount}}\",
\"leadsCount\":\"{{leadsCount}}\"
},
\"description\": {{ listing.description|serialize() }},
});'>
{% if enableSearchInListingDetails %}
{% include \"@AqarmapListing/ListingSearch/searchFormFilter.html.twig\" %}
{% endif %}
<div class=\"container listingContainer listing_details_container {{ relatedListingsCount and isSearchableListing ? 'has-related-listing' : ''}} {% if isEnabledFeature('web.header.cta') %}overflow-hidden{% endif %}\">
<div class=\"row\">
{% include '@AqarmapListingBundle/Listing/listingNav.html.twig' %}
<section
class=\"col-md-12 listing-details {{ ABtestingClasses }}\"
data-sticky-container
itemscope
itemtype=\"https://schema.org/{{ markupType }}\"
>
<div class=\"listing-slider-container padding-lg-zero padding-md-zero\" >
{% if listingHasPhotos %}
<div class=\"slider-wrapper section-wrapper\">
{% include '@AqarmapListingBundle/Listing/listingSlider.html.twig' %}
</div>
{% endif %}
{% include '@AqarmapListingBundle/Listing/listingContactWrapper.html.twig' %}
</div>
<div class=\"listing-details-container padding-md-zero\">
{% include '@AqarmapListingBundle/Listing/listingLabel.html.twig' %}
{% if IS_PROJECT_PARENT %}
{% include '@AqarmapListingBundle/Listing/projectDetailsTitle.html.twig' %}
{% else %}
{% include '@AqarmapListingBundle/Listing/listingTitle.html.twig' %}
{% endif %}
</div>
<div class=\"listing-details-container padding-md-zero\">
{% include '@AqarmapListingBundle/Listing/listingUnitsTabs.html.twig' %}
{% if showListingDetails %}
{% include \"@AqarmapListingBundle/Listing/listingDetailsList.html.twig\" %}
{% endif %}
{% include \"@AqarmapListingBundle/Listing/listingDescription.html.twig\" %}
{% include \"@AqarmapListingBundle/Listing/listingMap.html.twig\" %}
{% include \"@AqarmapListingBundle/Listing/listingSellerInfo.html.twig\" %}
{% if not isTopSellersDisabledTest %}
{% include \"@AqarmapListingBundle/Listing/listingTopSellers.html.twig\" %}
{% endif %}
{% if IS_PROJECT %}
{% include \"@AqarmapListingBundle/Listing/compoundRating.html.twig\" %}
{% endif %}
{% include '@AqarmapListingBundle/Listing/otherUnitsTable.html.twig' %}
{% if not isRelatedListingsDisabledTest %}
{% if showRelatedListing %}
<div class=\"listing-details-item card-container card-container_option-2\">
{% include '@AqarmapListingBundle/Listing/listingRelatedListingSection.html.twig' %}
</div>
{% endif %}
{% endif %}
{% include '@AqarmapListingBundle/Listing/listingNeighborhoodsSection.html.twig' %}
{% include '@AqarmapListingBundle/Listing/listingDiscussionsSection.html.twig' %}
{% include '@AqarmapListingBundle/Listing/listingFooter.html.twig' %}
</div>
</section>
{% include '@AqarmapListingBundle/Listing/projectFaqs.html.twig' %}
</div>
</div>
{% if not isSearchableListing and not IS_PROJECT_PARENT %}
{% set section = section %}
<div class=\"container\">
<div class=\"compounds_quick_links\">
{% include \"@AqarmapListing/CompoundSearch/compoundsSubLinks.html.twig\" %}
</div>
</div>
{% endif %}
{# Google double click ads #}
{% if not isGoogleDoubleClickDisabledTest %}
{% include \"adsHeader.html.twig\" %}
{% endif %}
{# Modals container #}
{% if not isRelatedListingsDisabledTest %}
{% if showRelatedListing %}
{% include '@AqarmapListingBundle/Listing/OnCloseListingPopup.html.twig' %}
{% endif %}
{% endif %}
{% include '@AqarmapListingBundle/Listing/listingModalsContainer.html.twig' %}
</div>
</div>
{% include '@AqarmapListingBundle/Listing/listingBreadcrumb.html.twig' %}
{% endblock %}
{% block footer %}
{% include \"footer.v2.html.twig\" %}
{% endblock %}
{% block facebookLogin %}
{% if isEnabledFeature('web.enable.quicklogin') %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block categorizedJavascripts %}
<script type=\"application/javascript\" src=\"{{ asset('builds/js/buildListingDetailsCritical'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
<script defer type=\"application/javascript\" src=\"{{ asset('builds/js/buildListingDetailsMainVendors'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
<script defer type=\"application/javascript\" src=\"{{ asset('builds/js/buildListingDetailsExtraVendors'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
{% if isEnabledCompoundBuild %}
<script defer src=\"{{ asset('builds/js/compound.desktop.buildListingDetails'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
{% else %}
<script defer src=\"{{ asset('builds/js/buildListingDetails'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
{% endif %}
<script defer type=\"application/javascript\" src=\"{{ asset('builds/js/buildTopSellers'~ (app.environment == 'dev' ? '' : '.min') ~'.js') }}\"></script>
{% if isEnabledActivityListingPage %}
{% if isEnabledLazyloadingActivitiesBuild %}
{% for file in encore_entry_js_files('activitiesApp') %}
<script async type='application/javascript' src='{{ asset(file) }}'></script>
{% endfor %}
{% else %}
{{ encore_entry_script_tags('activitiesApp', attributes={defer: false}) }}
{% endif %}
{% endif %}
{% if topBar is defined and not null %}
{{ encore_entry_script_tags('countdown') }}
{% endif %}
{% endblock %}
{% block javascripts %}
<script src=\"//maps.google.com/maps/api/js?v=3.25&key={{ google_maps_key }}\"></script>
{{ parent() }}
<script>
\$(document).ready(function () {
imageSlider.lunchSlider({% if isLocalArabic %}true{% else %}false{% endif %}, false);
});
</script>
<script>
\$(document).ready(function () {
dataLayer.push({
'listingName': '{{ listing.customSlug|default(listing.id) }}',
'listingParentName': {% if listing.parent %}'{{ listing.parent.customSlug|default(listing.parent.id) }}'{% else %}null{% endif %},
'listingSection': '{{ leadAnalytics.listingSection|default('') }}',
'listingSegment': '{{ leadAnalytics.listingSegment|default('') }}',
'hasParent': {{ listing.parent ? 'true' : 'false' }},
'hasChildren': {{ listing.isProject ? 'true' : 'false' }},
'isFeatured': {{ listing.featured ? 'true' : 'false' }}
});
});
</script>
<script>
function getdivheight(){
return \$('#listing-title-container').height() > 0 ? \$('#listing-title-container').height() : 100;
}
function updateDivMargin(){
//add 5 pix to height
var temp_margintop = getdivheight() + 5;
\$('#listingContactWrapper').attr('data-margin-top',temp_margintop);
}
\$(document).ready(function () {
updateDivMargin();
});
\$( window ).resize(function() {
updateDivMargin();
});
</script>
{# Google tag manager for contact the seller after submit #}
{% if app.request.query.get('contact_seller') %}
<script>
// Google Tag Manager
\$(document).ready(function () {
dataLayer.push({'event': 'gtm-action-seller-message'});
});
</script>
{% endif %}
{% if listing.parent is null and isSearchableListing %}
<script>
{% if searchableLocation is not null %}
var locationId = {{location.nearestSearchable.id}};
{% else %}
var locationId = null;
{% endif %}
jQuery(document).mouseleave(function (e) {
if(e.clientY < 100)
{
if (!locationsLocalStorage.locationExists(locationId))
{
\$('.modal').modal('hide');
\$('#on-close-popup').modal('show');
locationsLocalStorage.setLocationId(locationId);
}else
{
if (locationsLocalStorage.isLocationExpired(locationId))
{
\$('.modal').modal('hide');
\$('#on-close-popup').modal('show');
dataLayer.push({'event': 'gtm-action-request-call-popup'});
locationsLocalStorage.updateLocationExpiryDate(locationId);
}
}
}
});
</script>
{% endif %}
{% endblock %}
", "@AqarmapListing/Listing/read.html.twig", "/srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Resources/views/Listing/read.html.twig");
}
}