<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* _index/_property */
class __TwigTemplate_b2df5dc595932d5aadf25dc560100ea8845e131e29e11e1c12210dfbd8e6fa12 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        craft\helpers\Template::beginProfile("template", "_index/_property");
        // line 1
        echo "    <div class=\"section\">
      <div class=\"container\">
        <div class=\"row mb-5 align-items-center\">
          <div class=\"col-lg-6\">
            <h2 class=\"font-weight-bold text-primary heading\">
              Popular Properties
            </h2>
          </div>
          <div class=\"col-lg-6 text-lg-end\">
            <p>
              <a
                href=\"#\"
                target=\"_blank\"
                class=\"btn btn-primary text-white py-3 px-4\"
                >View all properties</a
              >
            </p>
          </div>
        </div>
        <!-- mid row -->
        <div class=\"row\">
          <div class=\"col-12\">
            <div class=\"property-slider-wrap\">
              <div class=\"property-slider\">

                <!-- .item -->
                ";
        // line 27
        $context["array"] = craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 27, $this->source); })()), "entries", []), "section", [0 => "property"], "method"), "all", [], "method");
        // line 28
        echo "                ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["array"]) || array_key_exists("array", $context) ? $context["array"] : (function () { throw new RuntimeError('Variable "array" does not exist.', 28, $this->source); })()));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 29
            echo "                  ";
            $this->loadTemplate("property/_single", "_index/_property", 29)->display(twig_array_merge($context, ["item" =>             // line 30
$context["item"], "transform" => true]));
            // line 33
            echo "                ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 34
        echo "                <!-- .item -->
              </div>

              <div
                id=\"property-nav\"
                class=\"controls\"
                tabindex=\"0\"
                aria-label=\"Carousel Navigation\"
              >
                <span
                  class=\"prev\"
                  data-controls=\"prev\"
                  aria-controls=\"property\"
                  tabindex=\"-1\"
                  >Prev</span
                >
                <span
                  class=\"next\"
                  data-controls=\"next\"
                  aria-controls=\"property\"
                  tabindex=\"-1\"
                  >Next</span
                >
              </div>
            </div>
          </div>
        </div>
        <!-- end mid row -->

        <div class=\"row\">
          <div class=\"col\">
            <a href=\"";
        // line 65
        echo twig_escape_filter($this->env, (isset($context["siteUrl"]) || array_key_exists("siteUrl", $context) ? $context["siteUrl"] : (function () { throw new RuntimeError('Variable "siteUrl" does not exist.', 65, $this->source); })()), "html", null, true);
        echo "\">Back Home</a>
          </div>
        </div>
      </div>
    </div>";
        craft\helpers\Template::endProfile("template", "_index/_property");
    }

    public function getTemplateName()
    {
        return "_index/_property";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  137 => 65,  104 => 34,  90 => 33,  88 => 30,  86 => 29,  68 => 28,  66 => 27,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("    <div class=\"section\">
      <div class=\"container\">
        <div class=\"row mb-5 align-items-center\">
          <div class=\"col-lg-6\">
            <h2 class=\"font-weight-bold text-primary heading\">
              Popular Properties
            </h2>
          </div>
          <div class=\"col-lg-6 text-lg-end\">
            <p>
              <a
                href=\"#\"
                target=\"_blank\"
                class=\"btn btn-primary text-white py-3 px-4\"
                >View all properties</a
              >
            </p>
          </div>
        </div>
        <!-- mid row -->
        <div class=\"row\">
          <div class=\"col-12\">
            <div class=\"property-slider-wrap\">
              <div class=\"property-slider\">

                <!-- .item -->
                {% set array = craft.entries.section('property').all() %}
                {% for item in array  %}
                  {% include 'property/_single' with {
                    item: item,
                    transform: true 
                  } %}
                {% endfor %}
                <!-- .item -->
              </div>

              <div
                id=\"property-nav\"
                class=\"controls\"
                tabindex=\"0\"
                aria-label=\"Carousel Navigation\"
              >
                <span
                  class=\"prev\"
                  data-controls=\"prev\"
                  aria-controls=\"property\"
                  tabindex=\"-1\"
                  >Prev</span
                >
                <span
                  class=\"next\"
                  data-controls=\"next\"
                  aria-controls=\"property\"
                  tabindex=\"-1\"
                  >Next</span
                >
              </div>
            </div>
          </div>
        </div>
        <!-- end mid row -->

        <div class=\"row\">
          <div class=\"col\">
            <a href=\"{{ siteUrl}}\">Back Home</a>
          </div>
        </div>
      </div>
    </div>", "_index/_property", "/home/addons/atweb.space/sub/craft-demo/cms/templates/_index/_property.twig");
    }
}
