@inherits ComponentBase

<TableContainer T="ViewModel"
                @ref="Container"
                @bind-Search="Search"
                Title="@Title"
                Breadcrumbs="@Breadcrumbs"
                Data="LoadDataAsync">
    <Header>
        <MudTh>
            <MudTableSortLabel SortLabel="Customer" T="ViewModel">
                Customer
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Host" T="ViewModel">
                Host
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Domain" T="ViewModel">
                Domain
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="LocalAccount" T="ViewModel">
                Local
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Disabled" T="ViewModel">
                Disabled
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Status" T="ViewModel">
                Status
            </MudTableSortLabel>
        </MudTh>
    </Header>
    <RowTemplate>
        <MudTd DataLabel="Customer">
            <MudLink Href="@Navigation.Management.Customers.DetailsHref(@context?.Customers?.Id)" Typo="Typo.inherit" Underline="Underline.None">
                @context?.Customers?.Name
            </MudLink>
        </MudTd>
        <MudTd DataLabel="Host">
            <MudLink Href="@Navigation.Management.Hosts.DetailsHref(@context?.Hosts?.Id)" Typo="Typo.inherit" Underline="Underline.None">
                @context?.Hosts?.Name
            </MudLink>
        </MudTd>
        <MudTd DataLabel="Domain">
            @context?.Domain
        </MudTd>
        <MudTd DataLabel="LocalAccount">
            <MudCheckBox Checked="@context?.LocalAccount" Disabled DisableRipple />
        </MudTd>
        <MudTd DataLabel="Disabled">
            <MudCheckBox Checked="@context?.Disabled" Disabled DisableRipple />
        </MudTd>
        <MudTd DataLabel="Status">
            @{
                var color = context?.Status == "OK" ? Color.Success : Color.Error;
                <MudText Color="color" Typo="Typo.inherit">
                    @context?.Status
                </MudText>
            }
        </MudTd>
    </RowTemplate>
</TableContainer>