@props([ 'title', 'value', 'icon', 'trend' => null, 'trendDirection' => 'up', 'trendValue' => null, 'gradient' => 'primary', ]) @php $gradientClass = match($gradient) { 'primary' => 'gradient-primary', 'secondary' => 'gradient-secondary', 'success' => 'bg-gradient-to-r from-green-500 to-green-600', 'warning' => 'bg-gradient-to-r from-yellow-500 to-orange-600', 'danger' => 'bg-gradient-to-r from-red-500 to-red-600', default => 'gradient-primary', }; $trendVariant = match($trendDirection) { 'up' => 'success', 'down' => 'danger', default => 'info', }; $trendIcon = match($trendDirection) { 'up' => 'trending-up', 'down' => 'trending-down', default => 'minus', }; @endphp
{{ $title }}