@props([ 'title', 'subtitle' => null, 'href' => null, // renders a "View all" link when given 'padded' => true, ]) {{-- Card shell: header row + body. Every dashboard widget uses this so the header spacing, type scale and "View all" affordance stay identical. --}}
merge(['class' => 'surface flex flex-col']) }}>

{{ $title }}

@if ($subtitle)

{{ $subtitle }}

@endif
{{ $actions ?? '' }} @if ($href) View all @endif
{{ $slot }}