// Compute cart count for badge $cartCount = 0; if (isset($_SESSION['cart']) && is_array($_SESSION['cart'])) { $cartCount = getCartItemCount($_SESSION['cart']); } // Check if user has a courier application $hasCourierApp = false; if ($currentUser && $currentUser['role'] === 'customer') { try { $db = getDB(); $stmt = $db->prepare('SELECT id FROM courier_applications WHERE user_id = ? LIMIT 1'); $stmt->execute([$currentUser['id']]); $hasCourierApp = (bool)$stmt->fetch(); } catch (Throwable $e) { $hasCourierApp = false; } } $theme = getAppTheme(); ?> DormDash

Sign In

No account? Register

© 2026 DormDash — SUNY Purchase