getLocale(); $growth = [180, 188, 195, 199, 204, 210, 214, 219, 223, 228, 231, 235]; // Maintenance affecting THIS customer's instance host — shown as a badge // on the instance itself, not just as a global banner. $customer = $this->customer(); $maintenance = $customer ? MaintenanceWindow::bannerFor($customer)->first() : null; return view('livewire.cloud', [ 'instance' => [ 'name' => 'Cloud der Kanzlei Berger', 'domain' => 'cloud.kanzlei-berger.at', 'status' => 'active', 'plan' => __('cloud.plan_line', ['plan' => 'CluPilot Cloud Team', 'price' => 179]), 'location' => __('cloud.datacenter'), 'version' => 'Nextcloud 31.0.4', 'php' => 'PHP 8.3 · MariaDB 11.4', 'storageUsed' => 235, 'storageQuota' => 500, 'seats' => __('billing.seats_count', ['count' => 25]), 'performance' => __('billing.perf.enhanced'), ], 'storageChart' => [ 'type' => 'line', 'data' => [ 'labels' => ['', '', '', '', '', '', '', '', '', '', '', __('cloud.now')], 'datasets' => [[ 'label' => 'GB', 'data' => $growth, 'borderColor' => 'token:accent', 'backgroundColor' => 'token:accent/0.10', 'fill' => true, 'tension' => 0.35, 'pointRadius' => 0, 'borderWidth' => 2, ]], ], 'options' => [ 'scales' => [ 'x' => ['grid' => ['display' => false]], 'y' => ['beginAtZero' => false, 'grid' => ['color' => 'token:border']], ], 'plugins' => ['legend' => ['display' => false]], ], ], 'storageLabel' => Number::format(235, locale: $locale).' / '.Number::format(500, locale: $locale).' GB', 'maintenance' => $maintenance, ]); } }