@props([
    'title' => null,
    'subtitle' => null,
])

<div {{ $attributes->merge(['class' => 'panel glass-card']) }}>
    @if ($title || $subtitle || isset($actions))
        <div class="panel-head">
            <div>
                @if ($title)
                    <div class="panel-title">{{ $title }}</div>
                @endif
                @if ($subtitle)
                    <div class="panel-sub">{{ $subtitle }}</div>
                @endif
            </div>
            @if (isset($actions))
                <div>{{ $actions }}</div>
            @endif
        </div>
    @endif
    {{ $slot }}
</div>
