@props([ 'label' => '', 'value' => '', 'icon' => 'bi-graph-up', 'tone' => 'primary', // primary | success | warning | danger | info | neutral 'sub' => null, // small caption under the value 'meta' => [], // ['Label' => 'value', ...] rendered in the footer 'href' => null, ]) @php $tag = $href ? 'a' : 'div'; @endphp <{{ $tag }} @if ($href) href="{{ $href }}" @endif {{ $attributes->merge(['class' => 'stat-card stat-card--' . $tone]) }}>