var/cache/dev/twig/84/84bb04c3d8c2b50a713bb50dd87be87388159524b05019c647df5595a44b52b5.php line 131

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. /* network/auction/sections/auction_section_horses.html.twig */
  14. class __TwigTemplate_a757419c4b1a3ccd334c40b531528733718e0db59df1b1d7f58ddbd3c156463e extends 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/auction/sections/auction_section_horses.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/auction/sections/auction_section_horses.html.twig"));
  33.         // line 1
  34.         echo "<turbo-frame id=\"tab_content\">
  35.   <section id=\"horses-at-auction\"
  36.     class=\"container p-4 overflow-x-hidden bg-white shadow-xl scroll-mt-12 sm:p-8 xl:p-16\"
  37.     style=\"\">
  38.     ";
  39.         // line 5
  40.         if ((twig_length_filter($this->envtwig_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"falsefalsefalse5)) > 0)) {
  41.             // line 6
  42.             echo "      ";
  43.             $this->extensions['App\Core\Twig\Extension\SectionNavigationExtension']->addSection(["name" => "horses-at-auction""anchor" => "horses-at-auction"]);
  44.             // line 7
  45.             echo "
  46.       <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  47.         ";
  48.             // line 9
  49.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("horses-at-auction-with-count", ["%count" => twig_length_filter($this->envtwig_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"falsefalsefalse9))]), "html"nulltrue);
  50.             echo "
  51.       </h2>
  52.       <div class=\"overflow-x-auto\">
  53.         <div class=\"grid gap-4 lg:grid-cols-1\">
  54.           ";
  55.             // line 13
  56.             $context['_parent'] = $context;
  57.             $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"falsefalsefalse13));
  58.             $context['loop'] = [
  59.               'parent' => $context['_parent'],
  60.               'index0' => 0,
  61.               'index'  => 1,
  62.               'first'  => true,
  63.             ];
  64.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  65.                 $length count($context['_seq']);
  66.                 $context['loop']['revindex0'] = $length 1;
  67.                 $context['loop']['revindex'] = $length;
  68.                 $context['loop']['length'] = $length;
  69.                 $context['loop']['last'] = === $length;
  70.             }
  71.             foreach ($context['_seq'] as $context["_key"] => $context["horse"]) {
  72.                 // line 14
  73.                 echo "            ";
  74.                 // line 15
  75.                 echo "            ";
  76.                 $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
  77. $context["horse"], "object", [], "any"falsefalsefalse16)]));
  78.                 // line 18
  79.                 echo "            ";
  80.                 // line 19
  81.                 echo "          ";
  82.                 ++$context['loop']['index0'];
  83.                 ++$context['loop']['index'];
  84.                 $context['loop']['first'] = false;
  85.                 if (isset($context['loop']['length'])) {
  86.                     --$context['loop']['revindex0'];
  87.                     --$context['loop']['revindex'];
  88.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  89.                 }
  90.             }
  91.             $_parent $context['_parent'];
  92.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['horse'], $context['_parent'], $context['loop']);
  93.             $context array_intersect_key($context$_parent) + $_parent;
  94.             // line 20
  95.             echo "        </div>
  96.       </div>
  97.     ";
  98.         } else {
  99.             // line 23
  100.             echo "      <div class=\"text-black\">
  101.         <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  102.           ";
  103.             // line 25
  104.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("horses-at-auction-with-count", ["%count" => twig_length_filter($this->envtwig_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"falsefalsefalse25))]), "html"nulltrue);
  105.             echo "
  106.         </h2>
  107.         ";
  108.             // line 27
  109.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no.auction.horses.available"), "html"nulltrue);
  110.             echo "
  111.       </div>
  112.     ";
  113.         }
  114.         // line 30
  115.         echo "  </section>
  116.   <turbo-stream action=\"replace\" target=\"tab_navigation\">
  117.     <template>
  118.       ";
  119.         // line 33
  120.         $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
  121. (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->sourcetwig_get_attribute($this->env$this->source,         // line 35
  122. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'35$this->source); })()), "request", [], "any"falsefalsefalse35), "pathInfo", [], "any"falsefalsefalse35)]));
  123.         // line 37
  124.         echo "    </template>
  125.   </turbo-stream>
  126. </turbo-frame>
  127. ";
  128.         
  129.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  130.         
  131.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  132.     }
  133.     public function getTemplateName()
  134.     {
  135.         return "network/auction/sections/auction_section_horses.html.twig";
  136.     }
  137.     public function isTraitable()
  138.     {
  139.         return false;
  140.     }
  141.     public function getDebugInfo()
  142.     {
  143.         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,);
  144.     }
  145.     public function getSourceContext()
  146.     {
  147.         return new Source("<turbo-frame id=\"tab_content\">
  148.   <section id=\"horses-at-auction\"
  149.     class=\"container p-4 overflow-x-hidden bg-white shadow-xl scroll-mt-12 sm:p-8 xl:p-16\"
  150.     style=\"\">
  151.     {% if (auction.horses|length) > 0 %}
  152.       {% do section_navigation_add({ name: 'horses-at-auction', anchor: 'horses-at-auction' }) %}
  153.       <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  154.         {{ 'horses-at-auction-with-count'|trans({ '%count': auction.horses|length }) }}
  155.       </h2>
  156.       <div class=\"overflow-x-auto\">
  157.         <div class=\"grid gap-4 lg:grid-cols-1\">
  158.           {% for horse in auction.horses %}
  159.             {# <div class=\"\"> #}
  160.             {% include 'network/auction/components/horse_event_tile.html.twig' with {
  161.               horse: horse.object
  162.             } %}
  163.             {# </div> #}
  164.           {% endfor %}
  165.         </div>
  166.       </div>
  167.     {% else %}
  168.       <div class=\"text-black\">
  169.         <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  170.           {{ 'horses-at-auction-with-count'|trans({ '%count': auction.horses|length }) }}
  171.         </h2>
  172.         {{ 'no.auction.horses.available'|trans }}
  173.       </div>
  174.     {% endif %}
  175.   </section>
  176.   <turbo-stream action=\"replace\" target=\"tab_navigation\">
  177.     <template>
  178.       {% include 'network/auction/components/tab_navigation_component.html.twig' with {
  179.         auction: auction,
  180.         highlightedTab: app.request.pathInfo
  181.       } %}
  182.     </template>
  183.   </turbo-stream>
  184. </turbo-frame>
  185. ""network/auction/sections/auction_section_horses.html.twig""/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/auction/sections/auction_section_horses.html.twig");
  186.     }
  187. }