Hosting — {{ $order->domain_name }} @php $statusColors = [ 'active' => 'bg-emerald-50 text-emerald-700', 'pending' => 'bg-amber-50 text-amber-700', 'suspended' => 'bg-red-50 text-red-700', 'expired' => 'bg-gray-100 text-gray-600', 'cancelled' => 'bg-gray-100 text-gray-500', 'failed' => 'bg-red-50 text-red-700', ]; $statusBadge = $statusColors[$order->status] ?? 'bg-gray-100 text-gray-600'; $nameservers = collect((array) $order->nameservers)->filter()->values(); $renewalOptions = collect($renewalOptions ?? [])->values(); $initialRenewalMonths = (string) ($renewalOptions->first()['months'] ?? '12'); $backRoute = match ((string) $order->hosting_type) { 'multi_domain' => route('hosting.multi-domain'), 'wordpress' => route('hosting.wordpress'), default => route('hosting.single-domain'), }; @endphp
{{-- Page Header --}}
Hosting

{{ $order->domain_name }}

{{ ucfirst($order->status) }}

@if ($order->rc_order_id) Order #{{ $order->rc_order_id }} @else Local order #{{ $order->id }} @endif @if ($order->plan_name) · {{ $order->plan_name }} @endif

@if ($order->cpanel_url) Open cPanel @endif @if ($order->rc_order_id) @endif
{{-- Quick Stats --}}

Status

{{ ucfirst($order->status) }}

IP Address

{{ $order->ip_address ?: '—' }}

Plan

{{ $order->plan_name ?: '—' }}

Expires

{{ $order->expires_at ? $order->expires_at->format('M d, Y') : '—' }}

{{-- Details + Renew --}}
{{-- Details Card --}}

Hosting Details

Domain
{{ $order->domain_name }}
Hosting Type
{{ str_replace('_', ' ', ucfirst($order->hosting_type)) }}
cPanel Username
{{ $order->cpanel_username ?: '—' }}
Access Status
{{ $order->cpanel_url ? 'Ready' : 'Waiting for provisioning' }}
@if ($order->website_url)
Website URL
{{ $order->website_url }}
@endif @if ($order->direct_url)
Direct URL
{{ $order->direct_url }}
@endif
Disk Space
{{ $order->disk_space_mb ? number_format($order->disk_space_mb) . ' MB' : '—' }}
Bandwidth
{{ $order->bandwidth_mb ? number_format($order->bandwidth_mb) . ' MB' : '—' }}
Provisioned At
{{ $order->provisioned_at ? $order->provisioned_at->format('M d, Y H:i') : '—' }}
Last Updated
{{ $order->updated_at->format('M d, Y H:i') }}
@if ($order->cpanel_url)
Console URL
{{ $order->cpanel_url }}
@endif
{{-- Sidebar --}}
{{-- Control Panel Access --}}

Control Panel

{{ $order->cpanel_url ? 'Ready to access' : 'Waiting for provisioning' }}

Username {{ $order->cpanel_username ?: '—' }}
Panel URL {{ $order->cpanel_url ? parse_url($order->cpanel_url, PHP_URL_HOST) : 'Pending' }}
@if ($order->direct_url)
Direct URL {{ parse_url($order->direct_url, PHP_URL_HOST) }}
@endif
@if ($order->cpanel_url) @endif
{{-- Nameservers --}}
@include('components.icons.domain-globe', ['class' => 'h-5 w-5'])

Nameservers

Point your domain to this hosting

@if ($nameservers->isNotEmpty())
@foreach ($nameservers as $index => $nameserver)
NS{{ $index + 1 }} {{ $nameserver }}
@endforeach
@else

Nameservers will appear once provisioning is complete.

@endif
{{-- Server Details --}} @if ($order->ip_address || $order->website_url)

Server Details

For DNS and manual configuration

@if ($order->ip_address)
Server IP {{ $order->ip_address }}
@endif @if ($order->website_url)
Primary Domain {{ $order->website_url }}
@endif
@endif {{-- Renew Card --}} @if (($order->isActive() || ($order->expires_at && $order->expires_at->diffInDays(now()) < 30)) && $renewalOptions->isNotEmpty())

Renew Hosting

Extend your hosting before it expires.

@if ($renewalOptions->contains(fn (array $option) => ! empty($option['monthly'])))

Renewal options are based on the current pricing for this plan.

@endif
@endif
{{-- Password Modal --}}