@using Microsoft.AspNetCore.Authorization

@inherits LayoutComponentBase
@layout CouchLog.Components.Layout.MainLayout

@attribute [Authorize(Roles = "Admin")]

<MudText Typo="Typo.h1">Manage CouchLog</MudText>

<MudContainer MaxWidth="MaxWidth.False" Class="pa-4">
    <MudGrid>
        <MudItem xs="12" md="3" lg="2">
            <MudNavMenu>
                <MudNavLink Href="/AdminSettings/CouchLogSettings"
                            Icon="@Icons.Material.Filled.Settings">
                    CouchLog Settings
                </MudNavLink>

                <MudNavLink Href="/AdminSettings/UserManagement"
                            Match="NavLinkMatch.All"
                            Icon="@Icons.Material.Filled.People">
                    User Management
                </MudNavLink>
            </MudNavMenu>
        </MudItem>

        <MudItem xs="12" md="9" lg="10">
            @Body
        </MudItem>
    </MudGrid>
</MudContainer>