@model IEnumerable<SportsDivision.Application.DTOs.ReportDtos.RegistrationByGenderReportDto>
@{
    ViewData["Title"] = "Registration by Gender";
}

<h2>Registration by Gender</h2>
<hr />

<table class="table table-striped table-hover">
    <thead class="table-dark">
        <tr><th>Event</th><th>Level</th><th class="text-center">Male</th><th class="text-center">Female</th><th class="text-center">Total</th></tr>
    </thead>
    <tbody>
        @foreach (var r in Model)
        {
            <tr>
                <td>@r.EventName</td>
                <td>@r.EventLevelName</td>
                <td class="text-center">@r.MaleCount</td>
                <td class="text-center">@r.FemaleCount</td>
                <td class="text-center"><strong>@r.TotalCount</strong></td>
            </tr>
        }
    </tbody>
</table>

<a asp-action="Index" class="btn btn-secondary">Back to Reports</a>
