<?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;
/* network/auction/sections/auction_section_horses.html.twig */
class __TwigTemplate_a757419c4b1a3ccd334c40b531528733718e0db59df1b1d7f58ddbd3c156463e 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;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "network/auction/sections/auction_section_horses.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "network/auction/sections/auction_section_horses.html.twig"));
// line 1
echo "<turbo-frame id=\"tab_content\">
<section id=\"horses-at-auction\"
class=\"container p-4 overflow-x-hidden bg-white shadow-xl scroll-mt-12 sm:p-8 xl:p-16\"
style=\"\">
";
// line 5
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["auction"]) || array_key_exists("auction", $context) ? $context["auction"] : (function () { throw new RuntimeError('Variable "auction" does not exist.', 5, $this->source); })()), "horses", [], "any", false, false, false, 5)) > 0)) {
// line 6
echo " ";
$this->extensions['App\Core\Twig\Extension\SectionNavigationExtension']->addSection(["name" => "horses-at-auction", "anchor" => "horses-at-auction"]);
// line 7
echo "
<h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("horses-at-auction-with-count", ["%count" => twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["auction"]) || array_key_exists("auction", $context) ? $context["auction"] : (function () { throw new RuntimeError('Variable "auction" does not exist.', 9, $this->source); })()), "horses", [], "any", false, false, false, 9))]), "html", null, true);
echo "
</h2>
<div class=\"overflow-x-auto\">
<div class=\"grid gap-4 lg:grid-cols-1\">
";
// line 13
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["auction"]) || array_key_exists("auction", $context) ? $context["auction"] : (function () { throw new RuntimeError('Variable "auction" does not exist.', 13, $this->source); })()), "horses", [], "any", false, false, false, 13));
$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["horse"]) {
// line 14
echo " ";
// line 15
echo " ";
$this->loadTemplate("network/auction/components/horse_event_tile.html.twig", "network/auction/sections/auction_section_horses.html.twig", 15)->display(twig_array_merge($context, ["horse" => twig_get_attribute($this->env, $this->source, // line 16
$context["horse"], "object", [], "any", false, false, false, 16)]));
// line 18
echo " ";
// line 19
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['horse'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 20
echo " </div>
</div>
";
} else {
// line 23
echo " <div class=\"text-black\">
<h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("horses-at-auction-with-count", ["%count" => twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["auction"]) || array_key_exists("auction", $context) ? $context["auction"] : (function () { throw new RuntimeError('Variable "auction" does not exist.', 25, $this->source); })()), "horses", [], "any", false, false, false, 25))]), "html", null, true);
echo "
</h2>
";
// line 27
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no.auction.horses.available"), "html", null, true);
echo "
</div>
";
}
// line 30
echo " </section>
<turbo-stream action=\"replace\" target=\"tab_navigation\">
<template>
";
// line 33
$this->loadTemplate("network/auction/components/tab_navigation_component.html.twig", "network/auction/sections/auction_section_horses.html.twig", 33)->display(twig_array_merge($context, ["auction" => // line 34
(isset($context["auction"]) || array_key_exists("auction", $context) ? $context["auction"] : (function () { throw new RuntimeError('Variable "auction" does not exist.', 34, $this->source); })()), "highlightedTab" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 35
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "pathInfo", [], "any", false, false, false, 35)]));
// line 37
echo " </template>
</turbo-stream>
</turbo-frame>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "network/auction/sections/auction_section_horses.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 133 => 37, 131 => 35, 130 => 34, 129 => 33, 124 => 30, 118 => 27, 113 => 25, 109 => 23, 104 => 20, 90 => 19, 88 => 18, 86 => 16, 84 => 15, 82 => 14, 65 => 13, 58 => 9, 54 => 7, 51 => 6, 49 => 5, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<turbo-frame id=\"tab_content\">
<section id=\"horses-at-auction\"
class=\"container p-4 overflow-x-hidden bg-white shadow-xl scroll-mt-12 sm:p-8 xl:p-16\"
style=\"\">
{% if (auction.horses|length) > 0 %}
{% do section_navigation_add({ name: 'horses-at-auction', anchor: 'horses-at-auction' }) %}
<h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
{{ 'horses-at-auction-with-count'|trans({ '%count': auction.horses|length }) }}
</h2>
<div class=\"overflow-x-auto\">
<div class=\"grid gap-4 lg:grid-cols-1\">
{% for horse in auction.horses %}
{# <div class=\"\"> #}
{% include 'network/auction/components/horse_event_tile.html.twig' with {
horse: horse.object
} %}
{# </div> #}
{% endfor %}
</div>
</div>
{% else %}
<div class=\"text-black\">
<h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
{{ 'horses-at-auction-with-count'|trans({ '%count': auction.horses|length }) }}
</h2>
{{ 'no.auction.horses.available'|trans }}
</div>
{% endif %}
</section>
<turbo-stream action=\"replace\" target=\"tab_navigation\">
<template>
{% include 'network/auction/components/tab_navigation_component.html.twig' with {
auction: auction,
highlightedTab: app.request.pathInfo
} %}
</template>
</turbo-stream>
</turbo-frame>
", "network/auction/sections/auction_section_horses.html.twig", "/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/auction/sections/auction_section_horses.html.twig");
}
}