This commit is contained in:
pbao9
2026-01-27 15:36:58 +07:00
parent fb6b2159da
commit bfb5f9f4a5
15 changed files with 580 additions and 542 deletions
@@ -107,10 +107,6 @@
<div class="row">
<div class="col-md-6">
<table class="table table-sm table-borderless">
<tr>
<td width="30%" class="text-muted">VM ID:</td>
<td><code>{{ $product->vmware_id ?? 'N/A' }}</code></td>
</tr>
<tr>
<td class="text-muted">Tên VM:</td>
<td>{{ $product->name ?? 'Chưa đặt tên' }}</td>
@@ -162,11 +158,13 @@
<tr>
<td class="text-muted">vCenter:</td>
<td>
@if (isset($product->ipaddress) &&
@if (
isset($product->ipaddress) &&
isset($product->ipaddress->host) &&
isset($product->ipaddress->host->datacenter) &&
isset($product->ipaddress->host->datacenter->vCenter))
{{ $product->ipaddress->host->datacenter->vCenter->host ?? 'N/A' }}
isset($product->ipaddress->host->datacenter->vCenter)
)
{{ $product->ipaddress->host->datacenter->vCenter->host ?? 'N/A' }}
@else
N/A
@endif
@@ -274,9 +272,6 @@
<span class="badge badge-secondary ml-1">Hết hạn</span>
@endif
</div>
<div class="col-md-6">
<small class="text-muted">VM ID:</small> <code>{{ $product->vmware_id ?? 'N/A' }}</code>
</div>
</div>
<div class="row mt-1">
<div class="col-md-6">
@@ -19,8 +19,12 @@
<div class="form-group row">
<label class="col-md-3" for="module_network_id">Module Network</label>
<div class="col-md-9">
<input type="text" id="module_network_id" name="module_network_id" placeholder="1"
value="{{ old('module_network_id') }}" class="form-control">
<select name="module_network_id" id="module_network_id" class="form-control">
<option value="">Select Module Network</option>
@foreach ($moduleNetworks as $moduleNetwork)
<option value="{{ $moduleNetwork->id }}">{{ $moduleNetwork->name . ' - ' . $moduleNetwork->network }}</option>
@endforeach
</select>
</div>
</div>
</div>