V
V raja

Admin UI Template

MudBlazor Admin Dashboard that provides sidebar navigation, summary cards and a MudTable orders list with colored status chips. Uses MudBlazor layout components (MudDrawer, MudAppBar) and responsive MudGrid.

LIVE DEMO
Generated using Instruct UI - An AI for Blazor UI Generation
## What's implemented - App shell with MudAppBar, persistent MudDrawer navigation and MudNavMenu links. - Summary stat cards built with MudPaper and icons for quick metrics. - Orders list displayed with MudTable (RowTemplate) and MudChip status indicators. - Breadcrumbs, profile menu (MudMenu), and providers: MudDialogProvider and MudSnackbarProvider. - Chart placeholder area for analytics and a responsive MudGrid layout. ## Key components - MudLayout, MudAppBar, MudDrawer, MudMainContent - MudNavMenu, MudNavLink, MudBreadcrumbs - MudGrid, MudItem, MudPaper, MudIconButton - MudTable<T> with HeaderContent and RowTemplate - MudChip for status, MudMenu and MudAvatar - MudDialogProvider, MudSnackbarProvider, MudThemeProvider ## How it works - Page populates a local List<OrderViewModel> in OnInitialized and binds it to MudTable via Items. - MudTable RowTemplate uses @context to render columns (Id, CustomerName, Amount, Status, Date). - Status color is derived from GetStatusColor(string) returning a MudBlazor Color enum and applied to MudChip. - Drawer open state is two-way bound via @bind-Open to a private _drawerOpen field and toggled by ToggleDrawer(). - Navigation uses MudNavLink Href values; no backend calls or navigation guards are wired in this snippet. ## Styling - Uses MudBlazor theming and helper classes (pa-4, d-flex, mx-auto, mr-4) rather than Tailwind or Bootstrap utilities. - Responsive layout uses MudGrid/MudItem breakpoints (xs, sm, md) for cards and table/chart columns. - Visual elements rely on MudBlazor components and theme colors for consistency. ## Reuse steps 1. Add the MudBlazor NuGet package and import the MudBlazor namespace in _Imports.razor. 2. In Program.cs register MudBlazor services: builder.Services.AddMudServices(); 3. Ensure MudBlazor CSS is referenced in index.html/_Host and wrap app with MudThemeProvider, MudDialogProvider and MudSnackbarProvider. 4. Copy the AdminTemplate.razor and OrderViewModel, adjust namespaces and routing as needed. 5. Replace sample OnInitialized data with injected services (e.g., IOrderService) and implement paging/filtering or dialogs for edits. ## Limitations & next steps - This is a single-page UI generated by Instruct UI with in-memory sample data; persistence, authentication and API integration are not included. - MudTable here is static: add server-side paging, sorting and filtering for large datasets. - Chart area is a placeholder; integrate a chart component or library and bind real analytics data. - Add edit/detail dialogs, role-based authorization and error handling to complete admin workflows.