@section('page-title', 'Hosting Account')
{{ $hosting->primary_domain }}
{{ ucfirst($hosting->hosting_type) }} · Client: {{ $hosting->client->name }}
@csrf
Edit Back
{{-- Main Details --}}
Account Details

Primary Domain

{{ $hosting->primary_domain }}

cPanel Username

{{ $hosting->cpanel_username ?? '—' }}

Hosting Type

{{ $hosting->hosting_type }}

Package

{{ $hosting->hosting_package ?? '—' }}

PHP Version

{{ $hosting->php_version ?? '—' }}

WHM Server

{{ $hosting->server->name ?? '—' }}

Start Date

{{ $hosting->start_date?->format('d M Y') ?? '—' }}

Expiry Date

@php $daysLeft = $hosting->expiry_date ? now()->diffInDays($hosting->expiry_date, false) : null; @endphp

{{ $hosting->expiry_date?->format('d M Y') ?? '—' }} @if($daysLeft !== null) ({{ $daysLeft <= 0 ? 'Expired' : 'in ' . (int)$daysLeft . ' days' }}) @endif

@if($hosting->addon_domains && count($hosting->addon_domains) > 0)

Addon Domains

@foreach($hosting->addon_domains as $addon) {{ $addon }} @endforeach
@endif @if($hosting->notes)

Notes

{{ $hosting->notes }}

@endif
{{-- Resource Usage --}}
Resource Usage
Disk Space {{ number_format($hosting->disk_space) }} / {{ number_format($hosting->disk_limit) }} MB
@php $diskPct = $hosting->disk_limit > 0 ? min(100, ($hosting->disk_space / $hosting->disk_limit) * 100) : 0; @endphp
Bandwidth {{ number_format($hosting->bandwidth_space) }} / {{ number_format($hosting->bandwidth_limit) }} MB
@php $bwPct = $hosting->bandwidth_limit > 0 ? min(100, ($hosting->bandwidth_space / $hosting->bandwidth_limit) * 100) : 0; @endphp
{{-- Linked Domains --}} @if($hosting->domains->isNotEmpty())
Linked Domains
@foreach($hosting->domains as $domain) @endforeach
DomainExpiryStatus
{{ $domain->domain_name }} {{ $domain->expiry_date?->format('d M Y') ?? '—' }} @if($domain->status === 'active')Active @else{{ ucfirst($domain->status) }}@endif
@endif
{{-- Right Sidebar --}}
{{-- Status & Billing --}}
Status & Billing
Status @if($hosting->status === 'active')Active @elseif($hosting->status === 'expired')Expired @elseif($hosting->status === 'suspended')Suspended @elseif($hosting->status === 'migrated')Migrated @else{{ ucfirst($hosting->status) }}@endif
Billing Cycle {{ str_replace('_', ' ', $hosting->billing_cycle) }}
Renewal Amount {{ number_format($hosting->renewal_amount, 2) }} {{ $hosting->currency }}
{{-- Quick Actions --}}
Actions
Edit Account Create Invoice View Client
@csrf @method('DELETE')