@props([ 'title' => null, 'subtitle' => null, ]) {{-- A settings panel: one card, a header that names it, a body of rows, and an optional footer for whatever finishes the group. The page was a heap of cards of different heights, each holding one thing, which produced a staircase down the screen and left half the width empty beside it. A panel with divided rows is what every settings page worth copying does — the group is the card, the settings are its rows, and the rhythm comes from the dividers rather than from the gaps between boxes. --}}
merge(['class' => 'overflow-hidden rounded-lg border border-line bg-surface shadow-xs']) }}> @if ($title || isset($header))
@isset($header) {{ $header }} @else

{{ $title }}

@if ($subtitle)

{{ $subtitle }}

@endif
@isset($action)
{{ $action }}
@endisset @endisset
@endif
{{ $slot }}
@isset($footer)
{{ $footer }}
@endisset