{{ $order->domain_name }} - Order 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 = match ($order->product?->type) { 'single_domain' => route('hosting.single-domain'), 'multi_domain' => route('hosting.multi-domain'), 'wordpress' => route('hosting.wordpress'), default => route('hosting.single-domain'), }; @endphp
{{-- Page Header --}}
Back to {{ $order->product?->type === 'wordpress' ? 'WordPress Hosting' : ($order->product?->type === 'multi_domain' ? 'Multi Domain Hosting' : 'Single Domain Hosting') }}

{{ $order->domain_name }}

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

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

Order Details

Domain {{ $order->domain_name }}
Plan {{ $order->product?->name ?? '-' }}
Billing Cycle {{ ucfirst($order->billing_cycle) }}
Amount {{ strtoupper($order->currency) }} {{ number_format($order->amount_paid, 2) }}
Created {{ $order->created_at->format('M d, Y H:i') }}
@if ($order->expires_at)
Expires {{ $order->expires_at->format('M d, Y') }}
@endif
{{-- Server Details (if active) --}} @if ($order->isActive() && ($order->server_ip || $order->server_username || $order->control_panel_url))

Server Details

@if ($order->server_ip)
IP Address {{ $order->server_ip }}
@endif @if ($order->server_username)
Username {{ $order->server_username }}
@endif @if ($order->hostingNode)
Server {{ $order->hostingNode->hostname }}
@endif @if ($order->control_panel_url)
Control Panel Open cPanel →
@endif
@endif {{-- Plan Resources --}} @if ($order->product)

Plan Resources

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

Storage

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

Bandwidth

{{ $order->product->max_domains ?? '∞' }}

Domains

{{ $order->product->max_databases ?? '∞' }}

Databases

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

Quick Actions

@if ($order->control_panel_url && $order->isActive()) Open Control Panel @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 --}}