@using Expedience.Infrastructure.Models;
@using Expedience.Web.Extensions;
@{
@model IEnumerable<ContentTypeRecord>
}

<table id="dutyTable" class="table table-dark table-striped" data-toggle="table">
	<thead>
		<tr>
			<th></th>
			<th colspan="2">Party</th>
			<th colspan="2">Solo</th>
		</tr>
		<tr>
			<th data-sortable="true">Treasure Dungeon</th>
			<th data-sortable="true" data-sorter="durationSorter">Min</th>
			<th data-sortable="true" data-sorter="durationSorter">Avg</th>
			<th data-sortable="true" data-sorter="durationSorter">Min</th>
			<th data-sortable="true" data-sorter="durationSorter">Avg</th>
		</tr>
	</thead>
	<tbody>
		@foreach (var record in Model)
		{
			<tr>
				<td>@record.ContentName</td>
				<td><a href="./normal/@record.TerritoryId">@record.MinParty.Format()</a></td>
				<td>@record.AvgParty.Format()</td>
				<td><a href="./solo/@record.TerritoryId">@record.MinSolo.Format()</a></td>
				<td>@record.AvgSolo.Format()</td>
			</tr>
		}
	</tbody>
</table>