@model ProviderViewModel
<h2>Provider Organizations</h2>
<div class="row">
    <div class="col-sm">
        <div class="table-responsive">
            <table class="table table-striped table-hover">
                <thead>
                    <tr>
                        <th>Name</th>
                    </tr>
                </thead>
                <tbody>
                    @if (!Model.ProviderOrganizations.Any())
                    {
                        <tr>
                            <td colspan="6">No results to list.</td>
                        </tr>
                    }
                    else
                    {
                        @foreach (var org in Model.ProviderOrganizations)
                        {
                            <tr>
                                <td class="align-middle">
                                    <a asp-controller="Organizations" asp-action="Edit"
                                asp-route-id="@org.OrganizationId">@org.OrganizationName</a>
                                </td>
                            </tr>
                        }
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
