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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Cosmetic Management System</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 10 |
+
<script>
|
| 11 |
+
tailwind.config = {
|
| 12 |
+
theme: {
|
| 13 |
+
extend: {
|
| 14 |
+
fontFamily: {
|
| 15 |
+
sans: ['Inter', 'sans-serif'],
|
| 16 |
+
},
|
| 17 |
+
colors: {
|
| 18 |
+
primary: {
|
| 19 |
+
50: '#fef2f2',
|
| 20 |
+
100: '#fee2e2',
|
| 21 |
+
200: '#fecaca',
|
| 22 |
+
300: '#fca5a5',
|
| 23 |
+
400: '#f87171',
|
| 24 |
+
500: '#ef4444',
|
| 25 |
+
600: '#dc2626',
|
| 26 |
+
700: '#b91c1c',
|
| 27 |
+
800: '#991b1b',
|
| 28 |
+
900: '#7f1d1d',
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
</script>
|
| 35 |
+
<style>
|
| 36 |
+
* {
|
| 37 |
+
box-sizing: border-box;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
html, body {
|
| 41 |
+
margin: 0;
|
| 42 |
+
padding: 0;
|
| 43 |
+
height: 100%;
|
| 44 |
+
overflow-x: hidden;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
body {
|
| 48 |
+
font-family: 'Inter', sans-serif;
|
| 49 |
+
background: #f8fafc;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.glass-panel {
|
| 53 |
+
background: rgba(255, 255, 255, 0.95);
|
| 54 |
+
backdrop-filter: blur(10px);
|
| 55 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
.gradient-bg {
|
| 59 |
+
background: linear-gradient(135deg, #fef2f2 0%, #fff 50%, #f0fdf4 100%);
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
.animate-fade-in {
|
| 63 |
+
animation: fadeIn 0.3s ease-out;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
.animate-slide-up {
|
| 67 |
+
animation: slideUp 0.4s ease-out;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
@keyframes fadeIn {
|
| 71 |
+
from { opacity: 0; }
|
| 72 |
+
to { opacity: 1; }
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
@keyframes slideUp {
|
| 76 |
+
from { opacity: 0; transform: translateY(20px); }
|
| 77 |
+
to { opacity: 1; transform: translateY(0); }
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
.hover-lift {
|
| 81 |
+
transition: transform 0.2s, box-shadow 0.2s;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
.hover-lift:hover {
|
| 85 |
+
transform: translateY(-2px);
|
| 86 |
+
box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
.status-badge {
|
| 90 |
+
@apply px-3 py-1 rounded-full text-xs font-medium;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.status-draft { @apply bg-gray-100 text-gray-700; }
|
| 94 |
+
.status-pending { @apply bg-yellow-100 text-yellow-700; }
|
| 95 |
+
.status-approved { @apply bg-green-100 text-green-700; }
|
| 96 |
+
.status-rejected { @apply bg-red-100 text-red-700; }
|
| 97 |
+
|
| 98 |
+
.sidebar-item {
|
| 99 |
+
@apply flex items-center gap-3 px-4 py-3 rounded-lg transition-all cursor-pointer;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.sidebar-item:hover {
|
| 103 |
+
@apply bg-primary-50 text-primary-700;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.sidebar-item.active {
|
| 107 |
+
@apply bg-primary-600 text-white;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
.form-input {
|
| 111 |
+
@apply w-full px-4 py-3 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
.btn-primary {
|
| 115 |
+
@apply px-6 py-3 bg-primary-600 text-white rounded-lg font-medium hover:bg-primary-700 transition-all flex items-center gap-2;
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
.btn-secondary {
|
| 119 |
+
@apply px-6 py-3 bg-gray-100 text-gray-700 rounded-lg font-medium hover:bg-gray-200 transition-all flex items-center gap-2;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
.card {
|
| 123 |
+
@apply bg-white rounded-xl shadow-sm border border-gray-100 p-6 hover-lift;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
/* Custom scrollbar */
|
| 127 |
+
::-webkit-scrollbar {
|
| 128 |
+
width: 8px;
|
| 129 |
+
height: 8px;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
::-webkit-scrollbar-track {
|
| 133 |
+
background: #f1f5f9;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
::-webkit-scrollbar-thumb {
|
| 137 |
+
background: #cbd5e1;
|
| 138 |
+
border-radius: 4px;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
::-webkit-scrollbar-thumb:hover {
|
| 142 |
+
background: #94a3b8;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
.loading-spinner {
|
| 146 |
+
@apply animate-spin rounded-full h-5 w-5 border-2 border-white border-t-transparent;
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
.modal-overlay {
|
| 150 |
+
@apply fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center p-4;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
.modal-content {
|
| 154 |
+
@apply bg-white rounded-2xl shadow-2xl max-w-2xl w-full max-h-[90vh] overflow-hidden animate-slide-up;
|
| 155 |
+
}
|
| 156 |
+
</style>
|
| 157 |
+
</head>
|
| 158 |
+
<body class="gradient-bg">
|
| 159 |
+
<!-- App Container -->
|
| 160 |
+
<div id="app" class="min-h-screen">
|
| 161 |
+
<!-- Content injected by JavaScript -->
|
| 162 |
+
</div>
|
| 163 |
+
|
| 164 |
+
<script>
|
| 165 |
+
// ============================================
|
| 166 |
+
// COSMETIC MANAGEMENT SYSTEM - MAIN APPLICATION
|
| 167 |
+
// ============================================
|
| 168 |
+
|
| 169 |
+
// State Management
|
| 170 |
+
const AppState = {
|
| 171 |
+
currentUser: null,
|
| 172 |
+
currentView: 'login',
|
| 173 |
+
companies: [
|
| 174 |
+
{
|
| 175 |
+
id: 'comp-001',
|
| 176 |
+
name: 'Luxe Beauty International',
|
| 177 |
+
brandNames: ['LuxeBeauty', 'PureGlow'],
|
| 178 |
+
legalEntity: 'Luxe Beauty Holdings Ltd',
|
| 179 |
+
country: 'United Kingdom',
|
| 180 |
+
responsiblePerson: 'Dr. Sarah Mitchell',
|
| 181 |
+
contactEmail: 'compliance@luxebeauty.com',
|
| 182 |
+
contactPhone: '+44 20 7946 0958',
|
| 183 |
+
logo: null,
|
| 184 |
+
createdAt: '2023-01-15'
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
id: 'comp-002',
|
| 188 |
+
name: 'Natura Organics GmbH',
|
| 189 |
+
brandNames: ['NaturaBio', 'EcoSkin'],
|
| 190 |
+
legalEntity: 'Natura Organics GmbH',
|
| 191 |
+
country: 'Germany',
|
| 192 |
+
responsiblePerson: 'Hans Weber',
|
| 193 |
+
contactEmail: 'regulatory@natura-organics.de',
|
| 194 |
+
contactPhone: '+49 30 2758 4920',
|
| 195 |
+
logo: null,
|
| 196 |
+
createdAt: '2023-03-22'
|
| 197 |
+
}
|
| 198 |
+
],
|
| 199 |
+
users: [
|
| 200 |
+
{
|
| 201 |
+
id: 'user-001',
|
| 202 |
+
email: 'admin@cms.com',
|
| 203 |
+
password: 'admin123',
|
| 204 |
+
name: 'System Administrator',
|
| 205 |
+
role: 'admin',
|
| 206 |
+
companyId: null,
|
| 207 |
+
isActive: true,
|
| 208 |
+
lastLogin: null
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
id: 'user-002',
|
| 212 |
+
email: 'sarah.mitchell@luxebeauty.com',
|
| 213 |
+
password: 'manager123',
|
| 214 |
+
name: 'Dr. Sarah Mitchell',
|
| 215 |
+
role: 'manager',
|
| 216 |
+
companyId: 'comp-001',
|
| 217 |
+
isActive: true,
|
| 218 |
+
lastLogin: '2024-01-15T09:30:00Z'
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
id: 'user-003',
|
| 222 |
+
email: 'editor@luxebeauty.com',
|
| 223 |
+
password: 'editor123',
|
| 224 |
+
name: 'Emma Thompson',
|
| 225 |
+
role: 'editor',
|
| 226 |
+
companyId: 'comp-001',
|
| 227 |
+
isActive: true,
|
| 228 |
+
lastLogin: '2024-01-14T16:45:00Z'
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
id: 'user-004',
|
| 232 |
+
email: 'viewer@luxebeauty.com',
|
| 233 |
+
password: 'viewer123',
|
| 234 |
+
name: 'James Wilson',
|
| 235 |
+
role: 'viewer',
|
| 236 |
+
companyId: 'comp-001',
|
| 237 |
+
isActive: true,
|
| 238 |
+
lastLogin: '2024-01-13T11:20:00Z'
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
id: 'user-005',
|
| 242 |
+
email: 'confirmer@cms.com',
|
| 243 |
+
password: 'confirm123',
|
| 244 |
+
name: 'Maria Rodriguez',
|
| 245 |
+
role: 'confirmer',
|
| 246 |
+
companyId: null,
|
| 247 |
+
isActive: true,
|
| 248 |
+
lastLogin: '2024-01-15T08:00:00Z'
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
id: 'user-006',
|
| 252 |
+
email: 'hans.weber@natura-organics.de',
|
| 253 |
+
password: 'manager123',
|
| 254 |
+
name: 'Hans Weber',
|
| 255 |
+
role: 'manager',
|
| 256 |
+
companyId: 'comp-002',
|
| 257 |
+
isActive: true,
|
| 258 |
+
lastLogin: '2024-01-14T14:30:00Z'
|
| 259 |
+
}
|
| 260 |
+
],
|
| 261 |
+
products: [
|
| 262 |
+
{
|
| 263 |
+
id: 'prod-001',
|
| 264 |
+
companyId: 'comp-001',
|
| 265 |
+
name: 'HydraGlow Vitamin C Serum',
|
| 266 |
+
brand: 'LuxeBeauty',
|
| 267 |
+
series: 'HydraGlow',
|
| 268 |
+
category: 'Skincare',
|
| 269 |
+
subcategory: 'Serums',
|
| 270 |
+
skinType: 'All Skin Types',
|
| 271 |
+
claims: ['Brightening', 'Anti-aging', 'Hydration'],
|
| 272 |
+
ingredients: 'Aqua, Ascorbic Acid, Hyaluronic Acid, Glycerin, Niacinamide, Tocopherol, Phenoxyethanol',
|
| 273 |
+
usageInstructions: 'Apply 2-3 drops to clean face morning and evening. Follow with moisturizer.',
|
| 274 |
+
warnings: 'For external use only. Patch test recommended. Discontinue if irritation occurs.',
|
| 275 |
+
productionDate: '2023-11-15',
|
| 276 |
+
expiryDate: '2025-11-15',
|
| 277 |
+
pao: '12M',
|
| 278 |
+
barcode: '5060123456789',
|
| 279 |
+
images: [],
|
| 280 |
+
cppnNumber: 'CPNP-2023-456789',
|
| 281 |
+
responsiblePerson: 'Dr. Sarah Mitchell',
|
| 282 |
+
status: 'approved',
|
| 283 |
+
submittedBy: 'user-003',
|
| 284 |
+
submittedAt: '2023-12-01T10:00:00Z',
|
| 285 |
+
confirmedBy: 'user-005',
|
| 286 |
+
confirmedAt: '2023-12-05T14:30:00Z',
|
| 287 |
+
confirmationNotes: 'All regulatory requirements met. Approved for EU market.',
|
| 288 |
+
createdAt: '2023-12-01T10:00:00Z',
|
| 289 |
+
updatedAt: '2023-12-05T14:30:00Z'
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
id: 'prod-002',
|
| 293 |
+
companyId: 'comp-001',
|
| 294 |
+
name: 'PureGlow Night Repair Cream',
|
| 295 |
+
brand: 'PureGlow',
|
| 296 |
+
series: 'Night Repair',
|
| 297 |
+
category: 'Skincare',
|
| 298 |
+
subcategory: 'Moisturizers',
|
| 299 |
+
skinType: 'Dry, Mature',
|
| 300 |
+
claims: ['Deep hydration', 'Wrinkle reduction', 'Skin renewal'],
|
| 301 |
+
ingredients: 'Aqua, Shea Butter, Retinol, Peptides, Ceramides, Squalane, Panthenol',
|
| 302 |
+
usageInstructions: 'Apply to face and neck every evening after cleansing.',
|
| 303 |
+
warnings: 'Contains retinol. Use SPF during day. Not suitable for pregnant women.',
|
| 304 |
+
productionDate: '2023-10-20',
|
| 305 |
+
expiryDate: '2025-10-20',
|
| 306 |
+
pao: '6M',
|
| 307 |
+
barcode: '5060123456790',
|
| 308 |
+
images: [],
|
| 309 |
+
cppnNumber: 'CPNP-2023-456790',
|
| 310 |
+
responsiblePerson: 'Dr. Sarah Mitchell',
|
| 311 |
+
status: 'pending',
|
| 312 |
+
submittedBy: 'user-003',
|
| 313 |
+
submittedAt: '2024-01-10T09:15:00Z',
|
| 314 |
+
confirmedBy: null,
|
| 315 |
+
confirmedAt: null,
|
| 316 |
+
confirmationNotes: null,
|
| 317 |
+
createdAt: '2024-01-10T09:15:00Z',
|
| 318 |
+
updatedAt: '2024-01-10T09:15:00Z'
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
id: 'prod-003',
|
| 322 |
+
companyId: 'comp-002',
|
| 323 |
+
name: 'NaturaBio Soothing Aloe Gel',
|
| 324 |
+
brand: 'NaturaBio',
|
| 325 |
+
series: 'Soothing Care',
|
| 326 |
+
category: 'Skincare',
|
| 327 |
+
subcategory: 'Gels',
|
| 328 |
+
skinType: 'Sensitive, Irritated',
|
| 329 |
+
claims: ['Soothing', 'Cooling', 'Natural hydration'],
|
| 330 |
+
ingredients: 'Aloe Barbadensis Leaf Juice, Glycerin, Chamomilla Recutita Extract, Allantoin',
|
| 331 |
+
usageInstructions: 'Apply liberally to affected areas as needed.',
|
| 332 |
+
warnings: 'For external use only.',
|
| 333 |
+
productionDate: '2023-12-01',
|
| 334 |
+
expiryDate: '2025-12-01',
|
| 335 |
+
pao: '12M',
|
| 336 |
+
barcode: '4260123456789',
|
| 337 |
+
images: [],
|
| 338 |
+
cppnNumber: 'CPNP-2023-567891',
|
| 339 |
+
responsiblePerson: 'Hans Weber',
|
| 340 |
+
status: 'draft',
|
| 341 |
+
submittedBy: null,
|
| 342 |
+
submittedAt: null,
|
| 343 |
+
confirmedBy: null,
|
| 344 |
+
confirmedAt: null,
|
| 345 |
+
confirmationNotes: null,
|
| 346 |
+
createdAt: '2024-01-12T11:00:00Z',
|
| 347 |
+
updatedAt: '2024-01-12T11:00:00Z'
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
id: 'prod-004',
|
| 351 |
+
companyId: 'comp-001',
|
| 352 |
+
name: 'LuxeBeauty SPF 50 Sunscreen',
|
| 353 |
+
brand: 'LuxeBeauty',
|
| 354 |
+
series: 'Sun Protection',
|
| 355 |
+
category: 'Suncare',
|
| 356 |
+
subcategory: 'Sunscreen',
|
| 357 |
+
skinType: 'All Skin Types',
|
| 358 |
+
claims: ['Broad spectrum', 'Water resistant', 'Non-greasy'],
|
| 359 |
+
ingredients: 'Aqua, Zinc Oxide, Titanium Dioxide, Coco-Caprylate, Glycerin',
|
| 360 |
+
usageInstructions: 'Apply 15 minutes before sun exposure. Reapply every 2 hours.',
|
| 361 |
+
warnings: 'Avoid contact with eyes. Keep babies and young children out of direct sunlight.',
|
| 362 |
+
productionDate: '2024-01-05',
|
| 363 |
+
expiryDate: '2026-01-05',
|
| 364 |
+
pao: '12M',
|
| 365 |
+
barcode: '5060123456791',
|
| 366 |
+
images: [],
|
| 367 |
+
cppnNumber: 'CPNP-2024-000001',
|
| 368 |
+
responsiblePerson: 'Dr. Sarah Mitchell',
|
| 369 |
+
status: 'rejected',
|
| 370 |
+
submittedBy: 'user-003',
|
| 371 |
+
submittedAt: '2024-01-08T14:00:00Z',
|
| 372 |
+
confirmedBy: 'user-005',
|
| 373 |
+
confirmedAt: '2024-01-09T10:30:00Z',
|
| 374 |
+
confirmationNotes: 'CPNP number format incorrect. Please resubmit with valid notification number.',
|
| 375 |
+
createdAt: '2024-01-08T14:00:00Z',
|
| 376 |
+
updatedAt: '2024-01-09T10:30:00Z'
|
| 377 |
+
}
|
| 378 |
+
],
|
| 379 |
+
certificates: [],
|
| 380 |
+
auditLog: [],
|
| 381 |
+
selectedProduct: null,
|
| 382 |
+
filters: {
|
| 383 |
+
status: 'all',
|
| 384 |
+
search: ''
|
| 385 |
+
}
|
| 386 |
+
};
|
| 387 |
+
|
| 388 |
+
// Role Definitions
|
| 389 |
+
const ROLES = {
|
| 390 |
+
admin: {
|
| 391 |
+
name: 'Administrator',
|
| 392 |
+
permissions: ['all'],
|
| 393 |
+
description: 'Full system access'
|
| 394 |
+
},
|
| 395 |
+
viewer: {
|
| 396 |
+
name: 'Viewer',
|
| 397 |
+
permissions: ['view_products', 'view_certificates', 'view_company'],
|
| 398 |
+
description: 'View-only access'
|
| 399 |
+
},
|
| 400 |
+
editor: {
|
| 401 |
+
name: 'Editor',
|
| 402 |
+
permissions: ['view_products', 'view_certificates', 'view_company', 'create_product', 'edit_product', 'upload_documents'],
|
| 403 |
+
description: 'Can add and edit products'
|
| 404 |
+
},
|
| 405 |
+
manager: {
|
| 406 |
+
name: 'Manager',
|
| 407 |
+
permissions: ['view_products', 'view_certificates', 'view_company', 'create_product', 'edit_product', 'delete_product', 'upload_documents', 'manage_users', 'submit_for_approval'],
|
| 408 |
+
description: 'Full company management'
|
| 409 |
+
},
|
| 410 |
+
confirmer: {
|
| 411 |
+
name: 'Product Confirmer',
|
| 412 |
+
permissions: ['view_products', 'view_certificates', 'approve_product', 'reject_product'],
|
| 413 |
+
description: 'Review and approve products'
|
| 414 |
+
}
|
| 415 |
+
};
|
| 416 |
+
|
| 417 |
+
// Utility Functions
|
| 418 |
+
const Utils = {
|
| 419 |
+
generateId: () => Math.random().toString(36).substr(2, 9),
|
| 420 |
+
formatDate: (date) => {
|
| 421 |
+
if (!date) return '-';
|
| 422 |
+
return new Date(date).toLocaleDateString('en-GB', {
|
| 423 |
+
day: '2-digit',
|
| 424 |
+
month: 'short',
|
| 425 |
+
year: 'numeric'
|
| 426 |
+
});
|
| 427 |
+
},
|
| 428 |
+
formatDateTime: (date) => {
|
| 429 |
+
if (!date) return '-';
|
| 430 |
+
return new Date(date).toLocaleString('en-GB', {
|
| 431 |
+
day: '2-digit',
|
| 432 |
+
month: 'short',
|
| 433 |
+
year: 'numeric',
|
| 434 |
+
hour: '2-digit',
|
| 435 |
+
minute: '2-digit'
|
| 436 |
+
});
|
| 437 |
+
},
|
| 438 |
+
hasPermission: (user, permission) => {
|
| 439 |
+
if (!user) return false;
|
| 440 |
+
if (user.role === 'admin') return true;
|
| 441 |
+
const role = ROLES[user.role];
|
| 442 |
+
return role && role.permissions.includes(permission);
|
| 443 |
+
},
|
| 444 |
+
getCompanyProducts: (companyId) => {
|
| 445 |
+
return AppState.products.filter(p => p.companyId === companyId);
|
| 446 |
+
},
|
| 447 |
+
getPendingProducts: () => {
|
| 448 |
+
return AppState.products.filter(p => p.status === 'pending');
|
| 449 |
+
},
|
| 450 |
+
logAudit: (action, entityType, entityId, details) => {
|
| 451 |
+
AppState.auditLog.unshift({
|
| 452 |
+
id: Utils.generateId(),
|
| 453 |
+
userId: AppState.currentUser?.id,
|
| 454 |
+
userName: AppState.currentUser?.name,
|
| 455 |
+
action,
|
| 456 |
+
entityType,
|
| 457 |
+
entityId,
|
| 458 |
+
details,
|
| 459 |
+
timestamp: new Date().toISOString()
|
| 460 |
+
});
|
| 461 |
+
}
|
| 462 |
+
};
|
| 463 |
+
|
| 464 |
+
// AI Integration Simulation
|
| 465 |
+
const AI = {
|
| 466 |
+
generateDescription: async (productName, category, claims) => {
|
| 467 |
+
await new Promise(r => setTimeout(r, 1500));
|
| 468 |
+
const descriptions = {
|
| 469 |
+
'Serums': `Experience transformative skincare with ${productName}. This advanced serum delivers ${claims.join(', ').toLowerCase()} benefits through a potent blend of active ingredients. Clinically proven to improve skin appearance within 4 weeks.`,
|
| 470 |
+
'Moisturizers': `${productName} provides intensive hydration while addressing ${claims.join(' and ').toLowerCase()}. Formulated with premium ingredients for visible results.`,
|
| 471 |
+
'default': `Discover ${productName} - your solution for ${claims.join(', ').toLowerCase()}. This ${category.toLowerCase()} product combines cutting-edge science with luxurious textures for exceptional results.`
|
| 472 |
+
};
|
| 473 |
+
return descriptions[category] || descriptions.default;
|
| 474 |
+
},
|
| 475 |
+
generateSEO: (productName, brand) => {
|
| 476 |
+
return {
|
| 477 |
+
title: `${productName} | ${brand} | Official Store`,
|
| 478 |
+
slug: `${brand.toLowerCase()}-${productName.toLowerCase().replace(/\s+/g, '-')}`,
|
| 479 |
+
keywords: [brand, productName, 'skincare', 'beauty', 'cosmetics']
|
| 480 |
+
};
|
| 481 |
+
},
|
| 482 |
+
validateIngredients: (ingredients) => {
|
| 483 |
+
const warnings = [];
|
| 484 |
+
const restricted = ['hydroquinone', 'mercury', 'lead'];
|
| 485 |
+
const restrictedFound = ingredients.toLowerCase().split(',').filter(i =>
|
| 486 |
+
restricted.some(r => i.trim().includes(r))
|
| 487 |
+
);
|
| 488 |
+
if (restrictedFound.length > 0) {
|
| 489 |
+
warnings.push(`Warning: Potentially restricted ingredients detected: ${restrictedFound.join(', ')}`);
|
| 490 |
+
}
|
| 491 |
+
return warnings;
|
| 492 |
+
}
|
| 493 |
+
};
|
| 494 |
+
|
| 495 |
+
// ============================================
|
| 496 |
+
// UI COMPONENTS
|
| 497 |
+
// ============================================
|
| 498 |
+
|
| 499 |
+
const Components = {
|
| 500 |
+
// Header with Built with anycoder
|
| 501 |
+
Header: () => `
|
| 502 |
+
<header class="glass-panel sticky top-0 z-40 border-b border-gray-200">
|
| 503 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 504 |
+
<div class="flex justify-between items-center h-16">
|
| 505 |
+
<div class="flex items-center gap-3">
|
| 506 |
+
<div class="w-10 h-10 bg-primary-600 rounded-xl flex items-center justify-center">
|
| 507 |
+
<i class="fas fa-spa text-white text-lg"></i>
|
| 508 |
+
</div>
|
| 509 |
+
<div>
|
| 510 |
+
<h1 class="font-bold text-gray-900 text-lg">CMS</h1>
|
| 511 |
+
<p class="text-xs text-gray-500">Cosmetic Management</p>
|
| 512 |
+
</div>
|
| 513 |
+
</div>
|
| 514 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank"
|
| 515 |
+
class="text-sm text-primary-600 hover:text-primary-700 font-medium flex items-center gap-2 px-3 py-1.5 rounded-lg hover:bg-primary-50 transition-all">
|
| 516 |
+
<i class="fas fa-code"></i>
|
| 517 |
+
Built with anycoder
|
| 518 |
+
</a>
|
| 519 |
+
</div>
|
| 520 |
+
</div>
|
| 521 |
+
</header>
|
| 522 |
+
`,
|
| 523 |
+
|
| 524 |
+
// Login Page
|
| 525 |
+
LoginPage: () => `
|
| 526 |
+
<div class="min-h-screen flex items-center justify-center p-4">
|
| 527 |
+
<div class="w-full max-w-md">
|
| 528 |
+
${Components.Header()}
|
| 529 |
+
|
| 530 |
+
<div class="mt-8 animate-slide-up">
|
| 531 |
+
<div class="card">
|
| 532 |
+
<div class="text-center mb-8">
|
| 533 |
+
<div class="w-16 h-16 bg-primary-100 rounded-2xl flex items-center justify-center mx-auto mb-4">
|
| 534 |
+
<i class="fas fa-spa text-primary-600 text-2xl"></i>
|
| 535 |
+
</div>
|
| 536 |
+
<h2 class="text-2xl font-bold text-gray-900">Welcome Back</h2>
|
| 537 |
+
<p class="text-gray-500 mt-2">Sign in to manage your cosmetic products</p>
|
| 538 |
+
</div>
|
| 539 |
+
|
| 540 |
+
<form id="loginForm" class="space-y-5">
|
| 541 |
+
<div>
|
| 542 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Email Address</label>
|
| 543 |
+
<div class="relative">
|
| 544 |
+
<i class="fas fa-envelope absolute left-4 top-1/2 -translate-y-1/2 text-gray-400"></i>
|
| 545 |
+
<input type="email" id="loginEmail" class="form-input pl-11" placeholder="your@email.com" required>
|
| 546 |
+
</div>
|
| 547 |
+
</div>
|
| 548 |
+
|
| 549 |
+
<div>
|
| 550 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Password</label>
|
| 551 |
+
<div class="relative">
|
| 552 |
+
<i class="fas fa-lock absolute left-4 top-1/2 -translate-y-1/2 text-gray-400"></i>
|
| 553 |
+
<input type="password" id="loginPassword" class="form-input pl-11" placeholder="••••••••" required>
|
| 554 |
+
</div>
|
| 555 |
+
</div>
|
| 556 |
+
|
| 557 |
+
<div class="flex items-center justify-between">
|
| 558 |
+
<label class="flex items-center gap-2 cursor-pointer">
|
| 559 |
+
<input type="checkbox" class="w-4 h-4 text-primary-600 rounded border-gray-300">
|
| 560 |
+
<span class="text-sm text-gray-600">Remember me</span>
|
| 561 |
+
</label>
|
| 562 |
+
<a href="#" onclick="App.showForgotPassword()" class="text-sm text-primary-600 hover:text-primary-700 font-medium">
|
| 563 |
+
Forgot password?
|
| 564 |
+
</a>
|
| 565 |
+
</div>
|
| 566 |
+
|
| 567 |
+
<button type="submit" class="btn-primary w-full justify-center">
|
| 568 |
+
<span id="loginText">Sign In</span>
|
| 569 |
+
<div id="loginSpinner" class="loading-spinner hidden"></div>
|
| 570 |
+
</button>
|
| 571 |
+
</form>
|
| 572 |
+
|
| 573 |
+
<div class="mt-6 p-4 bg-gray-50 rounded-lg">
|
| 574 |
+
<p class="text-xs text-gray-500 font-medium mb-2">Demo Credentials:</p>
|
| 575 |
+
<div class="space-y-1 text-xs text-gray-600">
|
| 576 |
+
<p><span class="font-medium">Admin:</span> admin@cms.com / admin123</p>
|
| 577 |
+
<p><span class="font-medium">Manager:</span> sarah.mitchell@luxebeauty.com / manager123</p>
|
| 578 |
+
<p><span class="font-medium">Editor:</span> editor@luxebeauty.com / editor123</p>
|
| 579 |
+
<p><span class="font-medium">Viewer:</span> viewer@luxebeauty.com / viewer123</p>
|
| 580 |
+
<p><span class="font-medium">Confirmer:</span> confirmer@cms.com / confirm123</p>
|
| 581 |
+
</div>
|
| 582 |
+
</div>
|
| 583 |
+
</div>
|
| 584 |
+
</div>
|
| 585 |
+
</div>
|
| 586 |
+
</div>
|
| 587 |
+
`,
|
| 588 |
+
|
| 589 |
+
// Forgot Password Page
|
| 590 |
+
ForgotPasswordPage: () => `
|
| 591 |
+
<div class="min-h-screen flex items-center justify-center p-4">
|
| 592 |
+
<div class="w-full max-w-md">
|
| 593 |
+
${Components.Header()}
|
| 594 |
+
|
| 595 |
+
<div class="mt-8 animate-slide-up">
|
| 596 |
+
<div class="card">
|
| 597 |
+
<div class="text-center mb-8">
|
| 598 |
+
<div class="w-16 h-16 bg-primary-100 rounded-2xl flex items-center justify-center mx-auto mb-4">
|
| 599 |
+
<i class="fas fa-key text-primary-600 text-2xl"></i>
|
| 600 |
+
</div>
|
| 601 |
+
<h2 class="text-2xl font-bold text-gray-900">Reset Password</h2>
|
| 602 |
+
<p class="text-gray-500 mt-2">Enter your email to receive reset instructions</p>
|
| 603 |
+
</div>
|
| 604 |
+
|
| 605 |
+
<form id="forgotForm" class="space-y-5">
|
| 606 |
+
<div>
|
| 607 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Email Address</label>
|
| 608 |
+
<div class="relative">
|
| 609 |
+
<i class="fas fa-envelope absolute left-4 top-1/2 -translate-y-1/2 text-gray-400"></i>
|
| 610 |
+
<input type="email" class="form-input pl-11" placeholder="your@email.com" required>
|
| 611 |
+
</div>
|
| 612 |
+
</div>
|
| 613 |
+
|
| 614 |
+
<button type="submit" class="btn-primary w-full justify-center">
|
| 615 |
+
Send Reset Link
|
| 616 |
+
</button>
|
| 617 |
+
|
| 618 |
+
<button type="button" onclick="App.showLogin()" class="btn-secondary w-full justify-center">
|
| 619 |
+
<i class="fas fa-arrow-left"></i>
|
| 620 |
+
Back to Login
|
| 621 |
+
</button>
|
| 622 |
+
</form>
|
| 623 |
+
</div>
|
| 624 |
+
</div>
|
| 625 |
+
</div>
|
| 626 |
+
</div>
|
| 627 |
+
`,
|
| 628 |
+
|
| 629 |
+
// Sidebar Navigation
|
| 630 |
+
Sidebar: () => {
|
| 631 |
+
const user = AppState.currentUser;
|
| 632 |
+
const isAdmin = user.role === 'admin';
|
| 633 |
+
const isConfirmer = user.role === 'confirmer';
|
| 634 |
+
|
| 635 |
+
const menuItems = [];
|
| 636 |
+
|
| 637 |
+
// Dashboard for all
|
| 638 |
+
menuItems.push({ id: 'dashboard', icon: 'fa-chart-pie', label: 'Dashboard' });
|
| 639 |
+
|
| 640 |
+
// Products for all except confirmer uses confirmation panel
|
| 641 |
+
if (!isConfirmer) {
|
| 642 |
+
menuItems.push({ id: 'products', icon: 'fa-pump-soap', label: 'Products' });
|
| 643 |
+
}
|
| 644 |
+
|
| 645 |
+
// Confirmation panel for confirmer and admin
|
| 646 |
+
if (isConfirmer || isAdmin) {
|
| 647 |
+
const pendingCount = Utils.getPendingProducts().length;
|
| 648 |
+
menuItems.push({
|
| 649 |
+
id: 'confirmation',
|
| 650 |
+
icon: 'fa-clipboard-check',
|
| 651 |
+
label: 'Confirmation',
|
| 652 |
+
badge: pendingCount > 0 ? pendingCount : null
|
| 653 |
+
});
|
| 654 |
+
}
|
| 655 |
+
|
| 656 |
+
// Company profile
|
| 657 |
+
if (!isConfirmer) {
|
| 658 |
+
menuItems.push({ id: 'company', icon: 'fa-building', label: 'Company Profile' });
|
| 659 |
+
}
|
| 660 |
+
|
| 661 |
+
// User management for manager and admin
|
| 662 |
+
if (user.role === 'manager' || isAdmin) {
|
| 663 |
+
menuItems.push({ id: 'users', icon: 'fa-users', label: 'User Management' });
|
| 664 |
+
}
|
| 665 |
+
|
| 666 |
+
// Certificates
|
| 667 |
+
menuItems.push({ id: 'certificates', icon: 'fa-certificate', label: 'Certificates' });
|
| 668 |
+
|
| 669 |
+
// Audit log for admin
|
| 670 |
+
if (isAdmin) {
|
| 671 |
+
menuItems.push({ id: 'audit', icon: 'fa-history', label: 'Audit Log' });
|
| 672 |
+
}
|
| 673 |
+
|
| 674 |
+
return `
|
| 675 |
+
<aside class="w-64 bg-white border-r border-gray-200 min-h-screen flex flex-col">
|
| 676 |
+
<div class="p-6 border-b border-gray-100">
|
| 677 |
+
<div class="flex items-center gap-3">
|
| 678 |
+
<div class="w-12 h-12 bg-primary-600 rounded-xl flex items-center justify-center">
|
| 679 |
+
<i class="fas fa-spa text-white text-xl"></i>
|
| 680 |
+
</div>
|
| 681 |
+
<div>
|
| 682 |
+
<h1 class="font-bold text-gray-900">CMS</h1>
|
| 683 |
+
<p class="text-xs text-gray-500">Cosmetic Management</p>
|
| 684 |
+
</div>
|
| 685 |
+
</div>
|
| 686 |
+
</div>
|
| 687 |
+
|
| 688 |
+
<nav class="flex-1 p-4 space-y-1">
|
| 689 |
+
${menuItems.map(item => `
|
| 690 |
+
<div class="sidebar-item ${AppState.currentView === item.id ? 'active' : ''}"
|
| 691 |
+
onclick="App.navigate('${item.id}')">
|
| 692 |
+
<i class="fas ${item.icon} w-5"></i>
|
| 693 |
+
<span class="flex-1">${item.label}</span>
|
| 694 |
+
${item.badge ? `<span class="bg-primary-500 text-white text-xs px-2 py-0.5 rounded-full">${item.badge}</span>` : ''}
|
| 695 |
+
</div>
|
| 696 |
+
`).join('')}
|
| 697 |
+
</nav>
|
| 698 |
+
|
| 699 |
+
<div class="p-4 border-t border-gray-100">
|
| 700 |
+
<div class="flex items-center gap-3 p-3 rounded-lg bg-gray-50">
|
| 701 |
+
<div class="w-10 h-10 bg-primary-100 rounded-full flex items-center justify-center">
|
| 702 |
+
<i class="fas fa-user text-primary-600"></i>
|
| 703 |
+
</div>
|
| 704 |
+
<div class="flex-1 min-w-0">
|
| 705 |
+
<p class="font-medium text-gray-900 truncate">${user.name}</p>
|
| 706 |
+
<p class="text-xs text-gray-500 truncate capitalize">${ROLES[user.role].name}</p>
|
| 707 |
+
</div>
|
| 708 |
+
</div>
|
| 709 |
+
<button onclick="App.logout()" class="w-full mt-3 flex items-center gap-2 px-4 py-2 text-red-600 hover:bg-red-50 rounded-lg transition-all">
|
| 710 |
+
<i class="fas fa-sign-out-alt"></i>
|
| 711 |
+
<span>Sign Out</span>
|
| 712 |
+
</button>
|
| 713 |
+
</div>
|
| 714 |
+
</aside>
|
| 715 |
+
`;
|
| 716 |
+
},
|
| 717 |
+
|
| 718 |
+
// Dashboard
|
| 719 |
+
Dashboard: () => {
|
| 720 |
+
const user = AppState.currentUser;
|
| 721 |
+
const isAdmin = user.role === 'admin';
|
| 722 |
+
const isConfirmer = user.role === 'confirmer';
|
| 723 |
+
|
| 724 |
+
let products, company;
|
| 725 |
+
if (isAdmin) {
|
| 726 |
+
products = AppState.products;
|
| 727 |
+
} else if (isConfirmer) {
|
| 728 |
+
products = AppState.products;
|
| 729 |
+
} else {
|
| 730 |
+
products = Utils.getCompanyProducts(user.companyId);
|
| 731 |
+
company = AppState.companies.find(c => c.id === user.companyId);
|
| 732 |
+
}
|
| 733 |
+
|
| 734 |
+
const stats = {
|
| 735 |
+
total: products.length,
|
| 736 |
+
draft: products.filter(p => p.status === 'draft').length,
|
| 737 |
+
pending: products.filter(p => p.status === 'pending').length,
|
| 738 |
+
approved: products.filter(p => p.status === 'approved').length,
|
| 739 |
+
rejected: products.filter(p => p.status === 'rejected').length
|
| 740 |
+
};
|
| 741 |
+
|
| 742 |
+
const recentProducts = [...products].sort((a, b) =>
|
| 743 |
+
new Date(b.updatedAt) - new Date(a.updatedAt)
|
| 744 |
+
).slice(0, 5);
|
| 745 |
+
|
| 746 |
+
return `
|
| 747 |
+
<div class="space-y-6">
|
| 748 |
+
<div class="flex items-center justify-between">
|
| 749 |
+
<div>
|
| 750 |
+
<h2 class="text-2xl font-bold text-gray-900">Dashboard</h2>
|
| 751 |
+
<p class="text-gray-500">Welcome back, ${user.name}</p>
|
| 752 |
+
</div>
|
| 753 |
+
${company ? `
|
| 754 |
+
<div class="flex items-center gap-2 text-sm text-gray-600">
|
| 755 |
+
<i class="fas fa-building text-primary-600"></i>
|
| 756 |
+
<span>${company.name}</span>
|
| 757 |
+
</div>
|
| 758 |
+
` : ''}
|
| 759 |
+
</div>
|
| 760 |
+
|
| 761 |
+
<!-- Stats Grid -->
|
| 762 |
+
<div class="grid grid-cols-2 lg:grid-cols-5 gap-4">
|
| 763 |
+
<div class="card p-5">
|
| 764 |
+
<div class="flex items-center gap-3">
|
| 765 |
+
<div class="w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center">
|
| 766 |
+
<i class="fas fa-box text-blue-600 text-xl"></i>
|
| 767 |
+
</div>
|
| 768 |
+
<div>
|
| 769 |
+
<p class="text-2xl font-bold text-gray-900">${stats.total}</p>
|
| 770 |
+
<p class="text-sm text-gray-500">Total Products</p>
|
| 771 |
+
</div>
|
| 772 |
+
</div>
|
| 773 |
+
</div>
|
| 774 |
+
|
| 775 |
+
<div class="card p-5">
|
| 776 |
+
<div class="flex items-center gap-3">
|
| 777 |
+
<div class="w-12 h-12 bg-gray-100 rounded-xl flex items-center justify-center">
|
| 778 |
+
<i class="fas fa-pencil-alt text-gray-600 text-xl"></i>
|
| 779 |
+
</div>
|
| 780 |
+
<div>
|
| 781 |
+
<p class="text-2xl font-bold text-gray-900">${stats.draft}</p>
|
| 782 |
+
<p class="text-sm text-gray-500">Drafts</p>
|
| 783 |
+
</div>
|
| 784 |
+
</div>
|
| 785 |
+
</div>
|
| 786 |
+
|
| 787 |
+
<div class="card p-5">
|
| 788 |
+
<div class="flex items-center gap-3">
|
| 789 |
+
<div class="w-12 h-12 bg-yellow-100 rounded-xl flex items-center justify-center">
|
| 790 |
+
<i class="fas fa-clock text-yellow-600 text-xl"></i>
|
| 791 |
+
</div>
|
| 792 |
+
<div>
|
| 793 |
+
<p class="text-2xl font-bold text-gray-900">${stats.pending}</p>
|
| 794 |
+
<p class="text-sm text-gray-500">Pending</p>
|
| 795 |
+
</div>
|
| 796 |
+
</div>
|
| 797 |
+
</div>
|
| 798 |
+
|
| 799 |
+
<div class="card p-5">
|
| 800 |
+
<div class="flex items-center gap-3">
|
| 801 |
+
<div class="w-12 h-12 bg-green-100 rounded-xl flex items-center justify-center">
|
| 802 |
+
<i class="fas fa-check-circle text-green-600 text-xl"></i>
|
| 803 |
+
</div>
|
| 804 |
+
<div>
|
| 805 |
+
<p class="text-2xl font-bold text-gray-900">${stats.approved}</p>
|
| 806 |
+
<p class="text-sm text-gray-500">Approved</p>
|
| 807 |
+
</div>
|
| 808 |
+
</div>
|
| 809 |
+
</div>
|
| 810 |
+
|
| 811 |
+
<div class="card p-5">
|
| 812 |
+
<div class="flex items-center gap-3">
|
| 813 |
+
<div class="w-12 h-12 bg-red-100 rounded-xl flex items-center justify-center">
|
| 814 |
+
<i class="fas fa-times-circle text-red-600 text-xl"></i>
|
| 815 |
+
</div>
|
| 816 |
+
<div>
|
| 817 |
+
<p class="text-2xl font-bold text-gray-900">${stats.rejected}</p>
|
| 818 |
+
<p class="text-sm text-gray-500">Rejected</p>
|
| 819 |
+
</div>
|
| 820 |
+
</div>
|
| 821 |
+
</div>
|
| 822 |
+
</div>
|
| 823 |
+
|
| 824 |
+
<!-- Recent Products & Quick Actions -->
|
| 825 |
+
<div class="grid lg:grid-cols-3 gap-6">
|
| 826 |
+
<div class="lg:col-span-2 card">
|
| 827 |
+
<div class="flex items-center justify-between mb-4">
|
| 828 |
+
<h3 class="font-bold text-gray-900">Recent Products</h3>
|
| 829 |
+
<button onclick="App.navigate('products')" class="text-primary-600 hover:text-primary-700 text-sm font-medium">
|
| 830 |
+
View All
|
| 831 |
+
</button>
|
| 832 |
+
</div>
|
| 833 |
+
<div class="space-y-3">
|
| 834 |
+
${recentProducts.length > 0 ? recentProducts.map(p => `
|
| 835 |
+
<div class="flex items-center gap-4 p-3 rounded-lg hover:bg-gray-50 transition-all cursor-pointer"
|
| 836 |
+
onclick="App.viewProduct('${p.id}')">
|
| 837 |
+
<div class="w-12 h-12 bg-gradient-to-br from-primary-100 to-primary-200 rounded-lg flex items-center justify-center">
|
| 838 |
+
<i class="fas fa-pump-soap text-primary-600"></i>
|
| 839 |
+
</div>
|
| 840 |
+
<div class="flex-1">
|
| 841 |
+
<p class="font-medium text-gray-900">${p.name}</p>
|
| 842 |
+
<p class="text-sm text-gray-500">${p.brand} • ${p.category}</p>
|
| 843 |
+
</div>
|
| 844 |
+
<span class="status-badge status-${p.status}">${p.status}</span>
|
| 845 |
+
</div>
|
| 846 |
+
`).join('') : `
|
| 847 |
+
<p class="text-gray-500 text-center py-8">No products yet</p>
|
| 848 |
+
`}
|
| 849 |
+
</div>
|
| 850 |
+
</div>
|
| 851 |
+
|
| 852 |
+
<div class="card">
|
| 853 |
+
<h3 class="font-bold text-gray-900 mb-4">Quick Actions</h3>
|
| 854 |
+
<div class="space-y-3">
|
| 855 |
+
${Utils.hasPermission(user, 'create_product') ? `
|
| 856 |
+
<button onclick="App.showProductForm()" class="w-full flex items-center gap-3 p-3 rounded-lg border border-gray-200 hover:border-primary-300 hover:bg-primary-50 transition-all">
|
| 857 |
+
<div class="w-10 h-10 bg-primary-100 rounded-lg flex items-center justify-center">
|
| 858 |
+
<i class="fas fa-plus text-primary-600"></i>
|
| 859 |
+
</div>
|
| 860 |
+
<span class="font-medium text-gray-700">Add New Product</span>
|
| 861 |
+
</button>
|
| 862 |
+
` : ''}
|
| 863 |
+
|
| 864 |
+
${isConfirmer ? `
|
| 865 |
+
<button onclick="App.navigate('confirmation')" class="w-full flex items-center gap-3 p-3 rounded-lg border border-gray-200 hover:border-yellow-300 hover:bg-yellow-50 transition-all">
|
| 866 |
+
<div class="w-10 h-10 bg-yellow-100 rounded-lg flex items-center justify-center">
|
| 867 |
+
<i class="fas fa-clipboard-check text-yellow-600"></i>
|
| 868 |
+
</div>
|
| 869 |
+
<div class="flex-1">
|
| 870 |
+
<span class="font-medium text-gray-700">Review Pending</span>
|
| 871 |
+
${stats.pending > 0 ? `<span class="ml-2 bg-yellow-500 text-white text-xs px-2 py-0.5 rounded-full">${stats.pending}</span>` : ''}
|
| 872 |
+
</div>
|
| 873 |
+
</button>
|
| 874 |
+
` : ''}
|
| 875 |
+
|
| 876 |
+
<button onclick="App.navigate('certificates')" class="w-full flex items-center gap-3 p-3 rounded-lg border border-gray-200 hover:border-green-300 hover:bg-green-50 transition-all">
|
| 877 |
+
<div class="w-10 h-10 bg-green-100 rounded-lg flex items-center justify-center">
|
| 878 |
+
<i class="fas fa-certificate text-green-600"></i>
|
| 879 |
+
</div>
|
| 880 |
+
<span class="font-medium text-gray-700">Manage Certificates</span>
|
| 881 |
+
</button>
|
| 882 |
+
</div>
|
| 883 |
+
</div>
|
| 884 |
+
</div>
|
| 885 |
+
</div>
|
| 886 |
+
`;
|
| 887 |
+
},
|
| 888 |
+
|
| 889 |
+
// Products List
|
| 890 |
+
ProductsList: () => {
|
| 891 |
+
const user = AppState.currentUser;
|
| 892 |
+
let products = user.role === 'admin'
|
| 893 |
+
? AppState.products
|
| 894 |
+
: Utils.getCompanyProducts(user.companyId);
|
| 895 |
+
|
| 896 |
+
// Apply filters
|
| 897 |
+
if (AppState.filters.status !== 'all') {
|
| 898 |
+
products = products.filter(p => p.status === AppState.filters.status);
|
| 899 |
+
}
|
| 900 |
+
if (AppState.filters.search) {
|
| 901 |
+
const search = AppState.filters.search.toLowerCase();
|
| 902 |
+
products = products.filter(p =>
|
| 903 |
+
p.name.toLowerCase().includes(search) ||
|
| 904 |
+
p.brand.toLowerCase().includes(search) ||
|
| 905 |
+
p.barcode.includes(search)
|
| 906 |
+
);
|
| 907 |
+
}
|
| 908 |
+
|
| 909 |
+
return `
|
| 910 |
+
<div class="space-y-6">
|
| 911 |
+
<div class="flex flex-col sm:flex-row sm:items-center justify-between gap-4">
|
| 912 |
+
<div>
|
| 913 |
+
<h2 class="text-2xl font-bold text-gray-900">Products</h2>
|
| 914 |
+
<p class="text-gray-500">Manage your cosmetic products</p>
|
| 915 |
+
</div>
|
| 916 |
+
${Utils.hasPermission(user, 'create_product') ? `
|
| 917 |
+
<button onclick="App.showProductForm()" class="btn-primary">
|
| 918 |
+
<i class="fas fa-plus"></i>
|
| 919 |
+
Add Product
|
| 920 |
+
</button>
|
| 921 |
+
` : ''}
|
| 922 |
+
</div>
|
| 923 |
+
|
| 924 |
+
<!-- Filters -->
|
| 925 |
+
<div class="card p-4">
|
| 926 |
+
<div class="flex flex-col sm:flex-row gap-4">
|
| 927 |
+
<div class="flex-1 relative">
|
| 928 |
+
<i class="fas fa-search absolute left-4 top-1/2 -translate-y-1/2 text-gray-400"></i>
|
| 929 |
+
<input type="text" id="productSearch" class="form-input pl-11"
|
| 930 |
+
placeholder="Search products..."
|
| 931 |
+
value="${AppState.filters.search}"
|
| 932 |
+
oninput="App.updateFilter('search', this.value)">
|
| 933 |
+
</div>
|
| 934 |
+
<select class="form-input sm:w-48" onchange="App.updateFilter('status', this.value)">
|
| 935 |
+
<option value="all" ${AppState.filters.status === 'all' ? 'selected' : ''}>All Status</option>
|
| 936 |
+
<option value="draft" ${AppState.filters.status === 'draft' ? 'selected' : ''}>Draft</option>
|
| 937 |
+
<option value="pending" ${AppState.filters.status === 'pending' ? 'selected' : ''}>Pending</option>
|
| 938 |
+
<option value="approved" ${AppState.filters.status === 'approved' ? 'selected' : ''}>Approved</option>
|
| 939 |
+
<option value="rejected" ${AppState.filters.status === 'rejected' ? 'selected' : ''}>Rejected</option>
|
| 940 |
+
</select>
|
| 941 |
+
</div>
|
| 942 |
+
</div>
|
| 943 |
+
|
| 944 |
+
<!-- Products Grid -->
|
| 945 |
+
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 946 |
+
${products.map(p => `
|
| 947 |
+
<div class="card group cursor-pointer" onclick="App.viewProduct('${p.id}')">
|
| 948 |
+
<div class="flex items-start justify-between mb-4">
|
| 949 |
+
<div class="w-16 h-16 bg-gradient-to-br from-primary-100 to-primary-200 rounded-xl flex items-center justify-center">
|
| 950 |
+
<i class="fas fa-pump-soap text-primary-600 text-2xl"></i>
|
| 951 |
+
</div>
|
| 952 |
+
<span class="status-badge status-${p.status}">${p.status}</span>
|
| 953 |
+
</div>
|
| 954 |
+
|
| 955 |
+
<h3 class="font-bold text-gray-900 mb-1 group-hover:text-primary-600 transition-colors">${p.name}</h3>
|
| 956 |
+
<p class="text-sm text-gray-500 mb-3">${p.brand} • ${p.category}</p>
|
| 957 |
+
|
| 958 |
+
<div class="space-y-2 text-sm">
|
| 959 |
+
<div class="flex justify-between">
|
| 960 |
+
<span class="text-gray-500">Barcode:</span>
|
| 961 |
+
<span class="font-mono text-gray-700">${p.barcode}</span>
|
| 962 |
+
</div>
|
| 963 |
+
<div class="flex justify-between">
|
| 964 |
+
<span class="text-gray-500">Expiry:</span>
|
| 965 |
+
<span class="text-gray-700">${Utils.formatDate(p.expiryDate)}</span>
|
| 966 |
+
</div>
|
| 967 |
+
<div class="flex justify-between">
|
| 968 |
+
<span class="text-gray-500">CPNP:</span>
|
| 969 |
+
<span class="text-gray-700 text-xs">${p.cppnNumber}</span>
|
| 970 |
+
</div>
|
| 971 |
+
</div>
|
| 972 |
+
|
| 973 |
+
${p.status === 'approved' ? `
|
| 974 |
+
<div class="mt-4 pt-4 border-t border-gray-100 flex items-center gap-2 text-green-600 text-sm">
|
| 975 |
+
<i class="fas fa-check-circle"></i>
|
| 976 |
+
<span>Confirmed by ${p.confirmedBy ? AppState.users.find(u => u.id === p.confirmedBy)?.name : 'Unknown'}</span>
|
| 977 |
+
</div>
|
| 978 |
+
` : p.status === 'rejected' ? `
|
| 979 |
+
<div class="mt-4 pt-4 border-t border-gray-100 flex items-center gap-2 text-red-600 text-sm">
|
| 980 |
+
<i class="fas fa-times-circle"></i>
|
| 981 |
+
<span>Rejected</span>
|
| 982 |
+
</div>
|
| 983 |
+
` : ''}
|
| 984 |
+
</div>
|
| 985 |
+
`).join('')}
|
| 986 |
+
</div>
|
| 987 |
+
|
| 988 |
+
${products.length === 0 ? `
|
| 989 |
+
<div class="text-center py-16">
|
| 990 |
+
<div class="w-24 h-24 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 991 |
+
<i class="fas fa-box-open text-gray-400 text-3xl"></i>
|
| 992 |
+
</div>
|
| 993 |
+
<h3 class="text-lg font-medium text-gray-900 mb-2">No products found</h3>
|
| 994 |
+
<p class="text-gray-500">Try adjusting your filters or add a new product</p>
|
| 995 |
+
</div>
|
| 996 |
+
` : ''}
|
| 997 |
+
</div>
|
| 998 |
+
`;
|
| 999 |
+
},
|
| 1000 |
+
|
| 1001 |
+
// Product Form Modal
|
| 1002 |
+
ProductForm: (product = null) => {
|
| 1003 |
+
const isEdit = !!product;
|
| 1004 |
+
const user = AppState.currentUser;
|
| 1005 |
+
const company = AppState.companies.find(c => c.id === user.companyId);
|
| 1006 |
+
|
| 1007 |
+
return `
|
| 1008 |
+
<div class="modal-overlay" onclick="if(event.target === this) App.closeModal()">
|
| 1009 |
+
<div class="modal-content max-w-4xl">
|
| 1010 |
+
<div class="p-6 border-b border-gray-100 flex items-center justify-between">
|
| 1011 |
+
<div>
|
| 1012 |
+
<h2 class="text-xl font-bold text-gray-900">${isEdit ? 'Edit Product' : 'Add New Product'}</h2>
|
| 1013 |
+
<p class="text-sm text-gray-500">${company?.name || 'All Companies'}</p>
|
| 1014 |
+
</div>
|
| 1015 |
+
<button onclick="App.closeModal()" class="w-10 h-10 rounded-lg hover:bg-gray-100 flex items-center justify-center transition-all">
|
| 1016 |
+
<i class="fas fa-times text-gray-500"></i>
|
| 1017 |
+
</button>
|
| 1018 |
+
</div>
|
| 1019 |
+
|
| 1020 |
+
<div class="p-6 overflow-y-auto max-h-[60vh]">
|
| 1021 |
+
<form id="productForm" class="space-y-6">
|
| 1022 |
+
<input type="hidden" id="productId" value="${product?.id || ''}">
|
| 1023 |
+
|
| 1024 |
+
<!-- Basic Information -->
|
| 1025 |
+
<div class="grid md:grid
|