{{-- Service Header Partial - Cached for performance --}} @php $serverName = $invoice->invoiceItem->first()->server_name ?? 'Cloud VPS'; $vmStatus = $vmInfo['status'] ?? null; $statusBg = match ($vmStatus) { 'POWERED_ON' => 'bg-green-600', 'POWERED_OFF' => 'bg-red-600', default => 'bg-gray-600', }; @endphp
{{ $invoice->invoiceItem->first()?->getProductAttribute()?->name }}

{{ $serverName }}

{{ $serverName }}

@if ($vmStatus == 'POWERED_ON') {{ __('RUNNING') }} @elseif($vmStatus == 'POWERED_OFF') {{ __('STOPPED') }} @else {{ __('UNKNOWN') }} @endif