onlyProps([ 'active' => false, 'activeIcon', 'badge' => null, 'badgeColor' => null, 'icon', 'iconColor' => null, 'shouldOpenUrlInNewTab' => false, 'url', ]) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> exceptProps([ 'active' => false, 'activeIcon', 'badge' => null, 'badgeColor' => null, 'icon', 'iconColor' => null, 'shouldOpenUrlInNewTab' => false, 'url', ]); ?> false, 'activeIcon', 'badge' => null, 'badgeColor' => null, 'icon', 'iconColor' => null, 'shouldOpenUrlInNewTab' => false, 'url', ]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> $__value) { if (array_key_exists($__key, $__defined_vars)) unset($$__key); } ?>
  • x-on:click="window.matchMedia(`(max-width: 1024px)`).matches && $store.sidebar.close()" x-data="{ tooltip: {} }" x-init=" Alpine.effect(() => { if (Alpine.store('sidebar').isOpen) { tooltip = false } else { tooltip = { content: toHtml())); ?>, theme: Alpine.store('theme') === 'light' ? 'dark' : 'light', placement: document.dir === 'rtl' ? 'left' : 'right', } } }) " x-tooltip.html="tooltip" class=" ! $active, 'dark:text-gray-300 dark:hover:bg-gray-700' => (! $active) && config('filament.dark_mode'), 'bg-primary-500 text-white' => $active, ]); ?>" > ($active && $activeIcon) ? $activeIcon : $icon] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('dynamic-component'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['class' => \Illuminate\Support\Arr::toCssClasses([ 'h-5 w-5 shrink-0', 'text-primary-500' => (! $active) && ($iconColor === 'primary'), 'text-danger-500' => (! $active) && ($iconColor === 'danger'), 'text-gray-500' => (! $active) && ($iconColor === 'secondary'), 'text-success-500' => (! $active) && ($iconColor === 'success'), 'text-warning-500' => (! $active) && ($iconColor === 'warning'), ]) ]); ?> renderComponent(); ?>
    x-show="$store.sidebar.isOpen" >
    'filament::components.layouts.app.sidebar.badge','data' => ['badge' => $badge,'badgeColor' => $badgeColor,'active' => $active]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('filament::layouts.app.sidebar.badge'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['badge' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($badge),'badge-color' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($badgeColor),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($active)]); ?> renderComponent(); ?>