alkobr commited on
Commit
d9ea7a6
·
verified ·
1 Parent(s): a8d1979

# Arabic Dashboard Design Prompt for AI Generator ## Project Overview Create a modern, professional Arabic dashboard interface for the Conversena e-commerce AI platform. This is a comprehensive business intelligence dashboard for managing conversational commerce operations. ## Language & Direction Requirements - **Primary Language**: Arabic (العربية) - **Text Direction**: Right-to-Left (RTL) layout - **Secondary Languages**: Support for Hebrew and English (displayed in UI toggles) - **Typography**: Use Arabic-friendly fonts like Tajawal, Cairo, or Amiri ## Layout Structure ### Sidebar Navigation (الشريط الجانبي) **Position**: Right side of screen (RTL layout) **Width**: 280px desktop, collapsible to 60px **Background**: Dark gradient (#1a1d29 to #2d3748) #### Navigation Items (from top to bottom): 1. **لوحة التحكم** (Dashboard) - Active state 2. **المنتجات** (Products) - With sub-menu indicator 3. **الطلبات** (Orders) - With notification badge 4. **العملاء** (Customers) 5. **المحادثات** (Conversations) - With escalation alert 6. **القنوات** (Channels) 7. **البث** (Broadcasts) 8. **الفريق** (Team) 9. **الإعدادات** (Settings) #### Sidebar Features: - Company logo at top - User profile section at bottom - Collapse/expand toggle button - Active state highlighting - Hover effects with smooth transitions ### Main Content Area (المحتوى الرئيسي) **Layout**: Responsive grid system **Padding**: 24px all sides **Background**: Light gray (#f8fafc) ## Dashboard Components ### 1. Header Section - **Welcome Message**: "مرحباً بك، أحمد" (Welcome, Ahmed) - **Date Range Picker**: With Arabic date format - **Quick Actions**: Notification bell, profile dropdown - **Language Toggle**: AR/HE/EN switcher ### 2. KPI Cards Row (بطاقات المؤشرات) Create 4 cards in a responsive row: #### Card 1: محادثات اليوم (Today's Conversations) - **Main Number**: 127 - **Subtitle**: زيادة 23% عن الأمس - **Icon**: Chat bubble icon - **Color**: Blue theme (#3b82f6) #### Card 2: الطلبات المكتملة (Completed Orders) - **Main Number**: 45 - **Subtitle**: إجمالي المبيعات: 12,450 ريال - **Icon**: Shopping cart icon - **Color**: Green theme (#10b981) #### Card 3: معدل التحويل (Conversion Rate) - **Main Number**: 35.4% - **Subtitle**: تحسن 5.2% هذا الأسبوع - **Icon**: Trending up icon - **Color**: Orange theme (#f59e0b) #### Card 4: منتجات منخفضة المخزون (Low Stock Products) - **Main Number**: 8 - **Subtitle**: تحتاج إعادة تموين - **Icon**: Warning icon - **Color**: Red theme (#ef4444) ### 3. Main Content Grid (الشبكة الرئيسية) **Layout**: 2-column grid on desktop, 1-column on mobile #### Left Column (العمود الأيسر): ##### Analytics Overview Chart (نظرة عامة على التحليلات) - **Title**: "أداء المحادثات الأسبوعي" - **Chart Type**: Line chart showing conversations vs conversions - **Time Period**: Last 7 days - **Interactive**: Hover tooltips with Arabic numbers ##### Top Products Table (أفضل المنتجات) - **Title**: "المنتجات الأكثر طلباً" - **Columns**: اسم المنتج | الاستفسارات | المبيعات | المخزون - **Rows**: 5 top products with product images - **Action**: View details button #### Right Column (العمود الأيمن): ##### Recent Orders (الطلبات الأخيرة) - **Title**: "آخر الطلبات" - **Display**: Order cards with customer name, products, status - **Status Indicators**: - تم التسليم (Delivered) - Green - قيد التوصيل (In Transit) - Blue - عالق (Stuck) - Red - **Action**: View all orders link ##### Escalation Alerts (تنبيهات التصعيد) - **Title**: "المحادثات المتصاعدة" - **Display**: Alert cards with customer info and reason - **Priority Levels**: عالي، متوسط، منخفض - **Action**: Handle escalation button ### 4. Quick Actions Panel (لوحة الإجراءات السريعة) Floating action buttons at bottom-right: - **Add Product**: إضافة منتج - **New Broadcast**: بث جديد - **Manual Order**: طلب يدوي ## Design Specifications ### Color Scheme - **Primary**: #3b82f6 (Blue) - **Secondary**: #10b981 (Green) - **Accent**: #f59e0b (Orange) - **Danger**: #ef4444 (Red) - **Background**: #f8fafc (Light gray) - **Text**: #1f2937 (Dark gray) - **Sidebar**: #1a1d29 (Dark blue) ### Typography - **Headers**: Bold, 24px-18px - **Body**: Regular, 14px-16px - **Captions**: Light, 12px-14px - **Numbers**: Monospace font for consistency ### Interactions - **Hover Effects**: Subtle shadows and color changes - **Loading States**: Skeleton screens for data loading - **Animations**: Smooth transitions (300ms ease-in-out) - **Responsive**: Mobile-first approach ### Arabic-Specific Design Elements - **Number Format**: Use Arabic-Indic numerals (٠١٢٣٤٥٦٧٨٩) option - **Calendar**: Hijri calendar support - **Currency**: Saudi Riyal (ريال) formatting - **Time Format**: 24-hour with Arabic AM/PM ## Technical Requirements - **Framework**: React with RTL support - **Styling**: Tailwind CSS with RTL variants - **Icons**: Lucide React or Heroicons - **Charts**: Recharts or Chart.js - **State Management**: React hooks - **Responsive**: Mobile-first breakpoints ## Accessibility Features - **ARIA Labels**: All interactive elements - **Keyboard Navigation**: Full keyboard support - **Screen Reader**: Arabic screen reader compatibility - **High Contrast**: Alternative color scheme - **Font Scaling**: Responsive font sizes ## Additional Notes - All text should be naturally written in Arabic - Avoid direct translations - use contextually appropriate Arabic terms - Include cultural design elements that resonate with Arabic users - Ensure proper Arabic text rendering and ligatures - Use appropriate Arabic business terminology - Consider regional differences in Arabic dialects for labels Create a modern, professional, and culturally appropriate Arabic dashboard that feels native to Arabic-speaking users while maintaining international usability standards. - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +467 -506
index.html CHANGED
@@ -1,65 +1,80 @@
1
  <!DOCTYPE html>
2
- <html lang="en" dir="ltr">
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Conversena Dashboard</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
- <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
9
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
 
10
  <style>
11
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
12
-
13
  body {
14
- font-family: 'Inter', sans-serif;
15
- direction: ltr;
16
- }
17
-
18
- .rtl {
19
- direction: rtl;
20
  }
21
 
22
- .card-hover:hover {
23
- transform: translateY(-2px);
24
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
25
  }
26
 
27
- .sidebar {
28
- transition: all 0.3s ease;
29
  }
30
 
31
- .sidebar.collapsed {
32
- width: 70px;
33
  }
34
 
35
- .sidebar.collapsed .sidebar-text {
36
  display: none;
37
  }
38
 
39
- .sidebar.collapsed .logo-text {
40
  display: none;
41
  }
42
 
43
- .sidebar.collapsed .sidebar-item {
44
  justify-content: center;
45
  }
46
 
47
- .notification-badge {
48
- position: absolute;
49
- top: -5px;
50
- right: -5px;
51
  }
52
 
53
- .chart-container {
54
- position: relative;
55
- height: 200px;
56
- width: 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  }
58
 
59
- .progress-ring__circle {
60
- transition: stroke-dashoffset 0.35s;
61
- transform: rotate(-90deg);
62
- transform-origin: 50% 50%;
63
  }
64
 
65
  @keyframes pulse {
@@ -76,576 +91,522 @@
76
  }
77
  </style>
78
  </head>
79
- <body class="bg-gray-50">
80
  <div class="flex h-screen overflow-hidden">
81
  <!-- Sidebar -->
82
- <div class="sidebar bg-white border-r border-gray-200 flex flex-col w-64">
83
- <div class="flex items-center justify-between p-4 border-b border-gray-200">
84
- <div class="flex items-center space-x-2">
85
- <div class="w-8 h-8 bg-blue-600 rounded-md flex items-center justify-center">
86
- <i class="fas fa-comment-dots text-white"></i>
87
  </div>
88
- <span class="logo-text text-xl font-bold text-gray-800">Conversena</span>
89
  </div>
90
- <button id="sidebar-toggle" class="text-gray-500 hover:text-gray-700">
91
- <i class="fas fa-chevron-left"></i>
92
  </button>
93
  </div>
94
 
95
- <div class="p-4 border-b border-gray-200">
96
- <div class="flex items-center justify-between mb-2">
97
- <span class="text-sm font-medium text-gray-500">Date Range</span>
98
- <button class="text-blue-600 text-sm font-medium">Custom</button>
99
- </div>
100
- <div class="grid grid-cols-4 gap-2">
101
- <button class="py-1 px-2 text-xs rounded bg-blue-600 text-white">Today</button>
102
- <button class="py-1 px-2 text-xs rounded bg-gray-100 text-gray-700 hover:bg-gray-200">Week</button>
103
- <button class="py-1 px-2 text-xs rounded bg-gray-100 text-gray-700 hover:bg-gray-200">Month</button>
104
- <button class="py-1 px-2 text-xs rounded bg-gray-100 text-gray-700 hover:bg-gray-200">Year</button>
105
- </div>
106
- </div>
107
-
108
- <div class="flex-1 overflow-y-auto">
109
- <nav class="p-2">
110
- <div class="space-y-1">
111
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700">
112
- <i class="fas fa-tachometer-alt mr-3 text-blue-600"></i>
113
- <span class="sidebar-text">Dashboard</span>
114
- </a>
115
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
116
- <i class="fas fa-chart-line mr-3 text-gray-500"></i>
117
- <span class="sidebar-text">Analytics</span>
118
- </a>
119
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
120
- <i class="fas fa-box-open mr-3 text-gray-500"></i>
121
- <span class="sidebar-text">Products</span>
122
- </a>
123
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
124
- <i class="fas fa-shopping-bag mr-3 text-gray-500"></i>
125
- <span class="sidebar-text">Orders</span>
126
- </a>
127
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
128
- <i class="fas fa-users mr-3 text-gray-500"></i>
129
- <span class="sidebar-text">Customers</span>
130
- </a>
131
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
132
- <i class="fas fa-comments mr-3 text-gray-500"></i>
133
- <span class="sidebar-text">Conversations</span>
134
- </a>
135
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
136
- <i class="fas fa-robot mr-3 text-gray-500"></i>
137
- <span class="sidebar-text">AI Settings</span>
138
- </a>
139
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
140
- <i class="fas fa-plug mr-3 text-gray-500"></i>
141
- <span class="sidebar-text">Channels</span>
142
- </a>
143
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
144
- <i class="fas fa-truck mr-3 text-gray-500"></i>
145
- <span class="sidebar-text">Delivery</span>
146
- </a>
147
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
148
- <i class="fas fa-bullhorn mr-3 text-gray-500"></i>
149
- <span class="sidebar-text">Broadcasts</span>
150
- </a>
151
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
152
- <i class="fas fa-user-friends mr-3 text-gray-500"></i>
153
- <span class="sidebar-text">Team</span>
154
- </a>
155
- <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
156
- <i class="fas fa-cog mr-3 text-gray-500"></i>
157
- <span class="sidebar-text">Settings</span>
158
- </a>
 
 
 
 
 
 
 
 
159
  </div>
160
  </nav>
161
  </div>
162
 
163
- <div class="p-4 border-t border-gray-200">
164
  <div class="flex items-center">
165
- <div class="relative">
166
- <img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
167
- <span class="absolute bottom-0 right-0 block h-2 w-2 rounded-full bg-green-400 ring-2 ring-white"></span>
168
  </div>
169
- <div class="ml-3 sidebar-text">
170
- <p class="text-sm font-medium text-gray-700">Ahmed Khalid</p>
171
- <p class="text-xs text-gray-500">Admin</p>
172
  </div>
173
  </div>
174
  </div>
175
  </div>
176
 
177
- <!-- Main content -->
178
  <div class="flex-1 overflow-auto">
179
  <!-- Header -->
180
- <header class="bg-white border-b border-gray-200">
181
- <div class="px-4 py-3 flex items-center justify-between">
182
- <div class="flex items-center space-x-4">
183
- <h1 class="text-xl font-bold text-gray-800">Dashboard Overview</h1>
184
- <div class="relative">
185
- <button class="flex items-center space-x-1 text-sm font-medium text-gray-600 hover:text-gray-900">
186
- <span>Today</span>
187
- <i class="fas fa-chevron-down text-xs"></i>
188
- </button>
189
- </div>
190
  </div>
191
 
192
- <div class="flex items-center space-x-4">
193
- <button class="relative p-1 text-gray-500 hover:text-gray-700">
194
- <i class="fas fa-bell"></i>
195
- <span class="notification-badge inline-flex items-center justify-center px-1.5 py-0.5 text-xs font-bold leading-none text-white transform translate-x-1/2 -translate-y-1/2 bg-red-500 rounded-full">5</span>
196
- </button>
 
 
 
 
 
 
197
 
198
  <div class="relative">
199
- <button id="language-switcher" class="flex items-center space-x-1 text-sm font-medium text-gray-600 hover:text-gray-900">
200
- <i class="fas fa-globe"></i>
201
- <span>English</span>
202
- <i class="fas fa-chevron-down text-xs"></i>
203
  </button>
204
  </div>
205
 
206
- <button class="bg-orange-500 hover:bg-orange-600 text-white px-4 py-2 rounded-md text-sm font-medium flex items-center space-x-2">
207
- <i class="fas fa-bolt"></i>
208
- <span>Emergency</span>
209
- </button>
 
 
210
  </div>
211
  </div>
212
  </header>
213
 
214
- <!-- Main dashboard content -->
215
- <main class="p-4">
216
- <!-- Quick stats -->
217
- <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
218
- <div class="bg-white rounded-lg shadow-sm p-4 card-hover transition-all duration-200">
219
- <div class="flex items-center justify-between">
 
220
  <div>
221
- <p class="text-sm font-medium text-gray-500">Today's Conversations</p>
222
- <p class="text-2xl font-bold text-gray-800 mt-1">1,248</p>
223
- <div class="flex items-center mt-1">
224
- <span class="text-xs font-medium text-green-500 flex items-center">
225
- <i class="fas fa-arrow-up mr-1"></i> 12.4%
226
- </span>
227
- <span class="text-xs text-gray-500 ml-2">vs yesterday</span>
228
- </div>
229
  </div>
230
- <div class="bg-blue-50 p-3 rounded-full">
231
- <i class="fas fa-comments text-blue-600 text-xl"></i>
232
  </div>
233
  </div>
234
  </div>
235
 
236
- <div class="bg-white rounded-lg shadow-sm p-4 card-hover transition-all duration-200">
237
- <div class="flex items-center justify-between">
 
238
  <div>
239
- <p class="text-sm font-medium text-gray-500">Messages Sent</p>
240
- <p class="text-2xl font-bold text-gray-800 mt-1">5,742</p>
241
- <div class="flex items-center mt-1">
242
- <span class="text-xs font-medium text-green-500 flex items-center">
243
- <i class="fas fa-arrow-up mr-1"></i> 8.2%
244
- </span>
245
- <span class="text-xs text-gray-500 ml-2">vs yesterday</span>
246
- </div>
247
  </div>
248
- <div class="bg-green-50 p-3 rounded-full">
249
- <i class="fas fa-paper-plane text-green-600 text-xl"></i>
250
  </div>
251
  </div>
252
- <div class="mt-3 h-1 w-full bg-gray-100 rounded-full">
253
- <div class="h-1 bg-green-500 rounded-full" style="width: 65%"></div>
254
- </div>
255
  </div>
256
 
257
- <div class="bg-white rounded-lg shadow-sm p-4 card-hover transition-all duration-200">
258
- <div class="flex items-center justify-between">
 
259
  <div>
260
- <p class="text-sm font-medium text-gray-500">Orders Placed</p>
261
- <p class="text-2xl font-bold text-gray-800 mt-1">$12,845</p>
262
- <div class="flex items-center mt-1">
263
- <span class="text-xs font-medium text-green-500 flex items-center">
264
- <i class="fas fa-arrow-up mr-1"></i> 22.7%
265
- </span>
266
- <span class="text-xs text-gray-500 ml-2">vs yesterday</span>
267
- </div>
268
  </div>
269
- <div class="bg-purple-50 p-3 rounded-full">
270
- <i class="fas fa-shopping-bag text-purple-600 text-xl"></i>
271
  </div>
272
  </div>
273
- <div class="mt-3">
274
- <p class="text-xs text-gray-500">Conversion: <span class="font-medium text-gray-800">3.8%</span></p>
275
- </div>
276
  </div>
277
 
278
- <div class="bg-white rounded-lg shadow-sm p-4 card-hover transition-all duration-200">
279
- <div class="flex items-center justify-between">
 
280
  <div>
281
- <p class="text-sm font-medium text-gray-500">Active Customers</p>
282
- <p class="text-2xl font-bold text-gray-800 mt-1">428</p>
283
- <div class="flex items-center mt-1">
284
- <span class="text-xs font-medium text-green-500 flex items-center">
285
- <i class="fas fa-arrow-up mr-1"></i> 5.1%
286
- </span>
287
- <span class="text-xs text-gray-500 ml-2">vs yesterday</span>
288
- </div>
289
  </div>
290
- <div class="bg-yellow-50 p-3 rounded-full">
291
- <i class="fas fa-user-friends text-yellow-600 text-xl"></i>
292
  </div>
293
  </div>
294
- <div class="mt-3">
295
- <p class="text-xs text-gray-500">New: <span class="font-medium text-gray-800">87</span></p>
296
- </div>
297
  </div>
298
  </div>
299
 
300
- <!-- Charts row -->
301
- <div class="grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6">
302
- <div class="bg-white rounded-lg shadow-sm p-4 card-hover transition-all duration-200">
303
- <div class="flex items-center justify-between mb-4">
304
- <h3 class="text-lg font-medium text-gray-800">Conversion Funnel</h3>
305
- <div class="flex space-x-2">
306
- <button class="text-xs px-2 py-1 bg-gray-100 rounded-md">Week</button>
307
- <button class="text-xs px-2 py-1 bg-blue-600 text-white rounded-md">Month</button>
308
- <button class="text-xs px-2 py-1 bg-gray-100 rounded-md">Year</button>
 
 
 
 
 
 
 
 
309
  </div>
310
  </div>
311
- <div class="chart-container">
312
- <canvas id="funnelChart"></canvas>
313
- </div>
314
- </div>
315
-
316
- <div class="bg-white rounded-lg shadow-sm p-4 card-hover transition-all duration-200">
317
- <div class="flex items-center justify-between mb-4">
318
- <h3 class="text-lg font-medium text-gray-800">Channel Performance</h3>
319
- <button class="text-sm text-blue-600 hover:text-blue-800">View Details</button>
320
- </div>
321
- <div class="chart-container">
322
- <canvas id="channelChart"></canvas>
323
- </div>
324
- </div>
325
- </div>
326
-
327
- <!-- Third row -->
328
- <div class="grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6">
329
- <div class="bg-white rounded-lg shadow-sm p-4 card-hover transition-all duration-200">
330
- <div class="flex items-center justify-between mb-4">
331
- <h3 class="text-lg font-medium text-gray-800">Escalations Queue</h3>
332
- <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">5 New</span>
333
- </div>
334
- <div class="space-y-3">
335
- <div class="flex items-start">
336
- <div class="flex-shrink-0">
337
- <img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=4&w=256&h=256&q=60" alt="">
338
- </div>
339
- <div class="ml-3">
340
- <p class="text-sm font-medium text-gray-900">Lina Hassan</p>
341
- <p class="text-sm text-gray-500">Order #4578 delayed</p>
342
- <div class="mt-1 flex items-center text-xs text-gray-500">
343
- <span>WhatsApp • 15 min ago</span>
344
- </div>
345
- </div>
346
- <div class="ml-auto">
347
- <button class="text-blue-600 hover:text-blue-800 text-sm font-medium">Handle</button>
348
- </div>
349
  </div>
350
 
351
- <div class="flex items-start">
352
- <div class="flex-shrink-0">
353
- <img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
354
- </div>
355
- <div class="ml-3">
356
- <p class="text-sm font-medium text-gray-900">Mohammed Ali</p>
357
- <p class="text-sm text-gray-500">Product return request</p>
358
- <div class="mt-1 flex items-center text-xs text-gray-500">
359
- <span>Facebook • 32 min ago</span>
360
- </div>
361
- </div>
362
- <div class="ml-auto">
363
- <button class="text-blue-600 hover:text-blue-800 text-sm font-medium">Handle</button>
364
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365
  </div>
366
 
367
- <div class="flex items-start">
368
- <div class="flex-shrink-0">
369
- <img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
370
- </div>
371
- <div class="ml-3">
372
- <p class="text-sm font-medium text-gray-900">Youssef Ahmed</p>
373
- <p class="text-sm text-gray-500">Payment issue</p>
374
- <div class="mt-1 flex items-center text-xs text-gray-500">
375
- <span>Instagram • 1 hour ago</span>
376
- </div>
377
- </div>
378
- <div class="ml-auto">
379
- <button class="text-blue-600 hover:text-blue-800 text-sm font-medium">Handle</button>
380
- </div>
381
  </div>
382
  </div>
383
- <div class="mt-4">
384
- <button class="w-full py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50">
385
- View All Escalations
386
- </button>
387
- </div>
388
  </div>
389
 
390
- <div class="bg-white rounded-lg shadow-sm p-4 card-hover transition-all duration-200">
391
- <div class="flex items-center justify-between mb-4">
392
- <h3 class="text-lg font-medium text-gray-800">Low Stock Alerts</h3>
393
- <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">3 Critical</span>
394
- </div>
395
- <div class="space-y-4">
396
- <div class="flex items-center">
397
- <div class="flex-shrink-0 h-10 w-10 rounded-md overflow-hidden">
398
- <img class="h-full w-full object-cover" src="https://tailwindui.com/img/ecommerce-images/product-page-01-related-product-01.jpg" alt="">
399
- </div>
400
- <div class="ml-3">
401
- <p class="text-sm font-medium text-gray-900">Leather Wallet</p>
402
- <p class="text-sm text-gray-500">SKU: LW-4592</p>
403
- </div>
404
- <div class="ml-auto">
405
- <span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-red-100 text-red-800">2 left</span>
406
- </div>
407
  </div>
408
 
409
- <div class="flex items-center">
410
- <div class="flex-shrink-0 h-10 w-10 rounded-md overflow-hidden">
411
- <img class="h-full w-full object-cover" src="https://tailwindui.com/img/ecommerce-images/product-page-01-related-product-02.jpg" alt="">
412
- </div>
413
- <div class="ml-3">
414
- <p class="text-sm font-medium text-gray-900">Cotton T-Shirt</p>
415
- <p class="text-sm text-gray-500">SKU: CT-7821</p>
416
- </div>
417
- <div class="ml-auto">
418
- <span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-yellow-100 text-yellow-800">5 left</span>
419
  </div>
420
- </div>
421
-
422
- <div class="flex items-center">
423
- <div class="flex-shrink-0 h-10 w-10 rounded-md overflow-hidden">
424
- <img class="h-full w-full object-cover" src="https://tailwindui.com/img/ecommerce-images/product-page-01-related-product-03.jpg" alt="">
 
 
 
 
 
425
  </div>
426
- <div class="ml-3">
427
- <p class="text-sm font-medium text-gray-900">Ceramic Mug</p>
428
- <p class="text-sm text-gray-500">SKU: CM-3567</p>
 
 
 
 
 
 
 
429
  </div>
430
- <div class="ml-auto">
431
- <span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-yellow-100 text-yellow-800">3 left</span>
 
 
 
 
 
 
 
 
432
  </div>
433
  </div>
434
- </div>
435
- <div class="mt-4">
436
- <button class="w-full py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50">
437
- View Inventory
438
- </button>
439
- </div>
440
- </div>
441
- </div>
442
-
443
- <!-- Fourth row -->
444
- <div class="grid grid-cols-1 lg:grid-cols-3 gap-4">
445
- <div class="bg-white rounded-lg shadow-sm p-4 card-hover transition-all duration-200">
446
- <div class="flex items-center justify-between mb-4">
447
- <h3 class="text-lg font-medium text-gray-800">AI Performance</h3>
448
- <div class="flex items-center">
449
- <span class="h-2.5 w-2.5 rounded-full bg-green-400 mr-1.5"></span>
450
- <span class="text-xs text-gray-500">Operational</span>
451
  </div>
452
  </div>
453
- <div class="space-y-4">
454
- <div>
455
- <div class="flex items-center justify-between mb-1">
456
- <span class="text-sm font-medium text-gray-500">Response Time</span>
457
- <span class="text-sm font-bold text-gray-800">1.2s</span>
458
- </div>
459
- <div class="w-full bg-gray-200 rounded-full h-2">
460
- <div class="bg-green-500 h-2 rounded-full" style="width: 95%"></div>
461
- </div>
462
  </div>
463
 
464
- <div>
465
- <div class="flex items-center justify-between mb-1">
466
- <span class="text-sm font-medium text-gray-500">Confidence Score</span>
467
- <span class="text-sm font-bold text-gray-800">87%</span>
468
- </div>
469
- <div class="w-full bg-gray-200 rounded-full h-2">
470
- <div class="bg-blue-500 h-2 rounded-full" style="width: 87%"></div>
 
 
 
471
  </div>
472
- </div>
473
-
474
- <div>
475
- <div class="flex items-center justify-between mb-1">
476
- <span class="text-sm font-medium text-gray-500">Language Detection</span>
477
- <span class="text-sm font-bold text-gray-800">92%</span>
 
 
 
 
478
  </div>
479
- <div class="w-full bg-gray-200 rounded-full h-2">
480
- <div class="bg-purple-500 h-2 rounded-full" style="width: 92%"></div>
 
 
 
 
 
 
 
 
481
  </div>
482
  </div>
483
- </div>
484
- </div>
485
-
486
- <div class="bg-white rounded-lg shadow-sm p-4 card-hover transition-all duration-200">
487
- <div class="flex items-center justify-between mb-4">
488
- <h3 class="text-lg font-medium text-gray-800">Token Usage</h3>
489
- <span class="text-sm text-gray-500">Monthly</span>
490
- </div>
491
- <div class="flex items-center justify-center mb-4">
492
- <div class="relative w-32 h-32">
493
- <svg class="w-full h-full" viewBox="0 0 36 36">
494
- <path
495
- d="M18 2.0845
496
- a 15.9155 15.9155 0 0 1 0 31.831
497
- a 15.9155 15.9155 0 0 1 0 -31.831"
498
- fill="none"
499
- stroke="#E5E7EB"
500
- stroke-width="3"
501
- stroke-dasharray="100, 100"
502
- />
503
- <path
504
- d="M18 2.0845
505
- a 15.9155 15.9155 0 0 1 0 31.831
506
- a 15.9155 15.9155 0 0 1 0 -31.831"
507
- fill="none"
508
- stroke="#3B82F6"
509
- stroke-width="3"
510
- stroke-dasharray="65, 100"
511
- />
512
- </svg>
513
- <div class="absolute inset-0 flex items-center justify-center">
514
- <span class="text-2xl font-bold text-gray-800">65%</span>
515
- </div>
516
  </div>
517
  </div>
518
- <div class="text-center">
519
- <p class="text-sm text-gray-600">Used: <span class="font-medium text-gray-800">65,000</span> / 100,000</p>
520
- <p class="text-xs text-gray-500 mt-1">Resets on 1st of next month</p>
521
- </div>
522
- </div>
523
-
524
- <div class="bg-white rounded-lg shadow-sm p-4 card-hover transition-all duration-200">
525
- <div class="flex items-center justify-between mb-4">
526
- <h3 class="text-lg font-medium text-gray-800">Quick Tools</h3>
527
- <button class="text-sm text-blue-600 hover:text-blue-800">More Tools</button>
528
- </div>
529
- <div class="grid grid-cols-2 gap-3">
530
- <button class="flex flex-col items-center justify-center p-3 bg-gray-50 rounded-md hover:bg-gray-100">
531
- <i class="fas fa-bullhorn text-blue-600 text-xl mb-2"></i>
532
- <span class="text-xs font-medium text-gray-700">Broadcast</span>
533
- </button>
534
- <button class="flex flex-col items-center justify-center p-3 bg-gray-50 rounded-md hover:bg-gray-100">
535
- <i class="fas fa-boxes text-green-600 text-xl mb-2"></i>
536
- <span class="text-xs font-medium text-gray-700">Inventory</span>
537
- </button>
538
- <button class="flex flex-col items-center justify-center p-3 bg-gray-50 rounded-md hover:bg-gray-100">
539
- <i class="fas fa-shopping-cart text-purple-600 text-xl mb-2"></i>
540
- <span class="text-xs font-medium text-gray-700">New Order</span>
541
- </button>
542
- <button class="flex flex-col items-center justify-center p-3 bg-gray-50 rounded-md hover:bg-gray-100">
543
- <i class="fas fa-question-circle text-yellow-600 text-xl mb-2"></i>
544
- <span class="text-xs font-medium text-gray-700">Support</span>
545
- </button>
546
- </div>
547
  </div>
548
  </div>
549
  </main>
550
  </div>
551
  </div>
552
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
553
  <script>
554
  // Toggle sidebar
555
  document.getElementById('sidebar-toggle').addEventListener('click', function() {
556
- document.querySelector('.sidebar').classList.toggle('collapsed');
557
- const icon = this.querySelector('i');
558
- if (document.querySelector('.sidebar').classList.contains('collapsed')) {
559
- icon.classList.remove('fa-chevron-left');
560
- icon.classList.add('fa-chevron-right');
561
- } else {
562
- icon.classList.remove('fa-chevron-right');
563
- icon.classList.add('fa-chevron-left');
564
- }
565
- });
566
-
567
- // Language switcher
568
- document.getElementById('language-switcher').addEventListener('click', function() {
569
- // In a real app, this would toggle between languages
570
- alert('Language switcher would change the UI language here');
571
  });
572
-
573
- // Initialize charts
574
- document.addEventListener('DOMContentLoaded', function() {
575
- // Funnel chart
576
- const funnelCtx = document.getElementById('funnelChart').getContext('2d');
577
- const funnelChart = new Chart(funnelCtx, {
578
- type: 'bar',
579
- data: {
580
- labels: ['Visitors', 'Conversations', 'Orders', 'Revenue'],
581
- datasets: [{
582
- label: 'Conversion Steps',
583
- data: [10000, 4500, 1500, 845],
584
- backgroundColor: [
585
- 'rgba(59, 130, 246, 0.7)',
586
- 'rgba(16, 185, 129, 0.7)',
587
- 'rgba(245, 158, 11, 0.7)',
588
- 'rgba(139, 92, 246, 0.7)'
589
- ],
590
- borderColor: [
591
- 'rgba(59, 130, 246, 1)',
592
- 'rgba(16, 185, 129, 1)',
593
- 'rgba(245, 158, 11, 1)',
594
- 'rgba(139, 92, 246, 1)'
595
- ],
596
- borderWidth: 1
597
- }]
598
- },
599
- options: {
600
- responsive: true,
601
- maintainAspectRatio: false,
602
- scales: {
603
- y: {
604
- beginAtZero: true
605
- }
606
  },
607
- plugins: {
608
- legend: {
609
- display: false
610
- }
 
 
 
611
  }
612
- }
613
- });
614
-
615
- // Channel performance chart
616
- const channelCtx = document.getElementById('channelChart').getContext('2d');
617
- const channelChart = new Chart(channelCtx, {
618
- type: 'doughnut',
619
- data: {
620
- labels: ['WhatsApp', 'Facebook', 'Instagram', 'Other'],
621
- datasets: [{
622
- data: [65, 20, 12, 3],
623
- backgroundColor: [
624
- 'rgba(16, 185, 129, 0.7)',
625
- 'rgba(59, 130, 246, 0.7)',
626
- 'rgba(236, 72, 153, 0.7)',
627
- 'rgba(209, 213, 219, 0.7)'
628
- ],
629
- borderColor: [
630
- 'rgba(16, 185, 129, 1)',
631
- 'rgba(59, 130, 246, 1)',
632
- 'rgba(236, 72, 153, 1)',
633
- 'rgba(209, 213, 219, 1)'
634
- ],
635
- borderWidth: 1
636
- }]
637
- },
638
- options: {
639
- responsive: true,
640
- maintainAspectRatio: false,
641
- plugins: {
642
- legend: {
643
- position: 'right',
644
  }
645
  },
646
- cutout: '70%'
 
 
 
 
 
 
 
 
 
647
  }
648
- });
649
  });
650
  </script>
651
  <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=alkobr/secondproject2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
 
1
  <!DOCTYPE html>
2
+ <html lang="ar" dir="rtl">
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>لوحة تحكم Conversena</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
 
8
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap" rel="stylesheet">
10
  <style>
 
 
11
  body {
12
+ font-family: 'Tajawal', sans-serif;
 
 
 
 
 
13
  }
14
 
15
+ .sidebar-collapsed {
16
+ width: 80px !important;
 
17
  }
18
 
19
+ .sidebar-collapsed .nav-text {
20
+ display: none;
21
  }
22
 
23
+ .sidebar-collapsed .logo-text {
24
+ display: none;
25
  }
26
 
27
+ .sidebar-collapsed .user-name {
28
  display: none;
29
  }
30
 
31
+ .sidebar-collapsed .user-role {
32
  display: none;
33
  }
34
 
35
+ .sidebar-collapsed .nav-item {
36
  justify-content: center;
37
  }
38
 
39
+ .chart-container {
40
+ height: 300px;
 
 
41
  }
42
 
43
+ .kpi-card:hover {
44
+ transform: translateY(-5px);
45
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
46
+ }
47
+
48
+ .order-status-delivered {
49
+ background-color: #D1FAE5;
50
+ color: #065F46;
51
+ }
52
+
53
+ .order-status-transit {
54
+ background-color: #DBEAFE;
55
+ color: #1E40AF;
56
+ }
57
+
58
+ .order-status-stuck {
59
+ background-color: #FEE2E2;
60
+ color: #991B1B;
61
+ }
62
+
63
+ .alert-high {
64
+ border-right: 4px solid #EF4444;
65
+ }
66
+
67
+ .alert-medium {
68
+ border-right: 4px solid #F59E0B;
69
+ }
70
+
71
+ .alert-low {
72
+ border-right: 4px solid #10B981;
73
  }
74
 
75
+ .rtl-input {
76
+ direction: rtl;
77
+ text-align: right;
 
78
  }
79
 
80
  @keyframes pulse {
 
91
  }
92
  </style>
93
  </head>
94
+ <body class="bg-gray-50 text-gray-800">
95
  <div class="flex h-screen overflow-hidden">
96
  <!-- Sidebar -->
97
+ <div id="sidebar" class="w-72 bg-gradient-to-b from-gray-900 to-gray-800 text-white transition-all duration-300 ease-in-out flex flex-col h-full">
98
+ <div class="p-4 flex items-center justify-between border-b border-gray-700">
99
+ <div class="flex items-center">
100
+ <div class="w-10 h-10 rounded-md bg-blue-500 flex items-center justify-center">
101
+ <i class="fas fa-comment-dots text-white text-xl"></i>
102
  </div>
103
+ <span class="logo-text mr-3 font-bold text-xl">Conversena</span>
104
  </div>
105
+ <button id="sidebar-toggle" class="text-gray-400 hover:text-white">
106
+ <i class="fas fa-bars"></i>
107
  </button>
108
  </div>
109
 
110
+ <div class="flex-1 overflow-y-auto py-4">
111
+ <nav>
112
+ <div class="px-4 py-3 hover:bg-gray-700 cursor-pointer rounded-r-lg border-r-4 border-blue-500 bg-gray-700">
113
+ <div class="flex items-center nav-item">
114
+ <i class="fas fa-tachometer-alt text-gray-300"></i>
115
+ <span class="nav-text mr-3">لوحة التحكم</span>
116
+ </div>
117
+ </div>
118
+
119
+ <div class="px-4 py-3 hover:bg-gray-700 cursor-pointer rounded-r-lg">
120
+ <div class="flex items-center justify-between nav-item">
121
+ <div class="flex items-center">
122
+ <i class="fas fa-box text-gray-300"></i>
123
+ <span class="nav-text mr-3">المنتجات</span>
124
+ </div>
125
+ <i class="fas fa-chevron-left text-gray-400 text-xs"></i>
126
+ </div>
127
+ </div>
128
+
129
+ <div class="px-4 py-3 hover:bg-gray-700 cursor-pointer rounded-r-lg">
130
+ <div class="flex items-center justify-between nav-item">
131
+ <div class="flex items-center">
132
+ <i class="fas fa-shopping-cart text-gray-300"></i>
133
+ <span class="nav-text mr-3">الطلبات</span>
134
+ </div>
135
+ <span class="bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span>
136
+ </div>
137
+ </div>
138
+
139
+ <div class="px-4 py-3 hover:bg-gray-700 cursor-pointer rounded-r-lg">
140
+ <div class="flex items-center nav-item">
141
+ <i class="fas fa-users text-gray-300"></i>
142
+ <span class="nav-text mr-3">العملاء</span>
143
+ </div>
144
+ </div>
145
+
146
+ <div class="px-4 py-3 hover:bg-gray-700 cursor-pointer rounded-r-lg">
147
+ <div class="flex items-center justify-between nav-item">
148
+ <div class="flex items-center">
149
+ <i class="fas fa-comments text-gray-300"></i>
150
+ <span class="nav-text mr-3">المحادثات</span>
151
+ </div>
152
+ <span class="bg-yellow-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">!</span>
153
+ </div>
154
+ </div>
155
+
156
+ <div class="px-4 py-3 hover:bg-gray-700 cursor-pointer rounded-r-lg">
157
+ <div class="flex items-center nav-item">
158
+ <i class="fas fa-broadcast-tower text-gray-300"></i>
159
+ <span class="nav-text mr-3">القنوات</span>
160
+ </div>
161
+ </div>
162
+
163
+ <div class="px-4 py-3 hover:bg-gray-700 cursor-pointer rounded-r-lg">
164
+ <div class="flex items-center nav-item">
165
+ <i class="fas fa-bullhorn text-gray-300"></i>
166
+ <span class="nav-text mr-3">البث</span>
167
+ </div>
168
+ </div>
169
+
170
+ <div class="px-4 py-3 hover:bg-gray-700 cursor-pointer rounded-r-lg">
171
+ <div class="flex items-center nav-item">
172
+ <i class="fas fa-users-cog text-gray-300"></i>
173
+ <span class="nav-text mr-3">الفريق</span>
174
+ </div>
175
+ </div>
176
+
177
+ <div class="px-4 py-3 hover:bg-gray-700 cursor-pointer rounded-r-lg">
178
+ <div class="flex items-center nav-item">
179
+ <i class="fas fa-cog text-gray-300"></i>
180
+ <span class="nav-text mr-3">الإعدادات</span>
181
+ </div>
182
  </div>
183
  </nav>
184
  </div>
185
 
186
+ <div class="p-4 border-t border-gray-700">
187
  <div class="flex items-center">
188
+ <div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center">
189
+ <span class="text-white font-bold">أ</span>
 
190
  </div>
191
+ <div class="mr-3">
192
+ <div class="user-name font-medium">أحمد محمد</div>
193
+ <div class="user-role text-gray-400 text-sm">مدير النظام</div>
194
  </div>
195
  </div>
196
  </div>
197
  </div>
198
 
199
+ <!-- Main Content -->
200
  <div class="flex-1 overflow-auto">
201
  <!-- Header -->
202
+ <header class="bg-white shadow-sm">
203
+ <div class="px-6 py-4 flex items-center justify-between">
204
+ <div>
205
+ <h1 class="text-xl font-bold">مرحباً بك، أحمد</h1>
206
+ <p class="text-gray-500 text-sm">اليوم: ١٤ رجب ١٤٤٤ - ٦ فبراير ٢٠٢٣</p>
 
 
 
 
 
207
  </div>
208
 
209
+ <div class="flex items-center space-x-4 space-x-reverse">
210
+ <div class="relative">
211
+ <select class="appearance-none bg-gray-100 border border-gray-300 rounded-md py-2 px-4 pr-8 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
212
+ <option>العربية</option>
213
+ <option>English</option>
214
+ <option>עברית</option>
215
+ </select>
216
+ <div class="pointer-events-none absolute left-3 top-1/2 transform -translate-y-1/2">
217
+ <i class="fas fa-chevron-down text-gray-400"></i>
218
+ </div>
219
+ </div>
220
 
221
  <div class="relative">
222
+ <button class="text-gray-500 hover:text-gray-700">
223
+ <i class="fas fa-bell text-xl"></i>
224
+ <span class="absolute -top-1 -right-1 h-4 w-4 rounded-full bg-red-500 text-white text-xs flex items-center justify-center">2</span>
 
225
  </button>
226
  </div>
227
 
228
+ <div class="flex items-center space-x-2 space-x-reverse">
229
+ <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center">
230
+ <span class="text-white font-bold">أ</span>
231
+ </div>
232
+ <span class="font-medium">أحمد محمد</span>
233
+ </div>
234
  </div>
235
  </div>
236
  </header>
237
 
238
+ <!-- Main Content Area -->
239
+ <main class="p-6">
240
+ <!-- KPI Cards -->
241
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
242
+ <!-- Today's Conversations -->
243
+ <div class="kpi-card bg-white rounded-lg shadow p-6 transition-all duration-300">
244
+ <div class="flex justify-between items-start">
245
  <div>
246
+ <p class="text-gray-500">محادثات اليوم</p>
247
+ <h3 class="text-3xl font-bold mt-2">١٢٧</h3>
248
+ <p class="text-green-500 text-sm mt-1">زيادة ٢٣% عن الأمس</p>
 
 
 
 
 
249
  </div>
250
+ <div class="bg-blue-100 p-3 rounded-full">
251
+ <i class="fas fa-comments text-blue-500 text-xl"></i>
252
  </div>
253
  </div>
254
  </div>
255
 
256
+ <!-- Completed Orders -->
257
+ <div class="kpi-card bg-white rounded-lg shadow p-6 transition-all duration-300">
258
+ <div class="flex justify-between items-start">
259
  <div>
260
+ <p class="text-gray-500">الطلبات المكتملة</p>
261
+ <h3 class="text-3xl font-bold mt-2">٤٥</h3>
262
+ <p class="text-gray-500 text-sm mt-1">إجمالي المبيعات: ١٢,٤٥٠ ريال</p>
 
 
 
 
 
263
  </div>
264
+ <div class="bg-green-100 p-3 rounded-full">
265
+ <i class="fas fa-shopping-cart text-green-500 text-xl"></i>
266
  </div>
267
  </div>
 
 
 
268
  </div>
269
 
270
+ <!-- Conversion Rate -->
271
+ <div class="kpi-card bg-white rounded-lg shadow p-6 transition-all duration-300">
272
+ <div class="flex justify-between items-start">
273
  <div>
274
+ <p class="text-gray-500">معدل التحويل</p>
275
+ <h3 class="text-3xl font-bold mt-2">٣٥.٤%</h3>
276
+ <p class="text-green-500 text-sm mt-1">تحسن ٥.٢% هذا الأسبوع</p>
 
 
 
 
 
277
  </div>
278
+ <div class="bg-orange-100 p-3 rounded-full">
279
+ <i class="fas fa-chart-line text-orange-500 text-xl"></i>
280
  </div>
281
  </div>
 
 
 
282
  </div>
283
 
284
+ <!-- Low Stock Products -->
285
+ <div class="kpi-card bg-white rounded-lg shadow p-6 transition-all duration-300">
286
+ <div class="flex justify-between items-start">
287
  <div>
288
+ <p class="text-gray-500">منتجات منخفضة المخزون</p>
289
+ <h3 class="text-3xl font-bold mt-2">٨</h3>
290
+ <p class="text-red-500 text-sm mt-1">تحتاج إعادة تموين</p>
 
 
 
 
 
291
  </div>
292
+ <div class="bg-red-100 p-3 rounded-full">
293
+ <i class="fas fa-exclamation-triangle text-red-500 text-xl"></i>
294
  </div>
295
  </div>
 
 
 
296
  </div>
297
  </div>
298
 
299
+ <!-- Main Grid -->
300
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
301
+ <!-- Left Column -->
302
+ <div class="lg:col-span-2 space-y-6">
303
+ <!-- Analytics Chart -->
304
+ <div class="bg-white rounded-lg shadow p-6">
305
+ <div class="flex justify-between items-center mb-6">
306
+ <h2 class="text-lg font-bold">أداء المحادثات الأسبوعي</h2>
307
+ <div class="flex space-x-2 space-x-reverse">
308
+ <button class="px-3 py-1 bg-blue-500 text-white rounded-md text-sm">أسبوع</button>
309
+ <button class="px-3 py-1 bg-gray-100 text-gray-700 rounded-md text-sm">شهر</button>
310
+ <button class="px-3 py-1 bg-gray-100 text-gray-700 rounded-md text-sm">سنة</button>
311
+ </div>
312
+ </div>
313
+
314
+ <div class="chart-container">
315
+ <canvas id="analyticsChart" height="300"></canvas>
316
  </div>
317
  </div>
318
+
319
+ <!-- Top Products -->
320
+ <div class="bg-white rounded-lg shadow">
321
+ <div class="p-6 border-b border-gray-200">
322
+ <h2 class="text-lg font-bold">المنتجات الأكثر طلباً</h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
  </div>
324
 
325
+ <div class="overflow-x-auto">
326
+ <table class="min-w-full divide-y divide-gray-200">
327
+ <thead class="bg-gray-50">
328
+ <tr>
329
+ <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">اسم المنتج</th>
330
+ <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الاستفسارات</th>
331
+ <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">المبيعات</th>
332
+ <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">المخزون</th>
333
+ </tr>
334
+ </thead>
335
+ <tbody class="bg-white divide-y divide-gray-200">
336
+ <tr>
337
+ <td class="px-6 py-4 whitespace-nowrap">
338
+ <div class="flex items-center">
339
+ <div class="flex-shrink-0 h-10 w-10">
340
+ <img class="h-10 w-10 rounded" src="https://via.placeholder.com/40" alt="">
341
+ </div>
342
+ <div class="mr-4">
343
+ <div class="text-sm font-medium text-gray-900">هاتف ذكي X10</div>
344
+ <div class="text-sm text-gray-500">إلكترونيات</div>
345
+ </div>
346
+ </div>
347
+ </td>
348
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٨٧</td>
349
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٤٥</td>
350
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">١٢</td>
351
+ </tr>
352
+ <tr>
353
+ <td class="px-6 py-4 whitespace-nowrap">
354
+ <div class="flex items-center">
355
+ <div class="flex-shrink-0 h-10 w-10">
356
+ <img class="h-10 w-10 rounded" src="https://via.placeholder.com/40" alt="">
357
+ </div>
358
+ <div class="mr-4">
359
+ <div class="text-sm font-medium text-gray-900">سماعات لاسلكية</div>
360
+ <div class="text-sm text-gray-500">إلكترونيات</div>
361
+ </div>
362
+ </div>
363
+ </td>
364
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٦٥</td>
365
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٣٢</td>
366
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٨</td>
367
+ </tr>
368
+ <tr>
369
+ <td class="px-6 py-4 whitespace-nowrap">
370
+ <div class="flex items-center">
371
+ <div class="flex-shrink-0 h-10 w-10">
372
+ <img class="h-10 w-10 rounded" src="https://via.placeholder.com/40" alt="">
373
+ </div>
374
+ <div class="mr-4">
375
+ <div class="text-sm font-medium text-gray-900">ساعة ذكية</div>
376
+ <div class="text-sm text-gray-500">إلكترونيات</div>
377
+ </div>
378
+ </div>
379
+ </td>
380
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٥٤</td>
381
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٢٨</td>
382
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٥</td>
383
+ </tr>
384
+ <tr>
385
+ <td class="px-6 py-4 whitespace-nowrap">
386
+ <div class="flex items-center">
387
+ <div class="flex-shrink-0 h-10 w-10">
388
+ <img class="h-10 w-10 rounded" src="https://via.placeholder.com/40" alt="">
389
+ </div>
390
+ <div class="mr-4">
391
+ <div class="text-sm font-medium text-gray-900">حقيبة ظهر</div>
392
+ <div class="text-sm text-gray-500">أزياء</div>
393
+ </div>
394
+ </div>
395
+ </td>
396
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٤٣</td>
397
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٢١</td>
398
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٣</td>
399
+ </tr>
400
+ <tr>
401
+ <td class="px-6 py-4 whitespace-nowrap">
402
+ <div class="flex items-center">
403
+ <div class="flex-shrink-0 h-10 w-10">
404
+ <img class="h-10 w-10 rounded" src="https://via.placeholder.com/40" alt="">
405
+ </div>
406
+ <div class="mr-4">
407
+ <div class="text-sm font-medium text-gray-900">نظارة شمسية</div>
408
+ <div class="text-sm text-gray-500">أزياء</div>
409
+ </div>
410
+ </div>
411
+ </td>
412
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٣٨</td>
413
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">١٩</td>
414
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">٧</td>
415
+ </tr>
416
+ </tbody>
417
+ </table>
418
  </div>
419
 
420
+ <div class="p-4 border-t border-gray-200 text-center">
421
+ <button class="text-blue-500 hover:text-blue-700 text-sm font-medium">عرض الكل</button>
 
 
 
 
 
 
 
 
 
 
 
 
422
  </div>
423
  </div>
 
 
 
 
 
424
  </div>
425
 
426
+ <!-- Right Column -->
427
+ <div class="space-y-6">
428
+ <!-- Recent Orders -->
429
+ <div class="bg-white rounded-lg shadow">
430
+ <div class="p-6 border-b border-gray-200">
431
+ <h2 class="text-lg font-bold">آخر الطلبات</h2>
 
 
 
 
 
 
 
 
 
 
 
432
  </div>
433
 
434
+ <div class="divide-y divide-gray-200">
435
+ <div class="p-4">
436
+ <div class="flex justify-between items-start">
437
+ <div>
438
+ <p class="font-medium">علي حسن</p>
439
+ <p class="text-sm text-gray-500 mt-1">هاتف ذكي X10 × 1</p>
440
+ <p class="text-sm text-gray-500">٥٥٠ ريال</p>
441
+ </div>
442
+ <span class="order-status-delivered px-2 py-1 rounded-full text-xs font-medium">تم التسليم</span>
443
+ </div>
444
  </div>
445
+
446
+ <div class="p-4">
447
+ <div class="flex justify-between items-start">
448
+ <div>
449
+ <p class="font-medium">سارة أحمد</p>
450
+ <p class="text-sm text-gray-500 mt-1">سماعات لاسلكية × 2</p>
451
+ <p class="text-sm text-gray-500">٣٠٠ ريال</p>
452
+ </div>
453
+ <span class="order-status-transit px-2 py-1 rounded-full text-xs font-medium">قيد التوصيل</span>
454
+ </div>
455
  </div>
456
+
457
+ <div class="p-4">
458
+ <div class="flex justify-between items-start">
459
+ <div>
460
+ <p class="font-medium">محمد خالد</p>
461
+ <p class="text-sm text-gray-500 mt-1">ساعة ذكية × 1</p>
462
+ <p class="text-sm text-gray-500">٤٢٠ ريال</p>
463
+ </div>
464
+ <span class="order-status-stuck px-2 py-1 rounded-full text-xs font-medium">عالق</span>
465
+ </div>
466
  </div>
467
+
468
+ <div class="p-4">
469
+ <div class="flex justify-between items-start">
470
+ <div>
471
+ <p class="font-medium">ليلى عبدالله</p>
472
+ <p class="text-sm text-gray-500 mt-1">حقيبة ظهر × 1</p>
473
+ <p class="text-sm text-gray-500">١٥٠ ريال</p>
474
+ </div>
475
+ <span class="order-status-delivered px-2 py-1 rounded-full text-xs font-medium">تم التسليم</span>
476
+ </div>
477
  </div>
478
  </div>
479
+
480
+ <div class="p-4 border-t border-gray-200 text-center">
481
+ <button class="text-blue-500 hover:text-blue-700 text-sm font-medium">عرض الكل</button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
482
  </div>
483
  </div>
484
+
485
+ <!-- Escalation Alerts -->
486
+ <div class="bg-white rounded-lg shadow">
487
+ <div class="p-6 border-b border-gray-200">
488
+ <h2 class="text-lg font-bold">المحادثات المتصاعدة</h2>
 
 
 
 
489
  </div>
490
 
491
+ <div class="divide-y divide-gray-200">
492
+ <div class="p-4 alert-high">
493
+ <div class="flex justify-between items-start">
494
+ <div>
495
+ <p class="font-medium">خالد سعيد</p>
496
+ <p class="text-sm text-gray-500 mt-1">مشكلة في المنتج المستلم</p>
497
+ <p class="text-xs text-gray-400 mt-1">منذ ٢ ساعة</p>
498
+ </div>
499
+ <span class="text-red-500 text-xs font-medium">عالي</span>
500
+ </div>
501
  </div>
502
+
503
+ <div class="p-4 alert-medium">
504
+ <div class="flex justify-between items-start">
505
+ <div>
506
+ <p class="font-medium">نورا محمد</p>
507
+ <p class="text-sm text-gray-500 mt-1">استفسار عن حالة الطلب</p>
508
+ <p class="text-xs text-gray-400 mt-1">منذ ٤ ساعات</p>
509
+ </div>
510
+ <span class="text-yellow-500 text-xs font-medium">متوسط</span>
511
+ </div>
512
  </div>
513
+
514
+ <div class="p-4 alert-low">
515
+ <div class="flex justify-between items-start">
516
+ <div>
517
+ <p class="font-medium">أحمد علي</p>
518
+ <p class="text-sm text-gray-500 mt-1">طلب تغيير عنوان التوصيل</p>
519
+ <p class="text-xs text-gray-400 mt-1">منذ ٦ ساعات</p>
520
+ </div>
521
+ <span class="text-green-500 text-xs font-medium">منخفض</span>
522
+ </div>
523
  </div>
524
  </div>
525
+
526
+ <div class="p-4 border-t border-gray-200">
527
+ <button class="w-full bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded-md text-sm font-medium">معالجة التصعيد</button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
528
  </div>
529
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
530
  </div>
531
  </div>
532
  </main>
533
  </div>
534
  </div>
535
+
536
+ <!-- Quick Actions -->
537
+ <div class="fixed bottom-6 left-6 space-y-3">
538
+ <button class="w-12 h-12 rounded-full bg-blue-500 text-white shadow-lg flex items-center justify-center hover:bg-blue-600 transition-colors duration-300 group">
539
+ <i class="fas fa-plus"></i>
540
+ <span class="absolute right-full mr-2 px-2 py-1 bg-gray-800 text-white text-xs rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-300">إضافة منتج</span>
541
+ </button>
542
+
543
+ <button class="w-12 h-12 rounded-full bg-green-500 text-white shadow-lg flex items-center justify-center hover:bg-green-600 transition-colors duration-300 group">
544
+ <i class="fas fa-bullhorn"></i>
545
+ <span class="absolute right-full mr-2 px-2 py-1 bg-gray-800 text-white text-xs rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-300">بث جديد</span>
546
+ </button>
547
+
548
+ <button class="w-12 h-12 rounded-full bg-orange-500 text-white shadow-lg flex items-center justify-center hover:bg-orange-600 transition-colors duration-300 group">
549
+ <i class="fas fa-shopping-cart"></i>
550
+ <span class="absolute right-full mr-2 px-2 py-1 bg-gray-800 text-white text-xs rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-300">طلب يدوي</span>
551
+ </button>
552
+ </div>
553
+
554
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
555
  <script>
556
  // Toggle sidebar
557
  document.getElementById('sidebar-toggle').addEventListener('click', function() {
558
+ document.getElementById('sidebar').classList.toggle('sidebar-collapsed');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
559
  });
560
+
561
+ // Initialize chart
562
+ const ctx = document.getElementById('analyticsChart').getContext('2d');
563
+ const analyticsChart = new Chart(ctx, {
564
+ type: 'line',
565
+ data: {
566
+ labels: ['الأحد', 'الإثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
567
+ datasets: [
568
+ {
569
+ label: 'المحادثات',
570
+ data: [85, 110, 98, 120, 115, 140, 127],
571
+ borderColor: '#3B82F6',
572
+ backgroundColor: 'rgba(59, 130, 246, 0.1)',
573
+ tension: 0.3,
574
+ fill: true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
575
  },
576
+ {
577
+ label: 'التحويلات',
578
+ data: [25, 32, 28, 35, 38, 42, 45],
579
+ borderColor: '#10B981',
580
+ backgroundColor: 'rgba(16, 185, 129, 0.1)',
581
+ tension: 0.3,
582
+ fill: true
583
  }
584
+ ]
585
+ },
586
+ options: {
587
+ responsive: true,
588
+ maintainAspectRatio: false,
589
+ plugins: {
590
+ legend: {
591
+ position: 'top',
592
+ rtl: true,
593
+ labels: {
594
+ usePointStyle: true,
595
+ padding: 20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
596
  }
597
  },
598
+ tooltip: {
599
+ rtl: true,
600
+ titleAlign: 'right',
601
+ bodyAlign: 'right'
602
+ }
603
+ },
604
+ scales: {
605
+ y: {
606
+ beginAtZero: true
607
+ }
608
  }
609
+ }
610
  });
611
  </script>
612
  <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=alkobr/secondproject2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>