{{ $order->domain_name }} - Server Details @php $statusColors = [ 'pending_payment' => 'bg-amber-50 text-amber-700 border-amber-200', 'pending_approval' => 'bg-amber-50 text-amber-700 border-amber-200', 'approved' => 'bg-blue-50 text-blue-700 border-blue-200', 'provisioning' => 'bg-blue-50 text-blue-700 border-blue-200', 'active' => 'bg-emerald-50 text-emerald-700 border-emerald-200', 'suspended' => 'bg-red-50 text-red-700 border-red-200', 'cancelled' => 'bg-gray-100 text-gray-500 border-gray-200', 'expired' => 'bg-gray-100 text-gray-500 border-gray-200', 'failed' => 'bg-red-50 text-red-700 border-red-200', ]; $statusLabels = collect([ 'pending_payment', 'pending_approval', 'approved', 'provisioning', 'active', 'suspended', 'cancelled', 'expired', 'failed', ])->mapWithKeys(fn (string $status) => [ $status => \App\Models\CustomerHostingOrder::customerFacingStatusLabelFor($status), ])->all(); $statusColors['approved'] = 'bg-amber-50 text-amber-700 border-amber-200'; $backRoute = $order->product?->type === 'dedicated' ? route('hosting.dedicated') : route('hosting.vps'); $backLabel = $order->product?->type === 'dedicated' ? 'Dedicated Servers' : 'VPS'; $serverOrder = (array) ($order->meta['server_order'] ?? []); $selectionSummary = (array) ($serverOrder['selection_summary'] ?? []); $quote = (array) ($serverOrder['quote'] ?? []); $panelRuntime = (array) data_get($order->meta, 'server_panel_runtime', data_get($serverOrder, 'panel_snapshot', [])); $quoteItems = collect((array) ($quote['line_items'] ?? [])) ->filter(fn ($item) => ($item['code'] ?? null) !== 'base_plan') ->values(); @endphp
{{-- Page Header --}}
Back to {{ $backLabel }}

{{ $order->domain_name }}

{{ $order->product?->name ?? 'Server Order' }}

{{ $statusLabels[$order->status] ?? ucfirst($order->status) }}
{{-- Main Content --}}
{{-- Server Details --}}

Server Details

Server Name {{ $order->domain_name }}
Plan {{ $order->product?->name ?? '-' }}
Region {{ $order->meta['region'] ?? 'EU' }}
@if ($order->server_ip)
IP Address {{ $order->server_ip }}
@endif
Billing Cycle {{ str($order->billing_cycle)->replace('_', ' ')->title() }}
Amount {{ strtoupper($order->currency) }} {{ number_format($order->amount_paid, 2) }}
@if ($panelRuntime !== [])

Panel Mode

{{ $panelRuntime['label'] ?? 'Server Access' }}

{{ $panelRuntime['primary_message'] ?? '' }}

@if (! empty($panelRuntime['secondary_message']))

{{ $panelRuntime['secondary_message'] }}

@endif
@if (! empty($panelRuntime['future_capabilities']))
Managed features after provisioning: {{ implode(', ', (array) $panelRuntime['future_capabilities']) }}
@endif
@endif {{-- Server Resources --}} @if ($order->product)

Server Resources

{{ $order->product->cpu_cores }}

vCPU Cores

{{ $order->product->formatRam() }}

RAM

{{ $order->product->formatDiskSize() }}

SSD Storage

{{ $order->product->formatBandwidth() }}

Bandwidth

@endif @if ($selectionSummary !== [])

Selected Options

@foreach ($selectionSummary as $item)

{{ $item['label'] ?? 'Option' }}

@if (!empty($item['description']))

{{ $item['description'] }}

@endif

{{ $item['value'] ?? '-' }}

@if (!empty($item['monthly_amount']))

+ {{ strtoupper($order->currency) }} {{ number_format((float) $item['monthly_amount'], 2) }}/mo before term scaling

@endif
@endforeach
@endif @if ($quoteItems->isNotEmpty())

Pricing Breakdown

@foreach ($quoteItems as $item)

{{ $item['label'] ?? 'Add-on' }}

{{ strtoupper($order->currency) }} {{ number_format((float) ($item['amount'] ?? 0), 2) }}
@endforeach
Total Charged {{ strtoupper($order->currency) }} {{ number_format((float) $order->amount_paid, 2) }}
@endif {{-- SSH Access (if active) --}} @if ($order->isActive() && $order->server_ip)

SSH Access

ssh root@{{ $order->server_ip }}

Use the credentials sent to your email to connect.

@endif
{{-- Sidebar --}}
{{-- Quick Actions --}}

Quick Actions

@if ($order->control_panel_url && $order->isActive()) Open Server Manager @endif Get Support @if ($order->canBeCancelled()) @endif
{{-- Status Timeline --}}

Status

Order Placed

{{ $order->created_at->format('M d, Y H:i') }}

@if ($order->approved_at) @else
@endif

Approved

@if ($order->approved_at)

{{ $order->approved_at->format('M d, Y H:i') }}

@endif
@if ($order->provisioned_at) @else
@endif

Provisioned

@if ($order->provisioned_at)

{{ $order->provisioned_at->format('M d, Y H:i') }}

@endif
{{-- Cancel Modal --}}