@php
/*
| Requires in scope: $domain, $state (derived check-in state), $cms
| (['tone','label'] for the version badge), $canManage.
| Everything reads relations the controller already eager-loaded.
*/
$customer = $domain->customer;
$license = $domain->license;
$seen = $domain->last_verification_at;
$licenseState = $license?->effectiveStatus();
@endphp
{{-- data-id is the join between the rendered row and the JS model that drives
refinement, sorting, export and the drawer. --}}
id }})"
aria-label="Select {{ $domain->domain }}">
{{-- Domain: the identifier, and the two things you always want to do with
it — open it, or paste it somewhere. --}}
{{-- The host is stored without a scheme, so there is nothing
here that could tell you whether TLS is in use. Linking
to https:// is a request, not a claim about the site. --}}
Open
·
{{ $domain->installed_at ? 'installed '.$domain->installed_at->format('d M Y') : 'not installed' }}
id }})">
View details
Open website
domain) }}, 'Domain copied')">
Copy domain
@if ($domain->current_ip)
current_ip) }}, 'IP copied')">
Copy IP address
@else
Copy IP address
@endif
@if ($license)
View license
@else
View license
@endif
{{-- The audit log filters by domain name, so this lands on exactly
this installation's history rather than the whole log. --}}
View logs
@if ($canManage && $license)
{{-- These act on the licence bound to this installation — the
only state-changing endpoints that exist for a domain. --}}
@if ($license->status === \App\Models\License::STATUS_ACTIVE)
@elseif (in_array($license->status, [\App\Models\License::STATUS_SUSPENDED, \App\Models\License::STATUS_PENDING], true))
@endif
@endif