@php use Filament\Support\Enums\IconSize; use Filament\Support\View\Components\SectionComponent\IconComponent; @endphp @props([ 'compact' => false, 'contained' => true, 'description' => null, 'footer' => null, 'heading', 'headingTag' => 'h2', 'icon' => null, 'iconColor' => 'primary', 'iconSize' => null, ]) @php if (filled($iconSize) && (! $iconSize instanceof IconSize)) { $iconSize = IconSize::tryFrom($iconSize) ?? $iconSize; } $hasDescription = filled((string) $description); $hasFooter = filled((string) $footer); $hasIcon = filled($icon); @endphp
{{ $description }}
@endif @if ($hasFooter) @endif