@using Microsoft.AspNetCore.Mvc.TagHelpers
@model IEnumerable<Domain.Player>

@{
    ViewData["Title"] = "View";
}

<h1>View</h1>

@*<p>
    <a asp-action="Create">Create New</a>
    </p>*@

<table class="table">
    <thead>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Id)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Experience)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CC)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CT)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.F)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.E)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AG)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.INT)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PER)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FM)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SOC)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MF)
        </th>
        <th></th>
    </tr>
    </thead>
    <tbody>
    @foreach (var item in Model)
    {
        <tr>

            <td>
                <a type="submit" asp-action="PlayerDetails" asp-controller="Player" class="btn-info" asp-route-id="@item.Id">@item.Id</a>
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Experience)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CC)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CT)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.F)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.E)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.AG)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.INT)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.PER)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.FM)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SOC)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.MF)
            </td>
            @*<td>
                    @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
                    @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
                    @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
                    </td>*@
        </tr>
    }
    </tbody>
</table>