@props([ 'label', // The figure, and the unit that follows it in lighter weight — "235" and // "/ 500 GB" read as one measurement rather than as two numbers. 'value', 'unit' => null, 'foot' => null, // A chevron to the page that explains the figure. Omitted where there is // no such page: a chevron that goes nowhere is worse than none. 'href' => null, ]) {{-- One metric card, exactly as the approved template draws it: small caps label with an optional chevron, the figure in tabular monospace with its unit beside it, a line of context underneath, and the visual on the right. The visual is a slot so the card does not have to know whether it is a ring, a bar or a sparkline — and so a metric with nothing to draw simply passes none instead of getting a decorative one. --}}
merge(['class' => 'overflow-hidden rounded-lg border border-line bg-surface px-5 py-[18px] shadow-xs']) }}>
{{ $label }} @if ($href) @endif

{{ $value }} @if ($unit){{ $unit }}@endif

@if ($foot)

{{ $foot }}

@endif
@isset($visual)
{{ $visual }}
@endisset
{{ $slot }}