@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
}