@extends("client.layouts.app") @section("title", __('client.hosting.dns.title')) @section("content") @php($selectedName = $domains[$selected] ?? '') {{ $service->product?->name ?? __('client.services.title') }}

{{ __('client.hosting.dns.title') }}

{{ __('client.hosting.dns.subtitle') }}
@if(empty($domains))
{{ __('client.hosting.dns.no_domains') }}
@else
{{ count($records) }} {{ __('client.hosting.dns.records') }}
{{ __('client.hosting.dns.create_title') }}{{ $selectedName }}
@csrf
.{{ $selectedName }}
{{ __('client.hosting.dns.name_hint') }}
{{ __('client.hosting.dns.records_of') }}{{ $selectedName }} · {{ count($records) }}
@if(empty($records))
{{ __('client.hosting.dns.empty') }}
@else
@foreach($records as $r) @php($rid = 'r'.substr(md5($r['id']), 0, 10)) @if(! $r['protected']) @endif @endforeach
{{ __('client.hosting.dns.type') }} {{ __('client.hosting.dns.name') }} {{ __('client.hosting.dns.value') }} {{ __('client.hosting.dns.ttl') }} {{ __('common.table.actions') }}
{{ $r['type'] }} {{ $r['name'] === '@' || $r['name'] === '' ? $r['domain'] : $r['name'].'.'.$r['domain'] }}
@if($r['priority'] !== null){{ $r['priority'] }} @endif{{ $r['content'] }}
{{ $r['ttl'] ?? '—' }} @if($r['protected']) {{ __('client.hosting.dns.protected') }} @else
@csrf
@endif
@endif
@endif @endsection