@model IEnumerable<PantheonApi.Data.DbModels.Pantheon.tPA_SyncServer>

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

<h2>Cashiers</h2>

<div class="table-responsive">
    <table class="table table-hover table-striped">
        <tr>
            <th>
                Device ID
            </th>
            <th>
                Doc type
            </th>
            <th>
                Server
            </th>
            <th>
                Database
            </th>
            <th>
                DB version
            </th>
            <th>
                WIN service version
            </th>
            <th>
                Last sync start
            </th>
            <th>
                Last sync status
            </th>
            <th></th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.anQId)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.acDocType)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.acServerName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.acDatabaseName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.acDatabaseVersion)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.acWinServiceVersion)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.adStarted)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.acStatus)
                </td>
                <td>
                    @Html.ActionLink("Sync status", "SyncStatus", new { deviceId = item.anQId })
                </td>
            </tr>
        }
    </table>

</div>