@if (loading()) {
sync
Loading inventory...
}
@else if (error()) {
error_outline
{{ error() }}
}
@else {
@switch (healthClass()) {
@case ('critical') { error }
@case ('low') { warning }
@default { check_circle }
}
{{ healthLabel() }}
inventory_2
{{ totalCount() }}
Total Spools
@if (activeCount() < totalCount()) {
{{ activeCount() }} active
}
@if (hasCritical()) { error }
@else if (hasLowStock()) { warning }
@else { check_circle }
{{ lowStockCount() }}
Low Stock
@if (hasCritical()) {
{{ criticalCount() }} critical
}
payments
{{ formatCurrency(totalValue()) }}
Est. Value
@if (avgCostPerGram() !== null) {
scale
${{ avgCostPerGram()!.toFixed(2) }}/g
Avg Cost/g
}
trending_down
{{ formatWeight(totalGramsUsed()) }}
Total Used
@if (estimatedUsedValue() !== null) {
receipt_long
{{ formatCurrency(estimatedUsedValue()!) }}
Used Value
}
}