@using System.Linq @model EloWeb.Models.Player @{ ViewBag.Title = "Details"; Layout = "~/Views/Shared/_Layout.cshtml"; }

@Model.Name

Rating

Current Last Change Lowest Highest
@Model.Rating @Model.RatingChange @Model.MinRating @Model.MaxRating

Form

Recent Win Rate Current Consecutive Wins Most Consecutive Wins
@Model.Form @Model.WinRate% @Model.CurrentWinningStreak @Model.LongestWinningStreak

Games Won

@foreach (var opponent in Model.MostWinsAgainst) { }
@Html.ActionLink(opponent.Key, "Details", "Players", new { name = opponent.Key }, null) (@opponent.Count())

Games Lost

@foreach (var opponent in Model.MostLossesTo) { }
@Html.ActionLink(opponent.Key, "Details", "Players", new { name = opponent.Key }, null) (@opponent.Count())