@props([ 'label', 'value' => null, 'icon' => null, 'variant' => 'default', 'meta' => null, 'trendValue' => null, 'trendLabel' => null, 'trendDirection' => 'neutral', ]) @php $variant = in_array($variant, ['default', 'metric'], true) ? $variant : 'default'; $trendDirection = in_array($trendDirection, ['up', 'down', 'neutral'], true) ? $trendDirection : 'neutral'; $hasValue = $value !== null && $value !== ''; $hasTrend = ($trendValue !== null && $trendValue !== '') || ($trendLabel !== null && $trendLabel !== ''); @endphp
class([ 'info-card', 'info-card--metric' => $variant === 'metric', ]) }}>
{{ $label }} @if ($icon) @endif
@if ($hasValue) {{ $value }} @else {{ $slot }} @endif
@if ($meta)

{{ $meta }}

@endif @if ($hasTrend) @endif