@props([ 'title' => '', 'subtitle' => '', 'image' => null, 'bgColor' => '', // primary, secondary, success, danger, etc. 'borderColor' => '', // primary, secondary, etc. 'textColor' => 'text-dark', 'shadow' => true, // true / false 'dropdown' => [], // Opciones para el menú 'footer' => '', 'footerClass' => '', // Clase CSS personalizada para el footer 'footerAlign' => 'start', // Alineación: start, center, end 'footerButtons' => [], // Botones de acción 'class' => 'mb-6', ]) @php $cardClass = 'card ' . ($shadow ? '' : 'shadow-none') . ' ' . ($bgColor ? "bg-$bgColor text-white" : '') . ' ' . ($borderColor ? "border border-$borderColor" : '') . " $class"; $footerAlignment = match ($footerAlign) { 'center' => 'text-center', 'end' => 'text-end', default => 'text-start' }; @endphp
@if ($image) Card image @endif @if ($title || $subtitle || $dropdown)
@if ($title)
{{ $title }}
@endif @if ($subtitle)

{{ $subtitle }}

@endif
@if (!empty($dropdown)) @endif
@endif
{{ $slot }}
{{-- Footer flexible --}} @if ($footer || !empty($footerButtons)) @endif