@extends('layouts.app') @section('title', $vm->name) @section('heading', $vm->displayName()) @section('content') @php $canManage = auth()->user()->can('manage', $vm); $isRunning = ($liveStatus['status'] ?? $vm->proxmox_status) === 'running'; @endphp
@can('update', $vm) Konfiguration @endcan @if($canManage) Konsole öffnen @endif @can('delete', $vm)
@csrf @method('DELETE')
@endcan
@if($errors->has('power'))
{{ $errors->first('power') }}
@endif @if($errors->has('iso'))
{{ $errors->first('iso') }}
@endif @if($canManage)

VM-Steuerung

{{ $liveStatus['status'] ?? $vm->proxmox_status ?? 'unbekannt' }} @if(($liveStatus['uptime'] ?? $vm->proxmox_uptime ?? 0) > 0) Uptime: {{ gmdate('H:i:s', $liveStatus['uptime'] ?? $vm->proxmox_uptime) }} @endif
@csrf @foreach(\App\Enums\VmPowerAction::cases() as $action) @endforeach

Installations-ISO

@if($vm->attached_iso)

{{ $vm->attached_iso }}

@csrf @method('DELETE')
@else

Keine ISO eingebunden.

@endif
@csrf

Nach dem Einbinden: VM neu starten und von CD booten.

Live-Ressourcen

@if($liveStatus)
CPU
{{ number_format(($liveStatus['cpu'] ?? 0) * 100, 1) }}%
RAM
{{ number_format(($liveStatus['mem'] ?? 0) / 1024 / 1024 / 1024, 2) }} / {{ number_format(($liveStatus['maxmem'] ?? 0) / 1024 / 1024 / 1024, 2) }} GB
@else

Status nicht abrufbar (Proxmox-Verbindung prüfen).

@endif
@endif

Status

Provisioning
@include('partials.status-badge', ['status' => $vm->status])
Schritt
{{ $vm->provisioning_step ?? '—' }}
@if($vm->error_message)
{{ $vm->error_message }}
@endif
VMID
{{ $vm->vmid ?? '—' }}
@if(auth()->user()->isAdmin())
Besitzer
{{ $vm->owner?->name ?? '—' }}
@endif

Netzwerk

Private IP
{{ $vm->ip_address ?? '—' }}
Öffentliche IP
{{ $vm->public_ip ?? '—' }}
Traefik
{{ $vm->behind_traefik ? 'Ja' : 'Nein' }}
Domain
{{ str_ends_with($vm->domain ?? '', '.internal') ? '—' : $vm->domain }}

Ressourcen (Konfiguration)

vCPUs
{{ $vm->cpu }}
RAM
{{ $vm->ram }} MB
Disk
{{ $vm->disk }} GB

Aktivitätsprotokoll

@forelse($vm->activityLogs as $log)
{{ $log->action }} {{ $log->created_at->diffForHumans() }}
@empty

Noch keine Aktionen.

@endforelse
@if($canManage && $vm->vmid)

Snapshots (48h)

@csrf

Backups @if(!config('hosting.backups.enabled'))(PBS deaktiviert)@endif

@if(config('hosting.backups.enabled'))
@csrf
@endif

Firewall

@csrf

Neuinstallation

@csrf
@endif @if($canManage && $vm->vmid) @push('scripts') @endpush @endif @endsection