@props([ 'badge', 'title', 'description' => null, 'stats' => [], ]) @php $statCols = match (count($stats)) { 4 => 'sm:grid-cols-2 lg:grid-cols-4', 2 => 'sm:grid-cols-2', default => 'sm:grid-cols-3', }; @endphp
merge(['class' => 'relative overflow-hidden rounded-2xl border border-slate-200 bg-white']) }}>
{{ $badge }}

{{ $title }}

@if ($description)

{{ $description }}

@endif @isset($actions)
{{ $actions }}
@endisset
@if (count($stats) > 0)
@foreach ($stats as $stat)

{{ $stat['value'] }}

{{ $stat['label'] }}

@endforeach
@endif