Spaces:
Running

mining-project / index.html
Djenepo's picture
Créer une application web Laravel pour de gestion logistique pour une société minière, semblable à Odoo, avec les modules suivants (n’oublie pas de donner toutes les commandes et mettre des commentaires pour suivre le code source : 1. Gestion des clients et fournisseurs : - Création, édition, suppression des fiches clients et fournisseurs - Historique des devis, factures et commandes liées à chaque client/fournisseur 2. Devis et facturation : - Création de devis pour les prestations logistiques (ex: transport de matériel) - Conversion des devis en factures - Suivi de l'état de chaque facture : brouillon, envoyée, payée - Export en PDF des devis et factures - Envoi automatique par email (optionnel) 3. Achats et commandes : - Création de bons de commande pour les pièces de rechange, carburant, etc. - Suivi de livraison - Liaison avec le module stock 4. Gestion de stock et inventaire : - Suivi des entrées et sorties de stock - Alerte automatique si un seuil minimum est atteint - Gestion multi-dépôts (principal + dépôts secondaires) - Affichage du stock en temps réel 5. Suivi des équipements : - Fiches des équipements (nom, modèle, numéro de série, site minier associé) - Suivi des pièces utilisées pour maintenance - Historique des interventions sur chaque équipement 6. Module de comptabilité simplifiée : - Enregistrement des dépenses et recettes - Journal comptable - Affichage des soldes mensuels - Préparation des états financiers simples 🔧 Technologies demandées : - Frontend : React ou Vue (interface simple, formulaire et tableaux de bord) - Backend : Node.js avec Express - Base de données : MongoDB (connexion avec URI MongoDB Atlas) - API REST avec routes sécurisées - Authentification par JWT avec rôles (admin, agent logistique, comptable) 📈 Améliorations demandées : - Génération automatique de PDF pour chaque devis et facture - Gestion des utilisateurs avec contrôle d’accès basé sur les rôles - Dashboard avec graphiques : chiffre d'affaires mensuel, dépenses, stock restant - Alerte mail automatique pour factures en retard ou stock critique - Interface responsive utilisable sur tablette ou PC - Possibilité d’ajouter des commentaires internes sur chaque document (devis, commande, facture) L’interface doit être simple et intuitive. Chaque module doit inclure les opérations CRUD de base. Génère une application avec les répertoires et le code prêt à être utilisé localement. - Initial Deployment
c27d83d verified
Raw History Blame Contribute Delete
42.6 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MiningLogistics - Gestion Logistique Minière</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#1E3A8A',
secondary: '#10B981',
danger: '#EF4444',
warning: '#F59E0B',
dark: '#1F2937',
}
}
}
}
</script>
<style>
.sidebar {
transition: all 0.3s ease;
}
.sidebar.collapsed {
width: 70px;
}
.sidebar.collapsed .nav-text {
display: none;
}
.sidebar.collapsed .logo-text {
display: none;
}
.main-content {
transition: margin-left 0.3s ease;
}
.active-nav {
background-color: #EFF6FF;
border-left: 4px solid #1E3A8A;
color: #1E3A8A !important;
}
.table-responsive {
overflow-x: auto;
}
@media (max-width: 768px) {
.sidebar {
position: fixed;
z-index: 1000;
height: 100vh;
left: -250px;
}
.sidebar.show {
left: 0;
}
.main-content {
margin-left: 0 !important;
}
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0,0,0,0.5);
z-index: 999;
}
.overlay.show {
display: block;
}
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen">
<!-- Sidebar -->
<div class="sidebar bg-white shadow-lg w-64 fixed h-full">
<div class="p-4 flex items-center border-b">
<div class="bg-primary p-2 rounded-lg">
<i class="fas fa-mountain text-white text-xl"></i>
</div>
<h1 class="logo-text text-xl font-bold ml-3 text-dark">MiningLogistics</h1>
<button id="toggleSidebar" class="ml-auto text-gray-500 md:hidden">
<i class="fas fa-times"></i>
</button>
</div>
<div class="p-4 border-b">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center text-white font-bold">AD</div>
<div class="ml-3">
<p class="text-sm font-medium">Admin User</p>
<p class="text-xs text-gray-500">Administrateur</p>
</div>
</div>
</div>
<nav class="mt-4">
<div class="px-2">
<p class="text-xs uppercase text-gray-500 font-bold mb-2">Général</p>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1 active-nav">
<i class="fas fa-tachometer-alt text-gray-500 mr-3"></i>
<span class="nav-text">Tableau de bord</span>
</a>
</div>
<div class="px-2 mt-4">
<p class="text-xs uppercase text-gray-500 font-bold mb-2">Clients & Fournisseurs</p>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1">
<i class="fas fa-users text-gray-500 mr-3"></i>
<span class="nav-text">Clients</span>
</a>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1">
<i class="fas fa-truck text-gray-500 mr-3"></i>
<span class="nav-text">Fournisseurs</span>
</a>
</div>
<div class="px-2 mt-4">
<p class="text-xs uppercase text-gray-500 font-bold mb-2">Documents</p>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1">
<i class="fas fa-file-invoice-dollar text-gray-500 mr-3"></i>
<span class="nav-text">Devis</span>
</a>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1">
<i class="fas fa-file-invoice text-gray-500 mr-3"></i>
<span class="nav-text">Factures</span>
</a>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1">
<i class="fas fa-file-purchase text-gray-500 mr-3"></i>
<span class="nav-text">Commandes</span>
</a>
</div>
<div class="px-2 mt-4">
<p class="text-xs uppercase text-gray-500 font-bold mb-2">Logistique</p>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1">
<i class="fas fa-warehouse text-gray-500 mr-3"></i>
<span class="nav-text">Stock</span>
</a>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1">
<i class="fas fa-cogs text-gray-500 mr-3"></i>
<span class="nav-text">Équipements</span>
</a>
</div>
<div class="px-2 mt-4">
<p class="text-xs uppercase text-gray-500 font-bold mb-2">Comptabilité</p>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1">
<i class="fas fa-calculator text-gray-500 mr-3"></i>
<span class="nav-text">Transactions</span>
</a>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1">
<i class="fas fa-chart-line text-gray-500 mr-3"></i>
<span class="nav-text">Rapports</span>
</a>
</div>
<div class="px-2 mt-4">
<p class="text-xs uppercase text-gray-500 font-bold mb-2">Administration</p>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1">
<i class="fas fa-user-shield text-gray-500 mr-3"></i>
<span class="nav-text">Utilisateurs</span>
</a>
<a href="#" class="nav-item flex items-center py-2 px-3 text-gray-700 hover:bg-gray-100 rounded-lg mb-1">
<i class="fas fa-cog text-gray-500 mr-3"></i>
<span class="nav-text">Paramètres</span>
</a>
</div>
</nav>
</div>
<!-- Overlay for mobile -->
<div class="overlay"></div>
<!-- Main Content -->
<div class="main-content flex-1 ml-64">
<!-- Top Navigation -->
<header class="bg-white shadow-sm py-4 px-6 flex items-center justify-between">
<div class="flex items-center">
<button id="mobileToggle" class="text-gray-500 mr-4 md:hidden">
<i class="fas fa-bars"></i>
</button>
<h2 class="text-lg font-semibold text-dark">Tableau de bord</h2>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-bell"></i>
<span class="absolute -top-1 -right-1 bg-danger text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span>
</button>
</div>
<div class="relative">
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-envelope"></i>
<span class="absolute -top-1 -right-1 bg-primary text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">5</span>
</button>
</div>
<div class="border-l pl-4">
<button class="flex items-center">
<div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center text-white font-bold text-sm">AD</div>
<span class="ml-2 text-sm font-medium hidden md:inline">Admin User</span>
<i class="fas fa-chevron-down ml-1 text-gray-500 text-xs hidden md:inline"></i>
</button>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main class="p-6">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-primary">
<i class="fas fa-file-invoice-dollar text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm text-gray-500">Devis ce mois</p>
<h3 class="text-xl font-bold">24</h3>
</div>
</div>
<div class="mt-4">
<span class="text-green-500 text-sm font-medium"><i class="fas fa-arrow-up"></i> 12%</span>
<span class="text-gray-500 text-sm ml-2">vs mois dernier</span>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-secondary">
<i class="fas fa-file-invoice text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm text-gray-500">Factures payées</p>
<h3 class="text-xl font-bold">18</h3>
</div>
</div>
<div class="mt-4">
<span class="text-green-500 text-sm font-medium"><i class="fas fa-arrow-up"></i> 8%</span>
<span class="text-gray-500 text-sm ml-2">vs mois dernier</span>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-yellow-100 text-warning">
<i class="fas fa-exclamation-triangle text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm text-gray-500">Stock critique</p>
<h3 class="text-xl font-bold">5</h3>
</div>
</div>
<div class="mt-4">
<span class="text-red-500 text-sm font-medium"><i class="fas fa-arrow-up"></i> 2</span>
<span class="text-gray-500 text-sm ml-2">nouveaux</span>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-cogs text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm text-gray-500">Équipements</p>
<h3 class="text-xl font-bold">42</h3>
</div>
</div>
<div class="mt-4">
<span class="text-green-500 text-sm font-medium"><i class="fas fa-arrow-up"></i> 3</span>
<span class="text-gray-500 text-sm ml-2">nouveaux</span>
</div>
</div>
</div>
<!-- Charts and Recent Activities -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<!-- Revenue Chart -->
<div class="bg-white rounded-lg shadow p-6 lg:col-span-2">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-semibold">Chiffre d'affaires</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs bg-primary text-white rounded">Mois</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-700 rounded">Trimestre</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-700 rounded">Année</button>
</div>
</div>
<div class="h-64">
<!-- Chart placeholder - would be replaced with actual chart in production -->
<div class="w-full h-full bg-gray-100 rounded flex items-center justify-center">
<p class="text-gray-500">Graphique du chiffre d'affaires</p>
</div>
</div>
</div>
<!-- Recent Activities -->
<div class="bg-white rounded-lg shadow p-6">
<h3 class="text-lg font-semibold mb-4">Activités récentes</h3>
<div class="space-y-4">
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="w-8 h-8 rounded-full bg-blue-100 text-primary flex items-center justify-center">
<i class="fas fa-file-invoice"></i>
</div>
</div>
<div>
<p class="text-sm font-medium">Nouvelle facture créée</p>
<p class="text-xs text-gray-500">Facture #INV-2023-056 pour Client Minier SA</p>
<p class="text-xs text-gray-400">Il y a 2 heures</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="w-8 h-8 rounded-full bg-green-100 text-secondary flex items-center justify-center">
<i class="fas fa-check"></i>
</div>
</div>
<div>
<p class="text-sm font-medium">Commande livrée</p>
<p class="text-xs text-gray-500">BC-2023-124 - Pièces de rechange</p>
<p class="text-xs text-gray-400">Il y a 5 heures</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="w-8 h-8 rounded-full bg-yellow-100 text-warning flex items-center justify-center">
<i class="fas fa-exclamation"></i>
</div>
</div>
<div>
<p class="text-sm font-medium">Alerte stock</p>
<p class="text-xs text-gray-500">Niveau critique pour Huile moteur 15W40</p>
<p class="text-xs text-gray-400">Il y a 1 jour</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="w-8 h-8 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center">
<i class="fas fa-cogs"></i>
</div>
</div>
<div>
<p class="text-sm font-medium">Maintenance effectuée</p>
<p class="text-xs text-gray-500">Camion CAT 789D - Vidange et filtres</p>
<p class="text-xs text-gray-400">Il y a 2 jours</p>
</div>
</div>
</div>
</div>
</div>
<!-- Recent Documents -->
<div class="bg-white rounded-lg shadow overflow-hidden mb-6">
<div class="px-6 py-4 border-b">
<h3 class="text-lg font-semibold">Documents récents</h3>
</div>
<div class="p-0">
<div class="table-responsive">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Référence</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Client/Fournisseur</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Montant</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Statut</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-8 w-8 bg-blue-100 rounded-full flex items-center justify-center text-primary">
<i class="fas fa-file-invoice"></i>
</div>
<div class="ml-2">
<div class="text-sm font-medium text-gray-900">Facture</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">INV-2023-056</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Client Minier SA</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">15/06/2023</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">12,450,000 FCFA</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Payée</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-eye"></i></button>
<button class="text-secondary hover:text-secondary-dark mr-3"><i class="fas fa-print"></i></button>
<button class="text-gray-500 hover:text-gray-700"><i class="fas fa-ellipsis-v"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-8 w-8 bg-yellow-100 rounded-full flex items-center justify-center text-warning">
<i class="fas fa-file-purchase"></i>
</div>
<div class="ml-2">
<div class="text-sm font-medium text-gray-900">Commande</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">BC-2023-124</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Fournisseur EquipMining</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">10/06/2023</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">8,750,000 FCFA</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Livrée</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-eye"></i></button>
<button class="text-secondary hover:text-secondary-dark mr-3"><i class="fas fa-print"></i></button>
<button class="text-gray-500 hover:text-gray-700"><i class="fas fa-ellipsis-v"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-8 w-8 bg-blue-100 rounded-full flex items-center justify-center text-primary">
<i class="fas fa-file-invoice-dollar"></i>
</div>
<div class="ml-2">
<div class="text-sm font-medium text-gray-900">Devis</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">DEV-2023-078</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Mine d'Or du Sahel</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">08/06/2023</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">15,200,000 FCFA</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">En attente</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-eye"></i></button>
<button class="text-secondary hover:text-secondary-dark mr-3"><i class="fas fa-print"></i></button>
<button class="text-gray-500 hover:text-gray-700"><i class="fas fa-ellipsis-v"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-8 w-8 bg-blue-100 rounded-full flex items-center justify-center text-primary">
<i class="fas fa-file-invoice"></i>
</div>
<div class="ml-2">
<div class="text-sm font-medium text-gray-900">Facture</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">INV-2023-055</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Exploitation Aurifère</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">05/06/2023</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">9,800,000 FCFA</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">En retard</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-eye"></i></button>
<button class="text-secondary hover:text-secondary-dark mr-3"><i class="fas fa-print"></i></button>
<button class="text-gray-500 hover:text-gray-700"><i class="fas fa-ellipsis-v"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="px-6 py-4 border-t bg-gray-50">
<button class="text-primary hover:text-primary-dark text-sm font-medium">Voir tous les documents</button>
</div>
</div>
<!-- Stock Alerts -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="px-6 py-4 border-b">
<div class="flex items-center justify-between">
<h3 class="text-lg font-semibold">Alertes stock</h3>
<button class="text-sm text-primary hover:text-primary-dark font-medium">Passer commande</button>
</div>
</div>
<div class="p-0">
<div class="table-responsive">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Article</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Référence</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dépôt</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Stock actuel</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Seuil min</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Fournisseur</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-8 w-8 bg-red-100 rounded-full flex items-center justify-center text-danger">
<i class="fas fa-box-open"></i>
</div>
<div class="ml-2">
<div class="text-sm font-medium text-gray-900">Huile moteur 15W40</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">ART-04578</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Principal</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">3</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">10</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Lubrifiants Pro</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-plus-circle"></i> Commander</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-8 w-8 bg-red-100 rounded-full flex items-center justify-center text-danger">
<i class="fas fa-box-open"></i>
</div>
<div class="ml-2">
<div class="text-sm font-medium text-gray-900">Filtre à air</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">ART-08912</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Site Nord</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">2</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">5</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Pièces Camions</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-plus-circle"></i> Commander</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-8 w-8 bg-yellow-100 rounded-full flex items-center justify-center text-warning">
<i class="fas fa-box-open"></i>
</div>
<div class="ml-2">
<div class="text-sm font-medium text-gray-900">Pneus 35/65 R33</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">ART-03456</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Principal</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">4</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">6</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Pneus Mining</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-plus-circle"></i> Commander</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Toggle sidebar on mobile
document.getElementById('mobileToggle').addEventListener('click', function() {
document.querySelector('.sidebar').classList.toggle('show');
document.querySelector('.overlay').classList.toggle('show');
});
// Close sidebar when clicking overlay
document.querySelector('.overlay').addEventListener('click', function() {
document.querySelector('.sidebar').classList.remove('show');
this.classList.remove('show');
});
// Toggle sidebar collapse on desktop
document.getElementById('toggleSidebar').addEventListener('click', function() {
document.querySelector('.sidebar').classList.toggle('collapsed');
document.querySelector('.main-content').classList.toggle('md:ml-64');
document.querySelector('.main-content').classList.toggle('md:ml-20');
});
// Set active nav item
const navItems = document.querySelectorAll('.nav-item');
navItems.forEach(item => {
item.addEventListener('click', function() {
navItems.forEach(i => i.classList.remove('active-nav'));
this.classList.add('active-nav');
// Update page title based on clicked nav
const pageTitle = this.querySelector('.nav-text').textContent;
document.querySelector('header h2').textContent = pageTitle;
});
});
// Simulate loading data
document.addEventListener('DOMContentLoaded', function() {
// In a real app, we would fetch data from API here
console.log('Dashboard loaded');
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Djenepo/mining-project" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>