{{-- Card (DESIGN.md Components > Cards). Cards never nest. Props: title (h2 in the card head; makes the card a labelled
), titleId. Slots: aside (pill or action right in the card head), default, footer (nh-cardfoot row). --}} @props(['title' => null, 'titleId' => null]) @php $headingId = $title !== null ? ($titleId ?? 'nh-card-'.\Illuminate\Support\Str::slug($title)) : null; $tag = $headingId ? 'section' : 'div'; @endphp <{{ $tag }} {{ $attributes->class('nh-card')->merge($headingId ? ['aria-labelledby' => $headingId] : []) }}> @if ($title !== null || isset($aside))
@if ($title !== null)

{{ $title }}

@endif {{ $aside ?? '' }}
@endif {{ $slot }} @isset($footer)
{{ $footer }}
@endisset