@props([ 'title', 'value', 'icon' => 'bx bx-bar-chart-alt-2', 'color' => 'primary', 'href' => null, 'bg' => 'card-bg-1', 'trendLabels' => null, 'trendValues' => null, 'growth' => null, ]) @php $hasSparkline = is_iterable($trendLabels) && is_iterable($trendValues); $sparklineId = $hasSparkline ? 'grindo-sparkline-' . \Illuminate\Support\Str::random(8) : null; $hasGrowth = $growth !== null; $growthUp = $hasGrowth && $growth >= 0; @endphp