@{
    ViewBag.Title = "Soupiska";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Soupiska</h2>

<table>
    <tr>
        <th>Č</th>
        <th>Jméno</th>
        <th>Narozen</th>
        <th>Z</th>
        <th>Min.</th>
        <th>G</th>
        <th>ŽK</th>
        <th>ČK</th>
    </tr>

@foreach (var item in ViewBag.squad)
{
    <tr>
        <td>@item.number</td>
        <td><a href="/Player/Stats/@item.playerID">@item.name</a></td>
        <td>@item.born</td>
        <td>@item.matches</td>
        <td>@item.minutes</td>
        <td>@item.goals</td>
        <td>@item.yellowCards</td>
        <td>@item.redCards</td>
    </tr>
    
}

</table>
