@props(['title' => null, 'subtitle' => null, 'padding' => 'p-5']) {{-- `p-0` is for a card wrapping a table: the heading still needs its inset, and the table's rows need room for the theme's row shadows --}} @php($flush = $padding === 'p-0')
class(['intro-y box', $padding]) }}> @if ($title || isset($actions))
@if ($title)

{{ $title }}

@endif @if ($subtitle)

{{ $subtitle }}

@endif
@isset($actions)
{{ $actions }}
@endisset
@endif @if ($flush && $title)
{{ $slot }}
@else {{ $slot }} @endif