@inherits ComponentBase

@*@if (CustomerEntity is not null)
{
    <MudNavLink Icon="@Icons.Material.Outlined.Business" Href="@Navigation.Management.Customers.DetailsHref(CustomerEntity.DocumentId.ToString())" Class="pl-2">
        @CustomerEntity.Name
    </MudNavLink>
}*@

@if (HostEntity is not null)
{
    <MudNavLink Icon="@Icons.Material.Outlined.Devices" IconColor="Color.Inherit" Href=@Navigation.Management.Hosts.DetailsHref(Id) Match="NavLinkMatch.All" Class="pl-3">
        @HostEntity.Name
    </MudNavLink>
}

<div class="mt-3">
    <MudNavGroup Title="Actions">
        <MudNavLink Href=@Navigation.Management.Hosts.Actions.Console.IndexHref(Id) Match="NavLinkMatch.Prefix">Console</MudNavLink>
    </MudNavGroup>
</div>

<div class="mt-1">
    <MudNavGroup Title="Inventory">
        <MudNavGroup Title="System">
            <MudNavLink Href=@Navigation.Management.Hosts.Systems.Os.DetailsHref(Id) Match="NavLinkMatch.Prefix">Os</MudNavLink>
            <MudNavGroup Title="Updates">
                <MudNavLink Href=@Navigation.Management.Hosts.Systems.Updates.Installed.IndexHref(Id) Match="NavLinkMatch.Prefix">Installed</MudNavLink>
                <MudNavLink Href=@Navigation.Management.Hosts.Systems.Updates.Pending.IndexHref(Id) Match="NavLinkMatch.Prefix">Pending</MudNavLink>
            </MudNavGroup>
            <MudNavLink Href=@Navigation.Management.Hosts.Systems.Sessions.IndexHref(Id) Match="NavLinkMatch.Prefix">Sessions</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Systems.Software.IndexHref(Id) Match="NavLinkMatch.Prefix">Software</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Systems.Services.IndexHref(Id) Match="NavLinkMatch.Prefix">Services</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Systems.Printers.IndexHref(Id) Match="NavLinkMatch.Prefix">Printers</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Systems.Volumes.IndexHref(Id) Match="NavLinkMatch.Prefix">Volumes</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Systems.Users.IndexHref(Id) Match="NavLinkMatch.Prefix">Users</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Systems.Groups.IndexHref(Id) Match="NavLinkMatch.Prefix">Groups</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Systems.StoragePools.IndexHref(Id) Match="NavLinkMatch.Prefix">Storage Pools</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Systems.VirtualMaschines.IndexHref(Id) Match="NavLinkMatch.Prefix">Virtual Maschines</MudNavLink>
        </MudNavGroup>
        <MudNavGroup Title="Network">
            <MudNavLink Href=@Navigation.Management.Hosts.Network.Interfaces.IndexHref(Id) Match="NavLinkMatch.Prefix">Interfaces</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Network.Addresses.IndexHref(Id) Match="NavLinkMatch.Prefix">Addresses</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Network.Nameservers.IndexHref(Id) Match="NavLinkMatch.Prefix">Nameservers</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Network.Gateways.IndexHref(Id) Match="NavLinkMatch.Prefix">Gateways</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Network.Routes.IndexHref(Id) Match="NavLinkMatch.Prefix">Routes</MudNavLink>
        </MudNavGroup>
        <MudNavGroup Title="Hardware">
            <MudNavLink Href=@Navigation.Management.Hosts.Hardware.Mainboard.DetailsHref(Id) Match="NavLinkMatch.Prefix">Mainboard</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Hardware.Processors.DetailsHref(Id) Match="NavLinkMatch.Prefix">Processors</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Hardware.Memory.IndexHref(Id) Match="NavLinkMatch.Prefix">Memory</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Hardware.Drives.IndexHref(Id) Match="NavLinkMatch.Prefix">Drives</MudNavLink>
            <MudNavLink Href=@Navigation.Management.Hosts.Hardware.Videocards.IndexHref(Id) Match="NavLinkMatch.Prefix">Videocards</MudNavLink>
        </MudNavGroup>
    </MudNavGroup>
</div>

<div class="mt-1">
    <MudNavLink Href=@Navigation.Management.Hosts.LogsHref(Id) Match="NavLinkMatch.Prefix">Logs</MudNavLink>
</div>