update sometimes
This commit is contained in:
@@ -67,12 +67,6 @@ $(document).ready(function () {
|
||||
const basePrice = parseFloat($productContainer.data('base-price'));
|
||||
const selectedMonths = parseInt(months);
|
||||
|
||||
console.log('Updating price display:', {
|
||||
basePrice: basePrice,
|
||||
selectedMonths: selectedMonths,
|
||||
productContainer: $productContainer.length
|
||||
});
|
||||
|
||||
// Calculate prices
|
||||
const originalPrice = basePrice * selectedMonths;
|
||||
const savings = selectedMonths >= 12 ? Math.round(originalPrice * 0.1) : 0;
|
||||
@@ -408,50 +402,25 @@ $(document).ready(function () {
|
||||
// Load Guest OS info when page loads
|
||||
loadGuestOSInfo();
|
||||
|
||||
// Debug: Show what data we have
|
||||
console.log(
|
||||
"Template IDs available:",
|
||||
$(".guest-os")
|
||||
.map(function () {
|
||||
return {
|
||||
templateId: $(this).data("template-id"),
|
||||
hasTemplateId: Boolean($(this).data("template-id")),
|
||||
};
|
||||
})
|
||||
.get()
|
||||
);
|
||||
|
||||
// Expose cache management to global scope for debugging
|
||||
window.vmInfoCache = {
|
||||
clear: function () {
|
||||
localStorage.removeItem(VM_INFO_CACHE_KEY);
|
||||
console.log("VM Info cache cleared");
|
||||
},
|
||||
refresh: function () {
|
||||
this.clear();
|
||||
loadGuestOSInfo();
|
||||
console.log("VM Info cache refreshed");
|
||||
},
|
||||
info: function () {
|
||||
const vmInfoCache = getVMInfoCache();
|
||||
if (!vmInfoCache) {
|
||||
console.log("No VM Info cache found");
|
||||
return;
|
||||
}
|
||||
|
||||
const templateIds = Object.keys(vmInfoCache.data);
|
||||
console.log(`VM Info cache entries: ${templateIds.length}`);
|
||||
console.log(
|
||||
`Last updated: ${new Date(
|
||||
vmInfoCache.lastUpdated
|
||||
).toLocaleString()}`
|
||||
);
|
||||
|
||||
templateIds.forEach((templateId) => {
|
||||
const data = getVMInfoFromCache(templateId);
|
||||
console.log(
|
||||
`${templateId}: ${data ? data.formattedOS : "expired"}`
|
||||
);
|
||||
});
|
||||
},
|
||||
get: function (templateId) {
|
||||
@@ -459,7 +428,6 @@ $(document).ready(function () {
|
||||
},
|
||||
remove: function (templateId) {
|
||||
removeVMInfoFromCache(templateId);
|
||||
console.log(`Removed ${templateId} from cache`);
|
||||
},
|
||||
raw: function () {
|
||||
return getVMInfoCache();
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="{{ asset('lib/adminlte/adminlte.min.css') }}">
|
||||
<!-- Toast -->
|
||||
<link rel="stylesheet" href="{{ asset('lib/toastr/toastr.min.css') }}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('lib/fui-toast/fuiToast.min.css') }}">
|
||||
</head>
|
||||
<body class="hold-transition login-page">
|
||||
<div class="login-box">
|
||||
@@ -75,8 +75,7 @@
|
||||
<!-- AdminLTE App -->
|
||||
<script src="{{ asset('lib/adminlte/adminlte.min.js') }}"></script>
|
||||
<!-- Toast js -->
|
||||
<script src="{{ asset('lib/toastr/toastr.min.js') }}"></script>
|
||||
<script src="{{ asset('lib/toastr/toastr-setting.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ asset('lib/fui-toast/fuiToast.min.js') }}"></script>
|
||||
@include("alerts")
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
width: 100%;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.dropdown-selected {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -23,14 +24,17 @@
|
||||
position: relative;
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
.dropdown-selected:hover {
|
||||
border-color: #f66d2f;
|
||||
box-shadow: 0 0 0 3px rgba(246, 109, 47, 0.1);
|
||||
}
|
||||
|
||||
.dropdown-selected.active {
|
||||
border-color: #f66d2f;
|
||||
box-shadow: 0 0 0 3px rgba(246, 109, 47, 0.1);
|
||||
}
|
||||
|
||||
.dropdown-options {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
@@ -46,9 +50,11 @@
|
||||
margin-top: 4px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dropdown-options.show {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.dropdown-option {
|
||||
padding: 12px 16px;
|
||||
cursor: pointer !important;
|
||||
@@ -56,22 +62,27 @@
|
||||
border-bottom: 1px solid #f3f4f6;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.dropdown-option:hover {
|
||||
background: #fff5f0;
|
||||
color: #f66d2f;
|
||||
}
|
||||
|
||||
.dropdown-option.selected {
|
||||
background: #f66d2f;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.dropdown-option:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.dropdown-arrow {
|
||||
transition: transform 0.2s ease;
|
||||
color: #6b7280;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.dropdown-selected.active .dropdown-arrow,
|
||||
.dropdown-arrow.rotate-180 {
|
||||
transform: rotate(180deg);
|
||||
@@ -94,7 +105,7 @@
|
||||
|
||||
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8" x-data="{
|
||||
paymentPeriod: {{ $cartItems[0]['months'] ?? 6 }},
|
||||
baseTotal: {{ $cartItems[0]['product']->price_sale ?? $cartItems[0]['product']->price ?? 0 }},
|
||||
baseTotal: {{ $cartItems[0]['product']->price_sale ?? ($cartItems[0]['product']->price ?? 0) }},
|
||||
get totalPrice() {
|
||||
const originalPrice = this.baseTotal * this.paymentPeriod;
|
||||
const discount = this.paymentPeriod >= 12 ? Math.round(originalPrice * 0.1) : 0;
|
||||
@@ -139,8 +150,6 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Product Title and Price -->
|
||||
<div class="bg-white rounded-lg border border-gray-200 p-6">
|
||||
<input type="hidden" name="product_id" value="{{ $product->id }}" />
|
||||
@@ -183,102 +192,83 @@
|
||||
<div>• Control Panel: Cpanel.</div>
|
||||
@else
|
||||
<!-- VPS Features -->
|
||||
<div
|
||||
class="flex items-center space-x-3 p-3 bg-gradient-to-r from-blue-50 to-indigo-50 rounded-lg border border-blue-100">
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="w-5 h-5 text-blue-600" fill="none" stroke="currentColor"
|
||||
viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z">
|
||||
</path>
|
||||
</svg>
|
||||
<img src="{{ asset('/icon/cpu.svg') }}" alt="CPU" class="w-5 h-5">
|
||||
</div>
|
||||
<div>
|
||||
<div class="font-semibold text-blue-800">{{ $product->cpu ?? 'Không rõ' }}
|
||||
vCore</div>
|
||||
<div class="text-xs text-blue-600">CPU</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="text-md font-semibold">CPU:</span>
|
||||
<div class="font-semibold text-blue-800">
|
||||
<span>{{ $product->cpu ?? 'Không rõ' }}</span>
|
||||
<span class="text-xs text-blue-600">vCore</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="flex-shrink-0">
|
||||
<img src="{{ asset('/icon/ram.svg') }}" alt="Ram" class="w-5 h-5">
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="text-md font-semibold">RAM:</span>
|
||||
<div class="font-semibold text-blue-800">
|
||||
<span>{{ $product->ram ?? 'Không rõ' }}</span>
|
||||
<span class="text-xs text-blue-600">GB</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="flex items-center space-x-3 p-3 bg-gradient-to-r from-green-50 to-emerald-50 rounded-lg border border-green-100">
|
||||
|
||||
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="w-5 h-5 text-green-600" fill="none" stroke="currentColor"
|
||||
viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10">
|
||||
</path>
|
||||
</svg>
|
||||
<img src="{{ asset('/icon/storage.svg') }}" alt="Disk" class="w-5 h-5">
|
||||
</div>
|
||||
<div>
|
||||
<div class="font-semibold text-green-800">{{ $product->ram ?? 'Không rõ' }}
|
||||
GB</div>
|
||||
<div class="text-xs text-green-600">RAM</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="text-md font-semibold">Disk:</span>
|
||||
<div class="font-semibold text-blue-800">
|
||||
<span>{{ $product->disk ?? 'Không rõ' }}</span>
|
||||
<span class="text-xs text-blue-600">GB</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="flex items-center space-x-3 p-3 bg-gradient-to-r from-purple-50 to-violet-50 rounded-lg border border-purple-100">
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="w-5 h-5 text-purple-600" fill="none" stroke="currentColor"
|
||||
viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4">
|
||||
</path>
|
||||
</svg>
|
||||
<img src="{{ asset('/icon/video.svg') }}" alt="GPU" class="w-5 h-5">
|
||||
</div>
|
||||
<div>
|
||||
<div class="font-semibold text-purple-800">
|
||||
{{ $product->disk ?? 'Không rõ' }} GB</div>
|
||||
<div class="text-xs text-purple-600">SSD Storage</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="text-md font-semibold">GPU:</span>
|
||||
<div class="font-semibold text-blue-800">
|
||||
<span>{{ $product->gpu ?? 'Không rõ' }}</span>
|
||||
<span class="text-xs text-blue-600">GB</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="flex items-center space-x-3 p-3 bg-gradient-to-r from-orange-50 to-amber-50 rounded-lg border border-orange-100">
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="w-5 h-5 text-orange-600" fill="none" stroke="currentColor"
|
||||
viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z">
|
||||
</path>
|
||||
</svg>
|
||||
<img src="{{ asset('/icon/network.svg') }}" alt="IP" class="w-5 h-5">
|
||||
</div>
|
||||
<div>
|
||||
<div class="font-semibold text-orange-800">{{ $product->gpu ?? 'Không' }}
|
||||
GB</div>
|
||||
<div class="text-xs text-orange-600">GPU</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="text-md font-semibold">IP Public:</span>
|
||||
<div class="font-semibold text-blue-800">
|
||||
<span>{{ $product->ip ?? 'Không rõ' }}</span>
|
||||
<span class="text-xs text-blue-600">IP</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="flex items-center space-x-3 p-3 bg-gradient-to-r from-teal-50 to-cyan-50 rounded-lg border border-teal-100">
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="w-5 h-5 text-teal-600" fill="none" stroke="currentColor"
|
||||
viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9v-9m0-9v9"></path>
|
||||
</svg>
|
||||
<img src="{{ asset('/icon/bandwidth.svg') }}" alt="Bandwidth"
|
||||
class="w-5 h-5">
|
||||
</div>
|
||||
<div>
|
||||
<div class="font-semibold text-teal-800">{{ $product->ip ?? '1' }}</div>
|
||||
<div class="text-xs text-teal-600">IP Public</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="flex items-center space-x-3 p-3 bg-gradient-to-r from-rose-50 to-pink-50 rounded-lg border border-rose-100">
|
||||
<div class="flex-shrink-0">
|
||||
<svg class="w-5 h-5 text-rose-600" fill="none" stroke="currentColor"
|
||||
viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M13 10V3L4 14h7v7l9-11h-7z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
<div>
|
||||
<div class="font-semibold text-rose-800">
|
||||
{{ $product->bandwidth ?? 'Không giới hạn' }}</div>
|
||||
<div class="text-xs text-rose-600">Băng thông</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="text-md font-semibold">Băng thông:</span>
|
||||
<div class="font-semibold text-blue-800">
|
||||
<span>{{ $product->bandwidth ?? 'Không rõ' }}</span>
|
||||
<span class="text-xs text-blue-600">GB</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@@ -368,7 +358,7 @@
|
||||
|
||||
<!-- Right Column - Payment Summary -->
|
||||
<div class="space-y-6">
|
||||
|
||||
|
||||
<!-- Payment Period & Addons Section -->
|
||||
<livewire:cart.summary-addons :product="$item['product']" :addons="$item['addon'] ?? []" :index="$index"
|
||||
:months="$item['months']" />
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-12 gap-6 p-6" x-data="{
|
||||
amount: '{{ old('money') ?? '' }}',
|
||||
amount: '{{ old('total_amount') ?? '' }}',
|
||||
error: '',
|
||||
selectedPayment: null,
|
||||
showCustomAmount: false
|
||||
@@ -70,7 +70,7 @@
|
||||
Nhập số tiền tùy chọn
|
||||
</label>
|
||||
<div class="relative">
|
||||
<input type="number" name="money" x-model="amount"
|
||||
<input type="number" name="total_amount" x-model="amount"
|
||||
@input="error = amount < 200000 ? 'Số tiền tối thiểu là 200,000 đ' : ''"
|
||||
placeholder="200.000" min="200000"
|
||||
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary"
|
||||
@@ -115,7 +115,7 @@
|
||||
<form x-ref="vnpayForm" action="{{ route('recharge.paymentProcess.vnPay') }}"
|
||||
method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="money" x-bind:value="amount">
|
||||
<input type="hidden" name="total_amount" x-bind:value="amount">
|
||||
<button type="submit" :disabled="!amount || amount < 200000"
|
||||
class="w-full flex items-center justify-between p-4 bg-gray-700 text-white rounded-lg hover:bg-gray-800 transition-colors font-medium disabled:opacity-50 disabled:cursor-not-allowed">
|
||||
<div class="flex items-center space-x-3">
|
||||
|
||||
@@ -31,7 +31,8 @@
|
||||
|
||||
<!-- Price Display -->
|
||||
<div class="text-center">
|
||||
<div class="inline-flex items-center justify-center gap-2 bg-orange-50 rounded-md w-full mb-3 p-2">
|
||||
<div
|
||||
class="inline-flex items-center justify-center gap-2 bg-orange-50 rounded-md w-full mb-3 p-2">
|
||||
<span class="text-sm font-bold text-primary">
|
||||
≈ {{ format_price($item->price_sale ?: $item->price) }}
|
||||
</span>
|
||||
@@ -39,7 +40,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- Duration Selector -->
|
||||
|
||||
|
||||
<div class="mb-6">
|
||||
<!-- Custom Dropdown -->
|
||||
<div class="custom-dropdown" id="durationDropdown{{ $item->id }}">
|
||||
@@ -58,21 +59,24 @@
|
||||
data-price="{{ $basePrice * 12 }}">
|
||||
<div class="flex justify-between items-center">
|
||||
<span>{{ format_price($basePrice * 12) }} / 1 năm</span>
|
||||
<span class="text-xs text-green-600 bg-green-100 px-2 py-1 rounded">Tiết kiệm 10%</span>
|
||||
<span class="text-xs text-green-600 bg-green-100 px-2 py-1 rounded">Tiết
|
||||
kiệm 10%</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dropdown-option" data-value="24" data-months="24"
|
||||
data-price="{{ $basePrice * 24 }}">
|
||||
<div class="flex justify-between items-center">
|
||||
<span>{{ format_price($basePrice * 24) }} / 2 năm</span>
|
||||
<span class="text-xs text-green-600 bg-green-100 px-2 py-1 rounded">Tiết kiệm 10%</span>
|
||||
<span class="text-xs text-green-600 bg-green-100 px-2 py-1 rounded">Tiết
|
||||
kiệm 10%</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dropdown-option" data-value="36" data-months="36"
|
||||
data-price="{{ $basePrice * 36 }}">
|
||||
<div class="flex justify-between items-center">
|
||||
<span>{{ format_price($basePrice * 36) }} / 3 năm</span>
|
||||
<span class="text-xs text-green-600 bg-green-100 px-2 py-1 rounded">Tiết kiệm 10%</span>
|
||||
<span class="text-xs text-green-600 bg-green-100 px-2 py-1 rounded">Tiết
|
||||
kiệm 10%</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -84,81 +88,46 @@
|
||||
</div>
|
||||
<!-- Specifications -->
|
||||
<div class="space-y-4 mb-6">
|
||||
<h4 class="text-lg font-semibold text-gray-800 mb-4 flex items-center gap-2">
|
||||
<i class="fas fa-cogs text-orange-500"></i>
|
||||
Thông số kỹ thuật
|
||||
</h4>
|
||||
|
||||
<ul class="space-y-3">
|
||||
<ul class="space-y-1">
|
||||
<!-- CPU -->
|
||||
<li
|
||||
class="flex items-center gap-3 p-3 bg-gray-50 rounded-lg group-hover:bg-orange-50 transition-colors">
|
||||
<li class="flex items-center justify-center gap-3">
|
||||
<div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center">
|
||||
<i class="fas fa-microchip text-orange-600"></i>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<span class="text-sm text-gray-600">CPU:</span>
|
||||
<span class="font-bold text-gray-800 ml-2 vm-cpu" data-template-id="{{ $item->template_id }}">{{ $item->cpu }} vCore</span>
|
||||
<span class="font-bold text-gray-800 ml-2 vm-cpu"
|
||||
data-template-id="{{ $item->template_id }}">{{ $item->cpu }}
|
||||
vCore</span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- RAM -->
|
||||
<li
|
||||
class="flex items-center gap-3 p-3 bg-gray-50 rounded-lg group-hover:bg-orange-50 transition-colors">
|
||||
<li class="flex items-center justify-center gap-3">
|
||||
<div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center">
|
||||
<i class="fas fa-memory text-orange-600"></i>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<span class="text-sm text-gray-600">RAM:</span>
|
||||
<span class="font-bold text-gray-800 ml-2 vm-ram" data-template-id="{{ $item->template_id }}">{{ $item->ram }} GB</span>
|
||||
<span class="font-bold text-gray-800 ml-2 vm-ram"
|
||||
data-template-id="{{ $item->template_id }}">{{ $item->ram }} GB</span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- SSD -->
|
||||
<li
|
||||
class="flex items-center gap-3 p-3 bg-gray-50 rounded-lg group-hover:bg-orange-50 transition-colors">
|
||||
<li class="flex items-center justify-center gap-3">
|
||||
<div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center">
|
||||
<i class="fas fa-hdd text-orange-600"></i>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<span class="text-sm text-gray-600">SSD:</span>
|
||||
<span class="font-bold text-gray-800 ml-2 vm-disk" data-template-id="{{ $item->template_id }}">{{ $item->disk }} GB</span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- OS -->
|
||||
<li
|
||||
class="flex items-center gap-3 p-3 bg-gray-50 rounded-lg group-hover:bg-orange-50 transition-colors">
|
||||
<div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center">
|
||||
<i class="fab fa-linux text-orange-600 os-icon" data-template-id="{{ $item->template_id }}"></i>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<span class="text-sm text-gray-600">Hệ điều hành:</span>
|
||||
<span class="font-bold text-gray-800 ml-2 guest-os" data-template-id="{{ $item->template_id }}">
|
||||
@if($item->type_id == 4 && $item->operatingSystems->isNotEmpty())
|
||||
{{ $item->operatingSystems->pluck('osGroup.name')->filter()->unique()->implode(', ') }}
|
||||
@else
|
||||
{{ $item->os ?? 'Linux' }}
|
||||
@endif
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- Bandwidth -->
|
||||
<li
|
||||
class="flex items-center gap-3 p-3 bg-gray-50 rounded-lg group-hover:bg-orange-50 transition-colors">
|
||||
<div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center">
|
||||
<i class="fas fa-tachometer-alt text-orange-600"></i>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<span class="text-sm text-gray-600">Băng thông:</span>
|
||||
<span class="font-bold text-gray-800 ml-2">{{ $item->bandwidth }} MB</span>
|
||||
<span class="font-bold text-gray-800 ml-2 vm-disk"
|
||||
data-template-id="{{ $item->template_id }}">{{ $item->disk }} GB</span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- GPU -->
|
||||
<li
|
||||
class="flex items-center gap-3 p-3 bg-gray-50 rounded-lg group-hover:bg-orange-50 transition-colors">
|
||||
<li class="flex items-center justify-center gap-3">
|
||||
<div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center">
|
||||
<i class="fas fa-tv text-orange-600"></i>
|
||||
</div>
|
||||
@@ -167,23 +136,41 @@
|
||||
<span class="font-bold text-gray-800 ml-2">{{ $item->gpu }} GB</span>
|
||||
</div>
|
||||
</li>
|
||||
<!-- Bandwidth -->
|
||||
<li class="flex items-center justify-center gap-3">
|
||||
<div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center">
|
||||
<i class="fas fa-tachometer-alt text-orange-600"></i>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<span class="text-sm text-gray-600">Băng thông:</span>
|
||||
<span class="font-bold text-gray-800 ml-2">{{ $item->bandwidth }} MB</span>
|
||||
</div>
|
||||
</li>
|
||||
<!-- OS -->
|
||||
<li class="flex items-center justify-center gap-3">
|
||||
<div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center">
|
||||
<i class="fab fa-linux text-orange-600 os-icon"
|
||||
data-template-id="{{ $item->template_id }}"></i>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<span class="text-sm text-gray-600">Hệ điều hành:</span>
|
||||
<span class="font-bold text-gray-800 ml-2 guest-os"
|
||||
data-template-id="{{ $item->template_id }}">
|
||||
@if ($item->type_id == 4 && $item->operatingSystems->isNotEmpty())
|
||||
{{ $item->operatingSystems->pluck('osGroup.name')->filter()->unique()->implode(', ') }}
|
||||
@else
|
||||
{{ $item->os ?? 'Linux' }}
|
||||
@endif
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Action Button -->
|
||||
|
||||
|
||||
<flux:button variant="primary" color="orange" type="submit" class="w-full"
|
||||
icon="shopping-bag">
|
||||
Đăng ký ngay</flux:button>
|
||||
|
||||
<!-- Support Info -->
|
||||
<div class="text-center mt-4">
|
||||
<p class="text-xs text-gray-500">
|
||||
<i class="fas fa-headset text-orange-500 mr-1"></i>
|
||||
Hỗ trợ kỹ thuật 24/7 - Bảo hành toàn diện
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -224,5 +211,5 @@
|
||||
|
||||
@push('viewScripts')
|
||||
<script src="{{ asset('lib/tom-select/tom-select.complete.min.js') }}" defer></script>
|
||||
<script src="{{ asset('js/service/vminfo.js') }}" defer></script>
|
||||
<script src="{{ asset('js/service/vminfo.min.js') }}" defer></script>
|
||||
@endpush
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<script type="text/javascript" src="{{ asset('lib/ckfinder/ckfinder.js') }}"></script>
|
||||
<script>CKFinder.config( { connectorPath: @json(route('ckfinder_connector')) } );</script>
|
||||
Reference in New Issue
Block a user