var/cache/dev/twig/dd/dd1f48bfddedff4d02161116aaed49ea8f58897e6ae025cf7db4ac948a698e90.php line 151

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @AqarmapNeighborhood/Default/index.html.twig */
  14. class __TwigTemplate_6253dd49150f7b4bf9143e497de90840dcd8d53fa762a6ec79c4720fd3fd4dc1 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'meta_description' => [$this'block_meta_description'],
  25.             'htmlhead' => [$this'block_htmlhead'],
  26.             'body' => [$this'block_body'],
  27.             'footer' => [$this'block_footer'],
  28.             'javascripts' => [$this'block_javascripts'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "base.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AqarmapNeighborhood/Default/index.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AqarmapNeighborhood/Default/index.html.twig"));
  43.         // line 2
  44.         $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); })()), [=> "Form/form_div_layout.html.twig"], true);
  45.         // line 3
  46.         $context["canonical_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "get", [=> "_route"], "method"falsefalsefalse3), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "get", [=> "_route_params"], "method"falsefalsefalse3));
  47.         // line 4
  48.         $context["SEND_MESSAGE_CONSTANT"] = twig_constant("Aqarmap\\Bundle\\ListingBundle\\Constant\\LeadTypes::SEND_MESSAGE");
  49.         // line 1
  50.         $this->parent $this->loadTemplate("base.html.twig""@AqarmapNeighborhood/Default/index.html.twig"1);
  51.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  52.         
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  54.         
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  56.     }
  57.     // line 7
  58.     public function block_title($context, array $blocks = [])
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  65.         echo " ";
  66.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse7), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.prices_guide"), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name")), "html"nulltrue);
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.         
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  71.     }
  72.     // line 10
  73.     public function block_meta_description($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_description"));
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_description"));
  80.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'10$this->source); })()), "description", [], "any"falsefalsefalse10), "html"nulltrue);
  81.         
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  83.         
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  85.     }
  86.     // line 12
  87.     public function block_htmlhead($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""htmlhead"));
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""htmlhead"));
  94.         // line 13
  95.         echo "    <link rel=\"alternate\" hreflang=\"ar\" href=\"";
  96.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'13$this->source); })()), "request", [], "any"falsefalsefalse13), "get", [=> "_route"], "method"falsefalsefalse13), twig_array_merge(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'13$this->source); })()), "request", [], "any"falsefalsefalse13), "get", [=> "_route_params"], "method"falsefalsefalse13), ["_locale" => "ar"])), "html"nulltrue);
  97.         echo "\" />
  98.     <link rel=\"alternate\" hreflang=\"en\" href=\"";
  99.         // line 14
  100.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'14$this->source); })()), "request", [], "any"falsefalsefalse14), "get", [=> "_route"], "method"falsefalsefalse14), twig_array_merge(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'14$this->source); })()), "request", [], "any"falsefalsefalse14), "get", [=> "_route_params"], "method"falsefalsefalse14), ["_locale" => "en"])), "html"nulltrue);
  101.         echo "\" />
  102.     <link rel=\"alternate\" hreflang=\"x-default\"
  103.         href=\"";
  104.         // line 16
  105.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'16$this->source); })()), "request", [], "any"falsefalsefalse16), "get", [=> "_route"], "method"falsefalsefalse16), twig_array_merge(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'16$this->source); })()), "request", [], "any"falsefalsefalse16), "get", [=> "_route_params"], "method"falsefalsefalse16), ["_locale" => "ar"])), "html"nulltrue);
  106.         echo "\"/>
  107.     <meta name=\"twitter:card\" content=\"summary_large_image\" />
  108.     <meta name=\"twitter:site\" content=\"";
  109.         // line 18
  110.         echo twig_escape_filter($this->envtwig_sprintf("%s%s""@"$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name")), "html"nulltrue);
  111.         echo "\" />
  112.     <meta name=\"twitter:creator\" content=\"";
  113.         // line 19
  114.         echo twig_escape_filter($this->envtwig_sprintf("%s%s""@"$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name")), "html"nulltrue);
  115.         echo "\" />
  116.     <meta property=\"og:title\" content=\"";
  117.         // line 20
  118.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse20)), "html"nulltrue);
  119.         echo "\"/>
  120.     <meta property=\"og:description\" content=\"";
  121.         // line 21
  122.         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"falsefalsefalse21)]), "html"nulltrue);
  123.         echo "\" />
  124.     <meta property=\"og:image\" content=\"";
  125.         // line 22
  126.         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"falsefalsefalse22)) {
  127.             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->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'22$this->source); })()), "mainPhoto", [], "any"falsefalsefalse22), "file", [], "any"falsefalsefalse22), "file"), "large"), "html"nulltrue);
  128.         }
  129.         echo "\" />
  130.     <meta property=\"og:url\" content=\"";
  131.         // line 23
  132.         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"falsefalsefalse23)]), "html"nulltrue);
  133.         echo "\" />
  134.     <meta property=\"og:site_name\" content=\"";
  135.         // line 24
  136.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.app_name"), "html"nulltrue);
  137.         echo "\" />
  138.     <meta property=\"fb:app_id\" content=\"";
  139.         // line 25
  140.         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"nulltrue);
  141.         echo "\"/>
  142.     ";
  143.         // line 26
  144.         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"falsefalsefalse26)) {
  145.             // line 27
  146.             echo "        <meta name=\"robots\" content=\"noindex, nofollow\">
  147.     ";
  148.         }
  149.         // line 29
  150.         echo "    <link rel=\"canonical\" href=\"";
  151.         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"nulltrue);
  152.         echo "\"/>
  153. ";
  154.         
  155.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  156.         
  157.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  158.     }
  159.     // line 32
  160.     public function block_body($context, array $blocks = [])
  161.     {
  162.         $macros $this->macros;
  163.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  164.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  165.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  166.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  167.         // line 33
  168.         echo "    ";
  169.         $context["sharingEvent"] = "neighborhood";
  170.         // line 34
  171.         echo "    ";
  172.         $context["topSellerTrigger"] = "gtm-action-topsellers-lead-price-guide";
  173.         // line 35
  174.         echo "    ";
  175.         $context["topSellerEventAction"] = "Top Sellers Price Guide";
  176.         // line 36
  177.         echo "    <section id=\"";
  178.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'36$this->source); })()), "request", [], "any"falsefalsefalse36), "get", [=> "_route"], "method"falsefalsefalse36), "html"nulltrue);
  179.         echo "\">
  180.         <div class=\"container\">
  181.             <div class=\"row\">
  182.                 <div class=\"col-md-12 hidden-xs\">
  183.                     <div class=\"pull-left flip\">
  184.                         ";
  185.         // line 41
  186.         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"falsefalsefalse41)) {
  187.             // line 42
  188.             echo "                            ";
  189.             $context["compound"] = 1;
  190.             // line 43
  191.             echo "                        ";
  192.         } else {
  193.             // line 44
  194.             echo "                            ";
  195.             $context["compound"] = null;
  196.             // line 45
  197.             echo "                        ";
  198.         }
  199.         // line 46
  200.         echo "                        ";
  201.         $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); })())]);
  202.         // line 47
  203.         echo "                        ";
  204.         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"]);
  205.         // line 52
  206.         echo "
  207.                     </div>
  208.                     <div class=\"pull-right flip\">
  209.                         ";
  210.         // line 55
  211.         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"falsefalsefalse55)) {
  212.             // line 56
  213.             echo "                            ";
  214.             if ((isset($context["subscribedUser"]) || array_key_exists("subscribedUser"$context) ? $context["subscribedUser"] : (function () { throw new RuntimeError('Variable "subscribedUser" does not exist.'56$this->source); })())) {
  215.                 // line 57
  216.                 echo "                                <a  id=\"un-subscribe-btn\" class=\"btn\" href=\"";
  217.                 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"falsefalsefalse57)]), "html"nulltrue);
  218.                 echo "\"> ";
  219.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.unsubscribe"), "html"nulltrue);
  220.                 echo "</a>
  221.                             ";
  222.             } else {
  223.                 // line 59
  224.                 echo "                                <a id=\"subscribe-btn\" class=\"btn\" href=\"";
  225.                 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"falsefalsefalse59)]), "html"nulltrue);
  226.                 echo "\"> ";
  227.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.subscribe"), "html"nulltrue);
  228.                 echo "</a>
  229.                             ";
  230.             }
  231.             // line 61
  232.             echo "                        ";
  233.         }
  234.         // line 62
  235.         echo "                    </div>
  236.                 </div>
  237.             </div>
  238.         </div><!-- end of .container (cover & breadcrumb) -->
  239.         ";
  240.         // line 67
  241.         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); })()))) {
  242.             // line 68
  243.             echo "            ";
  244.             $this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodAveragePrices.html.twig""@AqarmapNeighborhood/Default/index.html.twig"68)->display($context);
  245.             // line 69
  246.             echo "        ";
  247.         }
  248.         // line 70
  249.         echo "
  250.         ";
  251.         // line 71
  252.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'71$this->source); })()), "getChildren", [], "any"falsefalsefalse71)) > 0)) {
  253.             // line 72
  254.             echo "            ";
  255.             $this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodSubLocations.html.twig""@AqarmapNeighborhood/Default/index.html.twig"72)->display($context);
  256.             // line 73
  257.             echo "        ";
  258.         }
  259.         // line 74
  260.         echo "
  261.         ";
  262.         // line 75
  263.         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); })())) {
  264.             // line 76
  265.             echo "            ";
  266.             $this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodStatistics.html.twig""@AqarmapNeighborhood/Default/index.html.twig"76)->display($context);
  267.             // line 77
  268.             echo "        ";
  269.         }
  270.         // line 78
  271.         echo "
  272.         ";
  273.         // line 79
  274.         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"falsefalsefalse79)) {
  275.             // line 80
  276.             echo "            ";
  277.             $this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodRatings.html.twig""@AqarmapNeighborhood/Default/index.html.twig"80)->display($context);
  278.             // line 81
  279.             echo "        ";
  280.         }
  281.         // line 82
  282.         echo "
  283.         ";
  284.         // line 84
  285.         echo "        ";
  286.         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"falsefalsefalse84) || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'84$this->source); })()), "photos", [], "any"falsefalsefalse84), "count", [], "any"falsefalsefalse84) > 0))) {
  287.             // line 85
  288.             echo "            ";
  289.             $this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodDetails.html.twig""@AqarmapNeighborhood/Default/index.html.twig"85)->display($context);
  290.             // line 86
  291.             echo "        ";
  292.         }
  293.         // line 87
  294.         echo "
  295.         ";
  296.         // line 88
  297.         if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.sharing.page")) {
  298.             // line 89
  299.             echo "            <div class=\"container\">
  300.                 <div class=\"listing-share-box\" id=\"shareLiveListing\">
  301.                     <label class=\"share-header-mob\">
  302.                         ";
  303.             // line 92
  304.             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"falsefalsefalse92))]), "html"nulltrue);
  305.             echo "
  306.                     </label>
  307.                     ";
  308.             // line 94
  309.             $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->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'94$this->source); })()), "request", [], "any"falsefalsefalse94), "uri", [], "any"falsefalsefalse94)]));
  310.             // line 95
  311.             echo "                </div>
  312.                 <a class=\"listing-share-btn-container neighborhood-share-btn-container stickPermanent borderLight\" data-toggle=\"modal\" data-target=\"#neighborhoodShareModal\">
  313.                     <span class=\"container btn-wrapper\">
  314.                         <label>";
  315.             // line 98
  316.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'98$this->source); })()), "title", [], "any"falsefalsefalse98), "html"nulltrue);
  317.             echo "</label>
  318.                         <span class=\"btn btn-default btn-share\">
  319.                             <i class=\"fa fa-share-alt\"></i>
  320.                             ";
  321.             // line 101
  322.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.share"), "html"nulltrue);
  323.             echo "
  324.                         </span>
  325.                     </span>
  326.                 </a>
  327.             </div>
  328.         ";
  329.         }
  330.         // line 107
  331.         echo "
  332.         ";
  333.         // line 108
  334.         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"))) {
  335.             // line 109
  336.             echo "        <div class=\"container\">
  337.             <div class=\"row\">
  338.                 <div class=\"col\">
  339.                     <div class=\"top-sellers-warp-cards w-100\">
  340.                         ";
  341.             // line 113
  342.             $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"]));
  343.             // line 114
  344.             echo "                    </div>
  345.                 </div>
  346.             </div>
  347.         </div>
  348.             <div ng-controller=\"listingLeadsWizardController\" ng-init=\"initFormWizard()\">
  349.                 ";
  350.             // line 119
  351.             echo twig_include($this->env$context"@AqarmapUserBundle/User/listingMultiStepLeadModal.html.twig");
  352.             echo "
  353.             </div>
  354.         ";
  355.         }
  356.         // line 122
  357.         echo "
  358.         ";
  359.         // line 124
  360.         echo "        ";
  361.         if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\SettingExtension']->getSetting("features""discussions")) {
  362.             // line 125
  363.             echo "            ";
  364.             $this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodDiscussions.html.twig""@AqarmapNeighborhood/Default/index.html.twig"125)->display($context);
  365.             // line 126
  366.             echo "        ";
  367.         }
  368.         // line 127
  369.         echo "        ";
  370.         // line 128
  371.         echo "        ";
  372.         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"falsefalsefalse128)) {
  373.             // line 129
  374.             echo "            ";
  375.             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"falsefalsefalse129)) {
  376.                 // line 130
  377.                 echo "                <div class=\"container\">
  378.                     <div class=\"page-header\">
  379.                         <h1>
  380.                             ";
  381.                 // line 133
  382.                 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"falsefalsefalse133))]), "html"nulltrue);
  383.                 echo "
  384.                         </h1>
  385.                     </div>
  386.                     <div class=\"row\">
  387.                         <div class=\"col-xs-12\">
  388.                             <table class=\"table table-responsive table-bordered compound_info\">
  389.                                 <tbody>
  390.                                 <tr>
  391.                                     <td class=\"compound_info_title\" ><p class=\"block-label\">";
  392.                 // line 141
  393.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.developer_name"), "html"nulltrue);
  394.                 echo "</p></td>
  395.                                     <td><p class=\"block-label\">";
  396.                 // line 142
  397.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'142$this->source); })()), "locationCompound", [], "any"falsefalsefalse142), "developerName", [], "any"falsefalsefalse142)) {
  398.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'142$this->source); })()), "locationCompound", [], "any"falsefalsefalse142), "developerName", [], "any"falsefalsefalse142), "html"nulltrue);
  399.                 } else {
  400.                     echo " -- ";
  401.                 }
  402.                 echo "</p></td>
  403.                                     <td class=\"compound_info_title\"><p class=\"block-label\">";
  404.                 // line 143
  405.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.project_size"), "html"nulltrue);
  406.                 echo "</p></td>
  407.                                     <td><p class=\"block-label\">";
  408.                 // line 144
  409.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'144$this->source); })()), "locationCompound", [], "any"falsefalsefalse144), "projectSize", [], "any"falsefalsefalse144)) {
  410.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'144$this->source); })()), "locationCompound", [], "any"falsefalsefalse144), "getProjectSize", [], "method"falsefalsefalse144), "html"nulltrue);
  411.                 } else {
  412.                     echo " -- ";
  413.                 }
  414.                 echo "</p></td>
  415.                                 </tr>
  416.                                 <tr>
  417.                                     <td class=\"compound_info_title\" ><p class=\"block-label\">";
  418.                 // line 148
  419.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.units_count"), "html"nulltrue);
  420.                 echo "</p></td>
  421.                                     <td><p class=\"block-label\">";
  422.                 // line 149
  423.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'149$this->source); })()), "locationCompound", [], "any"falsefalsefalse149), "unitsCount", [], "any"falsefalsefalse149)) {
  424.                     echo $this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingExtension']->fixArabicNumbers(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'149$this->source); })()), "locationCompound", [], "any"falsefalsefalse149), "unitsCount", [], "any"falsefalsefalse149));
  425.                 } else {
  426.                     echo " -- ";
  427.                 }
  428.                 echo "</p></td>
  429.                                     <td class=\"compound_info_title\" ><p class=\"block-label\">";
  430.                 // line 150
  431.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.state"), "html"nulltrue);
  432.                 echo "</p></td>
  433.                                     <td><p class=\"block-label\">";
  434.                 // line 151
  435.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'151$this->source); })()), "locationCompound", [], "any"falsefalsefalse151), "state", [], "any"falsefalsefalse151)) {
  436.                     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->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'151$this->source); })()), "locationCompound", [], "any"falsefalsefalse151), "state", [], "any"falsefalsefalse151))), "html"nulltrue);
  437.                 } else {
  438.                     echo " -- ";
  439.                 }
  440.                 echo "</p></td>
  441.                                 </tr>
  442.                                 </tbody>
  443.                             </table>
  444.                         </div>
  445.                     </div>
  446.                 </div>
  447.             ";
  448.             }
  449.             // line 161
  450.             echo "            ";
  451.             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"falsefalsefalse161)) {
  452.                 // line 162
  453.                 echo "                ";
  454.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["location"] ?? null), "listing", [], "any"falsetruefalse162), "liveChildren", [], "any"truetruefalse162) &&  !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'162$this->source); })()), "listing", [], "any"falsefalsefalse162), "liveChildren", [], "any"falsefalsefalse162)))) {
  455.                     // line 163
  456.                     echo "                    <div class=\"container\">
  457.                         <div class=\"page-header\">
  458.                             <h1>
  459.                                 ";
  460.                     // line 166
  461.                     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"falsefalsefalse166))]), "html"nulltrue);
  462.                     echo "
  463.                             </h1>
  464.                         </div>
  465.                         <div class=\"row\">
  466.                             <div class=\"col-xs-12\">
  467.                                 ";
  468.                     // line 171
  469.                     $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->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'171$this->source); })()), "listing", [], "any"falsefalsefalse171), "liveChildren", [], "any"falsefalsefalse171)]));
  470.                     // line 172
  471.                     echo "                            </div>
  472.                         </div>
  473.                     </div>
  474.                 ";
  475.                 }
  476.                 // line 176
  477.                 echo "            ";
  478.             }
  479.             // line 177
  480.             echo "        ";
  481.         }
  482.         // line 178
  483.         echo "
  484.         ";
  485.         // line 180
  486.         echo "        ";
  487.         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"falsefalsefalse180)) {
  488.             // line 181
  489.             echo "            ";
  490.             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"falsefalsefalse181)) {
  491.                 // line 182
  492.                 echo "                <div class=\"neighborhood-contact-seller listingSideForm\" ng-controller=\"listingDetailsController\" >
  493.                     <div  class=\"container\">
  494.                         <div class=\"page-header\">
  495.                             <h1>";
  496.                 // line 186
  497.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.contact_developer"), "html"nulltrue);
  498.                 echo "</h1>
  499.                         </div>
  500.                         ";
  501.                 // line 188
  502.                 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');
  503.                 echo "
  504.                         ";
  505.                 // line 190
  506.                 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"falsefalsefalse190), 'row', ["value" => ("Re: " twig_striptags(twig_title_string_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'190$this->source); })()), "listing", [], "any"falsefalsefalse190), "title", [], "any"falsefalsefalse190))))]);
  507.                 echo "
  508.                         ";
  509.                 // line 192
  510.                 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"falsefalsefalse192), 'widget', ["attr" => ["class" => "form-control""placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("neighborhoods.compound.contact_seller_message_placeholder"), "ng-model" => "sellerMessageContent"]]);
  511.                 echo "
  512.                         <button type=\"submit\"  class=\"btn btn-primary btn-sm  pull-right flip mb-2\" data-gtm-listing-id=\"";
  513.                 // line 194
  514.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'194$this->source); })()), "listing", [], "any"falsefalsefalse194), "id", [], "any"falsefalsefalse194), "html"nulltrue);
  515.                 echo "\" ng-click=\"sendEmailtoSeller(\$event, '";
  516.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'194$this->source); })()), "listing", [], "any"falsefalsefalse194), "id", [], "any"falsefalsefalse194), "html"nulltrue);
  517.                 echo "', '";
  518.                 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"nulltrue);
  519.                 echo "' )\" ng-disabled=\"contact_seller.\$invalid\" onclick=\"gtmPushAction('gtm-btn-listing-message', 'Email')\">
  520.                             <span class=\"fa fa-paper-plane\"></span>&nbsp;&nbsp;";
  521.                 // line 195
  522.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.send_message"), "html"nulltrue);
  523.                 echo "
  524.                         </button>
  525.                         ";
  526.                 // line 198
  527.                 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');
  528.                 echo "
  529.                     </div>
  530.                 </div>
  531.             ";
  532.             }
  533.             // line 202
  534.             echo "        ";
  535.         }
  536.         // line 203
  537.         echo "
  538.         ";
  539.         // line 207
  540.         echo "        ";
  541.         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)) {
  542.             // line 208
  543.             echo "            ";
  544.             $this->loadTemplate("@AqarmapNeighborhoodBundle/neighbourhoodsFeaturedSection.html.twig""@AqarmapNeighborhood/Default/index.html.twig"208)->display($context);
  545.             // line 209
  546.             echo "        ";
  547.         }
  548.         // line 210
  549.         echo "        <div class=\"container\">
  550.             <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 mobile-breadcrumb visible-sm visible-xs\">
  551.                 ";
  552.         // line 212
  553.         $context["NEIGHBORHOOD_BREADCRUMB"] = $this->extensions['Knp\Menu\Twig\MenuExtension']->get("aqarmap.neighborhood.breadcrumb", [], ["location" =>         // line 213
  554. (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
  555. (isset($context["compound"]) || array_key_exists("compound"$context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.'214$this->source); })())]);
  556.         // line 216
  557.         echo "                ";
  558.         echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render(        // line 217
  559. (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"]);
  560.         // line 223
  561.         echo "
  562.             </div>
  563.         </div>
  564.         <div class=\"container\">
  565.             <div class=\"discussions col-md-12\">
  566.                 <div class=\"tab-content searchResultsContainer interested-listings subsLinks more-locations-container\">
  567.                     ";
  568.         // line 229
  569.         $this->loadTemplate("@AqarmapMainBundle/Default/locationsSubLinks.html.twig""@AqarmapNeighborhood/Default/index.html.twig"229)->display($context);
  570.         // line 230
  571.         echo "                </div>
  572.             </div>
  573.         </div>
  574.     </section>
  575.     ";
  576.         // line 234
  577.         if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.sharing.page")) {
  578.             // line 235
  579.             echo "        ";
  580.             $this->loadTemplate("@AqarmapNeighborhoodBundle/neighborhoodSharing.html.twig""@AqarmapNeighborhood/Default/index.html.twig"235)->display($context);
  581.             // line 236
  582.             echo "    ";
  583.         }
  584.         
  585.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  586.         
  587.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  588.     }
  589.     // line 239
  590.     public function block_footer($context, array $blocks = [])
  591.     {
  592.         $macros $this->macros;
  593.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  594.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  595.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  596.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  597.         // line 240
  598.         echo "    ";
  599.         $this->loadTemplate("footer.v2.html.twig""@AqarmapNeighborhood/Default/index.html.twig"240)->display($context);
  600.         
  601.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  602.         
  603.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  604.     }
  605.     // line 243
  606.     public function block_javascripts($context, array $blocks = [])
  607.     {
  608.         $macros $this->macros;
  609.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  610.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  611.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  612.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  613.         // line 244
  614.         echo "    ";
  615.         $this->displayParentBlock("javascripts"$context$blocks);
  616.         echo "
  617.     <script>
  618.         ";
  619.         // line 247
  620.         echo "        var months = [];
  621.         var dataSets = [];
  622.         var avg_price_data = [];
  623.         var propety_type_title ;
  624.         var property_type_color ;
  625.         ";
  626.         // line 252
  627.         $context['_parent'] = $context;
  628.         $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); })()));
  629.         $context['loop'] = [
  630.           'parent' => $context['_parent'],
  631.           'index0' => 0,
  632.           'index'  => 1,
  633.           'first'  => true,
  634.         ];
  635.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  636.             $length count($context['_seq']);
  637.             $context['loop']['revindex0'] = $length 1;
  638.             $context['loop']['revindex'] = $length;
  639.             $context['loop']['length'] = $length;
  640.             $context['loop']['last'] = === $length;
  641.         }
  642.         foreach ($context['_seq'] as $context["_key"] => $context["history"]) {
  643.             // line 253
  644.             echo "            propety_type_title = \"";
  645.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["history"], "title", [], "array"falsefalsefalse253), "html"nulltrue);
  646.             echo "\";
  647.                 ";
  648.             // line 254
  649.             $context['_parent'] = $context;
  650.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["history"], "data", [], "array"falsefalsefalse254), "average_price", [], "array"falsefalsefalse254));
  651.             foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
  652.                 // line 255
  653.                 echo "                    ";
  654.                 if (twig_get_attribute($this->env$this->source$context["data"], "value", [], "array"falsefalsefalse255)) {
  655.                     // line 256
  656.                     echo "                        avg_price_data.push(";
  657.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["data"], "value", [], "array"falsefalsefalse256), "html"nulltrue);
  658.                     echo ");
  659.                         months.push(\"";
  660.                     // line 257
  661.                     echo twig_escape_filter($this->env, ((twig_localized_date_filter($this->envtwig_get_attribute($this->env$this->source$context["data"], "date", [], "array"falsefalsefalse257), "none""none"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'257$this->source); })()), "request", [], "any"falsefalsefalse257), "locale", [], "any"falsefalsefalse257), null"MMMM") . "-") . twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["data"], "date", [], "array"falsefalsefalse257), "Y")), "html"nulltrue);
  662.                     echo "\");
  663.                     ";
  664.                 }
  665.                 // line 259
  666.                 echo "                ";
  667.             }
  668.             $_parent $context['_parent'];
  669.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
  670.             $context array_intersect_key($context$_parent) + $_parent;
  671.             // line 260
  672.             echo "            ";
  673.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse260) == 2)) {
  674.                 // line 261
  675.                 echo "                property_type_color = '#f38b00';
  676.             ";
  677.             } else {
  678.                 // line 263
  679.                 echo "                property_type_color = '#0080bb';
  680.             ";
  681.             }
  682.             // line 265
  683.             echo "            dataSets.push({
  684.                 label: propety_type_title,
  685.                 fill: false,
  686.                 lineTension: 0.1,
  687.                 backgroundColor: property_type_color,
  688.                 borderColor: property_type_color,
  689.                 borderCapStyle: 'round',
  690.                 borderDash: [],
  691.                 borderDashOffset: 0.0,
  692.                 borderJoinStyle: 'miter',
  693.                 pointBorderColor: property_type_color,
  694.                 pointBackgroundColor: \"#fff\",
  695.                 pointBorderWidth: 1,
  696.                 pointHoverRadius: 5,
  697.                 pointHoverBackgroundColor: property_type_color,
  698.                 pointHoverBorderColor: property_type_color,
  699.                 pointHoverBorderWidth: 2,
  700.                 pointRadius: 1,
  701.                 pointHitRadius: 10,
  702.                 data: avg_price_data,
  703.                 spanGaps: false,
  704.             });
  705.             avg_price_data = [];
  706.         ";
  707.             ++$context['loop']['index0'];
  708.             ++$context['loop']['index'];
  709.             $context['loop']['first'] = false;
  710.             if (isset($context['loop']['length'])) {
  711.                 --$context['loop']['revindex0'];
  712.                 --$context['loop']['revindex'];
  713.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  714.             }
  715.         }
  716.         $_parent $context['_parent'];
  717.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['history'], $context['_parent'], $context['loop']);
  718.         $context array_intersect_key($context$_parent) + $_parent;
  719.         // line 289
  720.         echo "        var data = {
  721.             labels: Array.from(new Set(months)),
  722.             datasets: dataSets
  723.         };
  724.         ";
  725.         // line 294
  726.         if ($this->extensions['Aqarmap\Bundle\MainBundle\Twig\FeatureToggleExtension']->isEnabled("web.pricegraph.resize")) {
  727.             // line 295
  728.             echo "        var ctx = \$(\".statistics\");
  729.         ctx.each(function(index) {
  730.             var statistics = new Chart(this, {
  731.                 type: 'line',
  732.                 data: data,
  733.                 options: {
  734.                     tooltips: {
  735.                         callbacks: {
  736.                             label: function(tooltipItem, data) {
  737.                                 return tooltipItem.yLabel.toLocaleString();
  738.                             }
  739.                         }
  740.                     },
  741.                     scales: {
  742.                         yAxes: [{
  743.                             ticks: {
  744.                                 beginAtZero:true,
  745.                                 callback: function(label, index, labels) {
  746.                                     return label.toLocaleString();
  747.                                 }
  748.                             }
  749.                         }],
  750.                         xAxes: [{
  751.                             ticks: {
  752.                                 autoSkip: false
  753.                             }
  754.                         }]
  755.                     }
  756.                 }
  757.             });
  758.         });
  759.         ";
  760.         } else {
  761.             // line 327
  762.             echo "        var ctx = \$(\"#statistics\");
  763.         var statistics = new Chart(ctx, {
  764.             type: 'line',
  765.             data: data,
  766.             options: {
  767.                 tooltips: {
  768.                     callbacks: {
  769.                         label: function(tooltipItem, data) {
  770.                             return tooltipItem.yLabel.toLocaleString();
  771.                         }
  772.                     }
  773.                 },
  774.                 scales: {
  775.                     yAxes: [{
  776.                         ticks: {
  777.                             beginAtZero:true,
  778.                             callback: function(label, index, labels) {
  779.                                 return label.toLocaleString();
  780.                             }
  781.                         }
  782.                     }],
  783.                     xAxes: [{
  784.                         ticks: {
  785.                             autoSkip: false
  786.                         }
  787.                     }]
  788.                 }
  789.             }
  790.         });
  791.         ";
  792.         }
  793.         // line 358
  794.         echo "    </script>
  795.     <script type=\"application/ld+json\">
  796.     {
  797.           \"@context\": \"https://schema.org\",
  798.           \"@type\": \"Place\",
  799.           \"url\":\"";
  800.         // line 364
  801.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'364$this->source); })()), "request", [], "any"falsefalsefalse364), "attributes", [], "any"falsefalsefalse364), "get", [=> "_route"], "method"falsefalsefalse364), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'364$this->source); })()), "request", [], "any"falsefalsefalse364), "attributes", [], "any"falsefalsefalse364), "get", [=> "_route_params"], "method"falsefalsefalse364)), "html"nulltrue);
  802.         echo "\" ,
  803.           \"description\":\"";
  804.         // line 365
  805.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'365$this->source); })()), "description", [], "any"falsefalsefalse365), "html"nulltrue);
  806.         echo "\" ,
  807.           \"geo\": {
  808.           \"@type\": \"GeoCoordinates\",
  809.           \"latitude\": \"";
  810.         // line 368
  811.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'368$this->source); })()), "centerLat", [], "any"falsefalsefalse368), "html"nulltrue);
  812.         echo "\",
  813.           \"longitude\": \"";
  814.         // line 369
  815.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'369$this->source); })()), "centerLng", [], "any"falsefalsefalse369), "html"nulltrue);
  816.         echo "\"
  817.           },
  818.           \"name\": \"";
  819.         // line 371
  820.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'371$this->source); })()), "title", [], "any"falsefalsefalse371), "html"nulltrue);
  821.         echo "\"
  822.     }
  823.     </script>
  824.     <script>
  825.     \$(document).ready(function() {
  826.         var neighborhoodDescription = \$('#neighborhoodDescription');
  827.         neighborhoodDescription.addClass('hidden-neighborhood-description')
  828.         var moreTrans = Translator.trans('more_link');
  829.         var lessTrans = Translator.trans('less_link');
  830.         \$('.see-more').html(moreTrans);
  831.         \$('.see-more').on('click', function() {
  832.             var seeMoreText = \$(this).html();
  833.             if (seeMoreText == moreTrans) {
  834.                 \$(this).html(lessTrans);
  835.             } else if (seeMoreText == lessTrans) {
  836.                 \$(this).html(moreTrans);
  837.             }
  838.             if (neighborhoodDescription.hasClass('hidden-neighborhood-description')) {
  839.                 neighborhoodDescription.removeClass('hidden-neighborhood-description')
  840.                 neighborhoodDescription.addClass('visible-neighborhood-description')
  841.             } else if (neighborhoodDescription.hasClass('visible-neighborhood-description')) {
  842.                 neighborhoodDescription.removeClass('visible-neighborhood-description')
  843.                 neighborhoodDescription.addClass('hidden-neighborhood-description')
  844.                 \$(\"#neighborhoodDescription\")[0].scrollIntoView();
  845.             }
  846.         })
  847.     })
  848.     </script>
  849. ";
  850.         
  851.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  852.         
  853.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  854.     }
  855.     public function getTemplateName()
  856.     {
  857.         return "@AqarmapNeighborhood/Default/index.html.twig";
  858.     }
  859.     public function isTraitable()
  860.     {
  861.         return false;
  862.     }
  863.     public function getDebugInfo()
  864.     {
  865.         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,);
  866.     }
  867.     public function getSourceContext()
  868.     {
  869.         return new Source("{% extends \"base.html.twig\" %}
  870. {% form_theme quick_registration_form 'Form/form_div_layout.html.twig' %}
  871. {% set canonical_url = url(app.request.get('_route'), app.request.get('_route_params')) %}
  872. {% set SEND_MESSAGE_CONSTANT = constant('Aqarmap\\\\Bundle\\\\ListingBundle\\\\Constant\\\\LeadTypes::SEND_MESSAGE') %}
  873. {# Page title #}
  874. {% block title %} {{ \"%s - %s | %s\"|format(location.title, 'neighborhoods.prices_guide'|trans, 'layout.app_name'|trans) }}{% endblock %}
  875. {# Meta Description #}
  876. {% block meta_description %}{{ location.description }}{% endblock %}
  877. {% block htmlhead %}
  878.     <link rel=\"alternate\" hreflang=\"ar\" href=\"{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}\" />
  879.     <link rel=\"alternate\" hreflang=\"en\" href=\"{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'en'})) }}\" />
  880.     <link rel=\"alternate\" hreflang=\"x-default\"
  881.         href=\"{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}\"/>
  882.     <meta name=\"twitter:card\" content=\"summary_large_image\" />
  883.     <meta name=\"twitter:site\" content=\"{{ \"%s%s\"|format('@', 'layout.app_name'|trans) }}\" />
  884.     <meta name=\"twitter:creator\" content=\"{{ \"%s%s\"|format('@', 'layout.app_name'|trans) }}\" />
  885.     <meta property=\"og:title\" content=\"{{ \"%s.%s.%s\"|format('layout.app_name'|trans, 'neighborhoods.prices_guide'|trans, location.title) }}\"/>
  886.     <meta property=\"og:description\" content=\"{{ 'neighborhoods.sharing.description_location'|trans({'%location%': location.title}) }}\" />
  887.     <meta property=\"og:image\" content=\"{% if location.mainPhoto %}{{ custom_vich_uploader_asset(location.mainPhoto.file, 'file') | thumbnail('large')}}{% endif %}\" />
  888.     <meta property=\"og:url\" content=\"{{ url('neighborhood_main_page', {'location_slug': location.slug}) }}\" />
  889.     <meta property=\"og:site_name\" content=\"{{ 'layout.app_name'|trans }}\" />
  890.     <meta property=\"fb:app_id\" content=\"{{ facebook_app_id }}\"/>
  891.     {% if location.disabled %}
  892.         <meta name=\"robots\" content=\"noindex, nofollow\">
  893.     {% endif %}
  894.     <link rel=\"canonical\" href=\"{{ canonical_url }}\"/>
  895. {% endblock %}
  896. {% block body %}
  897.     {% set sharingEvent = \"neighborhood\" %}
  898.     {% set topSellerTrigger = 'gtm-action-topsellers-lead-price-guide' %}
  899.     {% set topSellerEventAction = 'Top Sellers Price Guide' %}
  900.     <section id=\"{{ app.request.get('_route') }}\">
  901.         <div class=\"container\">
  902.             <div class=\"row\">
  903.                 <div class=\"col-md-12 hidden-xs\">
  904.                     <div class=\"pull-left flip\">
  905.                         {% if location.compoundFilter %}
  906.                             {% set compound = 1  %}
  907.                         {% else %}
  908.                             {% set compound = null  %}
  909.                         {% endif %}
  910.                         {% set neighborhood_breadcrumb = knp_menu_get( 'aqarmap.neighborhood.breadcrumb' , [], {\"location\": location , \"compound\": compound}) %}
  911.                         {{ knp_menu_render(neighborhood_breadcrumb , {
  912.                             'allow_safe_labels': true,
  913.                             'template': 'knp_breadcrumbs.html.twig',
  914.                             'currentAsLink': true,
  915.                             'currentClass': 'active'
  916.                         }) }}
  917.                     </div>
  918.                     <div class=\"pull-right flip\">
  919.                         {% if app.user %}
  920.                             {% if  subscribedUser %}
  921.                                 <a  id=\"un-subscribe-btn\" class=\"btn\" href=\"{{ path('neighbourhood_remove_subscriber', {'location': location.id}) }}\"> {{ \"neighborhoods.unsubscribe\"|trans }}</a>
  922.                             {% else %}
  923.                                 <a id=\"subscribe-btn\" class=\"btn\" href=\"{{ path('neighbourhood_add_subscriber', {'location': location.id}) }}\"> {{ \"neighborhoods.subscribe\"|trans }}</a>
  924.                             {% endif %}
  925.                         {% endif %}
  926.                     </div>
  927.                 </div>
  928.             </div>
  929.         </div><!-- end of .container (cover & breadcrumb) -->
  930.         {% if location_statistics and isStatisticsContainsAveragePrice %}
  931.             {% include '@AqarmapNeighborhoodBundle/neighborhoodAveragePrices.html.twig' %}
  932.         {% endif %}
  933.         {% if location.getChildren|length > 0 %}
  934.             {% include '@AqarmapNeighborhoodBundle/neighborhoodSubLocations.html.twig' %}
  935.         {% endif %}
  936.         {% if location_statistics %}
  937.             {% include '@AqarmapNeighborhoodBundle/neighborhoodStatistics.html.twig' %}
  938.         {% endif %}
  939.         {% if location.rating %}
  940.             {% include '@AqarmapNeighborhoodBundle/neighborhoodRatings.html.twig' %}
  941.         {% endif %}
  942.         {# Description & Photos #}
  943.         {% if location.description or location.photos.count > 0 %}
  944.             {% include \"@AqarmapNeighborhoodBundle/neighborhoodDetails.html.twig\" %}
  945.         {% endif %}
  946.         {% if isEnabledFeature('web.sharing.page') %}
  947.             <div class=\"container\">
  948.                 <div class=\"listing-share-box\" id=\"shareLiveListing\">
  949.                     <label class=\"share-header-mob\">
  950.                         {{ 'neighborhoods.share_neighborhoods'|trans({'%location%': location.title |trans})  }}
  951.                     </label>
  952.                     {% include '@AqarmapListingBundle/Listing/elementShareContent.html.twig' with {'url': app.request.uri} %}
  953.                 </div>
  954.                 <a class=\"listing-share-btn-container neighborhood-share-btn-container stickPermanent borderLight\" data-toggle=\"modal\" data-target=\"#neighborhoodShareModal\">
  955.                     <span class=\"container btn-wrapper\">
  956.                         <label>{{ location.title }}</label>
  957.                         <span class=\"btn btn-default btn-share\">
  958.                             <i class=\"fa fa-share-alt\"></i>
  959.                             {{ 'layout.share'|trans }}
  960.                         </span>
  961.                     </span>
  962.                 </a>
  963.             </div>
  964.         {% endif %}
  965.         {% if location and isEnabledFeature('web.topsellers.section') %}
  966.         <div class=\"container\">
  967.             <div class=\"row\">
  968.                 <div class=\"col\">
  969.                     <div class=\"top-sellers-warp-cards w-100\">
  970.                         {% include \"@AqarmapListing/ListingSearch/topSellersResponsive.html.twig\"  with {'trigger': topSellerTrigger, 'eventAction': topSellerEventAction, leadSourcePage: 'price_guide'} %}
  971.                     </div>
  972.                 </div>
  973.             </div>
  974.         </div>
  975.             <div ng-controller=\"listingLeadsWizardController\" ng-init=\"initFormWizard()\">
  976.                 {{ include('@AqarmapUserBundle/User/listingMultiStepLeadModal.html.twig') }}
  977.             </div>
  978.         {% endif %}
  979.         {# Neighborhood  Discussions #}
  980.         {% if get_setting('features', 'discussions')  %}
  981.             {% include \"@AqarmapNeighborhoodBundle/neighborhoodDiscussions.html.twig\" %}
  982.         {% endif %}
  983.         {# Neighborhood Compund #}
  984.         {% if location.compoundFilter %}
  985.             {% if location.locationCompound %}
  986.                 <div class=\"container\">
  987.                     <div class=\"page-header\">
  988.                         <h1>
  989.                             {{ 'neighborhoods.information'|trans({'%location%': location.title |trans})  }}
  990.                         </h1>
  991.                     </div>
  992.                     <div class=\"row\">
  993.                         <div class=\"col-xs-12\">
  994.                             <table class=\"table table-responsive table-bordered compound_info\">
  995.                                 <tbody>
  996.                                 <tr>
  997.                                     <td class=\"compound_info_title\" ><p class=\"block-label\">{{ 'neighborhoods.compound.developer_name'|trans }}</p></td>
  998.                                     <td><p class=\"block-label\">{% if location.locationCompound.developerName  %}{{ location.locationCompound.developerName }}{% else %} -- {% endif %}</p></td>
  999.                                     <td class=\"compound_info_title\"><p class=\"block-label\">{{ 'neighborhoods.compound.project_size'|trans }}</p></td>
  1000.                                     <td><p class=\"block-label\">{% if location.locationCompound.projectSize  %}{{ location.locationCompound.getProjectSize() }}{% else %} -- {% endif %}</p></td>
  1001.                                 </tr>
  1002.                                 <tr>
  1003.                                     <td class=\"compound_info_title\" ><p class=\"block-label\">{{ 'neighborhoods.compound.units_count'|trans }}</p></td>
  1004.                                     <td><p class=\"block-label\">{% if location.locationCompound.unitsCount  %}{{ location.locationCompound.unitsCount|fixArabicNumbers|raw }}{% else %} -- {% endif %}</p></td>
  1005.                                     <td class=\"compound_info_title\" ><p class=\"block-label\">{{ 'neighborhoods.compound.state'|trans }}</p></td>
  1006.                                     <td><p class=\"block-label\">{% if location.locationCompound.state  %}{{ getCompoundStatusLabel(location.locationCompound.state)|trans }}{% else %} -- {% endif %}</p></td>
  1007.                                 </tr>
  1008.                                 </tbody>
  1009.                             </table>
  1010.                         </div>
  1011.                     </div>
  1012.                 </div>
  1013.             {% endif %}
  1014.             {% if location.listing %}
  1015.                 {% if location.listing.liveChildren is defined and location.listing.liveChildren is not empty %}
  1016.                     <div class=\"container\">
  1017.                         <div class=\"page-header\">
  1018.                             <h1>
  1019.                                 {{ 'neighborhoods.units'|trans({'%location%': location.title |trans})  }}
  1020.                             </h1>
  1021.                         </div>
  1022.                         <div class=\"row\">
  1023.                             <div class=\"col-xs-12\">
  1024.                                 {% include '@AqarmapListingBundle/Listing/units-table.html.twig' with {'units': location.listing.liveChildren} %}
  1025.                             </div>
  1026.                         </div>
  1027.                     </div>
  1028.                 {% endif %}
  1029.             {% endif %}
  1030.         {% endif %}
  1031.         {# Compound send contact form #}
  1032.         {% if location.compoundFilter %}
  1033.             {% if location.listing %}
  1034.                 <div class=\"neighborhood-contact-seller listingSideForm\" ng-controller=\"listingDetailsController\" >
  1035.                     <div  class=\"container\">
  1036.                         <div class=\"page-header\">
  1037.                             <h1>{{ 'neighborhoods.compound.contact_developer'|trans }}</h1>
  1038.                         </div>
  1039.                         {{ form_start(contact_seller_form) }}
  1040.                         {{ form_row(contact_seller_form.subject, {value : 'Re: '~ location.listing.title|title|striptags}) }}
  1041.                         {{ form_widget(contact_seller_form.message, {attr: {class: 'form-control','placeholder': \"neighborhoods.compound.contact_seller_message_placeholder\"|trans, 'ng-model': 'sellerMessageContent'}}) }}
  1042.                         <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')\">
  1043.                             <span class=\"fa fa-paper-plane\"></span>&nbsp;&nbsp;{{ 'listing.send_message'|trans }}
  1044.                         </button>
  1045.                         {{ form_end(contact_seller_form) }}
  1046.                     </div>
  1047.                 </div>
  1048.             {% endif %}
  1049.         {% endif %}
  1050.         {# Nearest Neighbourhoods #}
  1051.         {% if nearestNeighbourhoods|length > 0 %}
  1052.             {% include \"@AqarmapNeighborhoodBundle/neighbourhoodsFeaturedSection.html.twig\" %}
  1053.         {% endif %}
  1054.         <div class=\"container\">
  1055.             <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 mobile-breadcrumb visible-sm visible-xs\">
  1056.                 {% set NEIGHBORHOOD_BREADCRUMB = knp_menu_get('aqarmap.neighborhood.breadcrumb', [], {
  1057.                     location: location,
  1058.                     compound: compound
  1059.                 }) %}
  1060.                 {{
  1061.                 knp_menu_render(NEIGHBORHOOD_BREADCRUMB , {
  1062.                     'allow_safe_labels': true,
  1063.                     'template': 'knp_breadcrumbs.html.twig',
  1064.                     'currentAsLink': true,
  1065.                     'currentClass': 'active',
  1066.                 })
  1067.                 }}
  1068.             </div>
  1069.         </div>
  1070.         <div class=\"container\">
  1071.             <div class=\"discussions col-md-12\">
  1072.                 <div class=\"tab-content searchResultsContainer interested-listings subsLinks more-locations-container\">
  1073.                     {% include \"@AqarmapMainBundle/Default/locationsSubLinks.html.twig\" %}
  1074.                 </div>
  1075.             </div>
  1076.         </div>
  1077.     </section>
  1078.     {% if isEnabledFeature('web.sharing.page') %}
  1079.         {% include \"@AqarmapNeighborhoodBundle/neighborhoodSharing.html.twig\" %}
  1080.     {% endif %}
  1081. {% endblock %}
  1082. {% block footer %}
  1083.     {% include \"footer.v2.html.twig\" %}
  1084. {% endblock %}
  1085. {% block javascripts %}
  1086.     {{ parent() }}
  1087.     <script>
  1088.         {# Graph Data #}
  1089.         var months = [];
  1090.         var dataSets = [];
  1091.         var avg_price_data = [];
  1092.         var propety_type_title ;
  1093.         var property_type_color ;
  1094.         {% for history in historyData %}
  1095.             propety_type_title = \"{{ history['title'] }}\";
  1096.                 {% for data in history['data']['average_price'] %}
  1097.                     {% if data['value'] %}
  1098.                         avg_price_data.push({{ data['value']  }});
  1099.                         months.push(\"{{ data['date']|localizeddate('none', 'none', app.request.locale, null, \"MMMM\") ~ \"-\" ~ data['date']|date(\"Y\") }}\");
  1100.                     {% endif %}
  1101.                 {% endfor %}
  1102.             {% if loop.index == 2  %}
  1103.                 property_type_color = '#f38b00';
  1104.             {% else %}
  1105.                 property_type_color = '#0080bb';
  1106.             {% endif %}
  1107.             dataSets.push({
  1108.                 label: propety_type_title,
  1109.                 fill: false,
  1110.                 lineTension: 0.1,
  1111.                 backgroundColor: property_type_color,
  1112.                 borderColor: property_type_color,
  1113.                 borderCapStyle: 'round',
  1114.                 borderDash: [],
  1115.                 borderDashOffset: 0.0,
  1116.                 borderJoinStyle: 'miter',
  1117.                 pointBorderColor: property_type_color,
  1118.                 pointBackgroundColor: \"#fff\",
  1119.                 pointBorderWidth: 1,
  1120.                 pointHoverRadius: 5,
  1121.                 pointHoverBackgroundColor: property_type_color,
  1122.                 pointHoverBorderColor: property_type_color,
  1123.                 pointHoverBorderWidth: 2,
  1124.                 pointRadius: 1,
  1125.                 pointHitRadius: 10,
  1126.                 data: avg_price_data,
  1127.                 spanGaps: false,
  1128.             });
  1129.             avg_price_data = [];
  1130.         {% endfor %}
  1131.         var data = {
  1132.             labels: Array.from(new Set(months)),
  1133.             datasets: dataSets
  1134.         };
  1135.         {% if isEnabledFeature('web.pricegraph.resize') %}
  1136.         var ctx = \$(\".statistics\");
  1137.         ctx.each(function(index) {
  1138.             var statistics = new Chart(this, {
  1139.                 type: 'line',
  1140.                 data: data,
  1141.                 options: {
  1142.                     tooltips: {
  1143.                         callbacks: {
  1144.                             label: function(tooltipItem, data) {
  1145.                                 return tooltipItem.yLabel.toLocaleString();
  1146.                             }
  1147.                         }
  1148.                     },
  1149.                     scales: {
  1150.                         yAxes: [{
  1151.                             ticks: {
  1152.                                 beginAtZero:true,
  1153.                                 callback: function(label, index, labels) {
  1154.                                     return label.toLocaleString();
  1155.                                 }
  1156.                             }
  1157.                         }],
  1158.                         xAxes: [{
  1159.                             ticks: {
  1160.                                 autoSkip: false
  1161.                             }
  1162.                         }]
  1163.                     }
  1164.                 }
  1165.             });
  1166.         });
  1167.         {% else %}
  1168.         var ctx = \$(\"#statistics\");
  1169.         var statistics = new Chart(ctx, {
  1170.             type: 'line',
  1171.             data: data,
  1172.             options: {
  1173.                 tooltips: {
  1174.                     callbacks: {
  1175.                         label: function(tooltipItem, data) {
  1176.                             return tooltipItem.yLabel.toLocaleString();
  1177.                         }
  1178.                     }
  1179.                 },
  1180.                 scales: {
  1181.                     yAxes: [{
  1182.                         ticks: {
  1183.                             beginAtZero:true,
  1184.                             callback: function(label, index, labels) {
  1185.                                 return label.toLocaleString();
  1186.                             }
  1187.                         }
  1188.                     }],
  1189.                     xAxes: [{
  1190.                         ticks: {
  1191.                             autoSkip: false
  1192.                         }
  1193.                     }]
  1194.                 }
  1195.             }
  1196.         });
  1197.         {% endif %}
  1198.     </script>
  1199.     <script type=\"application/ld+json\">
  1200.     {
  1201.           \"@context\": \"https://schema.org\",
  1202.           \"@type\": \"Place\",
  1203.           \"url\":\"{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}\" ,
  1204.           \"description\":\"{{ location.description }}\" ,
  1205.           \"geo\": {
  1206.           \"@type\": \"GeoCoordinates\",
  1207.           \"latitude\": \"{{ location.centerLat }}\",
  1208.           \"longitude\": \"{{ location.centerLng }}\"
  1209.           },
  1210.           \"name\": \"{{ location.title }}\"
  1211.     }
  1212.     </script>
  1213.     <script>
  1214.     \$(document).ready(function() {
  1215.         var neighborhoodDescription = \$('#neighborhoodDescription');
  1216.         neighborhoodDescription.addClass('hidden-neighborhood-description')
  1217.         var moreTrans = Translator.trans('more_link');
  1218.         var lessTrans = Translator.trans('less_link');
  1219.         \$('.see-more').html(moreTrans);
  1220.         \$('.see-more').on('click', function() {
  1221.             var seeMoreText = \$(this).html();
  1222.             if (seeMoreText == moreTrans) {
  1223.                 \$(this).html(lessTrans);
  1224.             } else if (seeMoreText == lessTrans) {
  1225.                 \$(this).html(moreTrans);
  1226.             }
  1227.             if (neighborhoodDescription.hasClass('hidden-neighborhood-description')) {
  1228.                 neighborhoodDescription.removeClass('hidden-neighborhood-description')
  1229.                 neighborhoodDescription.addClass('visible-neighborhood-description')
  1230.             } else if (neighborhoodDescription.hasClass('visible-neighborhood-description')) {
  1231.                 neighborhoodDescription.removeClass('visible-neighborhood-description')
  1232.                 neighborhoodDescription.addClass('hidden-neighborhood-description')
  1233.                 \$(\"#neighborhoodDescription\")[0].scrollIntoView();
  1234.             }
  1235.         })
  1236.     })
  1237.     </script>
  1238. {% endblock %}
  1239. ""@AqarmapNeighborhood/Default/index.html.twig""/srv/moonshot/src/Aqarmap/Bundle/NeighborhoodBundle/Resources/views/Default/index.html.twig");
  1240.     }
  1241. }