false, 'collapsed' => false, 'collapsible' => false, 'compact' => false, 'contentBefore' => false, 'description' => null, 'footerActions' => [], 'footerActionsAlignment' => Alignment::Start, 'headerActions' => [], 'headerEnd' => null, 'heading' => null, 'icon' => null, 'iconColor' => 'gray', 'iconSize' => IconSize::Large, 'persistCollapsed' => false, ])); foreach ($attributes->all() as $__key => $__value) { if (in_array($__key, $__propNames)) { $$__key = $$__key ?? $__value; } else { $__newAttributes[$__key] = $__value; } } $attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes); unset($__propNames); unset($__newAttributes); foreach (array_filter(([ 'aside' => false, 'collapsed' => false, 'collapsible' => false, 'compact' => false, 'contentBefore' => false, 'description' => null, 'footerActions' => [], 'footerActionsAlignment' => Alignment::Start, 'headerActions' => [], 'headerEnd' => null, 'heading' => null, 'icon' => null, 'iconColor' => 'gray', 'iconSize' => IconSize::Large, 'persistCollapsed' => false, ]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) { $$__key = $$__key ?? $__value; } $__defined_vars = get_defined_vars(); foreach ($attributes->all() as $__key => $__value) { if (array_key_exists($__key, $__defined_vars)) unset($$__key); } unset($__defined_vars); ?> $headerAction->isVisible(), ); } if (is_array($footerActions)) { $footerActions = array_filter( $footerActions, fn ($footerAction): bool => $footerAction->isVisible(), ); } $hasHeaderActions = $headerActions instanceof \Illuminate\Contracts\Support\Htmlable ? ! \Filament\Support\is_slot_empty($headerActions) : filled($headerActions); $hasFooterActions = $footerActions instanceof \Illuminate\Contracts\Support\Htmlable ? ! \Filament\Support\is_slot_empty($footerActions) : filled($footerActions); $hasHeader = $hasIcon || $hasHeading || $hasDescription || $collapsible || $hasHeaderActions || filled((string) $headerEnd); ?>
x-on:collapse-section.window="if ($event.detail.id == $el.id) isCollapsed = true" x-on:expand="isCollapsed = false" x-on:open-section.window="if ($event.detail.id == $el.id) isCollapsed = false" x-on:toggle-section.window="if ($event.detail.id == $el.id) isCollapsed = ! isCollapsed" x-bind:class="isCollapsed && 'fi-collapsed'" class([ 'fi-section', match ($aside) { true => 'fi-aside grid grid-cols-1 items-start gap-x-6 gap-y-4 md:grid-cols-3', false => 'rounded-xl bg-white shadow-sm ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10', }, ])); ?> >
x-on:click="isCollapsed = ! isCollapsed" class=" $collapsible, match ($compact) { true => 'px-4 py-2.5', false => 'px-6 py-4', } => ! $aside, ]); ?>" >
'filament::components.icon','data' => ['icon' => $icon,'class' => \Illuminate\Support\Arr::toCssClasses([ 'fi-section-header-icon self-start', match ($iconColor) { 'gray' => 'text-gray-400 dark:text-gray-500', default => 'fi-color-custom text-custom-500 dark:text-custom-400', }, is_string($iconColor) ? 'fi-color-{$iconColor}' : null, match ($iconSize) { IconSize::Small, 'sm' => 'h-4 w-4 mt-1', IconSize::Medium, 'md' => 'h-5 w-5 mt-0.5', IconSize::Large, 'lg' => 'h-6 w-6', default => $iconSize, }, ]),'style' => \Illuminate\Support\Arr::toCssStyles([ \Filament\Support\get_color_css_variables( $iconColor, shades: [400, 500], alias: 'section.header.icon', ) => $iconColor !== 'gray', ])]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('filament::icon'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes(['icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($icon),'class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Illuminate\Support\Arr::toCssClasses([ 'fi-section-header-icon self-start', match ($iconColor) { 'gray' => 'text-gray-400 dark:text-gray-500', default => 'fi-color-custom text-custom-500 dark:text-custom-400', }, is_string($iconColor) ? 'fi-color-{$iconColor}' : null, match ($iconSize) { IconSize::Small, 'sm' => 'h-4 w-4 mt-1', IconSize::Medium, 'md' => 'h-5 w-5 mt-0.5', IconSize::Large, 'lg' => 'h-6 w-6', default => $iconSize, }, ])),'style' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Illuminate\Support\Arr::toCssStyles([ \Filament\Support\get_color_css_variables( $iconColor, shades: [400, 500], alias: 'section.header.icon', ) => $iconColor !== 'gray', ]))]); ?> renderComponent(); ?>
'filament::components.section.heading','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('filament::section.heading'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes([]); ?> renderComponent(); ?> 'filament::components.section.description','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('filament::section.description'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes([]); ?> renderComponent(); ?>
'filament::components.icon-button','data' => ['color' => 'gray','icon' => 'heroicon-m-chevron-down','iconAlias' => 'section.collapse-button','xOn:click.stop' => 'isCollapsed = ! isCollapsed','xBind:class' => '{ \'rotate-180\': ! isCollapsed }']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('filament::icon-button'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes(['color' => 'gray','icon' => 'heroicon-m-chevron-down','icon-alias' => 'section.collapse-button','x-on:click.stop' => 'isCollapsed = ! isCollapsed','x-bind:class' => '{ \'rotate-180\': ! isCollapsed }']); ?> renderComponent(); ?>
'filament::components.actions','data' => ['actions' => $headerActions,'alignment' => \Filament\Support\Enums\Alignment::Start,'xOn:click.stop' => '']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('filament::actions'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes(['actions' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($headerActions),'alignment' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Filament\Support\Enums\Alignment::Start),'x-on:click.stop' => '']); ?> renderComponent(); ?>
x-bind:aria-expanded="(! isCollapsed).toString()" x-cloak x-bind:class="{ 'invisible absolute h-0 overflow-hidden border-none': isCollapsed, }" class=" $hasHeader && (! $aside), 'rounded-xl bg-white shadow-sm ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10 md:col-span-2' => $aside, 'md:order-first' => $contentBefore, ]); ?>" >
'filament::components.actions','data' => ['actions' => $footerActions,'alignment' => $footerActionsAlignment]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('filament::actions'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes(['actions' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($footerActions),'alignment' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($footerActionsAlignment)]); ?> renderComponent(); ?>