@props(['icon', 'label', 'value', 'caption' => null, 'max' => null, 'tone' => 'brand', 'href' => null]) {{-- Port of components/premium/kpi-card.tsx: surface-interactive, icon tile, label, big number, optional progress bar and caption. --}} @php $tones = ['brand' => 'bg-info-soft text-primary', 'success' => 'bg-success-soft text-success', 'warning' => 'bg-warning-soft text-warning', 'neutral' => 'bg-muted text-muted-foreground']; $tag = $href ? 'a' : 'div'; @endphp <{{ $tag }} @if ($href) href="{{ $href }}" @endif {{ $attributes->class(['surface-interactive flex h-full flex-col gap-2.5 p-3.5 sm:p-4', 'outline-none focus-visible:ring-2 focus-visible:ring-ring' => (bool) $href]) }}>

{{ $label }}

{{ $value }}

@if ($caption || $max !== null)
@if ($max !== null)
@endif @if ($caption)

{{ $caption }}

@endif
@endif