@page "/"
@page "/Home"
@page "/dashboard"
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.Authorization
@using TaskTrackingSystem.Shared.Enums
@using TaskTrackingSystem.Shared.Models.Project
@using TaskTrackingSystem.Shared.Models.Task
@using TaskTrackingSystem.Shared.Models.User
@using TaskTrackingSystem.Shared.Models.Dashboard
@rendermode @(new InteractiveServerRenderMode(prerender: false))
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
@inject ApiClientService ApiClient
@inject IJSRuntime JS
@inject AuthenticationStateProvider AuthStateProvider
@inject MenuAuthorizationService MenuAuthorization
@inject NavigationManager NavigationManager
@AppLocalization.Text("dashboard.overview", "Overview")
@AppLocalization.Text("dashboard.adminIntro", "Projects, users, and team progress at a glance.")
@AppLocalization.Text("dashboard.projectActivityDesc", "Active vs completed tasks per month.")
@AppLocalization.Text("dashboard.projectsSnapshot", "A quick snapshot of the current project list.")
@Content.GetProjectName(project)
@GetProjectBadgeLabel(project)@DisplayFormats.Date(project.StartDate) - @DisplayFormats.Date(project.EndDate)
@AppLocalization.Text("dashboard.calendarDesc", "Today and upcoming project starts.")
@AppLocalization.Text("dashboard.projectTimelineDesc", "Browse every project in a gantt view and adjust the month window below.")