Sensa Core
Dashboard
Warranty Registration
Product Catalog
Service Requests
Admin
prepare("SELECT COUNT(*) as count FROM notifications WHERE user_id = ? AND is_read = 0"); $stmt_unread->execute([$_SESSION['user_id']]); $unread_count = $stmt_unread->fetchColumn(); $stmt_notifications = $pdo->prepare("SELECT * FROM notifications WHERE user_id = ? ORDER BY created_at DESC LIMIT 5"); $stmt_notifications->execute([$_SESSION['user_id']]); $notifications = $stmt_notifications->fetchAll(); ?>
0): ?>
No notifications
View all notifications
Cart
My Orders
Invoices
Targets
Profile
Logout
Login