Files
Virtnet.bond/extensions/Servers/Proxmox/views/components/ui/empty-state.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

73 lines
1.9 KiB
PHP

{{--
Empty State Component - TailServer Theme
Usage:
<x-proxmox::ui.empty-state title="No servers found" />
<x-proxmox::ui.empty-state
title="No servers"
description="Get started by creating your first server."
icon="ri-server-line"
>
<x-proxmox::ui.button variant="primary">Create Server</x-proxmox::ui.button>
</x-proxmox::ui.empty-state>
--}}
@props([
'title' => 'No data',
'description' => null,
'icon' => 'ri-inbox-line',
'iconClass' => null,
'compact' => false,
])
<div
{{ $attributes->class([
'flex flex-col items-center justify-center text-center',
'py-12 px-6' => !$compact,
'py-6 px-4' => $compact,
]) }}
>
@if($icon)
<div @class([
'relative flex items-center justify-center rounded-full',
'mb-4 w-16 h-16 bg-neutral/5' => !$compact,
'mb-3 w-12 h-12 bg-neutral/5' => $compact,
])>
{{-- Decorative ring --}}
<div class="absolute inset-0 rounded-full border border-dashed border-neutral/20"></div>
<x-dynamic-component
:component="$icon"
@class([
$iconClass ?? 'text-base/25',
'size-8' => !$compact,
'size-6' => $compact,
])
/>
</div>
@endif
<h3 @class([
'font-semibold text-base/80',
'text-base' => !$compact,
'text-sm' => $compact,
])>
{{ $title }}
</h3>
@if($description)
<p @class([
'text-base/50 max-w-sm leading-relaxed',
'mt-1.5 text-sm' => !$compact,
'mt-1 text-xs' => $compact,
])>
{{ $description }}
</p>
@endif
@if($slot->isNotEmpty())
<div @class(['mt-5' => !$compact, 'mt-3' => $compact])>
{{ $slot }}
</div>
@endif
</div>