@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
merge(['class' => 'col-xl-3 col-md-6']) }}>

{{ $title }}

{{ $value }}

@if ($hasGrowth) {{ $growthUp ? '+' : '' }}{{ $growth }}% this week @endif
@if ($hasSparkline)
@endif @if ($href) @endif