LocalGovIMS_localgov-ims/src/Admin/Views/Shared/_BasicList.cshtml
@model Admin.Models.Shared.BasicListViewModel

@if (Model.Items != null && Model.Items.Any())
{
    <div class="table-responsive">
        <table class="table table-striped table-bordered mt-2">
            <thead>
                <tr>
                    <th scope="col">
                        @Model.ColumnTitle
                    </th>
                </tr>
            </thead>

            @foreach (var item in Model.Items)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(m => item)
                    </td>
                </tr>
            }

        </table>
    </div>
}
else
{
    <div class="alert alert-info my-3">
        <p class="mb-0">
            @Model.NoItemsMessage
        </p>
    </div>
}
