update console
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{{-- Service Header Partial - Cached for performance --}}
|
||||
@php
|
||||
$serverName = $invoice->invoiceItem->first()->server_name ?? 'Cloud VPS';
|
||||
$vmStatus = $vmInfo['status'] ?? null;
|
||||
@endphp
|
||||
|
||||
<div class="bg-gray-100 rounded-lg shadow-lg p-8 flex flex-col items-center justify-center">
|
||||
<div class="bg-white rounded-lg p-6 mb-4 shadow-md">
|
||||
<svg class="w-16 h-16 text-gray-700" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
|
||||
d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4" />
|
||||
</svg>
|
||||
</div>
|
||||
<h1 class="text-2xl font-bold text-gray-800 text-center mb-2">
|
||||
{{ $serverName }}
|
||||
</h1>
|
||||
<p class="text-sm text-gray-600 text-center">
|
||||
{{ $serverName }}
|
||||
</p>
|
||||
<div class="mt-4">
|
||||
@if ($vmStatus == 'POWERED_ON')
|
||||
<span class="bg-green-500 text-white px-4 py-2 rounded-full text-sm font-medium">{{ __('RUNNING') }}</span>
|
||||
@elseif($vmStatus == 'POWERED_OFF')
|
||||
<span class="bg-red-500 text-white px-4 py-2 rounded-full text-sm font-medium">{{ __('STOPPED') }}</span>
|
||||
@else
|
||||
<span class="bg-gray-500 text-white px-4 py-2 rounded-full text-sm font-medium">{{ __('UNKNOWN') }}</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user