@props(['label', 'value', 'href' => null, 'hint' => null, 'tone' => 'indigo', 'compact' => false]) @php $iconClasses = match ($tone) { 'emerald' => 'bg-emerald-50 text-emerald-600 ring-emerald-100', 'amber' => 'bg-amber-50 text-amber-600 ring-amber-100', 'violet' => 'bg-accent-50 text-accent-600 ring-accent-100', default => 'bg-brand-50 text-brand-600 ring-brand-100', }; @endphp <{{ $href ? 'a' : 'div' }} @if ($href) href="{{ $href }}" @endif {{ $attributes->merge(['class' => 'flex items-center rounded-2xl bg-white shadow-raised transition duration-150 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 '.($compact ? 'gap-3 p-4 ' : 'gap-4 p-6 ').($href ? 'hover:-translate-y-0.5' : '')]) }}>
{{ $icon }}
{{ $label }}
{{ $value }}
@if ($hint)
{{ $hint }}
@endif