@props([ 'label', 'value', 'delta' => null, 'deltaLabel' => null, 'trend' => null, 'icon' => null, 'href' => null, ]) @php $trendClass = match($trend) { 'up' => 'text-success', 'down' => 'text-error', 'flat' => 'text-base/60', default => 'text-base/60', }; $trendIcon = match($trend) { 'up' => 'ri-arrow-up-line', 'down' => 'ri-arrow-down-line', default => null, }; $tag = $href ? 'a' : 'div'; @endphp <{{ $tag }} @if($href) href="{{ $href }}" wire:navigate @endif {{ $attributes->merge(['class' => 'card-glass card-glass-hover block p-5 group']) }}>
{{ $label }}
{{ $value }}
@if($delta !== null || $deltaLabel)