LocalGovIMS_localgov-ims/src/Admin/Views/Import/_EventLogList.cshtml
@model List<Admin.Models.Import.EventLogViewModel>

@if (Model.Any())
{
    <div class="table-responsive">
        <table class="table table-striped table-bordered mt-2">
            <thead>
                <tr>
                    <th scope="col">
                        Created date
                    </th>
                    <th scope="col">
                        Type
                    </th>
                    <th scope="col">
                        Message
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td style="min-width:175px;">
                            @item.CreatedDate
                        </td>
                        <td>
                            @item.Type
                        </td>
                        <td>
                            @item.Message
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
}
else
{
    <div class="alert alert-info my-3">
        <p class="mb-0">
            There are no event log entries to display
        </p>
    </div>
}

