diff --git a/extensions/Servers/Proxmox/views/overview.blade.php b/extensions/Servers/Proxmox/views/overview.blade.php index 16514c6b8..65c5942a5 100644 --- a/extensions/Servers/Proxmox/views/overview.blade.php +++ b/extensions/Servers/Proxmox/views/overview.blade.php @@ -893,6 +893,293 @@ + + @php + // Gather comprehensive server information + $diskTotal = (int)($status->maxdisk ?? 0); + $diskUsed = (int)($status->disk ?? 0); + $diskPercent = $diskTotal > 0 ? round(($diskUsed / $diskTotal) * 100, 1) : 0; + + // Get product settings for allocated resources + $productSettings = $server->service?->product?->settings ?? collect(); + $allocatedCores = $productSettings->where('key', 'cores')->first()?->value ?? $cpuCores; + $allocatedMemoryMiB = $productSettings->where('key', 'memory')->first()?->value ?? 0; + $allocatedDiskGiB = $productSettings->where('key', 'disk')->first()?->value ?? 0; + $allocatedBackups = $productSettings->where('key', 'backups')->first()?->value ?? 0; + + // Network totals + $totalNetIn = (int)($status->netin ?? 0); + $totalNetOut = (int)($status->netout ?? 0); + + // Service/billing info + $servicePlan = $server->service?->plan; + $serviceExpires = $server->service?->expires_at; + $serviceStatus = $server->service?->status ?? 'unknown'; + $productName = $server->service?->product?->name ?? 'Unknown Product'; + + // Location info + $locationName = $server->node?->location?->name ?? 'Unknown'; + $nodeName = $server->node?->name ?? 'Unknown'; + @endphp + +
+
+
+
+

Server Information

+ +

+ Comprehensive details about your virtual machine including specifications, billing, and infrastructure information. +

+
+

Specifications: Allocated CPU, RAM, and storage resources.

+

Network: Total bandwidth consumed since VM creation.

+

Billing: Service plan and renewal information.

+

Infrastructure: Datacenter location and node assignment.

+
+
+
+
+ +
+ +
+
+
+ +
+

Specifications

+
+
+
+ vCPU Cores + {{ $allocatedCores }} cores +
+
+ Memory + + @if($allocatedMemoryMiB > 0) + {{ number_format($allocatedMemoryMiB / 1024, 1) }} GiB + @else + {{ \Illuminate\Support\Number::fileSize(bytes: $memoryTotal) }} + @endif + +
+
+ Storage + + @if($allocatedDiskGiB > 0) + {{ $allocatedDiskGiB }} GiB + @elseif($diskTotal > 0) + {{ number_format($diskTotal / 1024 / 1024 / 1024, 0) }} GiB + @else + N/A + @endif + +
+
+ Backup Slots + {{ $allocatedBackups > 0 ? $allocatedBackups : 'Disabled' }} +
+
+ Operating System + {{ $server->os->name ?? 'Unknown' }} +
+
+
+ + +
+
+
+ +
+

Network Statistics

+
+
+
+ Primary IPv4 + {{ $server->primaryIpv4?->address ?? 'Not assigned' }} +
+
+ Primary IPv6 + {{ $server->primaryIpv6?->address ? \Illuminate\Support\Str::limit($server->primaryIpv6->address, 20) : 'Not assigned' }} +
+
+ Total Inbound + {{ \Illuminate\Support\Number::fileSize(bytes: $totalNetIn) }} +
+
+ Total Outbound + {{ \Illuminate\Support\Number::fileSize(bytes: $totalNetOut) }} +
+
+ Combined Transfer + {{ \Illuminate\Support\Number::fileSize(bytes: $totalNetIn + $totalNetOut) }} +
+
+
+ + +
+
+
+ +
+

Billing & Service

+
+
+
+ Product + {{ \Illuminate\Support\Str::limit($productName, 20) }} +
+
+ Billing Cycle + {{ ucfirst($servicePlan?->billing_period ?? 'N/A') }} +
+
+ Service Status + + {{ ucfirst($serviceStatus) }} + +
+
+ Next Renewal + + {{ $serviceExpires ? $serviceExpires->format('M d, Y') : 'N/A' }} + +
+ @if($serviceExpires) +
+ Days Until Renewal + + {{ $serviceExpires->diffInDays(now()) }} days + +
+ @endif +
+
+ + +
+
+
+ +
+

Infrastructure

+
+
+
+ Datacenter + {{ $locationName }} +
+
+ Hypervisor Node + {{ $nodeName }} +
+
+ VM ID + {{ $server->vm_id ?? 'N/A' }} +
+
+ VNC Console + + {{ $server->node?->vnc_enabled ? 'Enabled' : 'Disabled' }} + +
+
+ Virtualization + KVM/QEMU +
+
+
+ + +
+
+
+ +
+

Identifiers

+
+
+
+ Server ID + {{ $server->id }} +
+
+ Service ID + {{ $server->service_id ?? 'N/A' }} +
+
+ Hostname + {{ $server->hostname ?? 'N/A' }} +
+
+ Created + {{ $server->created_at?->format('M d, Y') ?? 'N/A' }} +
+
+ Last Modified + {{ $server->updated_at?->diffForHumans() ?? 'N/A' }} +
+
+
+ + +
+
+
+ +
+

Current Usage

+
+
+
+ CPU Usage +
+
+
+
+ {{ $cpuUsagePercent }}% +
+
+
+ Memory Usage +
+
+
+
+ {{ $memoryPercent }}% +
+
+ @if($diskTotal > 0) +
+ Disk Usage +
+
+
+
+ {{ $diskPercent }}% +
+
+ @endif +
+ Uptime + {{ $reportedUptime }} +
+
+ Power State + + {{ $status && $status->status === 'running' ? 'Running' : 'Stopped' }} + +
+
+
+
+
+
+ @once