feat: refactor VM add/edit forms to include vCenter selection, host component, and new VM information fields.

This commit is contained in:
pbao9
2026-02-14 16:57:13 +07:00
parent 498a57b499
commit d683afc901
6 changed files with 204 additions and 120 deletions
@@ -1,8 +1,9 @@
@php
$selectedVcenterId = old('vcenter_id') ??
($model?->host?->datacenter?->vcenter_id ?? (
$model?->ipaddress?->host?->datacenter?->vcenter?->id ??
$model?->vcenter_id ?? null
$model?->datacenter?->vcenter_id ??
($model?->ipaddress?->host?->datacenter?->vcenter?->id ??
$model?->vcenter_id ?? null)
));
@endphp