{% extends "layouts/base.html" %} {% block title %}Dashboard - TryoutPro{% endblock %} {% block page_title %}Dashboard{% endblock %} {% block breadcrumb %}Home / Dashboard{% endblock %} {% block content %}
{% if user.role == 'president' %}

{{ stats.total_users }}

Total Users

{{ stats.total_players }}

Players

{{ stats.total_tryouts }}

Total Tryouts

{{ stats.total_evaluations }}

Evaluations

{{ stats.active_tryouts }}

Active Tryouts

{{ stats.upcoming_tryouts }}

Upcoming

Recent Users

{% for u in stats.recent_users %} {% endfor %}
NameRoleJoined
{{ u.full_name }} {{ u.role }} {{ u.created_at.strftime('%m/%d/%Y') }}

Recent Tryouts

{% for t in stats.recent_tryouts %} {% endfor %}
TitleDateStatus
{{ t.title }} {{ t.date.strftime('%m/%d/%Y') }} {{ t.status }}
{% if stats.upcoming_matches %}

Upcoming Matches

{% for match in stats.upcoming_matches %} {% endfor %}
MatchTryoutDate & TimeStatus
{{ match.title }} {{ match.tryout.title }} {{ match.date.strftime('%m/%d/%Y') }} {% if match.start_time %} at {{ match.start_time.strftime('%I:%M %p') }}{% endif %} {{ match.status }}
{% endif %} {% elif user.role == 'manager' %}

{{ stats.total_tryouts }}

My Tryouts

{{ stats.active_tryouts }}

Active

{{ stats.total_evaluations }}

My Evaluations

My Tryouts

+ New Tryout
{% for t in stats.my_tryouts %} {% endfor %} {% if not stats.my_tryouts %} {% endif %}
TitleDateStatusPlayersActions
{{ t.title }} {{ t.date.strftime('%m/%d/%Y') }} {{ t.status }} {{ t.registrations.count() }} View
No tryouts yet. Create one
{% if stats.upcoming_matches %}

Upcoming Matches

{% for match in stats.upcoming_matches %} {% endfor %}
MatchTryoutDate & TimeStatus
{{ match.title }} {{ match.tryout.title }} {{ match.date.strftime('%m/%d/%Y') }} {% if match.start_time %} at {{ match.start_time.strftime('%I:%M %p') }}{% endif %} {{ match.status }}
{% endif %} {% elif user.role == 'coach' %}

{{ stats.my_evaluations }}

Evaluations Done

{{ stats.pending_evaluations }}

Pending

Recent Evaluations

{% for e in stats.my_recent_evaluations %} {% endfor %}
PlayerTryoutScoreDate
{{ e.player.full_name }} {{ e.tryout.title }} {{ e.overall_score }} {{ e.created_at.strftime('%m/%d/%Y') }}
{% elif user.role == 'player' %}

{{ stats.my_tryouts }}

My Tryouts

My Next Matches

{% if stats.next_matches %} {% for item in stats.next_matches %} {% endfor %}
TryoutMatchDate & TimeOpponent
{{ item.tryout.title }} {{ item.match.title }} {{ item.match.date.strftime('%m/%d/%Y') }} {% if item.match.start_time %} at {{ item.match.start_time.strftime('%I:%M %p') }}{% endif %} {% if item.match.match_type == 'team_vs_team' and item.team %} {% if item.match.team1_id == item.team.id %} vs {{ item.match.team2.name if item.match.team2 else 'TBD' }} {% else %} vs {{ item.match.team1.name if item.match.team1 else 'TBD' }} {% endif %} {% else %} - {% endif %}
{% else %}

No upcoming matches yet.

{% endif %}

My Registrations

{% for r in stats.my_registrations %} {% endfor %}
TryoutDateStatus
{{ r.tryout.title }} {{ r.tryout.date.strftime('%m/%d/%Y') }} {{ r.status }}
{% elif user.role == 'scout' %}

{{ stats.total_players }}

Total Players

{{ stats.total_evaluations }}

Total Evaluations

Top Rated Players

{% for player, score in stats.top_players %} {% endfor %} {% if not stats.top_players %} {% endif %}
#PlayerAvg Score
{{ loop.index }} {{ player.full_name }} {{ score }}
No evaluations yet.
{% endif %}
{% endblock %}