@props([
'title' => null,
'subtitle' => null,
'accent' => false, // true → adds the brand-gradient top strip
'header' => null, // raw HTML / Blade slot for header content (overrides title/subtitle)
'footer' => null, // optional footer slot via $footer
'class' => '',
])
class(['card ds-card', 'ds-card-accent' => $accent, $class]) }}>
@if ($title || $subtitle || $header || (isset($headerSlot) && !$headerSlot->isEmpty()))
@if ($header !== null)
{!! $header !!}
@elseif (isset($headerSlot))
{{ $headerSlot }}
@else
@if ($title)
{{ $title }}
@endif
@if ($subtitle)
{{ $subtitle }}
@endif
@endif
@isset($actions)
{{ $actions }}
@endisset
@endif
@isset($body)
{{ $body }}
@else
@if ($slot->isNotEmpty())
{{ $slot }}
@endif
@endisset
@isset($footerSlot)
@endisset
@if ($footer !== null)
@endif