@extends('admin.layouts.main') @section('title', $domain->domain_name) @section('menu', 'Domains') @section('content')
Domain Details
@php $badgeClass = match($domain->status) { 'active' => 'success', 'pending' => 'warning', 'expired' => 'danger', 'cancelled' => 'dark', 'transferred' => 'info', default => 'secondary', }; @endphp
Domain Name{{ $domain->domain_name }}
Client@if($domain->user){{ $domain->user->first_name }} {{ $domain->user->last_name }}@else N/A @endif
TLD Extension{{ $domain->tldExtension?->extension ?? 'N/A' }}
Registrar{{ $domain->registrar?->name ?? 'N/A' }}
Registrar Order ID{{ $domain->registrar_order_id ?? 'N/A' }}
Status{{ ucfirst($domain->status) }}
Registrar Status{{ $domain->registrar_status ?? 'N/A' }}
Registration Date{{ $domain->registration_date?->format('M d, Y') ?? 'N/A' }}
Expiry Date{{ $domain->expiry_date?->format('M d, Y') ?? 'N/A' }}
Registration Price{{ $domain->registration_price ? number_format($domain->registration_price, 2) : 'N/A' }}
Renewal Price{{ $domain->renewal_price ? number_format($domain->renewal_price, 2) : 'N/A' }}
Last Synced{{ $domain->last_synced_at?->format('M d, Y H:i') ?? 'Never' }}
@if($domain->registrar_status_detail)
Registrar Detail: {{ $domain->registrar_status_detail }}
@endif
Configuration
@csrf
@csrf
@csrf
Auto Renew
auto_renew ? 'checked' : '' }}>
Theft Protection @if($domain->registrar && $domain->registrar_order_id)
theft_protection ? 'checked' : '' }}>
@else {{ $domain->theft_protection ? 'Enabled' : 'Disabled' }} (no registrar linked) @endif
ID Protection
id_protection ? 'checked' : '' }}>
Nameservers{{ $domain->nameservers ? implode(', ', $domain->nameservers) : 'N/A' }}
@if($domain->registrar && $domain->registrar_order_id)
Registrar Actions
@csrf
@csrf
@for($i = 0; $i < 5; $i++)
@endfor
@else
No registrar linked. Registrar actions are unavailable. Set a registrar and order ID via Edit.
@endif
Renew Domain
@php $renewalPrice = $domain->renewal_price ?? 0; @endphp
Renewal Price: {{ number_format($renewalPrice, 2) }} / year
Current Expiry: {{ $domain->expiry_date?->format('M d, Y') ?? 'N/A' }}
@csrf
Total: {{ number_format($renewalPrice, 2) }}  —  New expiry: {{ $domain->expiry_date?->addYear()->format('M d, Y') ?? 'N/A' }}
@if($renewalInvoices->isNotEmpty())
Renewal Invoices
@foreach($renewalInvoices as $inv) @endforeach
Invoice #TotalStatusDue Date
{{ $inv->invoice_number }} {{ number_format($inv->total, 2) }} @php $invBadge = match($inv->status) { 'paid' => 'success', 'unpaid' => 'warning', 'cancelled' => 'default', default => 'info' }; @endphp {{ ucfirst($inv->status) }} {{ $inv->due_date->format('M d, Y') }}
@endif
@endsection @push('scripts') @endpush