{{ __('Domain Renewal Tracking') }}

{{ $domains->count() }} {{ Str::plural('Domain', $domains->count()) }}
{{-- Flash Messages --}} @if (session('success'))

{{ session('success') }}

@endif {{-- ============================================================ --}} {{-- Filter Links --}} {{-- ============================================================ --}} {{-- ============================================================ --}} {{-- Domains Table --}} {{-- ============================================================ --}}

@if(($filter ?? 'all') === 'expiring') Domains Expiring Within 30 Days @elseif(($filter ?? 'all') === 'next_month') Domains Renewing Next Month @elseif(($filter ?? 'all') === 'expired') Expired Domains @else All Domains @endif

@if($domains->count() > 0) @foreach($domains as $domain) @php $renewalDate = \Carbon\Carbon::parse($domain->renewal_date); $now = now(); $daysUntilRenewal = $now->diffInDays($renewalDate, false); if ($renewalDate->isPast()) { $statusLabel = 'Expired'; $statusClass = 'bg-red-100 text-red-800'; $rowHighlight = 'bg-red-50/30'; } elseif ($daysUntilRenewal <= 30) { $statusLabel = 'Expiring Soon'; $statusClass = 'bg-yellow-100 text-yellow-800'; $rowHighlight = 'bg-yellow-50/30'; } else { $statusLabel = 'Active'; $statusClass = 'bg-green-100 text-green-800'; $rowHighlight = ''; } @endphp @endforeach
Domain Name Project Client Renewal Date Status
{{ $domain->domain_name }}
{{ $domain->project->name ?? '—' }} {{ $domain->client->name ?? '—' }}
{{ $renewalDate->format('M d, Y') }}
@if(!$renewalDate->isPast())
{{ $daysUntilRenewal }} {{ Str::plural('day', $daysUntilRenewal) }} remaining
@else
Expired {{ $renewalDate->diffForHumans() }}
@endif
{{ $statusLabel }}
@else

No domains found

@if(($filter ?? 'all') === 'expiring') No domains are expiring within the next 30 days. @elseif(($filter ?? 'all') === 'expired') No expired domains found. All domains are up to date! @else Domain records will appear here once they are added to the system. @endif

@endif