<%= player.name %>'s Schedule

Upcoming Matches

<% if upcoming_matches.any? %>
<% upcoming_matches.each do |match| %>
<%= match[:date]&.strftime('%a, %b %d') || 'TBD' %> <%= match[:date]&.strftime('%I:%M %p') %>
<%= match[:player_team].map { |p| p[:name] }.join(' + ') %>
vs
<%= match[:opponent_team].map { |p| p[:name] }.join(' + ') %>
<% end %>
<% else %>

No upcoming matches scheduled.

<% end %>

Active Tournaments

<% if active_tournaments.any? %>
<% active_tournaments.each do |tournament| %>

<%= tournament[:name] %>

<%= tournament[:format].capitalize %> Tournament

<%= tournament[:status].capitalize %>
<% end %>
<% else %>

No active tournaments.

<% end %>

Tournament Schedule

<% if tournament_schedule.any? %>
<% tournament_schedule.each do |schedule| %>

<%= schedule[:tournament][:name] %>

<% schedule[:rounds].each do |round| %>
Round <%= round[:round_number] %> <%= round[:status] %>
<% end %>
<% end %>
<% else %>

No tournament schedule available.

<% end %>

Back to Profile