@extends('client.layouts.main') @section('title', 'Hosting Details') @section('content')
{{ $hosting->domain }}
{{ $hosting->username }}
{{ $hosting->product->name ?? '-' }}
{{ $hosting->server->name ?? '-' }}
{{ $hosting->dedicated_ip ?? '-' }}
@php $statusColors = [ 'active' => 'success', 'pending' => 'warning', 'suspended' => 'danger', 'terminated' => 'default', 'cancelled' => 'default', ]; @endphp {{ ucfirst($hosting->status) }}
{{ $hosting->registration_date ? $hosting->registration_date->format('M d, Y') : '-' }}
{{ $hosting->next_due_date ? $hosting->next_due_date->format('M d, Y') : '-' }}
{{ number_format($hosting->renewal_price, 2) }}
{{ $hosting->billingCycle->name ?? '-' }}
{{ number_format($usage->diskUsedMb, 1) }} MB / {{ $usage->diskLimitMb > 0 ? number_format($usage->diskLimitMb, 0) . ' MB' : 'Unlimited' }}
@if($usage->diskLimitMb > 0) @php $diskPercent = min(100, ($usage->diskUsedMb / $usage->diskLimitMb) * 100); @endphp{{ number_format($usage->bandwidthUsedMb, 1) }} MB / {{ $usage->bandwidthLimitMb > 0 ? number_format($usage->bandwidthLimitMb, 0) . ' MB' : 'Unlimited' }}
@if($usage->bandwidthLimitMb > 0) @php $bwPercent = min(100, ($usage->bandwidthUsedMb / $usage->bandwidthLimitMb) * 100); @endphp{{ $usage->emailAccountCount }}
{{ $usage->databaseCount }}
{{ $usage->addonDomainCount }}
A cancellation request has already been submitted for this hosting account.