<?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/horse/components/tab_navigation_component.html.twig */
class __TwigTemplate_f264c2551cc5966b9f97ada0bc2469dc77112c7c59f9ce618756a1c4992424b8 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/horse/components/tab_navigation_component.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/horse/components/tab_navigation_component.html.twig"));
// line 1
$this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->addTab(["name" => "timeline", "action" => "timeline"]);
// line 2
$this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->addTab(["name" => "auction-history", "action" => "auction_history"]);
// line 3
$this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->addTab(["name" => "pedigree", "action" => "pedigree"]);
// line 4
$this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->addTab(["name" => "achievements", "action" => "achievements"]);
// line 5
$this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->addTab(["name" => "news", "action" => "news"]);
// line 7
echo "
";
// line 12
echo "
";
// line 14
echo "
";
// line 75
echo "
<section id=\"tab_navigation\"
class=\"";
// line 77
echo (((twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 77, $this->source); })()), "owner", [], "any", false, false, false, 77) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 77, $this->source); })()), "owner", [], "any", false, false, false, 77), "color", [], "any", false, false, false, 77))) ? ("") : ("bg-primary-500"));
echo " mb-4\"
style=\"background-color: ";
// line 78
(((twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 78, $this->source); })()), "owner", [], "any", false, false, false, 78) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 78, $this->source); })()), "owner", [], "any", false, false, false, 78), "color", [], "any", false, false, false, 78))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 78, $this->source); })()), "owner", [], "any", false, false, false, 78), "color", [], "any", false, false, false, 78), "html", null, true))) : (print ("")));
echo ";\">
<div class=\" sm:flex-wrap sm:container sm:flex hidden w-full gap-4 p-4 ";
// line 79
echo (((twig_get_attribute($this->env, $this->source, // line 80
(isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 80, $this->source); })()), "owner", [], "any", false, false, false, 80) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 80, $this->source); })()), "owner", [], "any", false, false, false, 80), "color", [], "any", false, false, false, 80))) ? ("") : ("bg-primary-500"));
// line 83
echo "\"
style=\"background-color: ";
// line 84
(((twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 84, $this->source); })()), "owner", [], "any", false, false, false, 84) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 84, $this->source); })()), "owner", [], "any", false, false, false, 84), "color", [], "any", false, false, false, 84))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 84, $this->source); })()), "owner", [], "any", false, false, false, 84), "color", [], "any", false, false, false, 84), "html", null, true))) : (print ("")));
echo ";\"
data-controller=\"tab-navigation\">
";
// line 86
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->getTabs());
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 87
echo " ";
$context["highlighted"] = null;
// line 88
echo "
";
// line 89
if (array_key_exists("highlightedTab", $context)) {
// line 90
echo " ";
$context["highlighted"] = ((isset($context["highlightedTab"]) || array_key_exists("highlightedTab", $context) ? $context["highlightedTab"] : (function () { throw new RuntimeError('Variable "highlightedTab" does not exist.', 90, $this->source); })()) == $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(("horse_tab_navigation_" . twig_get_attribute($this->env, $this->source, // line 91
$context["item"], "action", [], "any", false, false, false, 91)), ["id" => twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 91, $this->source); })()), "id", [], "any", false, false, false, 91)]));
// line 93
echo " ";
}
// line 94
echo "
<turbo-frame class=\"";
// line 95
echo (( !(isset($context["highlighted"]) || array_key_exists("highlighted", $context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.', 95, $this->source); })())) ? ("bg-white") : (""));
echo "\" target=\"tab_content\">
<a id=\"";
// line 96
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 96) . "-") . twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 96, $this->source); })()), "id", [], "any", false, false, false, 96)), "html", null, true);
echo "\"
href=\"";
// line 97
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(("horse_tab_navigation_" . twig_get_attribute($this->env, $this->source, $context["item"], "action", [], "any", false, false, false, 97)), ["id" => twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 97, $this->source); })()), "id", [], "any", false, false, false, 97)]), "html", null, true);
echo "\"
class=\"";
// line 98
echo (((isset($context["highlighted"]) || array_key_exists("highlighted", $context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.', 98, $this->source); })())) ? ("btn-sm btn btn-white active") : ("btn-sm btn btn-neutral"));
echo " \"
style=\"";
// line 105
((( ! // line 100
(isset($context["highlighted"]) || array_key_exists("highlighted", $context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.', 100, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 100, $this->source); })()), "owner", [], "any", false, false, false, 100))) ? (print (twig_escape_filter($this->env, (((((("color:white; background-color: rgba(" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 101
(isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 101, $this->source); })()), "owner", [], "any", false, false, false, 101), "color", [], "any", false, false, false, 101), "r", [], "any", false, false, false, 101)) . ",") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 102
(isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 102, $this->source); })()), "owner", [], "any", false, false, false, 102), "color", [], "any", false, false, false, 102), "g", [], "any", false, false, false, 102)) . ",") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 104
(isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 104, $this->source); })()), "owner", [], "any", false, false, false, 104), "color", [], "any", false, false, false, 104), "b", [], "any", false, false, false, 104)) . ",0.6"), "html", null, true))) : (print ("")));
// line 106
echo "\">
";
// line 107
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 107)), "html", null, true);
echo "
</a>
</turbo-frame>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 111
echo " </div>
<div>
<div class=\"block sm:hidden sticky top-20 w-screen max-w-full z-1000 ";
// line 114
echo (((twig_get_attribute($this->env, $this->source, // line 115
(isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 115, $this->source); })()), "owner", [], "any", false, false, false, 115) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 115, $this->source); })()), "owner", [], "any", false, false, false, 115), "color", [], "any", false, false, false, 115))) ? ("") : ("bg-primary-500"));
// line 118
echo " overflow-hidden shadow-md\"
style=\"background-color: ";
// line 119
(((twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 119, $this->source); })()), "owner", [], "any", false, false, false, 119) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 119, $this->source); })()), "owner", [], "any", false, false, false, 119), "color", [], "any", false, false, false, 119))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 119, $this->source); })()), "owner", [], "any", false, false, false, 119), "color", [], "any", false, false, false, 119), "html", null, true))) : (print ("")));
echo ";\">
<div data-controller=\"tab-navigation\"
data-section-navigation-active-class=\"text-white bg-black\"
data-section-navigation-inactive-class=\"text-black bg-neutral-200 \"
id=\"profile-scroll-bar\"
class=\"relative inline-flex items-center w-screen gap-4 p-3 mx-1 overflow-scroll sm:my-3 snap-x snap-mandatory sm:flex\">
";
// line 125
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->getTabs());
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 126
echo " ";
$context["highlighted"] = null;
// line 127
echo " ";
if (array_key_exists("highlightedTab", $context)) {
// line 128
echo " ";
$context["highlighted"] = ((isset($context["highlightedTab"]) || array_key_exists("highlightedTab", $context) ? $context["highlightedTab"] : (function () { throw new RuntimeError('Variable "highlightedTab" does not exist.', 128, $this->source); })()) == $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(("horse_tab_navigation_" . twig_get_attribute($this->env, $this->source, // line 129
$context["item"], "action", [], "any", false, false, false, 129)), ["id" => twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 129, $this->source); })()), "id", [], "any", false, false, false, 129)]));
// line 131
echo " ";
}
// line 132
echo "
<turbo-frame class=\" w-fit min-w-fit ";
// line 133
echo (( !(isset($context["highlighted"]) || array_key_exists("highlighted", $context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.', 133, $this->source); })())) ? ("bg-white") : (""));
echo "\"
target=\"tab_content\">
<a href=\"";
// line 135
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(("horse_tab_navigation_" . twig_get_attribute($this->env, $this->source, $context["item"], "action", [], "any", false, false, false, 135)), ["id" => twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 135, $this->source); })()), "id", [], "any", false, false, false, 135)]), "html", null, true);
echo "\"
class=\"flex-none p-3 text-sm font-medium tracking-widest ";
// line 136
echo (( // line 137
(isset($context["highlighted"]) || array_key_exists("highlighted", $context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.', 137, $this->source); })())) ? ("btn-sm btn btn-white active") : ("btn-sm btn btn-neutral inactive"));
// line 140
echo " uppercase \"
style=\"";
// line 147
((( ! // line 142
(isset($context["highlighted"]) || array_key_exists("highlighted", $context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.', 142, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 142, $this->source); })()), "owner", [], "any", false, false, false, 142))) ? (print (twig_escape_filter($this->env, (((((("color:white; background-color: rgba(" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 143
(isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 143, $this->source); })()), "owner", [], "any", false, false, false, 143), "color", [], "any", false, false, false, 143), "r", [], "any", false, false, false, 143)) . ",") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 144
(isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 144, $this->source); })()), "owner", [], "any", false, false, false, 144), "color", [], "any", false, false, false, 144), "g", [], "any", false, false, false, 144)) . ",") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 146
(isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 146, $this->source); })()), "owner", [], "any", false, false, false, 146), "color", [], "any", false, false, false, 146), "b", [], "any", false, false, false, 146)) . ",0.6"), "html", null, true))) : (print ("")));
// line 148
echo "\">
";
// line 149
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 149)), "html", null, true);
echo "
</a>
</turbo-frame>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 153
echo " </div>
</div>
</div>
</section>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "network/horse/components/tab_navigation_component.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 216 => 153, 206 => 149, 203 => 148, 201 => 146, 200 => 144, 199 => 143, 198 => 142, 197 => 147, 194 => 140, 192 => 137, 191 => 136, 187 => 135, 182 => 133, 179 => 132, 176 => 131, 174 => 129, 172 => 128, 169 => 127, 166 => 126, 162 => 125, 153 => 119, 150 => 118, 148 => 115, 147 => 114, 142 => 111, 132 => 107, 129 => 106, 127 => 104, 126 => 102, 125 => 101, 124 => 100, 123 => 105, 119 => 98, 115 => 97, 111 => 96, 107 => 95, 104 => 94, 101 => 93, 99 => 91, 97 => 90, 95 => 89, 92 => 88, 89 => 87, 85 => 86, 80 => 84, 77 => 83, 75 => 80, 74 => 79, 70 => 78, 66 => 77, 62 => 75, 59 => 14, 56 => 12, 53 => 7, 51 => 5, 49 => 4, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% do tab_navigation_add({ name: 'timeline', action: 'timeline' }) %}
{% do tab_navigation_add({ name: 'auction-history', action: 'auction_history' }) %}
{% do tab_navigation_add({ name: 'pedigree', action: 'pedigree' }) %}
{% do tab_navigation_add({ name: 'achievements', action: 'achievements' }) %}
{% do tab_navigation_add({ name: 'news', action: 'news' }) %}
{# {% do tab_navigation_add({ name: 'horse-statistics', action: 'horse_statistics' }) %} #}
{# {% do tab_navigation_add({ name: 'racelist', action: 'racelist' }) %}
{% do tab_navigation_add({ name: 'horses', action: 'horses' }) %}
{% do tab_navigation_add({ name: 'achievements', action: 'achievements' }) %}
{% do tab_navigation_add({ name: 'attendees', action: 'attendees' }) %} #}
{# {% do tab_navigation_add({ name: 'news', action: 'news' }) %} #}
{# <section id=\"tab_navigation\" class=\"sm:container\">
<div class=\"flex-wrap hidden w-full gap-4 my-4 sm:flex\">
{% for item in tab_navigation_get() %}
{% set highlighted = null %}
{% if highlightedTab is defined %}
{% set highlighted = highlightedTab
== path('horse_tab_navigation_' ~ item.action, { id: horse.id })
%}
{% endif %}
<turbo-frame target=\"tab_content\">
<a id=\"{{ item.name ~ '-' ~ horse.id }}\"
href=\"{{ path('horse_tab_navigation_' ~ item.action, { id: horse.id }) }}\"
class=\"{{ highlighted ? 'btn-sm btn btn-primary' : 'btn-sm btn btn-neutral' }}\"
style=\"{{
highlighted and horse.owner and horse.owner.color
? 'color:white; background-color:' ~ horse.owner.color
}}\">
{{ item.name|trans }}
</a>
</turbo-frame>
{% endfor %}
</div>
<div>
<div class=\"block sm:hidden sticky top-20 w-screen max-w-full z-1000 {{
horse.owner and horse.owner.color
? ''
: 'bg-primary-500'
}} overflow-hidden shadow-md\"
style=\"background-color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }};\">
<div data-controller=\"tab-navigation\"
data-section-navigation-active-class=\"text-white bg-black\"
data-section-navigation-inactive-class=\"text-black bg-neutral-200 \"
id=\"profile-scroll-bar\"
class=\"relative inline-flex items-center w-screen gap-4 p-3 overflow-scroll sm:my-3 snap-x snap-mandatory sm:flex\">
{% for item in tab_navigation_get() %}
{% set highlighted = null %}
{% if highlightedTab is defined %}
{% set highlighted = highlightedTab
== path('horse_tab_navigation_' ~ item.action, { id: horse.id })
%}
{% endif %}
<turbo-frame class=\"py-2 w-fit min-w-fit\" target=\"tab_content\">
<a href=\"{{ path('horse_tab_navigation_' ~ item.action, { id: horse.id }) }}\"
class=\"flex-none p-3 text-sm font-medium tracking-widest {{
highlighted
? 'text-white bg-black active'
: 'text-black bg-neutral-200 inactive'
}} uppercase snap-center snap-always\">
{{ item.name|trans }}
</a>
</turbo-frame>
{% endfor %}
</div>
</div>
</div>
</section> #}
<section id=\"tab_navigation\"
class=\"{{ horse.owner and horse.owner.color ? '' : 'bg-primary-500' }} mb-4\"
style=\"background-color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }};\">
<div class=\" sm:flex-wrap sm:container sm:flex hidden w-full gap-4 p-4 {{
horse.owner and horse.owner.color
? ''
: 'bg-primary-500'
}}\"
style=\"background-color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }};\"
data-controller=\"tab-navigation\">
{% for item in tab_navigation_get() %}
{% set highlighted = null %}
{% if highlightedTab is defined %}
{% set highlighted = highlightedTab
== path('horse_tab_navigation_' ~ item.action, { id: horse.id })
%}
{% endif %}
<turbo-frame class=\"{{ not highlighted ? 'bg-white' }}\" target=\"tab_content\">
<a id=\"{{ item.name ~ '-' ~ horse.id }}\"
href=\"{{ path('horse_tab_navigation_' ~ item.action, { id: horse.id }) }}\"
class=\"{{ highlighted ? 'btn-sm btn btn-white active' : 'btn-sm btn btn-neutral' }} \"
style=\"{{
not highlighted and horse.owner
? 'color:white; background-color: rgba(' ~ horse.owner.color.r ~ ','
~ horse.owner.color.g
~ ','
~ horse.owner.color.b
~ ',0.6'
}}\">
{{ item.name|trans }}
</a>
</turbo-frame>
{% endfor %}
</div>
<div>
<div class=\"block sm:hidden sticky top-20 w-screen max-w-full z-1000 {{
horse.owner and horse.owner.color
? ''
: 'bg-primary-500'
}} overflow-hidden shadow-md\"
style=\"background-color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }};\">
<div data-controller=\"tab-navigation\"
data-section-navigation-active-class=\"text-white bg-black\"
data-section-navigation-inactive-class=\"text-black bg-neutral-200 \"
id=\"profile-scroll-bar\"
class=\"relative inline-flex items-center w-screen gap-4 p-3 mx-1 overflow-scroll sm:my-3 snap-x snap-mandatory sm:flex\">
{% for item in tab_navigation_get() %}
{% set highlighted = null %}
{% if highlightedTab is defined %}
{% set highlighted = highlightedTab
== path('horse_tab_navigation_' ~ item.action, { id: horse.id })
%}
{% endif %}
<turbo-frame class=\" w-fit min-w-fit {{ not highlighted ? 'bg-white' }}\"
target=\"tab_content\">
<a href=\"{{ path('horse_tab_navigation_' ~ item.action, { id: horse.id }) }}\"
class=\"flex-none p-3 text-sm font-medium tracking-widest {{
highlighted
? 'btn-sm btn btn-white active'
: 'btn-sm btn btn-neutral inactive'
}} uppercase \"
style=\"{{
not highlighted and horse.owner
? 'color:white; background-color: rgba(' ~ horse.owner.color.r ~ ','
~ horse.owner.color.g
~ ','
~ horse.owner.color.b
~ ',0.6'
}}\">
{{ item.name|trans }}
</a>
</turbo-frame>
{% endfor %}
</div>
</div>
</div>
</section>
", "network/horse/components/tab_navigation_component.html.twig", "/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/horse/components/tab_navigation_component.html.twig");
}
}