@extends('client.layouts.main') @section('title', 'Domain Details') @section('content')
Domain Information
Domain Name

{{ $domain->domain_name }}

Status

@php $statusColors = [ 'active' => 'success', 'pending' => 'warning', 'expired' => 'danger', 'cancelled' => 'default', 'transferred' => 'info', ]; @endphp {{ ucfirst($domain->status) }}

Registration Date

{{ $domain->registration_date ? $domain->registration_date->format('M d, Y') : '-' }}

Expiry Date

{{ $domain->expiry_date ? $domain->expiry_date->format('M d, Y') : '-' }}

Registrar

{{ $domain->registrar->name ?? '-' }}

Registration Price

{{ number_format($domain->registration_price, 2) }}

Renewal Price

{{ number_format($domain->renewal_price, 2) }}

Billing Cycle

{{ $domain->billingCycle->name ?? '-' }}

Next Due Date

{{ $domain->next_due_date ? $domain->next_due_date->format('M d, Y') : '-' }}

@if(\App\Models\Setting::get('client_domain.whois_lookup', true) || \App\Models\Setting::get('client_domain.sync', true) || \App\Models\Setting::get('client_domain.renew', true))
@if(\App\Models\Setting::get('client_domain.whois_lookup', true)) Whois Lookup @endif @if(\App\Models\Setting::get('client_domain.sync', true) && $domain->registrar && $domain->registrar_order_id)
@csrf
@endif @if(\App\Models\Setting::get('client_domain.renew', true) && in_array($domain->status, ['active', 'expired']))
@csrf
@endif
@endif
@if(\App\Models\Setting::get('client_domain.nameservers', true))
Nameservers
@csrf @method('PUT')
@php $nameservers = $domain->nameservers ?? []; @endphp @for ($i = 1; $i <= 5; $i++)
@endfor @if ($errors->has('nameservers')) {{ $errors->first('nameservers') }} @endif @if ($errors->has('nameservers.*')) {{ $errors->first('nameservers.*') }} @endif
@endif @php $hasRightColumn = \App\Models\Setting::get('client_domain.auto_renew', true) || \App\Models\Setting::get('client_domain.theft_protection', true) || \App\Models\Setting::get('client_domain.id_protection', true) || \App\Models\Setting::get('client_domain.epp_code', true); $rightColClass = \App\Models\Setting::get('client_domain.nameservers', true) ? 'col-md-6' : 'col-md-12'; @endphp @if($hasRightColumn)
@if(\App\Models\Setting::get('client_domain.auto_renew', true))
Auto-Renew

Current Status: @if($domain->auto_renew) Enabled @else Disabled @endif

@csrf
@endif @if(\App\Models\Setting::get('client_domain.theft_protection', true))
Theft Protection

Current Status: @if($domain->theft_protection) Enabled @else Disabled @endif

@csrf
@endif @if(\App\Models\Setting::get('client_domain.id_protection', true))
ID Protection

Current Status: @if($domain->id_protection) Enabled @else Disabled @endif

@csrf
@endif @if(\App\Models\Setting::get('client_domain.epp_code', true))
EPP/Auth Code

Request the EPP/Authorization code needed to transfer this domain to another registrar.

Get EPP Code
@endif
@endif
@endsection