dashboard / employes.html
depan724's picture
il faut que tu créée et active la partie nouveau véhicule
420e5c5 verified
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Remorquage Pro - Employés</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.sidebar {
transition: all 0.3s ease;
}
.active-menu {
background-color: #3B82F6;
color: white;
}
</style>
</head>
<body class="bg-gray-100 flex h-screen">
<!-- Sidebar -->
<div class="sidebar bg-blue-800 text-white w-64 space-y-6 py-7 px-2 absolute inset-y-0 left-0 transform -translate-x-full md:relative md:translate-x-0 transition duration-200 ease-in-out" id="sidebar">
<div class="text-white flex items-center space-x-2 px-4">
<i data-feather="truck" class="h-8 w-8"></i>
<span class="text-2xl font-extrabold">Remorquage Pro</span>
</div>
<nav>
<a href="index.html" class="py-2.5 px-4 rounded transition duration-200 flex items-center space-x-2 hover:bg-blue-700">
<i data-feather="home"></i>
<span>Dashboard</span>
</a>
<a href="clients.html" class="py-2.5 px-4 rounded transition duration-200 flex items-center space-x-2 hover:bg-blue-700">
<i data-feather="users"></i>
<span>Clients</span>
</a>
<a href="employes.html" class="py-2.5 px-4 rounded transition duration-200 flex items-center space-x-2 active-menu">
<i data-feather="user-check"></i>
<span>Employés</span>
</a>
<a href="vehicules.html" class="py-2.5 px-4 rounded transition duration-200 flex items-center space-x-2 hover:bg-blue-700">
<i data-feather="truck"></i>
<span>Véhicules</span>
</a>
<a href="missions.html" class="py-2.5 px-4 rounded transition duration-200 flex items-center space-x-2 hover:bg-blue-700">
<i data-feather="map-pin"></i>
<span>Missions</span>
</a>
<a href="assurances.html" class="py-2.5 px-4 rounded transition duration-200 flex items-center space-x-2 hover:bg-blue-700">
<i data-feather="shield"></i>
<span>Assurances</span>
</a>
<a href="reglements.html" class="py-2.5 px-4 rounded transition duration-200 flex items-center space-x-2 hover:bg-blue-700">
<i data-feather="credit-card"></i>
<span>Règlements</span>
</a>
<a href="rapports.html" class="py-2.5 px-4 rounded transition duration-200 flex items-center space-x-2 hover:bg-blue-700">
<i data-feather="bar-chart-2"></i>
<span>Rapports</span>
</a>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="flex items-center justify-between p-4">
<div class="flex items-center">
<button id="menu-toggle" class="text-gray-500 focus:outline-none md:hidden">
<i data-feather="menu"></i>
</button>
<h1 class="text-2xl font-semibold text-gray-800 ml-4">Gestion des Employés</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i data-feather="bell" class="text-gray-500"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</div>
<div class="flex items-center">
<img src="http://static.photos/people/40x40/10" alt="Profile" class="h-10 w-10 rounded-full">
<span class="ml-2 text-gray-700">Admin</span>
</div>
</div>
</div>
</header>
<!-- Content -->
<main class="flex-1 overflow-y-auto p-6 bg-gray-100">
<!-- Actions Bar -->
<div class="flex justify-between items-center mb-6">
<div class="relative">
<input type="text" placeholder="Rechercher un employé..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
</div>
<a href="nouvel-employe.html" class="bg-blue-600 text-white px-4 py-2 rounded-lg flex items-center space-x-2 hover:bg-blue-700 transition duration-200">
<i data-feather="plus"></i>
<span>Nouvel Employé</span>
</a>
</div>
<!-- Employés Table -->
<div class="bg-white rounded-lg shadow overflow-hidden" data-aos="fade-up">
<div class="overflow-x-auto">
<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">Employé</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Poste</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Téléphone</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</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">Missions</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-10 w-10">
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/40x40/5" alt="Jean Martin">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Jean Martin</div>
<div class="text-sm text-gray-500">EMP001</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Chauffeur remorqueur</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">06 12 34 56 78</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">jean.martin@remorquagepro.fr</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">Actif</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">24 missions</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="modifier-employe.html" class="text-blue-600 hover:text-blue-900 mr-3">Modifier</a>
<button class="text-red-600 hover:text-red-900">Supprimer</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/40x40/6" alt="Marie Dubois">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Marie Dubois</div>
<div class="text-sm text-gray-500">EMP002</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Chauffeur dépannage</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">06 98 76 54 32</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">marie.dubois@remorquagepro.fr</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">Actif</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">18 missions</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="modifier-employe.html" class="text-blue-600 hover:text-blue-900 mr-3">Modifier</a>
<a href="#" class="text-red-600 hover:text-red-900" onclick="confirmDelete('EMP001')">Supprimer</a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/40x40/7" alt="Pierre Moreau">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Pierre Moreau</div>
<div class="text-sm text-gray-500">EMP003</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Technicien dépannage</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">06 55 44 33 22</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">pierre.moreau@remorquagepro.fr</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 congé</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">15 missions</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="modifier-employe.html" class="text-blue-600 hover:text-blue-900 mr-3">Modifier</a>
<a href="#" class="text-red-600 hover:text-red-900" onclick="confirmDelete('EMP002')">Supprimer</a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/40x40/8" alt="Sophie Laurent">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Sophie Laurent</div>
<div class="text-sm text-gray-500">EMP004</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Chauffeur remorqueur</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">06 11 22 33 44</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">sophie.laurent@remorquagepro.fr</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">Actif</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">27 missions</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="modifier-employe.html" class="text-blue-600 hover:text-blue-900 mr-3">Modifier</a>
<a href="#" class="text-red-600 hover:text-red-900" onclick="confirmDelete('EMP003')">Supprimer</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
</div>
<script>
// Toggle sidebar on mobile
document.getElementById('menu-toggle').addEventListener('click', function() {
document.getElementById('sidebar').classList.toggle('-translate-x-full');
});
// Delete confirmation
function confirmDelete(employeeId) {
if(confirm('Êtes-vous sûr de vouloir supprimer cet employé ?')) {
// Here you would typically make an AJAX call to delete the employee
alert('Employé ' + employeeId + ' supprimé');
// Then refresh the page or remove the row
}
}
</script>
<script>AOS.init();</script>
<script>feather.replace();</script>
</body>
</html>