@php
use Filament\Support\Enums\IconSize;
use Illuminate\Support\Arr;
use Illuminate\Support\HtmlString;
use function Filament\Support\generate_icon_html;
$iconSize = $getIconSize();
if (filled($iconSize) && (! $iconSize instanceof IconSize)) {
$iconSize = IconSize::tryFrom($iconSize) ?? $iconSize;
}
$iconAlias = 'shout::icon.{{ $type }}';
$panelStyles = Arr::toCssStyles([
Filament\Support\get_color_css_variables($getColor(), shades: [100, 300, 600, 900]) => $getColor() !== 'gray',
]);
$actions = $getActions();
$heading = $getHeading();
$hasInlineActions = $hasInlineActions();
@endphp
merge($getExtraAttributes())
->class([
'shout-component border rounded-lg p-4 bg-custom-100 border-custom-300 text-custom-900 dark:border-custom-300 dark:bg-custom-100 dark:text-custom-900',
])
}}
style="{{ $panelStyles }}"
>
@if ($icon)
$heading,
])
>
{{ generate_icon_html(icon: $getIcon(), alias: $iconAlias, size: $iconSize ?? IconSize::Small)}}
@endif
$hasInlineActions,
'flex-col' => ! $hasInlineActions,
])
>
@if ($heading instanceof HtmlString)
{!! $heading !!}
@else
{{ $heading }}
@endif
{{ $getContent() }}
@if($actions)
$hasInlineActions,
])
>
@foreach ($actions as $action)
@if ($action->isVisible())
{{ $action }}
@endif
@endforeach
@endif