@using Indotalent.ConfigBackEnd.Extensions @using Indotalent.ConfigBackEnd.Interfaces @using Indotalent.Infrastructure.Authentication @using Indotalent.Infrastructure.Authorization.Identity @using Indotalent.Shared.Consts @using Microsoft.AspNetCore.Components.Authorization @inherits LayoutComponentBase @inject NavigationManager NavigationManager @inject ICurrentUserService CurrentUserService Profile Change Tenant Logout @if (_drawerOpen) { @GlobalConsts.AppInitial } @* Member & Tenant Admin & Admin *@ @(_drawerOpen ? "Home" : "") @(_drawerOpen ? "Profile" : "") @(_drawerOpen ? "Change Tenant" : "") @(_drawerOpen ? "Pipeline" : "") @(_drawerOpen ? "Third Party" : "") @(_drawerOpen ? "Sales" : "") @(_drawerOpen ? "Purchase" : "") @(_drawerOpen ? "Inventory" : "") @(_drawerOpen ? "Utilities" : "") @* Tenant Admin Only *@ @(_drawerOpen ? "App Settings" : "") @* Admin Only *@ @(_drawerOpen ? "Multitenant" : "") @(_drawerOpen ? "System Logs" : "") @(_drawerOpen ? "System Settings" : "") @Body @code { private bool _drawerOpen = true; private void DrawerToggle() => _drawerOpen = !_drawerOpen; private void GoToProfile() => NavigationManager.NavigateTo("/profile"); private void GoToTenantSelection() => NavigationManager.NavigateTo("/account/tenant-selection"); private void Logout() => NavigationManager.NavigateTo("/account/logout"); }