@model TournamentDto @{ ViewData["Title"] = Model.Name; var eventLevels = ViewBag.EventLevels as IEnumerable; var events = ViewBag.Events as IEnumerable; var levels = ViewBag.Levels as IEnumerable; } @{ var statusClass = Model.Status switch { TournamentStatus.Draft => "bg-secondary", TournamentStatus.Registration => "bg-info", TournamentStatus.InProgress => "bg-primary", TournamentStatus.Completed => "bg-success", _ => "bg-dark" }; }

@Model.Name @Model.Status @if (Model.IsArchived) { Archived }

@Model.StartDate.ToString("MMMM d") - @Model.EndDate.ToString("MMMM d, yyyy")

@if (Model.Status == TournamentStatus.Draft) {
} @if (Model.Status == TournamentStatus.Registration) {
} @if (Model.Status == TournamentStatus.InProgress) {
} @if (Model.Status == TournamentStatus.Completed) {
} Edit @if (!Model.IsArchived) {
} else {
}
Event Levels
@if (eventLevels != null && eventLevels.Any()) { @foreach (var tel in eventLevels) { }
EventLevelRegistrationsWaiverActions
@tel.EventName @tel.EventLevelName @tel.RegistrationCount registrations
@{ var scoringController = tel.Category switch { EventCategory.Field => "FieldEvent", EventCategory.HighJump => "HighJump", _ => "TrackEvent" }; } Scoring
} else {

No event levels configured. Add event levels using the form.

}
Add Event Level