ch = document.getElementById('statusSwitch');
            const statusBadge = document.getElementById('statusBadge');
            
            statusSwitch.addEventListener('change', function() {
                if (this.checked) {
                    statusBadge.textContent = 'Online';
                    statusBadge.className = 'badge bg-success';
                } else {
                    statusBadge.textContent = 'Offline';
                    statusBadge.className = 'badge bg-danger';
               