@props([ 'resource' => null, 'icon' => null, 'eyebrow' => null, 'title' => null, 'description' => null, 'headingLevel' => 3, ]) @php $resourceConfig = $resource ? config('ui.resources.'.$resource, []) : []; $resolvedIcon = $icon ?: ($resourceConfig['icon'] ?? null); $headingLevel = in_array((int) $headingLevel, range(1, 6), true) ? (int) $headingLevel : 3; @endphp
{{ $eyebrow }}
@endif @if ($title) @switch($headingLevel) @case(1){{ $description }}
@endif