@extends('client.layouts.app') @section('title', $domain->domain ?? 'Domain') @section('styles') @endsection @section('content') @if($restoreAmount ?? null)
{{ __('client.domains.restore_notice', ['amount' => display_money_fmt($restoreAmount)]) }}
@csrf
@endif
{{ __('client.domains.domain_info') }}
{{ __('client.domains.domain_name') }}
{{ $domain->domain }}
{{ __('client.services.registration_date') }}
{{ $domain->registration_date?->format(date_fmt()) ?? 'N/A' }}
{{ __('client.domains.expiry_date') }}
{{ $domain->expiry_date?->format(date_fmt()) ?? 'N/A' }} @if(strtolower((string) $domain->status) === 'active' && (float) $domain->recurring_amount > 0)
@csrf
@endif
{{ __('client.services.auto_renew') }}
@if($domain->record_only) {{ __('client.domains.renewed_elsewhere') }} @else {{ $domain->auto_renew ? __("client.status.enabled") : __("client.status.disabled") }}
@csrf
@endif
@if($canEditContacts ?? false)
{{ __('client.domains.contacts_title') }}
{{ __('common.actions.edit') }}
@endif @if($canManageGlue ?? false)
{{ __('client.domains.glue_title') }}
{{ __('common.actions.manage') }}
@endif
{{ __('client.domains.id_protection') }}
{{ ($domain->id_protection ?? false) ? __("client.status.enabled") : __("client.status.disabled") }} @if($canTogglePrivacy ?? false)
@csrf
@endif
{{ __('client.domains.registrar_lock') }}
{{ $locked === null ? __('client.status.unknown') : ($locked ? __("client.status.locked") : __("client.status.unlocked")) }} {{-- The route was there, with no button posting to it. --}} @if($locked !== null && strtolower((string) $domain->status) === 'active')
@csrf
@endif
{{ __('client.domains.nameservers') }}
{{-- The route and DomainController::updateNameservers() existed, but no screen posted to them: the customer could read the nameservers and not change them. Reported by ENA Hosting. --}} @php $ns = $domain->nameserverList(); @endphp
@csrf @method('PUT') @for($i = 1; $i <= 5; $i++)
@error('ns'.$i)
{{ $message }}
@enderror @endfor

{{ __('client.domains.ns_change_hint') }}

@include('partials.ns-delegation', ['url' => route('client.domains.delegation', $domain)]) {{-- One step: put the domain on one of the customer's hosting accounts and point it there. Running it again is harmless. --}} @if(($hostings ?? collect())->isNotEmpty()) @php $setUp = $hostings->firstWhere('set_up', true); $first = $setUp ?? $hostings->first(); @endphp
@if($setUp)

✓ {{ __('client.domains.attach_already') }}

@endif
@csrf @if($hostings->count() > 1)
@else @endif

@if($setUp) {{ __('client.domains.attach_again_hint') }} @elseif($first['nameservers'] !== []) {{ __('client.domains.attach_to_hosting_hint', ['ns' => implode(', ', $first['nameservers'])]) }} @else {{ __('client.domains.attach_to_hosting_hint_no_ns') }} @endif

@endif
@if($domain->dns_management ?? false)
{{ __('client.domains.dns_management') }}

{{ __('client.domains.dns_enabled') }}

@endif {{-- Give the domain to another client account. --}}
{{ __('client.domain_move.title') }}
@if($outgoingMove ?? null)

{{ __('client.domain_move.waiting', ['email' => $outgoingMove->toClient?->email, 'date' => $outgoingMove->expires_at->format(date_fmt())]) }}

@csrf
@else

{{ __('client.domain_move.hint') }}

@csrf
@error('email')
{{ $message }}
@enderror @endif
{{-- EPP Code --}}
{{ __('client.domains.transfer_domain') }}

{{ __('client.domains.epp_desc') }}

{{ __('client.domains.get_epp_code') }} @if(session('epp_code'))
{{ session('epp_code') }}
@endif
@endsection