@props([ 'title', 'subtext', 'name', 'metricLabel1', 'metricValue1', 'metricLabel2', 'metricValue2', 'color' => 'indigo', // indigo, pink 'emptyMessage' => 'No data available', 'emptyIcon' => null, ]) @php $colors = [ 'indigo' => [ 'icon_bg' => 'bg-gradient-to-br from-indigo-500 to-violet-600', 'icon_glow' => 'shadow-indigo-500/30', 'top_bar' => 'from-indigo-400 via-violet-500 to-purple-500', 'orb' => 'bg-indigo-400/30', 'value_color' => 'text-indigo-600', 'eyebrow_color' => 'text-indigo-700', 'eyebrow_bg' => 'bg-indigo-100/70 ring-indigo-200/60', ], 'pink' => [ 'icon_bg' => 'bg-gradient-to-br from-pink-500 to-rose-600', 'icon_glow' => 'shadow-pink-500/30', 'top_bar' => 'from-pink-400 via-rose-500 to-fuchsia-500', 'orb' => 'bg-pink-400/30', 'value_color' => 'text-pink-600', 'eyebrow_color' => 'text-pink-700', 'eyebrow_bg' => 'bg-pink-100/70 ring-pink-200/60', ], ]; $theme = $colors[$color] ?? $colors['indigo']; @endphp
{{ $icon ?? '' }}

{{ $title }}

{{ $subtext }}

@if($name)

{{ str_contains($title, 'Product') ? 'Product' : 'Category' }}

{{ $name }}

{{ $metricLabel1 }}

{{ $metricValue1 }}

{{ $metricLabel2 }}

{{ $metricValue2 }}

@else
{{ $emptyIcon }}

{{ $emptyMessage }}

@endif