@model IEnumerable<RdvQuery>

@{
    ViewData["Title"] = "Index";
}

<h2>Index</h2>

<table class="table">
    <tr>
        <th>
            DateCreated"]
        </th>
        <th>
            EventDate"]
        </th>
        <th>
            Location"]
        </th>
        <th>
            Client"]
        </th>
        <th>
            Performer"]
        </th>
        <th>
            ValidationDate"]
        </th>
        <th></th>
    </tr>
    
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.DateCreated)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EventDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Location.Address)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Client.UserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PerformerProfile.Performer.UserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ValidationDate)
        </td>
        <td>
            <a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
            <a asp-action="Details" asp-route-id="@item.Id">Details</a> |
            <a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
        </td>
    </tr>
}
</table>
