<turbo-frame id="tab_content">
<section class="p-4 bg-white shadow-xl sm:p-8 xl:p-16" id="achievements">
{% if app.user and categories and categories is not empty %}
{% do section_navigation_add({ name: 'achievements', anchor: 'achievements' }) %}
<div class="space-y-6">
<h2 class="text-xl font-medium text-black uppercase md:text-xl font-headline">
{{ 'successes-as-profile'|trans }}
{% if user.id is defined and profile.id == user.id %}
<small class="underline lowercase">
<a data-turbo='false' target="_top" href="{{ path('profile_admin_achievements_index') }}">({{ 'edit'|trans }})</a>
</small>
{% endif %}
</h2>
{% for category in categories %}
<div class="">
<h3 class="mb-4 text-black uppercase font-headline">
{{ category|trans }}
</h3>
<div class="overflow-x-scroll lg:overflow-x-hidden">
{# Heading #}
<div class="grid w-full grid-cols-12 gap-2 px-5 py-2 text-sm font-bold text-white uppercase bg-primary-500"
style="min-width: 1024px">
<div>
{{ 'profile.achievements.date'|trans }}
</div>
<div class="flex col-span-2">
{{ 'profile.achievements.horse'|trans }}
</div>
<div class="col-span-2">
{{ 'profile.achievements.racingtrack'|trans }}
</div>
<div class="col-span-5">
{{ 'profile.achievements.description'|trans }}
</div>
<div class="col-span-2">
{{ 'profile.achievements.participants'|trans }}
</div>
</div>
<turbo-frame id="profile-achievements-{{ category }}"
src="{{
path(
'network_profile_achievement_frame',
{ _locale: app.request.locale, category: category, id: profile.id }
)
}}"></turbo-frame>
</div>
</div>
{% endfor %}
</div>
{% elseif not app.user %}
<div class="container">
<h2 class="text-lg font-medium uppercase md:text-xl font-headline mb-7">
{{ 'successes-as-profile'|trans }}
</h2>
{% include 'network/profile/components/login_required_hint.html.twig' %}
</div>
{% else %}
<h2 class="text-xl font-medium text-black uppercase mb-7 md:text-xl font-headline">
{{ 'successes-as-profile'|trans }}
{% if user.id is defined and profile.id == user.id %}
<small class="underline lowercase">
<a data-turbo='false' target="_top" href="{{ path('profile_admin_achievements_index') }}">({{ 'edit'|trans }})</a>
</small>
{% endif %}
</h2>
<div>
{{ 'no.profile.achievements.available'|trans }}
</div>
{% endif %}
</section>
<turbo-stream action="replace" target="tab_navigation">
<template>
{% include 'network/profile/components/tab_navigation_component.html.twig' with {
profile: profile,
highlightedTab: app.request.pathInfo
} %}
</template>
</turbo-stream>
</turbo-frame>