@extends('layouts.app') @section('title', 'Dashboard') @section('heading', 'Dashboard') @section('content')
@foreach([ ['label' => 'VMs gesamt', 'value' => $stats['vms_total'], 'color' => 'text-white'], ['label' => 'Aktiv', 'value' => $stats['vms_active'], 'color' => 'text-emerald-400'], ['label' => 'In Bereitstellung', 'value' => $stats['vms_pending'], 'color' => 'text-amber-400'], ['label' => 'Fehlgeschlagen', 'value' => $stats['vms_failed'], 'color' => 'text-red-400'], ] as $card)

{{ $card['label'] }}

{{ $card['value'] }}

@endforeach
@if($usersCount !== null)
Registrierte Benutzer: {{ $usersCount }}
@endif

IP-Pools

@forelse($pools as $pool)
{{ $pool->name }} ({{ $pool->type->label() }}) {{ $pool->usedIpsCount() }}/{{ $pool->totalIps() }}
@php $pct = $pool->totalIps() > 0 ? ($pool->usedIpsCount() / $pool->totalIps()) * 100 : 0; @endphp
@empty

Keine IP-Pools konfiguriert.

@endforelse
Alle Pools anzeigen →

Letzte VMs

+ Neue VM
@endsection