<% if upcoming_matches.size > 0 %>

<%= t('widget.schedule') %>

<% upcoming_matches.group_by{ |e| e.start.month }.each do |month, events| %> <% events.group_by { |e| e.start.day }.each do |day, day_events| %>
<%= day_events.first.start.strftime("%A, %e %B") %>
<% day_events.each do |event| %>

<%= event.start.strftime("%H:%M %Z") %> <%= event.formatted_summary %>

<% end %> <% end %> <% end %>
<% end %>