{{-- VM Control Panel Partial - Optimized with reusable components --}} @php $vmStatus = $vmInfo['status'] ?? null; $isPoweredOn = $vmStatus == 'POWERED_ON'; $isPoweredOff = $vmStatus == 'POWERED_OFF'; @endphp

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

{{-- VM Control Grid --}}
{{-- Row 1: Basic Controls --}} @include('frontend.service.partials.control-buttons.renewal-button') {{ $vmInfo }} @if ($isPoweredOff) @include('frontend.service.partials.control-buttons.start-button') @elseif ($isPoweredOn) @include('frontend.service.partials.control-buttons.restart-button') @include('frontend.service.partials.control-buttons.reset-remote-button') @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') @endif {{-- @include('frontend.service.partials.control-buttons.reset-password-button') --}}
{{-- Notes Section --}} @include('frontend.service.partials.control-notes') @livewire('v-p-s-reinstall-modal', [ 'productId' => $invoice->invoiceItem->first()?->getProductAttribute()?->id, 'invoiceId' => $invoice->id, ])