@props(['label', 'value', 'icon' => 'chart-bar', 'tone' => 'brand', 'href' => null, 'hint' => null]) @php($tag = $href ? 'a' : 'div') {{-- The card is a size container: the icon and chevron only appear when the card is wide enough, and the label wraps instead of being cut off, so it reads well from phones to wide screens. --}} <{{ $tag }} @if ($href) href="{{ $href }}" wire:navigate @endif {{ $attributes->class(['card group @container block p-4 sm:p-5', 'transition hover:-translate-y-0.5 hover:shadow-md hover:ring-brand-200' => $href]) }}>

{{ $label }}

{{ $value }}

@if ($hint)

{{ $hint }}

@endif
@if ($href)