Files
Virtnet.bond/extensions/Servers/Proxmox/views/components/ui/dropdown-item.blade.php
Joseph.Rawlings e7b33a2f6c Refactor Proxmox server views for improved UI consistency and usability
- Updated server card component to use new UI elements and improved layout.
- Enhanced status display with badges and better status indicators.
- Refined quick info row for server details with consistent styling.
- Reorganized server configuration statistics into stat cards for clarity.
- Improved help modals for statistics and storage management sections.
- Streamlined alerts and warnings for better user experience.
- Updated storage management view to utilize new UI components and improve readability.
2025-12-17 11:24:17 -05:00

39 lines
1.2 KiB
PHP

{{--
Dropdown Item Component - TailServer Theme
--}}
@props([
'href' => null,
'icon' => null,
'variant' => 'default',
'disabled' => false,
])
@php
$tag = $href ? 'a' : 'button';
$variantClasses = [
'default' => 'text-base/70 hover:bg-gradient-to-r hover:from-neutral/10 hover:to-transparent hover:text-base',
'danger' => 'text-danger hover:bg-gradient-to-r hover:from-danger/10 hover:to-transparent',
'success' => 'text-success hover:bg-gradient-to-r hover:from-success/10 hover:to-transparent',
];
$variantClass = $variantClasses[$variant] ?? $variantClasses['default'];
@endphp
<{{ $tag }}
@if($href) href="{{ $href }}" @endif
@if($tag === 'button') type="button" @endif
@if($disabled) disabled @endif
{{ $attributes->class([
'group flex w-full items-center gap-2.5 px-4 py-2.5 text-sm font-medium transition-all duration-150',
$variantClass,
'opacity-50 cursor-not-allowed' => $disabled,
]) }}
>
@if($icon)
<x-dynamic-component :component="$icon" class="size-4 opacity-50 group-hover:opacity-80 transition-opacity" />
@endif
<span class="flex-1 text-left">{{ $slot }}</span>
</{{ $tag }}>