| | 1 | | @using Syki.Front.Components.Indexes |
| | 2 | |
|
| | 3 | | @namespace Syki.Front.Features.Academic.GetAcademicInsights |
| | 4 | |
|
| | 5 | | <MudContainer Class="my-4 px-4"> |
| | 6 | | <MudText Typo="Typo.h4" Style="font-weight: bold" Class="ml-4"> |
| | 7 | | <MudIcon Icon="@Icons.Material.Filled.Insights" Class="mr-1 mb-n1" Size="Size.Large"/> |
| | 8 | | Insights |
| | 9 | | </MudText> |
| | 10 | | <MudAlert Class="mt-4" Severity="Severity.Normal" NoIcon="true" Variant="Variant.Text" Elevation="1"> |
| | 11 | | <MudStack Row="true" Justify="Justify.SpaceAround"> |
| | 12 | | <MudText>Aqui você encontra dados consolidados sobre a sua instituição, atualizados em tempo real!</MudText> |
| | 13 | | </MudStack> |
| | 14 | | </MudAlert> |
| | 15 | | <MudGrid Class="pt-4" Spacing="4"> |
| | 16 | | <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.GroupWork" Value="@_data.Campus" Text="Campus" /> |
| | 17 | | <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.Class" Value="@_data.Courses" Text="Cursos" /> |
| | 18 | | <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.Apps" Value="@_data.Disciplines" Text="Disciplinas" |
| | 19 | | <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.AccountTree" Value="@_data.CourseCurriculums" Text=" |
| | 20 | | <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.PlaylistAddCheck" Value="@_data.CourseOfferings" Tex |
| | 21 | | <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.CenterFocusStrong" Value="@_data.Classes" Text="Turm |
| | 22 | | <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.Person4" Value="@_data.Teachers" Text="Professores" |
| | 23 | | <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.People" Value="@_data.Students" Text="Alunos" /> |
| | 24 | | <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.NotificationsNone" Value="@_data.Notifications" Text |
| | 25 | | </MudGrid> |
| | 26 | | </MudContainer> |
| | 27 | |
|
| | 28 | | @inject GetAcademicInsightsClient Client |
| | 29 | |
|
| | 30 | | @code |
| | 31 | | { |
| | 32 | | private bool _loading; |
| 0 | 33 | | private AcademicInsightsOut _data = new(); |
| | 34 | |
|
| | 35 | | protected override async Task OnInitializedAsync() |
| | 36 | | { |
| 0 | 37 | | _loading = true; |
| 0 | 38 | | _data = await Client.Get(); |
| 0 | 39 | | _loading = false; |
| 0 | 40 | | } |
| | 41 | | } |