@props([ 'icon' => null, 'value', 'label', 'trend' => null, ])
@if($icon)
@endif
{{ $value }}
{{ $label }}
@if($trend !== null) @php $trendClass = match(true) { $trend > 0 => 'text-success', $trend < 0 => 'text-danger', default => 'text-charcoal/50', }; $trendPrefix = $trend > 0 ? '+' : ''; @endphp
{{ $trendPrefix }}{{ $trend }}%
@endif