diff --git a/app/Livewire/Services/Show.php b/app/Livewire/Services/Show.php index 7a91f07f1..6d295fb92 100644 --- a/app/Livewire/Services/Show.php +++ b/app/Livewire/Services/Show.php @@ -30,7 +30,7 @@ class Show extends Component public function mount() { // Attach Proxmox server (if any) so we can show hostname on the service page - $this->proxmoxServer = ProxmoxServer::where('service_id', $this->service->id)->first(); + $this->proxmoxServer = ProxmoxServer::with('os')->where('service_id', $this->service->id)->first(); // Only fetch the actions if the service is active if ($this->service->status == Service::STATUS_ACTIVE) { diff --git a/themes/lucentui/views/services/show.blade.php b/themes/lucentui/views/services/show.blade.php index 00c6a877e..59b42bf6e 100644 --- a/themes/lucentui/views/services/show.blade.php +++ b/themes/lucentui/views/services/show.blade.php @@ -125,6 +125,78 @@ + + @if($proxmoxServer) + @php + $cores = $service->product->settings()->where('key', 'cores')->first()?->value; + $memory = $service->product->settings()->where('key', 'memory')->first()?->value; + $disk = $service->product->settings()->where('key', 'disk')->first()?->value; + $bandwidth = $service->product->settings()->where('key', 'bandwidth')->first()?->value; + @endphp +