user(); $items = \Filament\Facades\Filament::getUserMenuItems(); $accountItem = $items['account'] ?? null; $accountItemUrl = $accountItem?->getUrl(); $logoutItem = $items['logout'] ?? null; ?> 'filament::components.dropdown.index','data' => ['placement' => 'bottom-end']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('filament::dropdown'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['placement' => 'bottom-end']); ?> slot('trigger', null, ['class' => 'ml-4 rtl:ml-0 rtl:mr-4']); ?> endSlot(); ?> 'filament::components.dropdown.list.index','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('filament::dropdown.list'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes([]); ?> 'filament::components.dropdown.list.item','data' => ['color' => $accountItem->getColor() ?? 'secondary','icon' => $accountItem->getIcon() ?? 'heroicon-s-user-circle','href' => $accountItemUrl,'tag' => 'a']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('filament::dropdown.list.item'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['color' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($accountItem->getColor() ?? 'secondary'),'icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($accountItem->getIcon() ?? 'heroicon-s-user-circle'),'href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($accountItemUrl),'tag' => 'a']); ?> getLabel() ?? \Filament\Facades\Filament::getUserName($user)); ?> renderComponent(); ?> renderComponent(); ?> 'filament::components.dropdown.header','data' => ['color' => $accountItem?->getColor() ?? 'secondary','icon' => $accountItem?->getIcon() ?? 'heroicon-s-user-circle']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('filament::dropdown.header'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['color' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($accountItem?->getColor() ?? 'secondary'),'icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($accountItem?->getIcon() ?? 'heroicon-s-user-circle')]); ?> getLabel() ?? \Filament\Facades\Filament::getUserName($user)); ?> renderComponent(); ?> 'filament::components.dropdown.list.index','data' => ['xData' => '{ mode: null, theme: null, init: function () { this.theme = localStorage.getItem(\'theme\') || (this.isSystemDark() ? \'dark\' : \'light\') this.mode = localStorage.getItem(\'theme\') ? \'manual\' : \'auto\' window.matchMedia(\'(prefers-color-scheme: dark)\').addEventListener(\'change\', (event) => { if (this.mode === \'manual\') return if (event.matches && (! document.documentElement.classList.contains(\'dark\'))) { this.theme = \'dark\' document.documentElement.classList.add(\'dark\') } else if ((! event.matches) && document.documentElement.classList.contains(\'dark\')) { this.theme = \'light\' document.documentElement.classList.remove(\'dark\') } }) $watch(\'theme\', () => { if (this.mode === \'auto\') return localStorage.setItem(\'theme\', this.theme) if (this.theme === \'dark\' && (! document.documentElement.classList.contains(\'dark\'))) { document.documentElement.classList.add(\'dark\') } else if (this.theme === \'light\' && document.documentElement.classList.contains(\'dark\')) { document.documentElement.classList.remove(\'dark\') } $dispatch(\'dark-mode-toggled\', this.theme) }) }, isSystemDark: function () { return window.matchMedia(\'(prefers-color-scheme: dark)\').matches }, }']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('filament::dropdown.list'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['x-data' => '{ mode: null, theme: null, init: function () { this.theme = localStorage.getItem(\'theme\') || (this.isSystemDark() ? \'dark\' : \'light\') this.mode = localStorage.getItem(\'theme\') ? \'manual\' : \'auto\' window.matchMedia(\'(prefers-color-scheme: dark)\').addEventListener(\'change\', (event) => { if (this.mode === \'manual\') return if (event.matches && (! document.documentElement.classList.contains(\'dark\'))) { this.theme = \'dark\' document.documentElement.classList.add(\'dark\') } else if ((! event.matches) && document.documentElement.classList.contains(\'dark\')) { this.theme = \'light\' document.documentElement.classList.remove(\'dark\') } }) $watch(\'theme\', () => { if (this.mode === \'auto\') return localStorage.setItem(\'theme\', this.theme) if (this.theme === \'dark\' && (! document.documentElement.classList.contains(\'dark\'))) { document.documentElement.classList.add(\'dark\') } else if (this.theme === \'light\' && document.documentElement.classList.contains(\'dark\')) { document.documentElement.classList.remove(\'dark\') } $dispatch(\'dark-mode-toggled\', this.theme) }) }, isSystemDark: function () { return window.matchMedia(\'(prefers-color-scheme: dark)\').matches }, }']); ?>
'filament::components.dropdown.list.item','data' => ['icon' => 'heroicon-s-moon','xShow' => 'theme === \'dark\'','xOn:click' => 'close(); mode = \'manual\'; theme = \'light\'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('filament::dropdown.list.item'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['icon' => 'heroicon-s-moon','x-show' => 'theme === \'dark\'','x-on:click' => 'close(); mode = \'manual\'; theme = \'light\'']); ?> renderComponent(); ?> 'filament::components.dropdown.list.item','data' => ['icon' => 'heroicon-s-sun','xShow' => 'theme === \'light\'','xOn:click' => 'close(); mode = \'manual\'; theme = \'dark\'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('filament::dropdown.list.item'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['icon' => 'heroicon-s-sun','x-show' => 'theme === \'light\'','x-on:click' => 'close(); mode = \'manual\'; theme = \'dark\'']); ?> renderComponent(); ?>
addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 'filament::components.dropdown.list.item','data' => ['color' => $item->getColor() ?? 'secondary','icon' => $item->getIcon(),'href' => $item->getUrl(),'tag' => 'a']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('filament::dropdown.list.item'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['color' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item->getColor() ?? 'secondary'),'icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item->getIcon()),'href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item->getUrl()),'tag' => 'a']); ?> getLabel()); ?> renderComponent(); ?> popLoop(); $loop = $__env->getLastLoop(); ?> 'filament::components.dropdown.list.item','data' => ['color' => $logoutItem?->getColor() ?? 'secondary','icon' => $logoutItem?->getIcon() ?? 'heroicon-s-logout','action' => $logoutItem?->getUrl() ?? route('filament.auth.logout'),'method' => 'post','tag' => 'form']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('filament::dropdown.list.item'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['color' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($logoutItem?->getColor() ?? 'secondary'),'icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($logoutItem?->getIcon() ?? 'heroicon-s-logout'),'action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($logoutItem?->getUrl() ?? route('filament.auth.logout')),'method' => 'post','tag' => 'form']); ?> getLabel() ?? __('filament::layout.buttons.logout.label')); ?> renderComponent(); ?> renderComponent(); ?> renderComponent(); ?>