{% extends "layouts/base.html" %} {% block title %}{{ _('My Profile') }} - TryoutPro{% endblock %} {% block page_title %}{{ _('My Profile') }}{% endblock %} {% block breadcrumb %}Home / Profile{% endblock %} {% block header_actions %}
{{ _('Contracts') }} {{ _('Edit Profile') }}
{% endblock %} {% block content %}

{{ _('Account Information') }}

{{ user.username[:2] | upper }}

{{ user.username }}

{{ user.full_name }} {{ user.role | capitalize }}

Member since {{ user.created_at.strftime('%B %Y') }}

Username {{ user.username }}
Email {{ user.email }}
Phone {{ user.phone or 'Not provided' }}
Account Status {% if user.is_active_account %} Active {% else %} Inactive {% endif %}

{{ _('E-Sports Profile') }}

{{ _('Gamertags') }} {% set games_list = user.get_games_list() %} {% if games_list %}
{% for game in games_list %} {% set gt = user.gamertags | selectattr('game', 'equalto', game) | first %}
{% if gt and gt.get_trn_url() %} {{ game }} {{ gt.gamertag }} {% if gt.platform %}({{ gt.platform }}){% endif %} {% else %} {{ game }} {% endif %}
{% endfor %}
{% else %} Not specified {% endif %}
{{ _('Discord') }} {% if user.discord_username %} {{ user.discord_username }} {% else %} Not connected {% endif %}
{{ _('League OS') }} {% if user.league_os_profile %} {{ user.league_os_profile }} {% else %} Not connected {% endif %}

{{ _('My Statistics') }}

{% if user.role == 'player' %}

{{ user.tryout_registrations.count() }}

{{ _('Tryouts Registered') }}

{{ user.team_assignments.count() }}

{{ _('Team Assignments') }}

{% elif user.can_evaluate() %}

{{ user.evaluations_given.count() }}

{{ _('Evaluations Given') }}

{% else %}

{{ _('No statistics available for this role.') }}

{% endif %}
{% if user.role == 'player' %}

{{ _('My Contracts') }}

{% if contracts %}
Contracts Pending {% set pending = contracts | selectattr('status', 'equalto', 'pending') | list %} {{ pending | length }}
Contracts Signed {% set signed = contracts | selectattr('status', 'equalto', 'signed') | list %} {{ signed | length }}
{% else %}

{{ _('No contracts have been uploaded for you yet.') }}

{% endif %}
{% endif %} {% if user.role == 'player' %}

{{ _('My Disponibilities') }}

{{ _('Select your available time blocks for matches (5pm to 12am). Green = selected, Gray = available to select.') }}

{{ _('Loading...') }}

{% endif %} {% if user.role == 'coach' %}

{{ _('My Coaching Availability') }}

{{ _('Select time slots when you\'re available for One on One sessions (8am to 10pm).') }}

{{ _('Loading availability grid...') }}

{% endif %}
{% endblock %} {% block scripts %} {% if user.role == 'coach' %} {% endif %} {% if user.role == 'player' %} {% endif %} {% endblock %}