{{-- Stat Card Component - TailServer Theme Usage: --}} @props([ 'value', 'label', 'suffix' => null, 'prefix' => null, 'icon' => null, 'iconClass' => 'text-primary/30', 'status' => null, 'statusText' => null, 'href' => null, 'progress' => null, 'progressColor' => 'bg-primary', 'clickable' => false, 'compact' => false, ]) @php $tag = $href ? 'a' : 'div'; $statusClasses = [ 'success' => 'text-success bg-success/10', 'warning' => 'text-warning bg-warning/10', 'danger' => 'text-danger bg-danger/10', 'info' => 'text-info bg-info/10', 'muted' => 'text-base/50 bg-neutral/10', ]; $statusClass = $statusClasses[$status] ?? $statusClasses['muted']; @endphp <{{ $tag }} @if($href) href="{{ $href }}" @endif {{ $attributes->class([ 'group relative flex flex-col rounded-xl border border-neutral/20 bg-background-secondary overflow-hidden', 'hover:bg-background-secondary/80 hover:border-neutral/30 hover:shadow-sm cursor-pointer transition-all duration-200' => $href || $clickable, ]) }} > {{-- Subtle gradient overlay --}}