src/Aqarmap/Bundle/ListingBundle/Resources/views/Listing/read.html.twig line 1
{% 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 %}{{ encore_entry_link_tags('activitiesApp') }}{% 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 %}<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 ? 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|serialize() }},"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' %}<sectionclass="col-md-12 listing-details {{ ABtestingClasses }}"data-sticky-containeritemscopeitemtype="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 %}<div class=" side-bar-wrapper ">{% include '@AqarmapListingBundle/Listing/listingContactWrapper.html.twig' %}{% if IS_PROJECT %}{% include '@AqarmapListingBundle/Listing/compoundRatingService.html.twig' %}{% endif %}</div></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 %}{% 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 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 %}{% 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 heightvar 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 %}