organization->domains()->findOrFail($domainId); $domain->delete(); session()->flash('status', "Domaine \"{$domain->name}\" supprimé."); } public function with(): array { return [ 'domains' => $this->organization->domains() ->when($this->search, fn ($query) => $query->where(function ($q) { $q->where('name', 'like', "%{$this->search}%") ->orWhere('registrar', 'like', "%{$this->search}%"); })) ->orderBy('expires_at') ->paginate(15), ]; } }; ?>

{{ $organization->name }}

Domaines

+ Nouveau domaine
@forelse ($domains as $domain) @php $status = $domain->expiryStatus(); @endphp @empty @endforelse
Domaine TLD Bureau d'enregistrement Expiration Renouvellement auto.
{{ $domain->name }} {{ $domain->tld() ?? '—' }} {{ $domain->registrar ?? '—' }} @if ($domain->expires_at) $status === 'expired', 'text-amber-600 font-medium' => $status === 'soon', 'text-slate-600' => $status === 'ok', ])> {{ $domain->expires_at->format('Y-m-d') }} @if ($status === 'expired') Expiré @elseif ($status === 'soon') {{ $domain->expiresInDays() }}j restants @endif @else — @endif {{ $domain->auto_renew ? 'Oui' : 'Non' }} Modifier
Aucun domaine pour le moment.
{{ $domains->links() }}