@using Core.Entities @model Tuple @{ ViewData["Title"] = "Student Handout Page"; } @foreach (var s in Model.Item1.OrderBy(n => n.FirstName)) {

@DateTime.Today.ToShortDateString()

TSA teams and events: @s.FirstNameLastName

@foreach (var team in s.Teams.OrderByDescending(t => t.Event.Format == EventFormat.Team) .ThenByDescending(t => t.Event.LevelOfEffort) .ThenByDescending(t => t.Name)) { var evt = team.Event;
@if (evt.RegionalEvent) {
Regional Event
}
@evt.Name   @Html.Partial("EffortStarsPartial", evt.LevelOfEffort)
@if (evt.Format is EventFormat.Team) { Teammates
@string.Join(", ", team.Students.OrderByDescending(s => s.Grade + s.TsaYear).ThenBy(s => s.FirstName).Where(tm => tm != s).Select(tm => tm.FirstName)) } else { @evt.Format }
@evt.SemifinalistActivity @if (evt.StatePresubmission) {, State Presubmission due March 14th} @if (evt.StatePretesting) {, State Pre-testing April 2nd} @if (evt.StatePreliminaryRound) {, State Preliminary and Semifinalist Rounds}
@evt.Description
@if (!string.IsNullOrEmpty(evt.Theme)) {
Theme for 2024-25:
@evt.Theme
} @if (!string.IsNullOrEmpty(evt.Documentation)) {
Materials:
@evt.Documentation
}
}
}