<div class="mt-7">
    <MudContainer MaxWidth="MaxWidth.ExtraExtraLarge">
        <MudGrid>
            <MudItem xs="12" sm="6" md="6">
                <p><b>Current Session</b></p>
                <p> @SessionHandler.State.Id</p>
                <br />
                <p><b>Current Authenticated</b></p>
                <p> @SessionHandler.State.Authenticated</p>
                <br />
                <p><b>Current User</b></p>
                <p> @SessionHandler.State.Username</p>
                <br />
                <p><b>Active User Sessions</b></p>
                @{
                    foreach (var cs in SessionPool.Sessions.Where(p => p.Value.Connected && p.Value.Username == SessionHandler.State.Username))
                    {
                        <p>@($"{cs.Key} ({cs.Value?.Username})")</p>
                    }
                }
            </MudItem>
            <MudItem xs="12" sm="6" md="6">
                <p><b>All Sessions</b></p>
                @{
                    foreach (var cs in SessionPool.Sessions)
                    {
                        <p>@($"{cs.Key} ({cs.Value?.Username})")</p>
                    }
                }
                <br />
                <p><b>Active Sessions</b></p>
                @{
                    foreach (var cs in SessionPool.Sessions.Where(p => p.Value.Connected))
                    {
                        <p>@($"{cs.Key} ({cs.Value?.Username})")</p>
                    }
                }
                <br />
                <p><b>Starving Sessions</b></p>
                @{
                    foreach (var cs in SessionPool.Sessions.Where(p => p.Value.Connected is false))
                    {
                        <p>@($"{cs.Key} ({cs.Value?.Username})")</p>
                    }
                }
            </MudItem>
        </MudGrid>
        @HttpContextAccessor.HttpContext?.Connection?.RemoteIpAddress;
    </MudContainer>
</div>