{{-- VM Control Panel Partial - Optimized with reusable components --}} @php $vmStatus = $vmInfo['status'] ?? null; $isPoweredOn = $vmStatus == 'POWERED_ON'; $isPoweredOff = $vmStatus == 'POWERED_OFF'; $isWindows = \Illuminate\Support\Str::contains(\Illuminate\Support\Str::lower($vmInfo['os'] ?? ''), 'windows') || \Illuminate\Support\Str::contains( \Illuminate\Support\Str::lower($invoice->invoiceItem->first()?->os?->osGroup?->name ?? ''), 'windows', ); @endphp

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

{{-- VM Control Grid --}}
{{-- Row 1: Basic Controls --}} @include('frontend.service.partials.control-buttons.renewal-button') {{-- Debug info removed - was causing htmlspecialchars error --}} @if ($isPoweredOff) @include('frontend.service.partials.control-buttons.start-button') @elseif ($isPoweredOn) @include('frontend.service.partials.control-buttons.restart-button') @if ($isWindows) @include('frontend.service.partials.control-buttons.reset-remote-button') @endif @include('frontend.service.partials.control-buttons.stop-button') @include('frontend.service.partials.control-buttons.console-button', ['invoice' => $invoice]) @endif {{-- @include('frontend.service.partials.control-buttons.config-button') --}} @include('frontend.service.partials.control-buttons.reinstall-button') @if ($isPoweredOn) @include('frontend.service.partials.control-buttons.snapshot-button') @include('frontend.service.partials.control-buttons.reset-password-button') @include('frontend.service.partials.control-buttons.change-ip-button') @endif
{{-- Notes Section --}} @include('frontend.service.partials.control-notes') @livewire('v-p-s-reinstall-modal', [ 'productId' => $invoice->invoiceItem->first()?->getProductAttribute()?->id, 'invoiceId' => $invoice->id, ]) @if ($isPoweredOn) @include('frontend.service.partials.snapshots-modal', ['invoice' => $invoice]) @include('frontend.service.partials.reset-password-modal', [ 'invoice' => $invoice, 'isWindows' => $isWindows, ]) @include('frontend.service.partials.change-ip-modal', ['invoice' => $invoice]) @include('frontend.service.partials.change-remote-port-modal', ['invoice' => $invoice]) @include('frontend.service.partials.renewal-modal', ['invoice' => $invoice]) @endif