@props([ 'title' => null, 'subtitle' => null, 'value' => null, 'icon' => null, 'color' => 'blue', 'bordered' => false, ]) @php // 🎨 Colores seguros (Tailwind-safe) $colors = [ 'blue' => 'border-blue-500 bg-blue-50 text-blue-600', 'yellow' => 'border-yellow-500 bg-yellow-50 text-yellow-600', 'orange' => 'border-orange-500 bg-orange-50 text-orange-600', 'green' => 'border-green-500 bg-green-50 text-green-600', 'red' => 'border-red-500 bg-red-50 text-red-600', 'gray' => 'border-gray-500 bg-gray-50 text-gray-600', ]; $colorClass = $colors[$color] ?? $colors['blue']; @endphp
merge([ 'class' => "rounded-2xl shadow-sm p-6 transition hover:shadow-md border-l-4 $colorClass" ]) }}>
{{-- TEXTOS --}}
@if($title)

{{ $title }}

@endif @if(!is_null($value))

{{ $value }}

@endif @if($subtitle)

{{ $subtitle }}

@endif
{{-- ICONO --}} @if($icon)
{{ $icon }}
@endif
{{-- SLOT EXTRA (opcional) --}} @if(trim($slot))
{{ $slot }}
@endif {{-- FOOTER --}} @isset($footer)
{{ $footer }}
@endisset