OwlCyberSecurity - MANAGER
Edit File: 4c5643ff012af52ac136c69bd063e339.php
<?php use Filament\Support\Enums\IconSize; ?> <?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?> <?php foreach($attributes->onlyProps([ 'badge' => null, 'badgeColor' => null, 'badgeTooltip' => null, 'color' => 'gray', 'disabled' => false, 'href' => null, 'icon' => null, 'iconAlias' => null, 'iconColor' => null, 'iconSize' => IconSize::Medium, 'image' => null, 'keyBindings' => null, 'loadingIndicator' => true, 'spaMode' => null, 'tag' => 'button', 'target' => null, 'tooltip' => null, ]) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> <?php $attributes = $attributes->exceptProps([ 'badge' => null, 'badgeColor' => null, 'badgeTooltip' => null, 'color' => 'gray', 'disabled' => false, 'href' => null, 'icon' => null, 'iconAlias' => null, 'iconColor' => null, 'iconSize' => IconSize::Medium, 'image' => null, 'keyBindings' => null, 'loadingIndicator' => true, 'spaMode' => null, 'tag' => 'button', 'target' => null, 'tooltip' => null, ]); ?> <?php foreach (array_filter(([ 'badge' => null, 'badgeColor' => null, 'badgeTooltip' => null, 'color' => 'gray', 'disabled' => false, 'href' => null, 'icon' => null, 'iconAlias' => null, 'iconColor' => null, 'iconSize' => IconSize::Medium, 'image' => null, 'keyBindings' => null, 'loadingIndicator' => true, 'spaMode' => null, 'tag' => 'button', 'target' => null, 'tooltip' => null, ]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> <?php $__defined_vars = get_defined_vars(); ?> <?php foreach ($attributes as $__key => $__value) { if (array_key_exists($__key, $__defined_vars)) unset($$__key); } ?> <?php unset($__defined_vars); ?> <?php $buttonClasses = \Illuminate\Support\Arr::toCssClasses([ 'fi-dropdown-list-item flex w-full items-center gap-2 whitespace-nowrap rounded-md p-2 text-sm transition-colors duration-75 outline-none disabled:pointer-events-none disabled:opacity-70', 'pointer-events-none opacity-70' => $disabled, match ($color) { 'gray' => 'hover:bg-gray-50 focus-visible:bg-gray-50 dark:hover:bg-white/5 dark:focus-visible:bg-white/5', default => 'fi-color-custom hover:bg-custom-50 focus-visible:bg-custom-50 dark:hover:bg-custom-400/10 dark:focus-visible:bg-custom-400/10', }, // @deprecated `fi-dropdown-list-item-color-*` has been replaced by `fi-color-*` and `fi-color-custom`. is_string($color) ? "fi-dropdown-list-item-color-{$color}" : null, is_string($color) ? "fi-color-{$color}" : null, ]); $buttonStyles = \Illuminate\Support\Arr::toCssStyles([ \Filament\Support\get_color_css_variables( $color, shades: [50, 400], alias: 'dropdown.list.item', ) => $color !== 'gray', ]); $iconColor ??= $color; $iconClasses = \Illuminate\Support\Arr::toCssClasses([ 'fi-dropdown-list-item-icon', match ($iconSize) { IconSize::Small, 'sm' => 'h-4 w-4', IconSize::Medium, 'md' => 'h-5 w-5', IconSize::Large, 'lg' => 'h-6 w-6', default => $iconSize, }, match ($iconColor) { 'gray' => 'text-gray-400 dark:text-gray-500', default => 'text-custom-500 dark:text-custom-400', }, ]); $iconStyles = \Illuminate\Support\Arr::toCssStyles([ \Filament\Support\get_color_css_variables( $iconColor, shades: [400, 500], alias: 'dropdown.list.item.icon', ) => $iconColor !== 'gray', ]); $imageClasses = 'fi-dropdown-list-item-image h-5 w-5 rounded-full bg-cover bg-center'; $labelClasses = \Illuminate\Support\Arr::toCssClasses([ 'fi-dropdown-list-item-label flex-1 truncate text-start', match ($color) { 'gray' => 'text-gray-700 dark:text-gray-200', default => 'text-custom-600 dark:text-custom-400 ', }, ]); $labelStyles = \Illuminate\Support\Arr::toCssStyles([ \Filament\Support\get_color_css_variables( $color, shades: [400, 600], alias: 'dropdown.list.item.label', ) => $color !== 'gray', ]); $wireTarget = $loadingIndicator ? $attributes->whereStartsWith(['wire:target', 'wire:click'])->filter(fn ($value): bool => filled($value))->first() : null; $hasLoadingIndicator = filled($wireTarget); if ($hasLoadingIndicator) { $loadingIndicatorTarget = html_entity_decode($wireTarget, ENT_QUOTES); } $hasTooltip = filled($tooltip); ?> <?php if($tag === 'button'): ?> <button <?php if($keyBindings || $hasTooltip): ?> x-data="{}" <?php endif; ?> <?php if($keyBindings): ?> x-bind:id="$id('key-bindings')" x-mousetrap.global.<?php echo e(collect($keyBindings)->map(fn (string $keyBinding): string => str_replace('+', '-', $keyBinding))->implode('.')); ?>="document.getElementById($el.id).click()" <?php endif; ?> <?php if($hasTooltip): ?> x-tooltip="{ content: <?php echo \Illuminate\Support\Js::from($tooltip)->toHtml() ?>, theme: $store.theme, }" <?php endif; ?> <?php echo e($attributes ->merge([ 'disabled' => $disabled, 'type' => 'button', 'wire:loading.attr' => 'disabled', 'wire:target' => $hasLoadingIndicator ? $loadingIndicatorTarget : null, ], escape: false) ->class([$buttonClasses]) ->style([$buttonStyles])); ?> > <?php if($icon): ?> <?php if (isset($component)) { $__componentOriginalbfc641e0710ce04e5fe02876ffc6f950 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.icon','data' => ['attributes' => \Filament\Support\prepare_inherited_attributes( new \Illuminate\View\ComponentAttributeBag([ 'alias' => $iconAlias, 'icon' => $icon, 'wire:loading.remove.delay.' . config('filament.livewire_loading_delay', 'default') => $hasLoadingIndicator, 'wire:target' => $hasLoadingIndicator ? $loadingIndicatorTarget : null, ]) ) ->class([$iconClasses]) ->style([$iconStyles]) ]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('filament::icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute( \Filament\Support\prepare_inherited_attributes( new \Illuminate\View\ComponentAttributeBag([ 'alias' => $iconAlias, 'icon' => $icon, 'wire:loading.remove.delay.' . config('filament.livewire_loading_delay', 'default') => $hasLoadingIndicator, 'wire:target' => $hasLoadingIndicator ? $loadingIndicatorTarget : null, ]) ) ->class([$iconClasses]) ->style([$iconStyles]) )]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950)): ?> <?php $attributes = $__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950; ?> <?php unset($__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950); ?> <?php endif; ?> <?php if (isset($__componentOriginalbfc641e0710ce04e5fe02876ffc6f950)): ?> <?php $component = $__componentOriginalbfc641e0710ce04e5fe02876ffc6f950; ?> <?php unset($__componentOriginalbfc641e0710ce04e5fe02876ffc6f950); ?> <?php endif; ?> <?php endif; ?> <?php if($image): ?> <div class="<?php echo e($imageClasses); ?>" style="background-image: url('<?php echo e($image); ?>')" ></div> <?php endif; ?> <?php if($hasLoadingIndicator): ?> <?php if (isset($component)) { $__componentOriginalbef7c2371a870b1887ec3741fe311a10 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalbef7c2371a870b1887ec3741fe311a10 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.loading-indicator','data' => ['attributes' => \Filament\Support\prepare_inherited_attributes( new \Illuminate\View\ComponentAttributeBag([ 'wire:loading.delay.' . config('filament.livewire_loading_delay', 'default') => '', 'wire:target' => $loadingIndicatorTarget, ]) ) ->class([$iconClasses]) ->style([$iconStyles]) ]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('filament::loading-indicator'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute( \Filament\Support\prepare_inherited_attributes( new \Illuminate\View\ComponentAttributeBag([ 'wire:loading.delay.' . config('filament.livewire_loading_delay', 'default') => '', 'wire:target' => $loadingIndicatorTarget, ]) ) ->class([$iconClasses]) ->style([$iconStyles]) )]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalbef7c2371a870b1887ec3741fe311a10)): ?> <?php $attributes = $__attributesOriginalbef7c2371a870b1887ec3741fe311a10; ?> <?php unset($__attributesOriginalbef7c2371a870b1887ec3741fe311a10); ?> <?php endif; ?> <?php if (isset($__componentOriginalbef7c2371a870b1887ec3741fe311a10)): ?> <?php $component = $__componentOriginalbef7c2371a870b1887ec3741fe311a10; ?> <?php unset($__componentOriginalbef7c2371a870b1887ec3741fe311a10); ?> <?php endif; ?> <?php endif; ?> <span class="<?php echo e($labelClasses); ?>" style="<?php echo e($labelStyles); ?>"> <?php echo e($slot); ?> </span> <?php if(filled($badge)): ?> <?php if (isset($component)) { $__componentOriginal986dce9114ddce94a270ab00ce6c273d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal986dce9114ddce94a270ab00ce6c273d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.badge','data' => ['color' => $badgeColor,'size' => 'sm','tooltip' => $badgeTooltip]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('filament::badge'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['color' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($badgeColor),'size' => 'sm','tooltip' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($badgeTooltip)]); ?> <?php echo e($badge); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal986dce9114ddce94a270ab00ce6c273d)): ?> <?php $attributes = $__attributesOriginal986dce9114ddce94a270ab00ce6c273d; ?> <?php unset($__attributesOriginal986dce9114ddce94a270ab00ce6c273d); ?> <?php endif; ?> <?php if (isset($__componentOriginal986dce9114ddce94a270ab00ce6c273d)): ?> <?php $component = $__componentOriginal986dce9114ddce94a270ab00ce6c273d; ?> <?php unset($__componentOriginal986dce9114ddce94a270ab00ce6c273d); ?> <?php endif; ?> <?php endif; ?> </button> <?php elseif($tag === 'a'): ?> <a <?php echo e(\Filament\Support\generate_href_html($href, $target === '_blank', $spaMode)); ?> <?php if($keyBindings || $hasTooltip): ?> x-data="{}" <?php endif; ?> <?php if($keyBindings): ?> x-bind:id="$id('key-bindings')" x-mousetrap.global.<?php echo e(collect($keyBindings)->map(fn (string $keyBinding): string => str_replace('+', '-', $keyBinding))->implode('.')); ?>="document.getElementById($el.id).click()" <?php endif; ?> <?php if($hasTooltip): ?> x-tooltip="{ content: <?php echo \Illuminate\Support\Js::from($tooltip)->toHtml() ?>, theme: $store.theme, }" <?php endif; ?> <?php echo e($attributes ->class([$buttonClasses]) ->style([$buttonStyles])); ?> > <?php if($icon): ?> <?php if (isset($component)) { $__componentOriginalbfc641e0710ce04e5fe02876ffc6f950 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.icon','data' => ['alias' => $iconAlias,'icon' => $icon,'class' => $iconClasses,'style' => $iconStyles]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('filament::icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['alias' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($iconAlias),'icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($icon),'class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($iconClasses),'style' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($iconStyles)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950)): ?> <?php $attributes = $__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950; ?> <?php unset($__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950); ?> <?php endif; ?> <?php if (isset($__componentOriginalbfc641e0710ce04e5fe02876ffc6f950)): ?> <?php $component = $__componentOriginalbfc641e0710ce04e5fe02876ffc6f950; ?> <?php unset($__componentOriginalbfc641e0710ce04e5fe02876ffc6f950); ?> <?php endif; ?> <?php endif; ?> <?php if($image): ?> <div class="<?php echo e($imageClasses); ?>" style="background-image: url('<?php echo e($image); ?>')" ></div> <?php endif; ?> <span class="<?php echo e($labelClasses); ?>" style="<?php echo e($labelStyles); ?>"> <?php echo e($slot); ?> </span> <?php if(filled($badge)): ?> <?php if (isset($component)) { $__componentOriginal986dce9114ddce94a270ab00ce6c273d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal986dce9114ddce94a270ab00ce6c273d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.badge','data' => ['color' => $badgeColor,'size' => 'sm']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('filament::badge'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['color' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($badgeColor),'size' => 'sm']); ?> <?php echo e($badge); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal986dce9114ddce94a270ab00ce6c273d)): ?> <?php $attributes = $__attributesOriginal986dce9114ddce94a270ab00ce6c273d; ?> <?php unset($__attributesOriginal986dce9114ddce94a270ab00ce6c273d); ?> <?php endif; ?> <?php if (isset($__componentOriginal986dce9114ddce94a270ab00ce6c273d)): ?> <?php $component = $__componentOriginal986dce9114ddce94a270ab00ce6c273d; ?> <?php unset($__componentOriginal986dce9114ddce94a270ab00ce6c273d); ?> <?php endif; ?> <?php endif; ?> </a> <?php elseif($tag === 'form'): ?> <form <?php echo e($attributes->only(['action', 'class', 'method', 'wire:submit'])); ?> > <?php echo csrf_field(); ?> <button <?php if($keyBindings || $hasTooltip): ?> x-data="{}" <?php endif; ?> <?php if($keyBindings): ?> x-bind:id="$id('key-bindings')" x-mousetrap.global.<?php echo e(collect($keyBindings)->map(fn (string $keyBinding): string => str_replace('+', '-', $keyBinding))->implode('.')); ?>="document.getElementById($el.id).click()" <?php endif; ?> <?php if($hasTooltip): ?> x-tooltip="{ content: <?php echo \Illuminate\Support\Js::from($tooltip)->toHtml() ?>, theme: $store.theme, }" <?php endif; ?> type="submit" <?php echo e($attributes ->except(['action', 'class', 'method', 'wire:submit']) ->class([$buttonClasses]) ->style([$buttonStyles])); ?> > <?php if($icon): ?> <?php if (isset($component)) { $__componentOriginalbfc641e0710ce04e5fe02876ffc6f950 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.icon','data' => ['alias' => $iconAlias,'icon' => $icon,'class' => $iconClasses,'style' => $iconStyles]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('filament::icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['alias' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($iconAlias),'icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($icon),'class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($iconClasses),'style' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($iconStyles)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950)): ?> <?php $attributes = $__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950; ?> <?php unset($__attributesOriginalbfc641e0710ce04e5fe02876ffc6f950); ?> <?php endif; ?> <?php if (isset($__componentOriginalbfc641e0710ce04e5fe02876ffc6f950)): ?> <?php $component = $__componentOriginalbfc641e0710ce04e5fe02876ffc6f950; ?> <?php unset($__componentOriginalbfc641e0710ce04e5fe02876ffc6f950); ?> <?php endif; ?> <?php endif; ?> <span class="<?php echo e($labelClasses); ?>" style="<?php echo e($labelStyles); ?>"> <?php echo e($slot); ?> </span> <?php if(filled($badge)): ?> <?php if (isset($component)) { $__componentOriginal986dce9114ddce94a270ab00ce6c273d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal986dce9114ddce94a270ab00ce6c273d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.badge','data' => ['color' => $badgeColor,'size' => 'sm']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('filament::badge'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['color' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($badgeColor),'size' => 'sm']); ?> <?php echo e($badge); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal986dce9114ddce94a270ab00ce6c273d)): ?> <?php $attributes = $__attributesOriginal986dce9114ddce94a270ab00ce6c273d; ?> <?php unset($__attributesOriginal986dce9114ddce94a270ab00ce6c273d); ?> <?php endif; ?> <?php if (isset($__componentOriginal986dce9114ddce94a270ab00ce6c273d)): ?> <?php $component = $__componentOriginal986dce9114ddce94a270ab00ce6c273d; ?> <?php unset($__componentOriginal986dce9114ddce94a270ab00ce6c273d); ?> <?php endif; ?> <?php endif; ?> </button> </form> <?php endif; ?> <?php /**PATH /var/www/back/vendor/filament/support/src/../resources/views/components/dropdown/list/item.blade.php ENDPATH**/ ?>