@extends('frontend.layouts.master') @push('viewStyles') @endpush @section('content')

{{ $invoice->invoiceItem->first()->server_name ?? 'Cloud VPS' }}

{{ $invoice->invoiceItem->first()->server_name ?? 'N/A' }}

@if ($vmInfo && $vmInfo['status'] == 'POWERED_ON') RUNNING @elseif($vmInfo && $vmInfo['status'] == 'POWERED_OFF') STOPPED @else UNKNOWN @endif

{{ __('Thông tin cấu hình') }}

IP @if ($vmInfo) {{ $vmInfo['ip'] ?? '103.42.56.177' }} @else 103.42.56.177 @endif
Port @if (Str::contains(Str::lower($vmInfo['os'] ?? ''), 'windows') || Str::contains(Str::lower($invoice->invoiceItem->first()->os->osGroup->name ?? ''), 'windows')) 3389 @else 22 @endif
User @if (Str::contains(Str::lower($vmInfo['os'] ?? ''), 'windows') || Str::contains(Str::lower($invoice->invoiceItem->first()->os->osGroup->name ?? ''), 'windows')) administrator @else root @endif
Password
OS {{ $invoice->invoiceItem->first()->os->osGroup->name ?? 'Unknown' }} {{ $invoice->invoiceItem->first()->os->version ?? '' }}
{{ __('Chi tiết') }} (CPU - RAM - DISK) @if ($vmInfo) {{ $vmInfo['cpu'] ?? '3' }} - {{ $vmInfo['ram'] ?? '1 GB' }} - {{ $vmInfo['disk'] ?? '25 GB' }} @else 3 - 1 GB - 25 GB @endif
@if ($invoice->invoiceItem->first()->addons->count() > 0)
{{ __('Addons') }}
{{ $invoice->invoiceItem->first()->addons->count() }} {{ __('addons') }} @foreach ($invoice->invoiceItem->first()->addons as $addon) {{ $addon->addonItems->name }} - {{ $addon->qty }} {{ $addon->addonItems->prefix }} - {{ number_format($addon->price, 0, ',', '.') }} đ @endforeach
@endif

{{ __('Thông tin giao dịch') }}

{{ __('Ngày đăng ký') }} {{ $invoice->date ? \Carbon\Carbon::parse($invoice->date)->format('d/m/Y') : 'N/A' }}
{{ __('Thanh toán lần đầu') }} {{ number_format($invoice->total ?? 0, 0, ',', '.') }} đ
{{ __('Số tiền thanh toán định kỳ') }} {{ number_format($invoice->total ?? 0, 0, ',', '.') }} đ
{{ __('Hạn sử dụng') }} @if ($invoice->status == 1) {{ __('Hết hạn') }} @else {{ __('Hoạt động') }} @endif
{{ __('Ngày hết hạn') }} {{ $invoice->due_date ? \Carbon\Carbon::parse($invoice->due_date)->format('d/m/Y') : 'N/A' }}
{{ __('Trạng thái gia hạn tự động') }} OFF
@if ($vmInfo)

{{ __('Điều khiển VM') }}

{{ __('Gia hạn') }}
{{ __('Khởi động lại') }}
{{ __('Tạm dừng') }}
@if ($vmInfo['status'] == 'POWERED_OFF')
{{ __('Khởi động máy ảo') }}
@elseif ($vmInfo['status'] == 'POWERED_ON')
{{ __('Tắt nguồn') }}
@endif
{{ __('Thêm cấu hình') }}
{{ __('Cài lại') }}
@if ($vmInfo['status'] == 'POWERED_ON')
@csrf
@endif
{{ __('Mở Console') }}
{{ __('Reset Mật Khẩu') }}
{{ __('Lưu ý:') }}
  • • {{ __('Các thao tác có thể mất vài giây để hoàn thành') }}
  • • {{ __('VM sẽ được khởi động lại sau khi thay đổi cấu hình') }}
  • • {{ __('Vui lòng đợi thao tác hoàn thành trước khi thực hiện tiếp') }}
@else

Thông báo

Dịch vụ này chưa có thông tin VM hoặc đang trong quá trình khởi tạo.

@endif
@include('frontend.service.list-snapshot')
@endsection @push('viewScripts') @endpush