PlanTempusApp/PlanTempus.Application/Features/Dashboard/Components/StatCard/Default.cshtml

17 lines
541 B
Text
Raw Normal View History

@model PlanTempus.Application.Features.Dashboard.Components.StatCardViewModel
<swp-stat-card data-key="@Model.Key" class="@Model.Variant">
<swp-stat-value>@Model.Value</swp-stat-value>
<swp-stat-label>@Model.Label</swp-stat-label>
@if (Model.HasTrend)
{
<swp-stat-trend class="@Model.TrendDirection">
@if (!string.IsNullOrEmpty(Model.TrendIcon))
{
<i class="ph @Model.TrendIcon"></i>
}
@Model.TrendText
</swp-stat-trend>
}
</swp-stat-card>