@php $updateState = $widget['data']['updateState']; $lastCheck = $updateState['last_check'] ?? null; $hasUpdate = $lastCheck['has_update'] ?? false; $borderColor = $hasUpdate ? 'border-yellow-500' : ($lastCheck ? 'border-green-500' : 'border-gray-300'); $bgColor = $hasUpdate ? 'bg-yellow-50' : ($lastCheck ? 'bg-green-50' : 'bg-gray-50'); @endphp