<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;

/* module/md_feature_listing/house_card.html */
class __TwigTemplate_8ae29836052b44a58f7e7ad51a524641 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
        yield "<div class=\"lofty-feature-listing-house\" style=\"visibility: hidden\">
    <div class=\"lofty-house-img\">
        <a target=\"_blank\" href=\"";
        // line 3
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "detailUrl", [], "any", false, false, false, 3), "html", null, true);
        yield "\">
            ";
        // line 4
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "previewPicture", [], "any", false, false, false, 4)) {
            // line 5
            yield "                <img src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "previewPicture", [], "any", false, false, false, 5), "html", null, true);
            yield "\" loading=\"lazy\" alt=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "address", [], "any", false, false, false, 5), "html", null, true);
            yield "\">
            ";
        } else {
            // line 7
            yield "                <img src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['LoftyIDX\includes\extensions\LoftyIDXTwigFunctionExtension']->getStaticUrl("public/img/empty-listing.png"), "html", null, true);
            yield "\" loading=\"lazy\" alt=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "address", [], "any", false, false, false, 7), "html", null, true);
            yield "\">
            ";
        }
        // line 9
        yield "        </a>
    </div>
    <div class=\"lofty-house-info\">
        <p class=\"lofty-feature-address\">
            <a target=\"_blank\" href=\"";
        // line 13
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "detailUrl", [], "any", false, false, false, 13), "html", null, true);
        yield "\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "address", [], "any", false, false, false, 13), "html", null, true);
        yield "</a>
        </p>
        <p class=\"lofty-house-price\">\$";
        // line 15
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "price", [], "any", false, false, false, 15), 0, ".", ","), "html", null, true);
        yield "</p>
        <p class=\"lofty-house-base\">
            ";
        // line 17
        if ((CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "bedrooms", [], "any", false, false, false, 17) > 0)) {
            // line 18
            yield "                <span>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "bedrooms", [], "any", false, false, false, 18), "html", null, true);
            yield " ";
            yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "bedrooms", [], "any", false, false, false, 18) == 1)) ? ("Bed") : ("Beds"));
            yield "</span>
            ";
        }
        // line 20
        yield "            ";
        if ((CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "bathrooms", [], "any", false, false, false, 20) > 0)) {
            // line 21
            yield "                <span>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "bathrooms", [], "any", false, false, false, 21), "html", null, true);
            yield " ";
            yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "bathrooms", [], "any", false, false, false, 21) == 1)) ? ("Bath") : ("Baths"));
            yield "</span>
            ";
        }
        // line 23
        yield "            ";
        if ((CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "area", [], "any", false, false, false, 23) > 0)) {
            // line 24
            yield "                <span>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "area", [], "any", false, false, false, 24), CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "decimal", [], "any", false, false, false, 24), ".", ","), "html", null, true);
            yield " ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "unit", [], "any", false, false, false, 24), "html", null, true);
            yield "</span>
            ";
        }
        // line 26
        yield "        </p>
    </div>
    <div class=\"lofty-mls-info\">
        <p class=\"lofty-mls-text\">
            ";
        // line 30
        yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "mlsOrg", [], "any", false, false, false, 30), "cardTemplate", [], "any", false, false, false, 30);
        yield "
        </p>
        ";
        // line 32
        if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "mlsOrg", [], "any", false, false, false, 32), "logo", [], "any", false, false, false, 32)) {
            // line 33
            yield "            <div class=\"lofty-mls-logo\"> <img src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "mlsOrg", [], "any", false, false, false, 33), "logo", [], "any", false, false, false, 33), "html", null, true);
            yield "\" alt=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "mlsOrg", [], "any", false, true, false, 33), "name", [], "any", true, true, false, 33) &&  !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "mlsOrg", [], "any", false, true, false, 33), "name", [], "any", false, false, false, 33)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "mlsOrg", [], "any", false, true, false, 33), "name", [], "any", false, false, false, 33)) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["house"] ?? null), "mlsOrg", [], "any", false, false, false, 33), "id", [], "any", false, false, false, 33))), "html", null, true);
            yield "\"></div>
        ";
        }
        // line 35
        yield "    </div>
</div>";
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "module/md_feature_listing/house_card.html";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  135 => 35,  127 => 33,  125 => 32,  120 => 30,  114 => 26,  106 => 24,  103 => 23,  95 => 21,  92 => 20,  84 => 18,  82 => 17,  77 => 15,  70 => 13,  64 => 9,  56 => 7,  48 => 5,  46 => 4,  42 => 3,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\"lofty-feature-listing-house\" style=\"visibility: hidden\">
    <div class=\"lofty-house-img\">
        <a target=\"_blank\" href=\"{{ house.detailUrl }}\">
            {% if house.previewPicture %}
                <img src=\"{{ house.previewPicture }}\" loading=\"lazy\" alt=\"{{ house.address }}\">
            {% else %}
                <img src=\"{{ static('public/img/empty-listing.png') }}\" loading=\"lazy\" alt=\"{{ house.address }}\">
            {% endif %}
        </a>
    </div>
    <div class=\"lofty-house-info\">
        <p class=\"lofty-feature-address\">
            <a target=\"_blank\" href=\"{{ house.detailUrl }}\">{{house.address}}</a>
        </p>
        <p class=\"lofty-house-price\">\${{ house.price | number_format(0, '.', ',')}}</p>
        <p class=\"lofty-house-base\">
            {% if house.bedrooms > 0 %}
                <span>{{ house.bedrooms }} {{ house.bedrooms == 1 ? 'Bed':'Beds' }}</span>
            {% endif %}
            {% if house.bathrooms > 0 %}
                <span>{{ house.bathrooms }} {{ house.bathrooms == 1 ? 'Bath':'Baths' }}</span>
            {% endif %}
            {% if house.area > 0 %}
                <span>{{ house.area | number_format(house.decimal, '.', ',')}} {{ house.unit }}</span>
            {% endif %}
        </p>
    </div>
    <div class=\"lofty-mls-info\">
        <p class=\"lofty-mls-text\">
            {{ house.mlsOrg.cardTemplate | raw }}
        </p>
        {% if house.mlsOrg.logo %}
            <div class=\"lofty-mls-logo\"> <img src=\"{{ house.mlsOrg.logo }}\" alt=\"{{ house.mlsOrg.name ?? house.mlsOrg.id }}\"></div>
        {% endif %}
    </div>
</div>", "module/md_feature_listing/house_card.html", "/mnt/HC_Volume_104349808/vhosts/thevelez.family/vm-homes.com/httpdocs/wp-content/plugins/lofty-idx-plugin-1773305082397/templates/module/md_feature_listing/house_card.html");
    }
}
