{{-- Card Component - LucentUI Theme Migrated from AdminLTE to Tailwind Usage: Content Content Content Content with top accent --}} @props([ 'title' => null, 'subtitle' => null, 'icon' => null, 'iconColor' => 'text-primary', 'actions' => null, 'footer' => null, 'footerClass' => '', 'padding' => true, 'hover' => false, 'clickable' => false, 'collapsible' => false, 'collapsed' => false, 'variant' => null, // primary, success, warning, danger, info 'outline' => false, ]) @php $variantClasses = match($variant) { 'primary' => $outline ? 'border-primary' : 'border-primary bg-primary/5', 'success' => $outline ? 'border-success' : 'border-success bg-success/5', 'warning' => $outline ? 'border-warning' : 'border-warning bg-warning/5', 'danger' => $outline ? 'border-error' : 'border-error bg-error/5', 'info' => $outline ? 'border-info' : 'border-info bg-info/5', default => 'border-neutral', }; @endphp
class([ 'bg-background border rounded-lg shadow-sm transition-all duration-300 ease-out hover:shadow-md', $variantClasses, 'cursor-pointer hover:-translate-y-0.5 hover:scale-[1.002]' => $clickable, 'hover:border-neutral/80' => $hover, ]) }} @if($collapsible) x-data="{ isCollapsed: {{ $collapsed ? 'true' : 'false' }} }" @endif > @if($title || $actions)

@if($icon) @endif {{ $title }} @if($subtitle) {{ $subtitle }} @endif

@if($actions || $collapsible)
@if($actions) {{ $actions }} @endif @if($collapsible) @endif
@endif
@endif
{{ $slot }}
@if($footer)
{{ $footer }}
@endif