@model pointMaster.Controllers.HomePageViewModel
@{
    ViewData["Title"] = "Home Page";
}

<div>
    <h1>Velkommen til PointMaster</h1>
</div>
<div class="container">
    <div class="row">
        <div class="col-sm">
            <h3>Point</h3>
            <table class="table table-striped">
                <thead>
                    <tr>
                        <th></th>
                        <th>Patrulje</th>
                        <th>Point</th>
                    </tr>
                </thead>
                <tbody>
                    @for (var i = 0; i < Model.Points.Count; i++)
                    {
                            <tr>
                                <td>@(i + 1)</td>
                                <td>@Model.Points[i].Patrulje.Name</td>
                                <td>@Model.Points[i].point</td>
                            </tr>
                    }
                </tbody>
            </table>
        </div>
        <div class="col-sm">
            <h3>Samlet</h3>
            <table class="table table-striped">
                <thead>
                    <tr>
                        <th></th>
                        <th>Patrulje</th>
                        <th>Point</th>
                    </tr>
                </thead>
                <tbody>
                    @for (var i = 0; i < Model.Samlet.Count; i++)
                    {
                        <tr>
                            <td>@(i+1)</td>
                            <td>@Model.Samlet[i].Patrulje.Name</td>
                            <td>@Model.Samlet[i].point</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
        <div class="col-sm">
            <h3>Turnout</h3>
            <table class="table table-striped">
                <thead>
                    <tr>
                        <th></th>
                        <th>Patrulje</th>
                        <th>Point</th>
                    </tr>
                </thead>
                <tbody>
                    @for (var i = 0; i < Model.Turnout.Count; i++)
                    {
                            <tr>
                                <td>@(i + 1)</td>
                                <td>@Model.Turnout[i].Patrulje.Name</td>
                                <td>@Model.Turnout[i].point</td>
                            </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
