MatchStandings.razor
@using Sandbox
@using Sandbox.UI
@using PaintballBaddies
@inherits Panel
@namespace PaintballBaddies
<root>
@if(Match.IsValid())
{
    <div class="table-heading"><label>PLAYER</label><label>TYPE</label><label>@(Survival ? "KILLS" : "HITS")</label><label>@(Survival ? "HEADSHOTS" : Cooperative ? "TARGETS" : "TAKEN")</label>@if(Survival){<label>DOWNED</label>}<label>POINTS</label></div>
    @foreach(var row in Match.Standings)
    {
        <div class="standing-row @(row.IsAi ? "ai" : "human") @(row.IsPlayer ? "you" : "")">
            <label>@(Match.RankOf(row)). @row.Name @(row.IsPlayer ? "(YOU)" : "")</label>
            <label class="board-type">@(row.IsAi ? "AI" : "PLAYER")</label><label>@(Survival ? row.SausageKills : row.Landed)</label><label>@(Survival ? row.HeadshotKills : row.PopRiot ? row.Carried : row.Received)</label>@if(Survival){<label>@row.Downs</label>}<label class="points">@row.Points</label>
        </div>
    }
}
</root>
@code {
    public ArenaMatch Match {get;set;}
    public bool Cooperative {get;set;}
    bool Survival=>Match?.Standings.Any(x=>x.Survival)==true;
    protected override int BuildHash()=>System.HashCode.Combine(Match?.StandingsHash,Cooperative);
}