@extends('admin.layouts.main') @section('title', $domain->domain_name) @section('menu', 'Domains') @section('content') @php $badgeClass = match($domain->status) { 'active' => 'success', 'pending' => 'warning', 'expired' => 'danger', 'cancelled' => 'dark', 'transferred' => 'info', 'suspended' => 'warning', 'redemption' => 'danger', 'deleted' => 'default', default => 'secondary', }; $panelBadge = match($domain->panel_status) { 'active' => 'success', 'inactive' => 'default', default => 'secondary', }; $emailBadge = match($domain->email_verification) { 'verified' => 'success', 'pending' => 'warning', default => 'default', }; $resellerId = $domain->user?->registrar_ids['resellerclub_customer_id'] ?? null; @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' }} |
| Registration Date | {{ $domain->registration_date?->format('M d, Y') ?? 'N/A' }} |
| Expiry Date | {{ $domain->expiry_date?->format('M d, Y') ?? 'N/A' }} |
| Deletion Date | {{ $domain->deletion_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' }} |
| Registrar | {{ $domain->registrar?->name ?? 'N/A' }} |
|---|---|
| Registrar Order ID | {{ $domain->registrar_order_id ?? 'N/A' }} |
| Reseller ID | {{ $resellerId ?? 'N/A' }} |
| Status | {{ ucfirst($domain->status) }} |
| Registrar Status | {{ $domain->registrar_status ?? 'N/A' }} |
| Panel Status | {{ ucfirst($domain->panel_status ?? 'none') }} |
| Email Verification | {{ ucfirst(str_replace('_', ' ', $domain->email_verification ?? 'not_sent')) }} @if($domain->registrar && $domain->registrar_order_id && $domain->email_verification !== 'verified') @endif |
| Last Synced | {{ $domain->last_synced_at?->format('M d, Y H:i') ?? 'Never' }} |
| 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' }} |
| Invoice # | Total | Status | Due 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') }} |