Meech888 commited on
Commit
8a2ae57
·
verified ·
1 Parent(s): 776085c

Create an Admin Dashboard Page for a cake delivery system.

Browse files

Requirements:
Display key metrics at the top:
Total Deliveries
Active Deliveries
Completed Deliveries
Registered Clients
Active Riders
Revenue Summary
Include management sections:
Clients Management: View, edit, or deactivate client accounts.
Riders Management: Add, verify, or suspend riders; view delivery ratings.
Deliveries Overview: List all ongoing and completed deliveries with status, pickup, destination, client name, rider name, delivery time, and payment status.
Payments & Transactions: View and filter all payments (completed, pending, refunded).
Customer Support: Access ongoing chat or support tickets.
Add functional buttons: View Details, Approve, Suspend, Delete, Download Report.
Integrate real-time map tracking for active deliveries.
Include search and filter options for deliveries, riders, and clients.
Add a notifications panel for system alerts (e.g., new delivery requests, disputes, failed payments).
Include a Settings tab for admin account management and security (password change, 2FA, etc.).
UI: Clean, responsive, and data-driven dashboard with charts and summary cards.

Files changed (3) hide show
  1. admin-dashboard.html +586 -0
  2. client-dashboard.html +2 -2
  3. vendor.html +1 -0
admin-dashboard.html ADDED
@@ -0,0 +1,586 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Admin Dashboard - Pastry Delivery</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
12
+ <script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
13
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
14
+ <style>
15
+ .dashboard-card {
16
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
17
+ }
18
+ .dashboard-card:hover {
19
+ transform: translateY(-5px);
20
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
21
+ }
22
+ .map-container {
23
+ height: 400px;
24
+ border-radius: 0.5rem;
25
+ overflow: hidden;
26
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
27
+ }
28
+ .status-indicator {
29
+ display: inline-block;
30
+ width: 10px;
31
+ height: 10px;
32
+ border-radius: 50%;
33
+ margin-right: 8px;
34
+ }
35
+ .status-active {
36
+ background-color: #10B981;
37
+ }
38
+ .status-pending {
39
+ background-color: #F59E0B;
40
+ }
41
+ .status-inactive {
42
+ background-color: #EF4444;
43
+ }
44
+ </style>
45
+ </head>
46
+ <body class="bg-slate-50 text-slate-800">
47
+ <!-- Navigation -->
48
+ <nav class="bg-blue-600 text-white shadow-lg">
49
+ <div class="container mx-auto px-4 py-3 flex justify-between items-center">
50
+ <div class="flex items-center space-x-2">
51
+ <img src="https://huggingface.co/spaces/Meech888/sweetroute/resolve/main/images/ChatGPT%20Image%20Oct%2013%2C%202025%20at%2001_09_01%20PM.png" alt="Pastry Delivery Logo" class="h-10 w-auto">
52
+ <h1 class="text-2xl font-bold">Pastry Delivery</h1>
53
+ </div>
54
+ <div class="flex space-x-4">
55
+ <a href="index.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">Home</a>
56
+ <a href="client-dashboard.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">Client Dashboard</a>
57
+ <a href="vendor.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">Vendor Dashboard</a>
58
+ <a href="admin-dashboard.html" class="px-4 py-2 rounded-lg bg-blue-700 text-white font-medium hover:bg-blue-800 transition">Admin Dashboard</a>
59
+ </div>
60
+ </div>
61
+ </nav>
62
+
63
+ <!-- Main Content -->
64
+ <main class="container mx-auto px-4 py-8">
65
+ <div class="text-center mb-10">
66
+ <h2 class="text-3xl font-bold text-blue-600 mb-2">Admin Dashboard</h2>
67
+ <p class="text-slate-600 max-w-2xl mx-auto">Manage your cake delivery system with comprehensive analytics and controls</p>
68
+ </div>
69
+
70
+ <!-- Stats Overview -->
71
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
72
+ <div class="bg-white rounded-xl shadow p-5 dashboard-card">
73
+ <div class="flex justify-between items-start">
74
+ <div>
75
+ <p class="text-slate-500 text-sm">Total Deliveries</p>
76
+ <p class="text-3xl font-bold text-blue-600">1,248</p>
77
+ </div>
78
+ <div class="bg-blue-100 p-3 rounded-lg">
79
+ <i data-feather="truck" class="text-blue-600"></i>
80
+ </div>
81
+ </div>
82
+ <div class="mt-4">
83
+ <p class="text-sm text-slate-600"><span class="text-green-500">+12%</span> from last month</p>
84
+ </div>
85
+ </div>
86
+
87
+ <div class="bg-white rounded-xl shadow p-5 dashboard-card">
88
+ <div class="flex justify-between items-start">
89
+ <div>
90
+ <p class="text-slate-500 text-sm">Active Deliveries</p>
91
+ <p class="text-3xl font-bold text-amber-600">24</p>
92
+ </div>
93
+ <div class="bg-amber-100 p-3 rounded-lg">
94
+ <i data-feather="package" class="text-amber-600"></i>
95
+ </div>
96
+ </div>
97
+ <div class="mt-4">
98
+ <p class="text-sm text-slate-600"><span class="text-green-500">+3</span> from yesterday</p>
99
+ </div>
100
+ </div>
101
+
102
+ <div class="bg-white rounded-xl shadow p-5 dashboard-card">
103
+ <div class="flex justify-between items-start">
104
+ <div>
105
+ <p class="text-slate-500 text-sm">Completed Today</p>
106
+ <p class="text-3xl font-bold text-green-600">86</p>
107
+ </div>
108
+ <div class="bg-green-100 p-3 rounded-lg">
109
+ <i data-feather="check-circle" class="text-green-600"></i>
110
+ </div>
111
+ </div>
112
+ <div class="mt-4">
113
+ <p class="text-sm text-slate-600"><span class="text-green-500">+8%</span> from average</p>
114
+ </div>
115
+ </div>
116
+
117
+ <div class="bg-white rounded-xl shadow p-5 dashboard-card">
118
+ <div class="flex justify-between items-start">
119
+ <div>
120
+ <p class="text-slate-500 text-sm">Revenue</p>
121
+ <p class="text-3xl font-bold text-purple-600">$12,480</p>
122
+ </div>
123
+ <div class="bg-purple-100 p-3 rounded-lg">
124
+ <i data-feather="dollar-sign" class="text-purple-600"></i>
125
+ </div>
126
+ </div>
127
+ <div class="mt-4">
128
+ <p class="text-sm text-slate-600"><span class="text-green-500">+$1,240</span> today</p>
129
+ </div>
130
+ </div>
131
+ </div>
132
+
133
+ <!-- Charts Section -->
134
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
135
+ <div class="bg-white rounded-xl shadow-md p-6">
136
+ <h3 class="text-xl font-bold mb-4 text-blue-600">Delivery Analytics</h3>
137
+ <canvas id="deliveryChart" height="300"></canvas>
138
+ </div>
139
+
140
+ <div class="bg-white rounded-xl shadow-md p-6">
141
+ <h3 class="text-xl font-bold mb-4 text-blue-600">Revenue Overview</h3>
142
+ <canvas id="revenueChart" height="300"></canvas>
143
+ </div>
144
+ </div>
145
+
146
+ <!-- Management Sections -->
147
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-8 mb-8">
148
+ <!-- Clients Management -->
149
+ <div class="bg-white rounded-xl shadow-md p-6">
150
+ <div class="flex justify-between items-center mb-4">
151
+ <h3 class="text-xl font-bold text-blue-600">Clients</h3>
152
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded-lg text-sm">View All</button>
153
+ </div>
154
+ <div class="space-y-4">
155
+ <div class="border border-slate-200 rounded-lg p-3">
156
+ <div class="flex justify-between">
157
+ <div>
158
+ <h4 class="font-medium">Sarah Johnson</h4>
159
+ <p class="text-sm text-slate-600">sarah@example.com</p>
160
+ </div>
161
+ <div class="flex space-x-2">
162
+ <button class="text-blue-600 hover:text-blue-900">
163
+ <i data-feather="edit" class="w-4 h-4"></i>
164
+ </button>
165
+ <button class="text-red-600 hover:text-red-900">
166
+ <i data-feather="trash" class="w-4 h-4"></i>
167
+ </button>
168
+ </div>
169
+ </div>
170
+ <div class="mt-2 flex items-center">
171
+ <span class="status-indicator status-active"></span>
172
+ <span class="text-sm">Active</span>
173
+ </div>
174
+ </div>
175
+
176
+ <div class="border border-slate-200 rounded-lg p-3">
177
+ <div class="flex justify-between">
178
+ <div>
179
+ <h4 class="font-medium">Robert Chen</h4>
180
+ <p class="text-sm text-slate-600">robert@example.com</p>
181
+ </div>
182
+ <div class="flex space-x-2">
183
+ <button class="text-blue-600 hover:text-blue-900">
184
+ <i data-feather="edit" class="w-4 h-4"></i>
185
+ </button>
186
+ <button class="text-red-600 hover:text-red-900">
187
+ <i data-feather="trash" class="w-4 h-4"></i>
188
+ </button>
189
+ </div>
190
+ </div>
191
+ <div class="mt-2 flex items-center">
192
+ <span class="status-indicator status-active"></span>
193
+ <span class="text-sm">Active</span>
194
+ </div>
195
+ </div>
196
+ </div>
197
+ </div>
198
+
199
+ <!-- Riders Management -->
200
+ <div class="bg-white rounded-xl shadow-md p-6">
201
+ <div class="flex justify-between items-center mb-4">
202
+ <h3 class="text-xl font-bold text-blue-600">Riders</h3>
203
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded-lg text-sm">View All</button>
204
+ </div>
205
+ <div class="space-y-4">
206
+ <div class="border border-slate-200 rounded-lg p-3">
207
+ <div class="flex justify-between">
208
+ <div>
209
+ <h4 class="font-medium">Michael Rodriguez</h4>
210
+ <p class="text-sm text-slate-600">Rating: 4.8 ★</p>
211
+ </div>
212
+ <div class="flex space-x-2">
213
+ <button class="text-green-600 hover:text-green-900">
214
+ <i data-feather="check-circle" class="w-4 h-4"></i>
215
+ </button>
216
+ <button class="text-red-600 hover:text-red-900">
217
+ <i data-feather="slash" class="w-4 h-4"></i>
218
+ </button>
219
+ </div>
220
+ </div>
221
+ <div class="mt-2 flex items-center">
222
+ <span class="status-indicator status-active"></span>
223
+ <span class="text-sm">Online</span>
224
+ </div>
225
+ </div>
226
+
227
+ <div class="border border-slate-200 rounded-lg p-3">
228
+ <div class="flex justify-between">
229
+ <div>
230
+ <h4 class="font-medium">Jennifer Lopez</h4>
231
+ <p class="text-sm text-slate-600">Rating: 4.9 ★</p>
232
+ </div>
233
+ <div class="flex space-x-2">
234
+ <button class="text-green-600 hover:text-green-900">
235
+ <i data-feather="check-circle" class="w-4 h-4"></i>
236
+ </button>
237
+ <button class="text-red-600 hover:text-red-900">
238
+ <i data-feather="slash" class="w-4 h-4"></i>
239
+ </button>
240
+ </div>
241
+ </div>
242
+ <div class="mt-2 flex items-center">
243
+ <span class="status-indicator status-pending"></span>
244
+ <span class="text-sm">Busy</span>
245
+ </div>
246
+ </div>
247
+ </div>
248
+ </div>
249
+
250
+ <!-- Recent Deliveries -->
251
+ <div class="bg-white rounded-xl shadow-md p-6">
252
+ <div class="flex justify-between items-center mb-4">
253
+ <h3 class="text-xl font-bold text-blue-600">Recent Deliveries</h3>
254
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded-lg text-sm">View All</button>
255
+ </div>
256
+ <div class="space-y-4">
257
+ <div class="border border-slate-200 rounded-lg p-3">
258
+ <div class="flex justify-between">
259
+ <div>
260
+ <h4 class="font-medium">#DL-78945</h4>
261
+ <p class="text-sm text-slate-600">To: Sarah Johnson</p>
262
+ </div>
263
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Delivered</span>
264
+ </div>
265
+ <div class="mt-2 flex justify-between text-sm">
266
+ <span>Rider: Michael R.</span>
267
+ <span>$24.50</span>
268
+ </div>
269
+ </div>
270
+
271
+ <div class="border border-slate-200 rounded-lg p-3">
272
+ <div class="flex justify-between">
273
+ <div>
274
+ <h4 class="font-medium">#DL-78944</h4>
275
+ <p class="text-sm text-slate-600">To: Robert Chen</p>
276
+ </div>
277
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-amber-100 text-amber-800">In Transit</span>
278
+ </div>
279
+ <div class="mt-2 flex justify-between text-sm">
280
+ <span>Rider: Jennifer L.</span>
281
+ <span>$18.75</span>
282
+ </div>
283
+ </div>
284
+ </div>
285
+ </div>
286
+ </div>
287
+
288
+ <!-- Real-time Tracking Map -->
289
+ <div class="bg-white rounded-xl shadow-md p-6 mb-8">
290
+ <div class="flex justify-between items-center mb-4">
291
+ <h3 class="text-xl font-bold text-blue-600">Live Delivery Tracking</h3>
292
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg text-sm flex items-center">
293
+ <i data-feather="refresh-cw" class="w-4 h-4 mr-1"></i>
294
+ Refresh
295
+ </button>
296
+ </div>
297
+ <div class="map-container" id="adminMap"></div>
298
+ </div>
299
+
300
+ <!-- Payments & Transactions -->
301
+ <div class="bg-white rounded-xl shadow-md p-6 mb-8">
302
+ <div class="flex justify-between items-center mb-4">
303
+ <h3 class="text-xl font-bold text-blue-600">Payments & Transactions</h3>
304
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg text-sm flex items-center">
305
+ <i data-feather="download" class="w-4 h-4 mr-1"></i>
306
+ Export Report
307
+ </button>
308
+ </div>
309
+ <div class="overflow-x-auto">
310
+ <table class="min-w-full divide-y divide-slate-200">
311
+ <thead class="bg-slate-50">
312
+ <tr>
313
+ <th class="px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider">Transaction ID</th>
314
+ <th class="px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider">Client</th>
315
+ <th class="px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider">Amount</th>
316
+ <th class="px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider">Date</th>
317
+ <th class="px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider">Status</th>
318
+ <th class="px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider">Actions</th>
319
+ </tr>
320
+ </thead>
321
+ <tbody class="bg-white divide-y divide-slate-200">
322
+ <tr>
323
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-slate-900">#TX-78945</td>
324
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-slate-500">Sarah Johnson</td>
325
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-slate-500">$24.50</td>
326
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-slate-500">Oct 12, 2023</td>
327
+ <td class="px-6 py-4 whitespace-nowrap">
328
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
329
+ </td>
330
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
331
+ <button class="text-blue-600 hover:text-blue-900 mr-3">View</button>
332
+ </td>
333
+ </tr>
334
+ <tr>
335
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-slate-900">#TX-78944</td>
336
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-slate-500">Robert Chen</td>
337
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-slate-500">$18.75</td>
338
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-slate-500">Oct 12, 2023</td>
339
+ <td class="px-6 py-4 whitespace-nowrap">
340
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-amber-100 text-amber-800">Pending</span>
341
+ </td>
342
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
343
+ <button class="text-blue-600 hover:text-blue-900 mr-3">View</button>
344
+ </td>
345
+ </tr>
346
+ </tbody>
347
+ </table>
348
+ </div>
349
+ </div>
350
+
351
+ <!-- Customer Support Tickets -->
352
+ <div class="bg-white rounded-xl shadow-md p-6 mb-8">
353
+ <div class="flex justify-between items-center mb-4">
354
+ <h3 class="text-xl font-bold text-blue-600">Support Tickets</h3>
355
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg text-sm">View All Tickets</button>
356
+ </div>
357
+ <div class="space-y-4">
358
+ <div class="border border-slate-200 rounded-lg p-4">
359
+ <div class="flex justify-between">
360
+ <div>
361
+ <h4 class="font-medium">Delivery Delay Complaint</h4>
362
+ <p class="text-sm text-slate-600">Customer: Emma Wilson • Priority: High</p>
363
+ </div>
364
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-amber-100 text-amber-800">Open</span>
365
+ </div>
366
+ <p class="mt-2 text-sm">Customer reports that their delivery was 30 minutes late without prior notification.</p>
367
+ <div class="mt-3 flex justify-between">
368
+ <span class="text-xs text-slate-500">Opened: Oct 12, 2023 14:30</span>
369
+ <button class="text-blue-600 hover:text-blue-900 text-sm">Respond</button>
370
+ </div>
371
+ </div>
372
+
373
+ <div class="border border-slate-200 rounded-lg p-4">
374
+ <div class="flex justify-between">
375
+ <div>
376
+ <h4 class="font-medium">Payment Issue</h4>
377
+ <p class="text-sm text-slate-600">Customer: David Kim • Priority: Medium</p>
378
+ </div>
379
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Resolved</span>
380
+ </div>
381
+ <p class="mt-2 text-sm">Double charge reported. Issue resolved with refund processed.</p>
382
+ <div class="mt-3 flex justify-between">
383
+ <span class="text-xs text-slate-500">Closed: Oct 11, 2023 16:45</span>
384
+ <button class="text-blue-600 hover:text-blue-900 text-sm">View Details</button>
385
+ </div>
386
+ </div>
387
+ </div>
388
+ </div>
389
+
390
+ <!-- Notifications Panel -->
391
+ <div class="bg-white rounded-xl shadow-md p-6 mb-8">
392
+ <div class="flex justify-between items-center mb-4">
393
+ <h3 class="text-xl font-bold text-blue-600">System Notifications</h3>
394
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg text-sm">Mark All Read</button>
395
+ </div>
396
+ <div class="space-y-4">
397
+ <div class="p-3 bg-blue-50 rounded-lg border border-blue-100">
398
+ <div class="flex">
399
+ <i data-feather="package" class="text-blue-500 mr-2"></i>
400
+ <div>
401
+ <h4 class="font-medium">New Delivery Request</h4>
402
+ <p class="text-sm text-slate-600">New order #DL-78950 received from client Sarah Johnson</p>
403
+ <p class="text-xs text-slate-500 mt-1">2 mins ago</p>
404
+ </div>
405
+ </div>
406
+ </div>
407
+
408
+ <div class="p-3 bg-amber-50 rounded-lg border border-amber-100">
409
+ <div class="flex">
410
+ <i data-feather="alert-triangle" class="text-amber-500 mr-2"></i>
411
+ <div>
412
+ <h4 class="font-medium">Payment Failed</h4>
413
+ <p class="text-sm text-slate-600">Payment for order #DL-78948 failed. Client notified.</p>
414
+ <p class="text-xs text-slate-500 mt-1">15 mins ago</p>
415
+ </div>
416
+ </div>
417
+ </div>
418
+
419
+ <div class="p-3 bg-green-50 rounded-lg border border-green-100">
420
+ <div class="flex">
421
+ <i data-feather="check-circle" class="text-green-500 mr-2"></i>
422
+ <div>
423
+ <h4 class="font-medium">Rider Verified</h4>
424
+ <p class="text-sm text-slate-600">New rider application approved: James Wilson</p>
425
+ <p class="text-xs text-slate-500 mt-1">1 hour ago</p>
426
+ </div>
427
+ </div>
428
+ </div>
429
+ </div>
430
+ </div>
431
+
432
+ <!-- Settings Section -->
433
+ <div class="bg-white rounded-xl shadow-md p-6">
434
+ <h3 class="text-xl font-bold mb-4 text-blue-600">Admin Settings</h3>
435
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
436
+ <div class="border border-slate-200 rounded-lg p-4">
437
+ <h4 class="font-medium mb-2">Account Security</h4>
438
+ <p class="text-sm text-slate-600 mb-3">Manage password and authentication settings</p>
439
+ <button class="w-full bg-slate-100 hover:bg-slate-200 text-slate-800 py-2 rounded-lg text-sm">Change Password</button>
440
+ </div>
441
+
442
+ <div class="border border-slate-200 rounded-lg p-4">
443
+ <h4 class="font-medium mb-2">Two-Factor Auth</h4>
444
+ <p class="text-sm text-slate-600 mb-3">Enable additional security layer</p>
445
+ <button class="w-full bg-slate-100 hover:bg-slate-200 text-slate-800 py-2 rounded-lg text-sm">Configure 2FA</button>
446
+ </div>
447
+
448
+ <div class="border border-slate-200 rounded-lg p-4">
449
+ <h4 class="font-medium mb-2">System Preferences</h4>
450
+ <p class="text-sm text-slate-600 mb-3">Adjust dashboard and notification settings</p>
451
+ <button class="w-full bg-slate-100 hover:bg-slate-200 text-slate-800 py-2 rounded-lg text-sm">Preferences</button>
452
+ </div>
453
+ </div>
454
+ </div>
455
+ </main>
456
+
457
+ <!-- Footer -->
458
+ <footer class="bg-slate-800 text-white py-10 mt-12">
459
+ <div class="container mx-auto px-4">
460
+ <div class="flex flex-col md:flex-row justify-between items-center">
461
+ <div class="mb-6 md:mb-0">
462
+ <div class="flex items-center space-x-2">
463
+ <i data-feather="cake" class="w-8 h-8"></i>
464
+ <h2 class="text-2xl font-bold">Pastry Delivery</h2>
465
+ </div>
466
+ <p class="mt-2 text-slate-400 max-w-md">Delivering fresh pastries with secure transport and real-time tracking.</p>
467
+ </div>
468
+ <div class="grid grid-cols-2 md:grid-cols-3 gap-8">
469
+ <div>
470
+ <h3 class="font-bold text-lg mb-3">Services</h3>
471
+ <ul class="space-y-2 text-slate-400">
472
+ <li><a href="#" class="hover:text-white">Cake Delivery</a></li>
473
+ <li><a href="#" class="hover:text-white">Custom Cakes</a></li>
474
+ <li><a href="#" class="hover:text-white">Corporate Orders</a></li>
475
+ </ul>
476
+ </div>
477
+ <div>
478
+ <h3 class="font-bold text-lg mb-3">Company</h3>
479
+ <ul class="space-y-2 text-slate-400">
480
+ <li><a href="#" class="hover:text-white">About Us</a></li>
481
+ <li><a href="#" class="hover:text-white">Careers</a></li>
482
+ <li><a href="#" class="hover:text-white">Contact</a></li>
483
+ </ul>
484
+ </div>
485
+ </div>
486
+ </div>
487
+ <div class="border-t border-slate-700 mt-8 pt-6 text-center text-slate-400">
488
+ <p>&copy; 2023 Pastry Delivery. All rights reserved. Made with ❤️ for pastry lovers.</p>
489
+ </div>
490
+ </div>
491
+ </footer>
492
+
493
+ <script>
494
+ // Initialize Feather Icons
495
+ feather.replace();
496
+
497
+ // Initialize Maps
498
+ document.addEventListener('DOMContentLoaded', function() {
499
+ // Map for admin dashboard
500
+ const adminMap = L.map('adminMap').setView([40.7128, -74.0060], 13);
501
+ L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
502
+ attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
503
+ }).addTo(adminMap);
504
+
505
+ // Add multiple markers for active deliveries
506
+ L.marker([40.7128, -74.0060]).addTo(adminMap).bindPopup('Bakery HQ');
507
+ L.marker([40.7215, -74.0123]).addTo(adminMap).bindPopup('Rider: Michael R. (En Route)');
508
+ L.marker([40.7355, -74.0251]).addTo(adminMap).bindPopup('Rider: Jennifer L. (At Pickup)');
509
+ L.marker([40.7055, -73.9987]).addTo(adminMap).bindPopup('Rider: David K. (Delivered)');
510
+
511
+ // Add route lines
512
+ const route1 = [
513
+ [40.7128, -74.0060],
514
+ [40.7185, -74.0103],
515
+ [40.7215, -74.0123]
516
+ ];
517
+
518
+ const route2 = [
519
+ [40.7355, -74.0251],
520
+ [40.7305, -74.0201],
521
+ [40.7255, -74.0151]
522
+ ];
523
+
524
+ L.polyline(route1, {color: '#3b82f6'}).addTo(adminMap);
525
+ L.polyline(route2, {color: '#10b981'}).addTo(adminMap);
526
+ });
527
+
528
+ // Initialize Charts
529
+ document.addEventListener('DOMContentLoaded', function() {
530
+ const deliveryCtx = document.getElementById('deliveryChart').getContext('2d');
531
+ const deliveryChart = new Chart(deliveryCtx, {
532
+ type: 'bar',
533
+ data: {
534
+ labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
535
+ datasets: [{
536
+ label: 'Deliveries',
537
+ data: [42, 38, 55, 62, 58, 75, 68],
538
+ backgroundColor: 'rgba(59, 130, 246, 0.5)',
539
+ borderColor: 'rgb(59, 130, 246)',
540
+ borderWidth: 1
541
+ }]
542
+ },
543
+ options: {
544
+ responsive: true,
545
+ plugins: {
546
+ legend: {
547
+ position: 'top',
548
+ },
549
+ title: {
550
+ display: true,
551
+ text: 'Weekly Deliveries'
552
+ }
553
+ }
554
+ }
555
+ });
556
+
557
+ const revenueCtx = document.getElementById('revenueChart').getContext('2d');
558
+ const revenueChart = new Chart(revenueCtx, {
559
+ type: 'line',
560
+ data: {
561
+ labels: ['Week 1', 'Week 2', 'Week 3', 'Week 4'],
562
+ datasets: [{
563
+ label: 'Revenue ($)',
564
+ data: [3200, 4100, 3800, 5200],
565
+ fill: false,
566
+ borderColor: 'rgb(139, 92, 246)',
567
+ tension: 0.1
568
+ }]
569
+ },
570
+ options: {
571
+ responsive: true,
572
+ plugins: {
573
+ legend: {
574
+ position: 'top',
575
+ },
576
+ title: {
577
+ display: true,
578
+ text: 'Monthly Revenue Trend'
579
+ }
580
+ }
581
+ }
582
+ });
583
+ });
584
+ </script>
585
+ </body>
586
+ </html>
client-dashboard.html CHANGED
@@ -53,11 +53,11 @@
53
  <a href="index.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">About</a>
54
  <a href="login.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">Login</a>
55
  <a href="signup.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">Sign Up</a>
 
56
  </div>
57
  </div>
58
  </nav>
59
-
60
- <!-- Main Content -->
61
  <main class="container mx-auto px-4 py-8">
62
  <div class="text-center mb-10">
63
  <h2 class="text-3xl font-bold text-blue-600 mb-2">Schedule Your Cake Delivery</h2>
 
53
  <a href="index.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">About</a>
54
  <a href="login.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">Login</a>
55
  <a href="signup.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">Sign Up</a>
56
+ <a href="admin-dashboard.html" class="px-4 py-2 rounded-lg bg-blue-700 text-white font-medium hover:bg-blue-800 transition">Admin Dashboard</a>
57
  </div>
58
  </div>
59
  </nav>
60
+ <!-- Main Content -->
 
61
  <main class="container mx-auto px-4 py-8">
62
  <div class="text-center mb-10">
63
  <h2 class="text-3xl font-bold text-blue-600 mb-2">Schedule Your Cake Delivery</h2>
vendor.html CHANGED
@@ -54,6 +54,7 @@
54
  <a href="login.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">Login</a>
55
  <a href="signup.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">Sign Up</a>
56
  <a href="client-dashboard.html" class="px-4 py-2 rounded-lg bg-blue-700 text-white font-medium hover:bg-blue-800 transition">Client Dashboard</a>
 
57
  </div>
58
  </div>
59
  </nav>
 
54
  <a href="login.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">Login</a>
55
  <a href="signup.html" class="px-4 py-2 rounded-lg bg-white text-blue-600 font-medium hover:bg-blue-50 transition">Sign Up</a>
56
  <a href="client-dashboard.html" class="px-4 py-2 rounded-lg bg-blue-700 text-white font-medium hover:bg-blue-800 transition">Client Dashboard</a>
57
+ <a href="admin-dashboard.html" class="px-4 py-2 rounded-lg bg-blue-700 text-white font-medium hover:bg-blue-800 transition">Admin Dashboard</a>
58
  </div>
59
  </div>
60
  </nav>