<?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;

/* parts/featured-properties.twig */
class __TwigTemplate_87dcdd0409dea6f8066442fa9451f76f 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;
        // line 1
        echo "<section class=\"c-prop-featured\">
    <div class=\"o-wrapper\">
        <div class=\"c-prop-featured__properties\">
            <div class=\"u-body-lg c-prop-featured__properties-header\">
                <h2 class=\"u-body-lg u-m-0 u-fw-700\">";
        // line 5
        echo ($context["heading"] ?? null);
        echo "</h2>
                <div>";
        // line 6
        if (twig_get_attribute($this->env, $this->source, ($context["cta"] ?? null), "title", [], "any", false, false, false, 6)) {
            echo "<a href=\"";
            echo twig_get_attribute($this->env, $this->source, ($context["cta"] ?? null), "url", [], "any", false, false, false, 6);
            echo "\" class=\"c-btn\">";
            echo twig_get_attribute($this->env, $this->source, ($context["cta"] ?? null), "title", [], "any", false, false, false, 6);
            echo "</a></div>";
        }
        // line 7
        echo "            </div>
            <div class=\"c-prop-featured__grid two\">
                ";
        // line 9
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["listing"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 10
            echo "                    <div class=\"c-prop-featured__grid-item\">
                        ";
            // line 11
            $this->loadTemplate("parts/property-card.twig", "parts/featured-properties.twig", 11)->display(twig_to_array(["item" => $context["item"]]));
            // line 12
            echo "                    </div>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 14
        echo "            </div>
        </div>
    </div>
</section>";
    }

    public function getTemplateName()
    {
        return "parts/featured-properties.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  75 => 14,  68 => 12,  66 => 11,  63 => 10,  59 => 9,  55 => 7,  47 => 6,  43 => 5,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<section class=\"c-prop-featured\">
    <div class=\"o-wrapper\">
        <div class=\"c-prop-featured__properties\">
            <div class=\"u-body-lg c-prop-featured__properties-header\">
                <h2 class=\"u-body-lg u-m-0 u-fw-700\">{{ heading|raw }}</h2>
                <div>{% if cta.title %}<a href=\"{{ cta.url|raw }}\" class=\"c-btn\">{{ cta.title|raw }}</a></div>{% endif %}
            </div>
            <div class=\"c-prop-featured__grid two\">
                {% for item in listing %}
                    <div class=\"c-prop-featured__grid-item\">
                        {% include \"parts/property-card.twig\" with {'item': item } only %}
                    </div>
                {% endfor %}
            </div>
        </div>
    </div>
</section>", "parts/featured-properties.twig", "/var/www/htdocs/content/themes/coburg-industries/views/parts/featured-properties.twig");
    }
}
