Tableau de bord

Ventes aujourd'hui

1,245€

12% vs hier

Commandes

42

5% vs hier

Clients

156

8% vs hier

Stock bas

7

2 produits

Ventes récentes

N° Commande Client Montant Statut
#ORD-001 Jean Dupont 89.50€ Payé
#ORD-002 Marie Martin 145.20€ En attente
#ORD-003 Pierre Bernard 62.75€ Payé

Produits populaires

Produit Prix Ventes Stock
T-shirt Blanc
Vêtements
24.99€ 42 58
Casque Audio
Électronique
89.99€ 28 12
Cafetière
Électroménager
49.99€ 35 7

Gestion des produits

<?= htmlspecialchars($produit['nom']) ?>
Stock bas

€ Stock:
Product

Casque Audio

(28)
89.99€
Product
Nouveau

Montre Connectée

(15)
129.99€
Product
Stock bas

Cafetière

(35)
49.99€

Performances des ventes

exec("CREATE TABLE IF NOT EXISTS produits ( id INT AUTO_INCREMENT PRIMARY KEY, nom VARCHAR(100) NOT NULL, prix DECIMAL(10,2) NOT NULL, stock INT NOT NULL, categorie VARCHAR(50), created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP )"); $db->exec("CREATE TABLE IF NOT EXISTS ventes ( id INT AUTO_INCREMENT PRIMARY KEY, produit_id INT, quantite INT NOT NULL, montant DECIMAL(10,2) NOT NULL, date_vente TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (produit_id) REFERENCES produits(id) )"); // Exemple de requête pour récupérer les produits $stmt = $db->query("SELECT * FROM produits LIMIT 4"); $produits = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch(PDOException $e) { echo ""; } ?>

Made with DeepSite LogoDeepSite - 🧬 Remix