@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. --}} {{-- 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' }}
@if ($customer)
@if ($canManage) {{ $customer->company_name }} @else {{ $customer->company_name }} @endif {{ $customer->email }}
@else — @endif @if ($license)
{{ $license->license_key }}
@else Unlicensed @endif {{-- CMS version, checked against the release the update API would actually serve this install — not against a hard-coded number. --}} @if ($domain->cms_version) v{{ $domain->cms_version }} {{ $cms['label'] }} @else Not reported @endif @if ($domain->current_ip)
{{ $domain->current_ip }}
@else — @endif @if ($seen)
{{ $seen->format('d M Y H:i') }} $state === 'verified', 'text-amber-600 dark:text-amber-400' => $state === 'overdue', 'text-slate-500 dark:text-slate-400' => ! in_array($state, ['verified', 'overdue'], true), ])>{{ $seen->diffForHumans(short: true) }}
@else Never @endif View details Open website
Copy domain @if ($domain->current_ip) 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. --}}
@csrf Push status now
@if ($license->status === \App\Models\License::STATUS_ACTIVE)
@csrf Suspend license
@elseif (in_array($license->status, [\App\Models\License::STATUS_SUSPENDED, \App\Models\License::STATUS_PENDING], true))
@csrf Reactivate license
@endif @endif