<?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;
/* @AqarmapNeighborhood/Default/index.html.twig */
class __TwigTemplate_6253dd49150f7b4bf9143e497de90840dcd8d53fa762a6ec79c4720fd3fd4dc1 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'],
'body' => [$this, 'block_body'],
'footer' => [$this, 'block_footer'],
'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", "@AqarmapNeighborhood/Default/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AqarmapNeighborhood/Default/index.html.twig"));
// line 2
$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.', 2, $this->source); })()), [0 => "Form/form_div_layout.html.twig"], true);
// line 3
$context["canonical_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "get", [0 => "_route"], "method", false, false, false, 3), 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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "get", [0 => "_route_params"], "method", false, false, false, 3));
// line 4
$context["SEND_MESSAGE_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::SEND_MESSAGE");
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "@AqarmapNeighborhood/Default/index.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 7
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 " ";
echo twig_escape_filter($this->env, twig_sprintf("%s - %s | %s", 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.', 7, $this->source); })()), "title", [], "any", false, false, false, 7), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.prices_guide"), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name")), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 10
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"));
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.', 10, $this->source); })()), "description", [], "any", false, false, false, 10), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 12
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 13
echo " <link rel=\"alternate\" hreflang=\"ar\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(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.', 13, $this->source); })()), "request", [], "any", false, false, false, 13), "get", [0 => "_route"], "method", false, false, false, 13), twig_array_merge(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.', 13, $this->source); })()), "request", [], "any", false, false, false, 13), "get", [0 => "_route_params"], "method", false, false, false, 13), ["_locale" => "ar"])), "html", null, true);
echo "\" />
<link rel=\"alternate\" hreflang=\"en\" href=\"";
// line 14
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(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.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "get", [0 => "_route"], "method", false, false, false, 14), twig_array_merge(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.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "get", [0 => "_route_params"], "method", false, false, false, 14), ["_locale" => "en"])), "html", null, true);
echo "\" />
<link rel=\"alternate\" hreflang=\"x-default\"
href=\"";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(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.', 16, $this->source); })()), "request", [], "any", false, false, false, 16), "get", [0 => "_route"], "method", false, false, false, 16), twig_array_merge(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.', 16, $this->source); })()), "request", [], "any", false, false, false, 16), "get", [0 => "_route_params"], "method", false, false, false, 16), ["_locale" => "ar"])), "html", null, true);
echo "\"/>
<meta name=\"twitter:card\" content=\"summary_large_image\" />
<meta name=\"twitter:site\" content=\"";
// line 18
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 19
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 20
echo twig_escape_filter($this->env, twig_sprintf("%s.%s.%s", $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name"), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.prices_guide"), 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.', 20, $this->source); })()), "title", [], "any", false, false, false, 20)), "html", null, true);
echo "\"/>
<meta property=\"og:description\" content=\"";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.sharing.description_location", ["%location%" => 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.', 21, $this->source); })()), "title", [], "any", false, false, false, 21)]), "html", null, true);
echo "\" />
<meta property=\"og:image\" content=\"";
// line 22
if (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.', 22, $this->source); })()), "mainPhoto", [], "any", false, false, false, 22)) {
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset(twig_get_attribute($this->env, $this->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.', 22, $this->source); })()), "mainPhoto", [], "any", false, false, false, 22), "file", [], "any", false, false, false, 22), "file"), "large"), "html", null, true);
}
echo "\" />
<meta property=\"og:url\" content=\"";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("neighborhood_main_page", ["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.', 23, $this->source); })()), "slug", [], "any", false, false, false, 23)]), "html", null, true);
echo "\" />
<meta property=\"og:site_name\" content=\"";
// line 24
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 25
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.', 25, $this->source); })()), "html", null, true);
echo "\"/>
";
// line 26
if (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.', 26, $this->source); })()), "disabled", [], "any", false, false, false, 26)) {
// line 27
echo " <meta name=\"robots\" content=\"noindex, nofollow\">
";
}
// line 29
echo " <link rel=\"canonical\" href=\"";
echo twig_escape_filter($this->env, (isset($context["canonical_url"]) || array_key_exists("canonical_url", $context) ? $context["canonical_url"] : (function () { throw new RuntimeError('Variable "canonical_url" does not exist.', 29, $this->source); })()), "html", null, true);
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 32
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 33
echo " ";
$context["sharingEvent"] = "neighborhood";
// line 34
echo " ";
$context["topSellerTrigger"] = "gtm-action-topsellers-lead-price-guide";
// line 35
echo " ";
$context["topSellerEventAction"] = "Top Sellers Price Guide";
// line 36
echo " <section id=\"";
echo twig_escape_filter($this->env, 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.', 36, $this->source); })()), "request", [], "any", false, false, false, 36), "get", [0 => "_route"], "method", false, false, false, 36), "html", null, true);
echo "\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-12 hidden-xs\">
<div class=\"pull-left flip\">
";
// line 41
if (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.', 41, $this->source); })()), "compoundFilter", [], "any", false, false, false, 41)) {
// line 42
echo " ";
$context["compound"] = 1;
// line 43
echo " ";
} else {
// line 44
echo " ";
$context["compound"] = null;
// line 45
echo " ";
}
// line 46
echo " ";
$context["neighborhood_breadcrumb"] = $this->extensions['Knp\Menu\Twig\MenuExtension']->get("aqarmap.neighborhood.breadcrumb", [], ["location" => (isset($context["location"]) || array_key_exists("location", $context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.', 46, $this->source); })()), "compound" => (isset($context["compound"]) || array_key_exists("compound", $context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.', 46, $this->source); })())]);
// line 47
echo " ";
echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render((isset($context["neighborhood_breadcrumb"]) || array_key_exists("neighborhood_breadcrumb", $context) ? $context["neighborhood_breadcrumb"] : (function () { throw new RuntimeError('Variable "neighborhood_breadcrumb" does not exist.', 47, $this->source); })()), ["allow_safe_labels" => true, "template" => "knp_breadcrumbs.html.twig", "currentAsLink" => true, "currentClass" => "active"]);
// line 52
echo "
</div>
<div class=\"pull-right flip\">
";
// line 55
if (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.', 55, $this->source); })()), "user", [], "any", false, false, false, 55)) {
// line 56
echo " ";
if ((isset($context["subscribedUser"]) || array_key_exists("subscribedUser", $context) ? $context["subscribedUser"] : (function () { throw new RuntimeError('Variable "subscribedUser" does not exist.', 56, $this->source); })())) {
// line 57
echo " <a id=\"un-subscribe-btn\" class=\"btn\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("neighbourhood_remove_subscriber", ["location" => 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.', 57, $this->source); })()), "id", [], "any", false, false, false, 57)]), "html", null, true);
echo "\"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.unsubscribe"), "html", null, true);
echo "</a>
";
} else {
// line 59
echo " <a id=\"subscribe-btn\" class=\"btn\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("neighbourhood_add_subscriber", ["location" => 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.', 59, $this->source); })()), "id", [], "any", false, false, false, 59)]), "html", null, true);
echo "\"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.subscribe"), "html", null, true);
echo "</a>
";
}
// line 61
echo " ";
}
// line 62
echo " </div>
</div>
</div>
</div><!-- end of .container (cover & breadcrumb) -->
";
// line 67
if (((isset($context["location_statistics"]) || array_key_exists("location_statistics", $context) ? $context["location_statistics"] : (function () { throw new RuntimeError('Variable "location_statistics" does not exist.', 67, $this->source); })()) && (isset($context["isStatisticsContainsAveragePrice"]) || array_key_exists("isStatisticsContainsAveragePrice", $context) ? $context["isStatisticsContainsAveragePrice"] : (function () { throw new RuntimeError('Variable "isStatisticsContainsAveragePrice" does not exist.', 67, $this->source); })()))) {
// line 68
echo " ";
$this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodAveragePrices.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 68)->display($context);
// line 69
echo " ";
}
// line 70
echo "
";
// line 71
if ((twig_length_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.', 71, $this->source); })()), "getChildren", [], "any", false, false, false, 71)) > 0)) {
// line 72
echo " ";
$this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodSubLocations.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 72)->display($context);
// line 73
echo " ";
}
// line 74
echo "
";
// line 75
if ((isset($context["location_statistics"]) || array_key_exists("location_statistics", $context) ? $context["location_statistics"] : (function () { throw new RuntimeError('Variable "location_statistics" does not exist.', 75, $this->source); })())) {
// line 76
echo " ";
$this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodStatistics.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 76)->display($context);
// line 77
echo " ";
}
// line 78
echo "
";
// line 79
if (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.', 79, $this->source); })()), "rating", [], "any", false, false, false, 79)) {
// line 80
echo " ";
$this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodRatings.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 80)->display($context);
// line 81
echo " ";
}
// line 82
echo "
";
// line 84
echo " ";
if ((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.', 84, $this->source); })()), "description", [], "any", false, false, false, 84) || (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.', 84, $this->source); })()), "photos", [], "any", false, false, false, 84), "count", [], "any", false, false, false, 84) > 0))) {
// line 85
echo " ";
$this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodDetails.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 85)->display($context);
// line 86
echo " ";
}
// line 87
echo "
";
// line 88
if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.sharing.page")) {
// line 89
echo " <div class=\"container\">
<div class=\"listing-share-box\" id=\"shareLiveListing\">
<label class=\"share-header-mob\">
";
// line 92
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.share_neighborhoods", ["%location%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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.', 92, $this->source); })()), "title", [], "any", false, false, false, 92))]), "html", null, true);
echo "
</label>
";
// line 94
$this->loadTemplate("@AqarmapListingBundle/Listing/elementShareContent.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 94)->display(twig_array_merge($context, ["url" => 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.', 94, $this->source); })()), "request", [], "any", false, false, false, 94), "uri", [], "any", false, false, false, 94)]));
// line 95
echo " </div>
<a class=\"listing-share-btn-container neighborhood-share-btn-container stickPermanent borderLight\" data-toggle=\"modal\" data-target=\"#neighborhoodShareModal\">
<span class=\"container btn-wrapper\">
<label>";
// line 98
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.', 98, $this->source); })()), "title", [], "any", false, false, false, 98), "html", null, true);
echo "</label>
<span class=\"btn btn-default btn-share\">
<i class=\"fa fa-share-alt\"></i>
";
// line 101
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.share"), "html", null, true);
echo "
</span>
</span>
</a>
</div>
";
}
// line 107
echo "
";
// line 108
if (((isset($context["location"]) || array_key_exists("location", $context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.', 108, $this->source); })()) && $this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.topsellers.section"))) {
// line 109
echo " <div class=\"container\">
<div class=\"row\">
<div class=\"col\">
<div class=\"top-sellers-warp-cards w-100\">
";
// line 113
$this->loadTemplate("@AqarmapListing/ListingSearch/topSellersResponsive.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 113)->display(twig_array_merge($context, ["trigger" => (isset($context["topSellerTrigger"]) || array_key_exists("topSellerTrigger", $context) ? $context["topSellerTrigger"] : (function () { throw new RuntimeError('Variable "topSellerTrigger" does not exist.', 113, $this->source); })()), "eventAction" => (isset($context["topSellerEventAction"]) || array_key_exists("topSellerEventAction", $context) ? $context["topSellerEventAction"] : (function () { throw new RuntimeError('Variable "topSellerEventAction" does not exist.', 113, $this->source); })()), "leadSourcePage" => "price_guide"]));
// line 114
echo " </div>
</div>
</div>
</div>
<div ng-controller=\"listingLeadsWizardController\" ng-init=\"initFormWizard()\">
";
// line 119
echo twig_include($this->env, $context, "@AqarmapUserBundle/User/listingMultiStepLeadModal.html.twig");
echo "
</div>
";
}
// line 122
echo "
";
// line 124
echo " ";
if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("features", "discussions")) {
// line 125
echo " ";
$this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodDiscussions.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 125)->display($context);
// line 126
echo " ";
}
// line 127
echo " ";
// line 128
echo " ";
if (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.', 128, $this->source); })()), "compoundFilter", [], "any", false, false, false, 128)) {
// line 129
echo " ";
if (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.', 129, $this->source); })()), "locationCompound", [], "any", false, false, false, 129)) {
// line 130
echo " <div class=\"container\">
<div class=\"page-header\">
<h1>
";
// line 133
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.information", ["%location%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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.', 133, $this->source); })()), "title", [], "any", false, false, false, 133))]), "html", null, true);
echo "
</h1>
</div>
<div class=\"row\">
<div class=\"col-xs-12\">
<table class=\"table table-responsive table-bordered compound_info\">
<tbody>
<tr>
<td class=\"compound_info_title\" ><p class=\"block-label\">";
// line 141
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.developer_name"), "html", null, true);
echo "</p></td>
<td><p class=\"block-label\">";
// line 142
if (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.', 142, $this->source); })()), "locationCompound", [], "any", false, false, false, 142), "developerName", [], "any", false, false, false, 142)) {
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.', 142, $this->source); })()), "locationCompound", [], "any", false, false, false, 142), "developerName", [], "any", false, false, false, 142), "html", null, true);
} else {
echo " -- ";
}
echo "</p></td>
<td class=\"compound_info_title\"><p class=\"block-label\">";
// line 143
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.project_size"), "html", null, true);
echo "</p></td>
<td><p class=\"block-label\">";
// line 144
if (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.', 144, $this->source); })()), "locationCompound", [], "any", false, false, false, 144), "projectSize", [], "any", false, false, false, 144)) {
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.', 144, $this->source); })()), "locationCompound", [], "any", false, false, false, 144), "getProjectSize", [], "method", false, false, false, 144), "html", null, true);
} else {
echo " -- ";
}
echo "</p></td>
</tr>
<tr>
<td class=\"compound_info_title\" ><p class=\"block-label\">";
// line 148
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.units_count"), "html", null, true);
echo "</p></td>
<td><p class=\"block-label\">";
// line 149
if (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.', 149, $this->source); })()), "locationCompound", [], "any", false, false, false, 149), "unitsCount", [], "any", false, false, false, 149)) {
echo $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->fixArabicNumbers(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.', 149, $this->source); })()), "locationCompound", [], "any", false, false, false, 149), "unitsCount", [], "any", false, false, false, 149));
} else {
echo " -- ";
}
echo "</p></td>
<td class=\"compound_info_title\" ><p class=\"block-label\">";
// line 150
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.state"), "html", null, true);
echo "</p></td>
<td><p class=\"block-label\">";
// line 151
if (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.', 151, $this->source); })()), "locationCompound", [], "any", false, false, false, 151), "state", [], "any", false, false, false, 151)) {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['Aqarmap\Bundle\NeighborhoodBundle\Twig\CompoundExtension']->getCompoundStatusLabel(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.', 151, $this->source); })()), "locationCompound", [], "any", false, false, false, 151), "state", [], "any", false, false, false, 151))), "html", null, true);
} else {
echo " -- ";
}
echo "</p></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
";
}
// line 161
echo " ";
if (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.', 161, $this->source); })()), "listing", [], "any", false, false, false, 161)) {
// line 162
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["location"] ?? null), "listing", [], "any", false, true, false, 162), "liveChildren", [], "any", true, true, false, 162) && !twig_test_empty(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.', 162, $this->source); })()), "listing", [], "any", false, false, false, 162), "liveChildren", [], "any", false, false, false, 162)))) {
// line 163
echo " <div class=\"container\">
<div class=\"page-header\">
<h1>
";
// line 166
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.units", ["%location%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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.', 166, $this->source); })()), "title", [], "any", false, false, false, 166))]), "html", null, true);
echo "
</h1>
</div>
<div class=\"row\">
<div class=\"col-xs-12\">
";
// line 171
$this->loadTemplate("@AqarmapListingBundle/Listing/units-table.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 171)->display(twig_array_merge($context, ["units" => 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.', 171, $this->source); })()), "listing", [], "any", false, false, false, 171), "liveChildren", [], "any", false, false, false, 171)]));
// line 172
echo " </div>
</div>
</div>
";
}
// line 176
echo " ";
}
// line 177
echo " ";
}
// line 178
echo "
";
// line 180
echo " ";
if (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.', 180, $this->source); })()), "compoundFilter", [], "any", false, false, false, 180)) {
// line 181
echo " ";
if (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.', 181, $this->source); })()), "listing", [], "any", false, false, false, 181)) {
// line 182
echo " <div class=\"neighborhood-contact-seller listingSideForm\" ng-controller=\"listingDetailsController\" >
<div class=\"container\">
<div class=\"page-header\">
<h1>";
// line 186
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.contact_developer"), "html", null, true);
echo "</h1>
</div>
";
// line 188
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["contact_seller_form"]) || array_key_exists("contact_seller_form", $context) ? $context["contact_seller_form"] : (function () { throw new RuntimeError('Variable "contact_seller_form" does not exist.', 188, $this->source); })()), 'form_start');
echo "
";
// line 190
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["contact_seller_form"]) || array_key_exists("contact_seller_form", $context) ? $context["contact_seller_form"] : (function () { throw new RuntimeError('Variable "contact_seller_form" does not exist.', 190, $this->source); })()), "subject", [], "any", false, false, false, 190), 'row', ["value" => ("Re: " . twig_striptags(twig_title_string_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.', 190, $this->source); })()), "listing", [], "any", false, false, false, 190), "title", [], "any", false, false, false, 190))))]);
echo "
";
// line 192
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["contact_seller_form"]) || array_key_exists("contact_seller_form", $context) ? $context["contact_seller_form"] : (function () { throw new RuntimeError('Variable "contact_seller_form" does not exist.', 192, $this->source); })()), "message", [], "any", false, false, false, 192), 'widget', ["attr" => ["class" => "form-control", "placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.contact_seller_message_placeholder"), "ng-model" => "sellerMessageContent"]]);
echo "
<button type=\"submit\" class=\"btn btn-primary btn-sm pull-right flip mb-2\" data-gtm-listing-id=\"";
// line 194
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.', 194, $this->source); })()), "listing", [], "any", false, false, false, 194), "id", [], "any", false, false, false, 194), "html", null, true);
echo "\" ng-click=\"sendEmailtoSeller(\$event, '";
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.', 194, $this->source); })()), "listing", [], "any", false, false, false, 194), "id", [], "any", false, false, false, 194), "html", null, true);
echo "', '";
echo twig_escape_filter($this->env, (isset($context["SEND_MESSAGE_CONSTANT"]) || array_key_exists("SEND_MESSAGE_CONSTANT", $context) ? $context["SEND_MESSAGE_CONSTANT"] : (function () { throw new RuntimeError('Variable "SEND_MESSAGE_CONSTANT" does not exist.', 194, $this->source); })()), "html", null, true);
echo "' )\" ng-disabled=\"contact_seller.\$invalid\" onclick=\"gtmPushAction('gtm-btn-listing-message', 'Email')\">
<span class=\"fa fa-paper-plane\"></span> ";
// line 195
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.send_message"), "html", null, true);
echo "
</button>
";
// line 198
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["contact_seller_form"]) || array_key_exists("contact_seller_form", $context) ? $context["contact_seller_form"] : (function () { throw new RuntimeError('Variable "contact_seller_form" does not exist.', 198, $this->source); })()), 'form_end');
echo "
</div>
</div>
";
}
// line 202
echo " ";
}
// line 203
echo "
";
// line 207
echo " ";
if ((twig_length_filter($this->env, (isset($context["nearestNeighbourhoods"]) || array_key_exists("nearestNeighbourhoods", $context) ? $context["nearestNeighbourhoods"] : (function () { throw new RuntimeError('Variable "nearestNeighbourhoods" does not exist.', 207, $this->source); })())) > 0)) {
// line 208
echo " ";
$this->loadTemplate("@AqarmapNeighborhoodBundle/neighbourhoodsFeaturedSection.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 208)->display($context);
// line 209
echo " ";
}
// line 210
echo " <div class=\"container\">
<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 mobile-breadcrumb visible-sm visible-xs\">
";
// line 212
$context["NEIGHBORHOOD_BREADCRUMB"] = $this->extensions['Knp\Menu\Twig\MenuExtension']->get("aqarmap.neighborhood.breadcrumb", [], ["location" => // line 213
(isset($context["location"]) || array_key_exists("location", $context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.', 213, $this->source); })()), "compound" => // line 214
(isset($context["compound"]) || array_key_exists("compound", $context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.', 214, $this->source); })())]);
// line 216
echo " ";
echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render( // line 217
(isset($context["NEIGHBORHOOD_BREADCRUMB"]) || array_key_exists("NEIGHBORHOOD_BREADCRUMB", $context) ? $context["NEIGHBORHOOD_BREADCRUMB"] : (function () { throw new RuntimeError('Variable "NEIGHBORHOOD_BREADCRUMB" does not exist.', 217, $this->source); })()), ["allow_safe_labels" => true, "template" => "knp_breadcrumbs.html.twig", "currentAsLink" => true, "currentClass" => "active"]);
// line 223
echo "
</div>
</div>
<div class=\"container\">
<div class=\"discussions col-md-12\">
<div class=\"tab-content searchResultsContainer interested-listings subsLinks more-locations-container\">
";
// line 229
$this->loadTemplate("@AqarmapMainBundle/Default/locationsSubLinks.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 229)->display($context);
// line 230
echo " </div>
</div>
</div>
</section>
";
// line 234
if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.sharing.page")) {
// line 235
echo " ";
$this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodSharing.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 235)->display($context);
// line 236
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 239
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 240
echo " ";
$this->loadTemplate("footer.v2.html.twig", "@AqarmapNeighborhood/Default/index.html.twig", 240)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 243
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 244
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script>
";
// line 247
echo " var months = [];
var dataSets = [];
var avg_price_data = [];
var propety_type_title ;
var property_type_color ;
";
// line 252
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["historyData"]) || array_key_exists("historyData", $context) ? $context["historyData"] : (function () { throw new RuntimeError('Variable "historyData" does not exist.', 252, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["history"]) {
// line 253
echo " propety_type_title = \"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["history"], "title", [], "array", false, false, false, 253), "html", null, true);
echo "\";
";
// line 254
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["history"], "data", [], "array", false, false, false, 254), "average_price", [], "array", false, false, false, 254));
foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
// line 255
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["data"], "value", [], "array", false, false, false, 255)) {
// line 256
echo " avg_price_data.push(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "value", [], "array", false, false, false, 256), "html", null, true);
echo ");
months.push(\"";
// line 257
echo twig_escape_filter($this->env, ((twig_localized_date_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "date", [], "array", false, false, false, 257), "none", "none", 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.', 257, $this->source); })()), "request", [], "any", false, false, false, 257), "locale", [], "any", false, false, false, 257), null, "MMMM") . "-") . twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "date", [], "array", false, false, false, 257), "Y")), "html", null, true);
echo "\");
";
}
// line 259
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 260
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 260) == 2)) {
// line 261
echo " property_type_color = '#f38b00';
";
} else {
// line 263
echo " property_type_color = '#0080bb';
";
}
// line 265
echo " dataSets.push({
label: propety_type_title,
fill: false,
lineTension: 0.1,
backgroundColor: property_type_color,
borderColor: property_type_color,
borderCapStyle: 'round',
borderDash: [],
borderDashOffset: 0.0,
borderJoinStyle: 'miter',
pointBorderColor: property_type_color,
pointBackgroundColor: \"#fff\",
pointBorderWidth: 1,
pointHoverRadius: 5,
pointHoverBackgroundColor: property_type_color,
pointHoverBorderColor: property_type_color,
pointHoverBorderWidth: 2,
pointRadius: 1,
pointHitRadius: 10,
data: avg_price_data,
spanGaps: false,
});
avg_price_data = [];
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['history'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 289
echo " var data = {
labels: Array.from(new Set(months)),
datasets: dataSets
};
";
// line 294
if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.pricegraph.resize")) {
// line 295
echo " var ctx = \$(\".statistics\");
ctx.each(function(index) {
var statistics = new Chart(this, {
type: 'line',
data: data,
options: {
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
return tooltipItem.yLabel.toLocaleString();
}
}
},
scales: {
yAxes: [{
ticks: {
beginAtZero:true,
callback: function(label, index, labels) {
return label.toLocaleString();
}
}
}],
xAxes: [{
ticks: {
autoSkip: false
}
}]
}
}
});
});
";
} else {
// line 327
echo " var ctx = \$(\"#statistics\");
var statistics = new Chart(ctx, {
type: 'line',
data: data,
options: {
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
return tooltipItem.yLabel.toLocaleString();
}
}
},
scales: {
yAxes: [{
ticks: {
beginAtZero:true,
callback: function(label, index, labels) {
return label.toLocaleString();
}
}
}],
xAxes: [{
ticks: {
autoSkip: false
}
}]
}
}
});
";
}
// line 358
echo " </script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"Place\",
\"url\":\"";
// line 364
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(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.', 364, $this->source); })()), "request", [], "any", false, false, false, 364), "attributes", [], "any", false, false, false, 364), "get", [0 => "_route"], "method", false, false, false, 364), 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.', 364, $this->source); })()), "request", [], "any", false, false, false, 364), "attributes", [], "any", false, false, false, 364), "get", [0 => "_route_params"], "method", false, false, false, 364)), "html", null, true);
echo "\" ,
\"description\":\"";
// line 365
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.', 365, $this->source); })()), "description", [], "any", false, false, false, 365), "html", null, true);
echo "\" ,
\"geo\": {
\"@type\": \"GeoCoordinates\",
\"latitude\": \"";
// line 368
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.', 368, $this->source); })()), "centerLat", [], "any", false, false, false, 368), "html", null, true);
echo "\",
\"longitude\": \"";
// line 369
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.', 369, $this->source); })()), "centerLng", [], "any", false, false, false, 369), "html", null, true);
echo "\"
},
\"name\": \"";
// line 371
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.', 371, $this->source); })()), "title", [], "any", false, false, false, 371), "html", null, true);
echo "\"
}
</script>
<script>
\$(document).ready(function() {
var neighborhoodDescription = \$('#neighborhoodDescription');
neighborhoodDescription.addClass('hidden-neighborhood-description')
var moreTrans = Translator.trans('more_link');
var lessTrans = Translator.trans('less_link');
\$('.see-more').html(moreTrans);
\$('.see-more').on('click', function() {
var seeMoreText = \$(this).html();
if (seeMoreText == moreTrans) {
\$(this).html(lessTrans);
} else if (seeMoreText == lessTrans) {
\$(this).html(moreTrans);
}
if (neighborhoodDescription.hasClass('hidden-neighborhood-description')) {
neighborhoodDescription.removeClass('hidden-neighborhood-description')
neighborhoodDescription.addClass('visible-neighborhood-description')
} else if (neighborhoodDescription.hasClass('visible-neighborhood-description')) {
neighborhoodDescription.removeClass('visible-neighborhood-description')
neighborhoodDescription.addClass('hidden-neighborhood-description')
\$(\"#neighborhoodDescription\")[0].scrollIntoView();
}
})
})
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@AqarmapNeighborhood/Default/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 873 => 371, 868 => 369, 864 => 368, 858 => 365, 854 => 364, 846 => 358, 813 => 327, 779 => 295, 777 => 294, 770 => 289, 733 => 265, 729 => 263, 725 => 261, 722 => 260, 716 => 259, 711 => 257, 706 => 256, 703 => 255, 699 => 254, 694 => 253, 677 => 252, 670 => 247, 664 => 244, 654 => 243, 643 => 240, 633 => 239, 622 => 236, 619 => 235, 617 => 234, 611 => 230, 609 => 229, 601 => 223, 599 => 217, 597 => 216, 595 => 214, 594 => 213, 593 => 212, 589 => 210, 586 => 209, 583 => 208, 580 => 207, 575 => 203, 572 => 202, 565 => 198, 559 => 195, 551 => 194, 546 => 192, 541 => 190, 536 => 188, 531 => 186, 525 => 182, 522 => 181, 519 => 180, 516 => 178, 513 => 177, 510 => 176, 504 => 172, 502 => 171, 494 => 166, 489 => 163, 486 => 162, 483 => 161, 466 => 151, 462 => 150, 454 => 149, 450 => 148, 439 => 144, 435 => 143, 427 => 142, 423 => 141, 412 => 133, 407 => 130, 404 => 129, 401 => 128, 399 => 127, 396 => 126, 393 => 125, 390 => 124, 387 => 122, 381 => 119, 374 => 114, 372 => 113, 366 => 109, 364 => 108, 361 => 107, 352 => 101, 346 => 98, 341 => 95, 339 => 94, 334 => 92, 329 => 89, 327 => 88, 324 => 87, 321 => 86, 318 => 85, 315 => 84, 312 => 82, 309 => 81, 306 => 80, 304 => 79, 301 => 78, 298 => 77, 295 => 76, 293 => 75, 290 => 74, 287 => 73, 284 => 72, 282 => 71, 279 => 70, 276 => 69, 273 => 68, 271 => 67, 264 => 62, 261 => 61, 253 => 59, 245 => 57, 242 => 56, 240 => 55, 235 => 52, 232 => 47, 229 => 46, 226 => 45, 223 => 44, 220 => 43, 217 => 42, 215 => 41, 206 => 36, 203 => 35, 200 => 34, 197 => 33, 187 => 32, 174 => 29, 170 => 27, 168 => 26, 164 => 25, 160 => 24, 156 => 23, 150 => 22, 146 => 21, 142 => 20, 138 => 19, 134 => 18, 129 => 16, 124 => 14, 119 => 13, 109 => 12, 90 => 10, 70 => 7, 59 => 1, 57 => 4, 55 => 3, 53 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% form_theme quick_registration_form 'Form/form_div_layout.html.twig' %}
{% set canonical_url = url(app.request.get('_route'), app.request.get('_route_params')) %}
{% set SEND_MESSAGE_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::SEND_MESSAGE') %}
{# Page title #}
{% block title %} {{ \"%s - %s | %s\"|format(location.title, 'neighborhoods.prices_guide'|trans, 'layout.app_name'|trans) }}{% endblock %}
{# Meta Description #}
{% block meta_description %}{{ location.description }}{% endblock %}
{% block htmlhead %}
<link rel=\"alternate\" hreflang=\"ar\" href=\"{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}\" />
<link rel=\"alternate\" hreflang=\"en\" href=\"{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'en'})) }}\" />
<link rel=\"alternate\" hreflang=\"x-default\"
href=\"{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}\"/>
<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=\"{{ \"%s.%s.%s\"|format('layout.app_name'|trans, 'neighborhoods.prices_guide'|trans, location.title) }}\"/>
<meta property=\"og:description\" content=\"{{ 'neighborhoods.sharing.description_location'|trans({'%location%': location.title}) }}\" />
<meta property=\"og:image\" content=\"{% if location.mainPhoto %}{{ custom_vich_uploader_asset(location.mainPhoto.file, 'file') | thumbnail('large')}}{% endif %}\" />
<meta property=\"og:url\" content=\"{{ url('neighborhood_main_page', {'location_slug': location.slug}) }}\" />
<meta property=\"og:site_name\" content=\"{{ 'layout.app_name'|trans }}\" />
<meta property=\"fb:app_id\" content=\"{{ facebook_app_id }}\"/>
{% if location.disabled %}
<meta name=\"robots\" content=\"noindex, nofollow\">
{% endif %}
<link rel=\"canonical\" href=\"{{ canonical_url }}\"/>
{% endblock %}
{% block body %}
{% set sharingEvent = \"neighborhood\" %}
{% set topSellerTrigger = 'gtm-action-topsellers-lead-price-guide' %}
{% set topSellerEventAction = 'Top Sellers Price Guide' %}
<section id=\"{{ app.request.get('_route') }}\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-12 hidden-xs\">
<div class=\"pull-left flip\">
{% if location.compoundFilter %}
{% set compound = 1 %}
{% else %}
{% set compound = null %}
{% endif %}
{% set neighborhood_breadcrumb = knp_menu_get( 'aqarmap.neighborhood.breadcrumb' , [], {\"location\": location , \"compound\": compound}) %}
{{ knp_menu_render(neighborhood_breadcrumb , {
'allow_safe_labels': true,
'template': 'knp_breadcrumbs.html.twig',
'currentAsLink': true,
'currentClass': 'active'
}) }}
</div>
<div class=\"pull-right flip\">
{% if app.user %}
{% if subscribedUser %}
<a id=\"un-subscribe-btn\" class=\"btn\" href=\"{{ path('neighbourhood_remove_subscriber', {'location': location.id}) }}\"> {{ \"neighborhoods.unsubscribe\"|trans }}</a>
{% else %}
<a id=\"subscribe-btn\" class=\"btn\" href=\"{{ path('neighbourhood_add_subscriber', {'location': location.id}) }}\"> {{ \"neighborhoods.subscribe\"|trans }}</a>
{% endif %}
{% endif %}
</div>
</div>
</div>
</div><!-- end of .container (cover & breadcrumb) -->
{% if location_statistics and isStatisticsContainsAveragePrice %}
{% include '@AqarmapNeighborhoodBundle/neighborhoodAveragePrices.html.twig' %}
{% endif %}
{% if location.getChildren|length > 0 %}
{% include '@AqarmapNeighborhoodBundle/neighborhoodSubLocations.html.twig' %}
{% endif %}
{% if location_statistics %}
{% include '@AqarmapNeighborhoodBundle/neighborhoodStatistics.html.twig' %}
{% endif %}
{% if location.rating %}
{% include '@AqarmapNeighborhoodBundle/neighborhoodRatings.html.twig' %}
{% endif %}
{# Description & Photos #}
{% if location.description or location.photos.count > 0 %}
{% include \"@AqarmapNeighborhoodBundle/neighborhoodDetails.html.twig\" %}
{% endif %}
{% if isEnabledFeature('web.sharing.page') %}
<div class=\"container\">
<div class=\"listing-share-box\" id=\"shareLiveListing\">
<label class=\"share-header-mob\">
{{ 'neighborhoods.share_neighborhoods'|trans({'%location%': location.title |trans}) }}
</label>
{% include '@AqarmapListingBundle/Listing/elementShareContent.html.twig' with {'url': app.request.uri} %}
</div>
<a class=\"listing-share-btn-container neighborhood-share-btn-container stickPermanent borderLight\" data-toggle=\"modal\" data-target=\"#neighborhoodShareModal\">
<span class=\"container btn-wrapper\">
<label>{{ location.title }}</label>
<span class=\"btn btn-default btn-share\">
<i class=\"fa fa-share-alt\"></i>
{{ 'layout.share'|trans }}
</span>
</span>
</a>
</div>
{% endif %}
{% if location and isEnabledFeature('web.topsellers.section') %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col\">
<div class=\"top-sellers-warp-cards w-100\">
{% include \"@AqarmapListing/ListingSearch/topSellersResponsive.html.twig\" with {'trigger': topSellerTrigger, 'eventAction': topSellerEventAction, leadSourcePage: 'price_guide'} %}
</div>
</div>
</div>
</div>
<div ng-controller=\"listingLeadsWizardController\" ng-init=\"initFormWizard()\">
{{ include('@AqarmapUserBundle/User/listingMultiStepLeadModal.html.twig') }}
</div>
{% endif %}
{# Neighborhood Discussions #}
{% if get_setting('features', 'discussions') %}
{% include \"@AqarmapNeighborhoodBundle/neighborhoodDiscussions.html.twig\" %}
{% endif %}
{# Neighborhood Compund #}
{% if location.compoundFilter %}
{% if location.locationCompound %}
<div class=\"container\">
<div class=\"page-header\">
<h1>
{{ 'neighborhoods.information'|trans({'%location%': location.title |trans}) }}
</h1>
</div>
<div class=\"row\">
<div class=\"col-xs-12\">
<table class=\"table table-responsive table-bordered compound_info\">
<tbody>
<tr>
<td class=\"compound_info_title\" ><p class=\"block-label\">{{ 'neighborhoods.compound.developer_name'|trans }}</p></td>
<td><p class=\"block-label\">{% if location.locationCompound.developerName %}{{ location.locationCompound.developerName }}{% else %} -- {% endif %}</p></td>
<td class=\"compound_info_title\"><p class=\"block-label\">{{ 'neighborhoods.compound.project_size'|trans }}</p></td>
<td><p class=\"block-label\">{% if location.locationCompound.projectSize %}{{ location.locationCompound.getProjectSize() }}{% else %} -- {% endif %}</p></td>
</tr>
<tr>
<td class=\"compound_info_title\" ><p class=\"block-label\">{{ 'neighborhoods.compound.units_count'|trans }}</p></td>
<td><p class=\"block-label\">{% if location.locationCompound.unitsCount %}{{ location.locationCompound.unitsCount|fixArabicNumbers|raw }}{% else %} -- {% endif %}</p></td>
<td class=\"compound_info_title\" ><p class=\"block-label\">{{ 'neighborhoods.compound.state'|trans }}</p></td>
<td><p class=\"block-label\">{% if location.locationCompound.state %}{{ getCompoundStatusLabel(location.locationCompound.state)|trans }}{% else %} -- {% endif %}</p></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% if location.listing %}
{% if location.listing.liveChildren is defined and location.listing.liveChildren is not empty %}
<div class=\"container\">
<div class=\"page-header\">
<h1>
{{ 'neighborhoods.units'|trans({'%location%': location.title |trans}) }}
</h1>
</div>
<div class=\"row\">
<div class=\"col-xs-12\">
{% include '@AqarmapListingBundle/Listing/units-table.html.twig' with {'units': location.listing.liveChildren} %}
</div>
</div>
</div>
{% endif %}
{% endif %}
{% endif %}
{# Compound send contact form #}
{% if location.compoundFilter %}
{% if location.listing %}
<div class=\"neighborhood-contact-seller listingSideForm\" ng-controller=\"listingDetailsController\" >
<div class=\"container\">
<div class=\"page-header\">
<h1>{{ 'neighborhoods.compound.contact_developer'|trans }}</h1>
</div>
{{ form_start(contact_seller_form) }}
{{ form_row(contact_seller_form.subject, {value : 'Re: '~ location.listing.title|title|striptags}) }}
{{ form_widget(contact_seller_form.message, {attr: {class: 'form-control','placeholder': \"neighborhoods.compound.contact_seller_message_placeholder\"|trans, 'ng-model': 'sellerMessageContent'}}) }}
<button type=\"submit\" class=\"btn btn-primary btn-sm pull-right flip mb-2\" data-gtm-listing-id=\"{{ location.listing.id }}\" ng-click=\"sendEmailtoSeller(\$event, '{{ location.listing.id }}', '{{ SEND_MESSAGE_CONSTANT }}' )\" ng-disabled=\"contact_seller.\$invalid\" onclick=\"gtmPushAction('gtm-btn-listing-message', 'Email')\">
<span class=\"fa fa-paper-plane\"></span> {{ 'listing.send_message'|trans }}
</button>
{{ form_end(contact_seller_form) }}
</div>
</div>
{% endif %}
{% endif %}
{# Nearest Neighbourhoods #}
{% if nearestNeighbourhoods|length > 0 %}
{% include \"@AqarmapNeighborhoodBundle/neighbourhoodsFeaturedSection.html.twig\" %}
{% endif %}
<div class=\"container\">
<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 mobile-breadcrumb visible-sm visible-xs\">
{% set NEIGHBORHOOD_BREADCRUMB = knp_menu_get('aqarmap.neighborhood.breadcrumb', [], {
location: location,
compound: compound
}) %}
{{
knp_menu_render(NEIGHBORHOOD_BREADCRUMB , {
'allow_safe_labels': true,
'template': 'knp_breadcrumbs.html.twig',
'currentAsLink': true,
'currentClass': 'active',
})
}}
</div>
</div>
<div class=\"container\">
<div class=\"discussions col-md-12\">
<div class=\"tab-content searchResultsContainer interested-listings subsLinks more-locations-container\">
{% include \"@AqarmapMainBundle/Default/locationsSubLinks.html.twig\" %}
</div>
</div>
</div>
</section>
{% if isEnabledFeature('web.sharing.page') %}
{% include \"@AqarmapNeighborhoodBundle/neighborhoodSharing.html.twig\" %}
{% endif %}
{% endblock %}
{% block footer %}
{% include \"footer.v2.html.twig\" %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
{# Graph Data #}
var months = [];
var dataSets = [];
var avg_price_data = [];
var propety_type_title ;
var property_type_color ;
{% for history in historyData %}
propety_type_title = \"{{ history['title'] }}\";
{% for data in history['data']['average_price'] %}
{% if data['value'] %}
avg_price_data.push({{ data['value'] }});
months.push(\"{{ data['date']|localizeddate('none', 'none', app.request.locale, null, \"MMMM\") ~ \"-\" ~ data['date']|date(\"Y\") }}\");
{% endif %}
{% endfor %}
{% if loop.index == 2 %}
property_type_color = '#f38b00';
{% else %}
property_type_color = '#0080bb';
{% endif %}
dataSets.push({
label: propety_type_title,
fill: false,
lineTension: 0.1,
backgroundColor: property_type_color,
borderColor: property_type_color,
borderCapStyle: 'round',
borderDash: [],
borderDashOffset: 0.0,
borderJoinStyle: 'miter',
pointBorderColor: property_type_color,
pointBackgroundColor: \"#fff\",
pointBorderWidth: 1,
pointHoverRadius: 5,
pointHoverBackgroundColor: property_type_color,
pointHoverBorderColor: property_type_color,
pointHoverBorderWidth: 2,
pointRadius: 1,
pointHitRadius: 10,
data: avg_price_data,
spanGaps: false,
});
avg_price_data = [];
{% endfor %}
var data = {
labels: Array.from(new Set(months)),
datasets: dataSets
};
{% if isEnabledFeature('web.pricegraph.resize') %}
var ctx = \$(\".statistics\");
ctx.each(function(index) {
var statistics = new Chart(this, {
type: 'line',
data: data,
options: {
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
return tooltipItem.yLabel.toLocaleString();
}
}
},
scales: {
yAxes: [{
ticks: {
beginAtZero:true,
callback: function(label, index, labels) {
return label.toLocaleString();
}
}
}],
xAxes: [{
ticks: {
autoSkip: false
}
}]
}
}
});
});
{% else %}
var ctx = \$(\"#statistics\");
var statistics = new Chart(ctx, {
type: 'line',
data: data,
options: {
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
return tooltipItem.yLabel.toLocaleString();
}
}
},
scales: {
yAxes: [{
ticks: {
beginAtZero:true,
callback: function(label, index, labels) {
return label.toLocaleString();
}
}
}],
xAxes: [{
ticks: {
autoSkip: false
}
}]
}
}
});
{% endif %}
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"Place\",
\"url\":\"{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}\" ,
\"description\":\"{{ location.description }}\" ,
\"geo\": {
\"@type\": \"GeoCoordinates\",
\"latitude\": \"{{ location.centerLat }}\",
\"longitude\": \"{{ location.centerLng }}\"
},
\"name\": \"{{ location.title }}\"
}
</script>
<script>
\$(document).ready(function() {
var neighborhoodDescription = \$('#neighborhoodDescription');
neighborhoodDescription.addClass('hidden-neighborhood-description')
var moreTrans = Translator.trans('more_link');
var lessTrans = Translator.trans('less_link');
\$('.see-more').html(moreTrans);
\$('.see-more').on('click', function() {
var seeMoreText = \$(this).html();
if (seeMoreText == moreTrans) {
\$(this).html(lessTrans);
} else if (seeMoreText == lessTrans) {
\$(this).html(moreTrans);
}
if (neighborhoodDescription.hasClass('hidden-neighborhood-description')) {
neighborhoodDescription.removeClass('hidden-neighborhood-description')
neighborhoodDescription.addClass('visible-neighborhood-description')
} else if (neighborhoodDescription.hasClass('visible-neighborhood-description')) {
neighborhoodDescription.removeClass('visible-neighborhood-description')
neighborhoodDescription.addClass('hidden-neighborhood-description')
\$(\"#neighborhoodDescription\")[0].scrollIntoView();
}
})
})
</script>
{% endblock %}
", "@AqarmapNeighborhood/Default/index.html.twig", "/srv/moonshot/src/Aqarmap/Bundle/NeighborhoodBundle/Resources/views/Default/index.html.twig");
}
}