@php $isAside = $isAside(); $isCollapsed = $isCollapsed(); $isCollapsible = $isCollapsible() && (! $isAside); $isCompact = $isCompact(); $isFormBefore = $isFormBefore(); @endphp
merge($getExtraAttributes()) ->class([ 'filament-forms-section-component', 'rounded-xl border border-gray-300 bg-white' => ! $isAside, 'grid grid-cols-1' => $isAside, 'md:grid-cols-2' => $isAside && ! $isCompact, 'md:grid-cols-3' => $isAside && $isCompact, 'md:order-last' => $isFormBefore, 'dark:border-gray-600 dark:bg-gray-800' => config('forms.dark_mode') && ! $isAside, ]) }} {{ $getExtraAlpineAttributeBag() }} >
$isCompact, 'min-h-[56px]' => ! $isCompact, 'pb-4' => $isAside, 'pr-6' => $isAside && ! $isFormBefore, 'pl-6' => $isAside && $isFormBefore, 'items-center bg-gray-100 px-4 py-2' => ! $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 || $isAside, ]) > @if ($icon = $getIcon()) $isCompact && ! $isAside, 'h-6 w-6' => ! $isCompact || $isAside, ]) /> @endif {{ $getHeading() }}

@if ($description = $getDescription())

$isCompact && ! $isAside, 'text-base' => ! $isCompact || $isAside, ]) > {{ $description }}

@endif
@if ($isCollapsible) @endif
$isAside && $isCompact, 'md:order-first' => $isFormBefore, ]) >
$isAside, 'dark:border-gray-600 dark:bg-gray-800' => config('forms.dark_mode') && $isAside, 'p-6' => ! $isCompact || $isAside, 'p-4' => $isCompact && ! $isAside, ]) > {{ $getChildComponentContainer() }}