Domains - {{ $account->username }} Domains
@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif @php $errors = $errors ?? new \Illuminate\Support\ViewErrorBag; $ownedDomainHosts = collect($ownedDomains)->map(fn ($d) => (string) $d)->all(); $oldDomain = trim((string) old('domain', '')); $initialDomainSource = empty($ownedDomainHosts) ? 'external' : ((string) old('is_owned_domain', '1') === '0' ? 'external' : 'ladill'); $selectedOwnedDomain = in_array($oldDomain, $ownedDomainHosts, true) ? $oldDomain : ''; $externalFallbackDomain = ! in_array($oldDomain, $ownedDomainHosts, true) ? $oldDomain : ''; $parentOptions = collect($parentSites ?? [])->values(); $defaultParentId = (int) old('parent_site_id', $parentOptions->first()?->id ?? 0); $defaultParentHost = optional($parentOptions->firstWhere('id', $defaultParentId))->domain ?? optional($parentOptions->first())->domain ?? ''; @endphp

@if ($maxDomains === -1) {{ $domainSitesCount }} domain {{ $domainSitesCount === 1 ? 'slot' : 'slots' }} in use (unlimited) @else {{ $domainSitesCount }} of {{ $maxDomains }} domain {{ $maxDomains === 1 ? 'slot' : 'slots' }} in use @endif

|

@if ($maxSubdomains === -1) {{ $subdomainSitesCount }} subdomain {{ $subdomainSitesCount === 1 ? 'slot' : 'slots' }} in use (unlimited) @else {{ $subdomainSitesCount }} of {{ $maxSubdomains }} subdomain {{ $maxSubdomains === 1 ? 'slot' : 'slots' }} in use @endif

Add Domain

@if (! $canAddDomain)

Domain slot limit reached. Upgrade your plan or remove an unused domain.

@endif
@csrf

Create subdomain

Create a hostname under one of your attached domains (up to 5× your domain slot limit).

@if ($parentOptions->isEmpty())

Add a primary or addon domain before creating subdomains.

@else @if (! $canAddSubdomain)

Subdomain slot limit reached.

@endif
@csrf
@error('parent_site_id')

{{ $message }}

@enderror
@error('subdomain')

{{ $message }}

@enderror

Relative to /home/{{ $account->username }}/. Leave blank to use public_html/<hostname>.

@error('document_root')

{{ $message }}

@enderror
@endif

Your Domains

@if($account->sites->count()) @foreach ($account->sites->sortBy(fn ($site) => [match ($site->type) { 'primary' => 0, 'addon' => 1, default => 2 }, $site->domain]) as $site) @endforeach
Domain Type Document Root Status Actions
{{ $site->domain }}
@php $typeStyles = [ 'primary' => 'bg-indigo-100 text-indigo-800', 'addon' => 'bg-slate-100 text-slate-800', 'subdomain' => 'bg-sky-100 text-sky-800', ]; @endphp {{ ucfirst($site->type) }} {{ $site->document_root }} {{ ucfirst($site->status) }} @if((int) $account->user_id === (int) auth()->id()) @else Owner only @endif
@else
@include('components.icons.domain-globe', ['class' => 'mx-auto h-12 w-12 text-slate-300'])

No domains yet. Add one above.

@endif
@php $serverIp = $account->node?->ip_address ?? '161.97.138.149'; @endphp

DNS Quick Reference

Use one of these methods to connect an external domain:

Nameservers

ns1.ladill.com
ns2.ladill.com

A Records

A @ {{ $serverIp }}
A www {{ $serverIp }}