{{-- x-stat-card Props: - label (or legacy alias title): card title - value: big number/value (required) - sub: small sub-text under the value (optional) - icon: Lucide icon name shown in a soft brand tile (optional) --}} @props(['label' => null, 'title' => null, 'value', 'sub' => null, 'icon' => null]) @php $heading = $label ?? $title; @endphp
merge(['class' => 'card border-0 shadow-sm h-100 stat-card-hover']) }}>
@if ($heading !== null && $heading !== '')
{{ $heading }}
@endif
{{ $value }}
@if ($sub)
{{ $sub }}
@endif
@if ($icon) @endif