@php
$isAside = $isAside();
$isCollapsed = $isCollapsed();
$isCollapsible = $isCollapsible() && (! $isAside);
$isCompact = $isCompact();
@endphp
merge($getExtraAttributes())->class([
'filament-forms-section-component',
'rounded-xl border border-gray-300 bg-white' => ! $isAside,
'grid grid-cols-1 md:grid-cols-2' => $isAside,
'dark:border-gray-600 dark:bg-gray-800' => config('forms.dark_mode') && ! $isAside,
]) }}
{{ $getExtraAlpineAttributeBag() }}
>
$isCompact,
'min-h-[56px]' => ! $isCompact,
'pr-6 pb-4' => $isAside,
'px-4 py-2 items-center bg-gray-100' => ! $isAside,
'dark:bg-gray-900' => config('forms.dark_mode') && (! $isAside),
])
@if ($isCollapsible)
x-bind:class="{ 'rounded-b-xl': isCollapsed }"
x-on:click="isCollapsed = ! isCollapsed"
@endif
>
$isCollapsible,
])>
! $isCompact,
])>
{{ $getHeading() }}
@if ($description = $getDescription())
$isCompact,
'text-base' => ! $isCompact,
])>
{{ $description }}
@endif
@if ($isCollapsible)
@endif
$isAside,
'dark:border-gray-600 dark:bg-gray-800' => config('forms.dark_mode') && $isAside,
'p-6' => ! $isCompact,
'p-4' => $isCompact,
])>
{{ $getChildComponentContainer() }}