@props([
'label',
'value',
'meta' => null,
'href' => null,
'tone' => null, // danger|success|warning
])
@php
$valueClass = match ($tone) {
'danger' => 'text-[var(--color-danger)]',
'success' => 'text-[var(--color-success)]',
'warning' => 'text-[var(--color-warning)]',
default => '',
};
@endphp
@if($href)
merge(['class' => 'crm-stat block']) }}>