<section id="horse-lists" class="p-4 my-8 bg-white shadow-xl sm:p-8 xl:p-16">
{% if
app.user
and (managedHorses is not empty
or bredHorses is not empty
or trainedHorses is not empty
or ownedHorses is not empty) %}
{% do section_navigation_add({ name: 'horse-lists', anchor: 'horse-lists' }) %}
<div class="">
<h2 class="text-lg font-medium uppercase md:text-xl font-headline">
{{ 'horses-lists'|trans }}
</h2>
<div class="gap-1 my-2">
<p>
{{ 'horses.list.infotext'|trans }}
<a class="underline"
href="{{ app.user ? path('profile_admin_horses_index') : path('auth_login') }}"
target="_blank">
{{ 'horses.list.linktext'|trans }}
</a>
</p>
</div>
</div>
{% if managedHorses is not empty %}
{% include 'network/profile/components/horse_list_frame.html.twig' with {
frameId: 'managed-horses',
path: path('network_profile_managed_horse_list', { id: profile.id })
} %}
{% endif %}
{% if bredHorses is not empty %}
{% include 'network/profile/components/horse_list_frame.html.twig' with {
frameId: 'bred-horses',
path: path('network_profile_bred_horse_list', { id: profile.id })
} %}
{% endif %}
{% if ownedHorses is not empty %}
{% include 'network/profile/components/horse_list_frame.html.twig' with {
frameId: 'owned-horses',
path: path('network_profile_owned_horse_list', { id: profile.id })
} %}
{% endif %}
{% if trainedHorses is not empty %}
{% include 'network/profile/components/horse_list_frame.html.twig' with {
frameId: 'trained-horses',
path: path('network_profile_trained_horse_list', { id: profile.id })
} %}
{% endif %}
{% elseif not app.user %}
<h2 class="text-lg font-medium uppercase md:text-xl mb-7 font-headline">
{{ 'horses-lists'|trans }}
</h2>
{% include 'network/profile/components/login_required_hint.html.twig' %}
{% else %}
<h2 class="text-lg font-medium uppercase md:text-xl mb-7 font-headline">
{{ 'horses-lists'|trans }}
</h2>
{{ 'no.profile.horses.available'|trans }}
{% endif %}
</section>