update sometimes

This commit is contained in:
pbao9
2025-07-28 17:02:13 +07:00
parent c1698e7fe7
commit 5ea42105f9
25 changed files with 259 additions and 325 deletions
@@ -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