{% extends "layouts/base.html" %} {% block title %}{{ _('My Team(s)') }} - TryoutPro{% endblock %} {% block page_title %}{{ _('My Team(s)') }}{% endblock %} {% block breadcrumb %}Home / My Team(s){% endblock %} {% block content %} {% if team_data %} {% for item in team_data %} {% set team = item.team %}

{{ team.name }}

{{ _('Coaches') }}
{% if item.coaches %} {% for c in item.coaches %} {{ c.username }} {% endfor %} {% else %} None {% endif %}
{{ _('Managers') }}
{% if item.managers %} {% for m in item.managers %} {{ m.username }} {% endfor %} {% else %} None {% endif %}

{{ _('Team Roster') }}

{% set roster = team.get_players_with_status() %} {% if roster %}
{% for entry in roster %} {% endfor %}
{{ _('Player') }} {{ _('Status') }} {{ _('Position') }}
{{ entry.player.username[:2] | upper }}
{{ entry.player.username }}
{{ entry.status | capitalize }} {{ entry.position or '—' }}
{% else %}
{{ _('No players on this team.') }}
{% endif %}

{{ _('Upcoming Matches') }}

{% if item.matches %}
{% for mdata in item.matches %} {% set tm = mdata.match %} {% endfor %}
{{ _('Match') }} {{ _('Opponent') }} {{ _('Date') }} {{ _('Time') }} {{ _('Location') }} {{ _('Presence') }} {{ _('My Status') }}
{{ tm.title }} {% if tm.opponent %} {{ tm.opponent }} {% else %} Practice {% endif %} {{ tm.date.strftime('%m/%d/%Y') }} {% if tm.start_time and tm.end_time %} {{ tm.start_time.strftime('%H:%M') }} - {{ tm.end_time.strftime('%H:%M') }} {% else %} TBD {% endif %} {{ tm.location or '—' }} {% if mdata.total_count > 0 %} {% if mdata.confirmed_count == mdata.total_count and mdata.total_count > 0 %} ✅ {{ mdata.confirmed_count }}/{{ mdata.total_count }} {% elif mdata.confirmed_count > 0 %} ⏳ {{ mdata.confirmed_count }}/{{ mdata.total_count }} {% else %} ❌ 0/{{ mdata.total_count }} {% endif %} {% else %} {% endif %} {% if mdata.participant_id %} {% else %} {% endif %}
{% else %}
{{ _('No upcoming matches scheduled.') }}
{% endif %}
{% endfor %} {% else %}

{{ _('No Teams') }}

{{ _('You are not currently assigned to any team.') }}

{% endif %} {% endblock %}