@model Watcher.ViewModels.ContainerOverviewViewModel
@{
    ViewData["Title"] = "Containerübersicht";
}

<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
    @foreach (var server in Model.Servers)
    {
        <div class="bg-white shadow-md rounded-xl p-5 border border-gray-200 hover:shadow-lg transition duration-200">
            <h2 class="text-xl font-semibold mb-1">@server.Name</h2>
        </div>

        <div class="bg-white">
            @if (Model.Containers.Count > 0)
            {
                <table>
                    @foreach (var container in Model.Containers)
                    {
                        <tr>test</tr>
                        if (container.HostServer.Equals(server.Name))
                        {

                        }
                    }
                </table>
            } else
            {
                <p> keine Container gefunden </p>
            }
            
        </div>
    }
</div>

