'; } $icon = $currentOrder === 'asc' ? 'fa-sort-up' : 'fa-sort-down'; return ''; } // Get current filters $currentFilters = $filters ?? ['search' => '', 'status' => '', 'group' => '', 'sort' => 'domain_name', 'order' => 'asc']; ?>
| Domain = sortIcon('domain_name', $currentFilters['sort'], $currentFilters['order']) ?> | Registrar = sortIcon('registrar', $currentFilters['sort'], $currentFilters['order']) ?> | Expiration = sortIcon('expiration_date', $currentFilters['sort'], $currentFilters['order']) ?> | Status = sortIcon('status', $currentFilters['sort'], $currentFilters['order']) ?> | Group = sortIcon('group_name', $currentFilters['sort'], $currentFilters['order']) ?> | Last Checked = sortIcon('last_checked', $currentFilters['sort'], $currentFilters['order']) ?> | Actions | |
|---|---|---|---|---|---|---|---|
|
= htmlspecialchars($domain['domain_name']) ?>
'bg-green-100 text-green-700 border-green-200',
'staging' => 'bg-yellow-100 text-yellow-700 border-yellow-200',
'development' => 'bg-blue-100 text-blue-700 border-blue-200',
'client' => 'bg-purple-100 text-purple-700 border-purple-200',
'personal' => 'bg-orange-100 text-orange-700 border-orange-200',
'archived' => 'bg-gray-100 text-gray-600 border-gray-200'
];
foreach ($tags as $tag):
$tag = trim($tag);
$colorClass = $tagColors[$tag] ?? 'bg-gray-100 text-gray-700 border-gray-200';
?>
= htmlspecialchars(ucfirst($tag)) ?>
NS: = htmlspecialchars(explode(',', $domain['nameservers'])[0]) ?>
|
= htmlspecialchars($domain['registrar']) ?>
Unknown
|
= date('M d, Y', strtotime($domain['expiration_date'])) ?>
= $daysLeft ?> days
|
= $statusText ?> | = htmlspecialchars($domain['group_name']) ?> No Group |
= date('M d, H:i', strtotime($domain['last_checked'])) ?>
Never
|