@props(['label', 'value', 'hint' => null, 'icon' => null, 'href' => null, 'tone' => 'neutral', 'coin' => false]) @php $iconTone = [ 'neutral' => 'bg-surface-3 text-fg-2', 'brand' => 'bg-brand-soft text-brand-text', 'success' => 'bg-success-soft text-success', 'warning' => 'bg-warning-soft text-warning', 'danger' => 'bg-danger-soft text-danger', 'info' => 'bg-info-soft text-info', ][$tone] ?? 'bg-surface-3 text-fg-2'; $tag = $href ? 'a' : 'div'; @endphp <{{ $tag }} @if ($href) href="{{ $href }}" @endif {{ $attributes->class(['flex min-w-0 flex-col gap-2 rounded-xl border border-line bg-surface p-4 shadow-card', 'transition-colors hover:border-line-strong hover:bg-surface-2' => $href]) }}>

{{ $label }}

@if ($icon) @endif

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

@if ($hint)

{{ $hint }}

@endif