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

<div {{ $attributes->merge(['class' => 'white-box ui-card']) }}>
    @if($title || $subtitle || isset($actions))
        <div class="ui-card-header">
            <div>
                @if($title)
                    <h3>{{ $title }}</h3>
                @endif
                @if($subtitle)
                    <p>{{ $subtitle }}</p>
                @endif
            </div>
            @isset($actions)
                <div class="ui-card-actions">{{ $actions }}</div>
            @endisset
        </div>
    @endif
    {{ $slot }}
</div>
