File size: 22,872 Bytes
d90431b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d6dea06
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>StockRider Express | Warehouse POS System</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: {
                            50: '#f0f9ff',
                            100: '#e0f2fe',
                            200: '#bae6fd',
                            300: '#7dd3fc',
                            400: '#38bdf8',
                            500: '#0ea5e9',
                            600: '#0284c7',
                            700: '#0369a1',
                            800: '#075985',
                            900: '#0c4a6e',
                        },
                        secondary: {
                            50: '#fff7ed',
                            100: '#ffedd5',
                            200: '#fed7aa',
                            300: '#fdba74',
                            400: '#fb923c',
                            500: '#f97316',
                            600: '#ea580c',
                            700: '#c2410c',
                            800: '#9a3412',
                            900: '#7c2d12',
                        }
                    }
                }
            }
        }
    </script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        body {
            font-family: 'Inter', sans-serif;
        }
        .sidebar {
            transition: all 0.3s ease;
        }
        .dashboard-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        #vanta-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.1;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Auth Background Effect -->
    <div id="vanta-bg"></div>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
    <script>
        VANTA.GLOBE({
            el: "#vanta-bg",
            mouseControls: true,
            touchControls: true,
            gyroControls: false,
            minHeight: 200.00,
            minWidth: 200.00,
            scale: 1.00,
            scaleMobile: 1.00,
            color: "#0ea5e9",
            backgroundColor: "#ffffff",
            size: 0.80
        })
    </script>

    <!-- Main Layout -->
    <div class="min-h-screen flex">
        <!-- Sidebar -->
        <div class="sidebar w-64 bg-white shadow-md hidden md:block">
            <div class="p-4 border-b border-gray-200 flex items-center">
                <div class="bg-primary-500 rounded-lg p-2">
                    <i data-feather="package" class="text-white"></i>
                </div>
                <h1 class="text-xl font-bold ml-3 text-primary-800">StockRider Express</h1>
            </div>
        <div class="p-4">
            <div class="mb-8">
                <h3 class="text-xs uppercase font-semibold text-gray-500 mb-3">Main</h3>
                <ul>
                    <li class="mb-2">
                        <a href="dashboard.html" class="flex items-center p-2 text-primary-600 bg-primary-50 rounded-lg">
                            <i data-feather="home" class="w-5 h-5"></i>
                            <span class="ml-3">Dashboard</span>
                        </a>
                    </li>
                    <li class="mb-2">
                        <a href="products.html" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
                            <i data-feather="shopping-bag" class="w-5 h-5"></i>
                            <span class="ml-3">Products</span>
                        </a>
                    </li>
                    <li class="mb-2">
                        <a href="warehouse.html" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
                            <i data-feather="archive" class="w-5 h-5"></i>
                            <span class="ml-3">Warehouse</span>
                        </a>
                    </li>
                    <li class="mb-2">
                        <a href="distribution.html" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
                            <i data-feather="truck" class="w-5 h-5"></i>
                            <span class="ml-3">Distribution</span>
                        </a>
                    </li>
                    <li class="mb-2">
                        <a href="pos.html" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
                            <i data-feather="shopping-cart" class="w-5 h-5"></i>
                            <span class="ml-3">POS</span>
                        </a>
                    </li>
                    <li class="mb-2">
                        <a href="reports.html" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
                            <i data-feather="file-text" class="w-5 h-5"></i>
                            <span class="ml-3">Reports</span>
                        </a>
                    </li>
                </ul>
            </div>
            <div class="mb-8">
                <h3 class="text-xs uppercase font-semibold text-gray-500 mb-3">Management</h3>
                <ul>
                    <li class="mb-2">
                        <a href="users.html" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
                            <i data-feather="users" class="w-5 h-5"></i>
                            <span class="ml-3">Users</span>
                        </a>
                    </li>
                    <li class="mb-2">
                        <a href="categories.html" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
                            <i data-feather="tag" class="w-5 h-5"></i>
                            <span class="ml-3">Categories</span>
                        </a>
                    </li>
                    <li class="mb-2">
                        <a href="settings.html" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
                            <i data-feather="settings" class="w-5 h-5"></i>
                            <span class="ml-3">Settings</span>
                        </a>
                    </li>
                </ul>
            </div>
</div>
        </div>

        <!-- Main Content -->
        <div class="flex-1">
            <!-- Top Navigation -->
            <header class="bg-white shadow-sm">
                <div class="flex items-center justify-between p-4">
                    <div class="flex items-center">
                        <button class="md:hidden mr-2">
                            <i data-feather="menu" class="w-6 h-6 text-gray-600"></i>
                        </button>
                        <h2 class="text-lg font-semibold text-gray-800">Dashboard</h2>
                    </div>
                    <div class="flex items-center space-x-4">
                        <div class="relative">
                            <i data-feather="bell" class="w-5 h-5 text-gray-600"></i>
                            <span class="absolute -top-1 -right-1 bg-secondary-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span>
                        </div>
                        <div class="relative">
                            <img src="http://static.photos/people/200x200/1" alt="Profile" class="w-8 h-8 rounded-full">
                        </div>
                    </div>
                </div>
            </header>

            <!-- Content -->
            <main class="p-6">
                <!-- Stats Cards -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                    <div class="dashboard-card bg-white p-6 rounded-xl shadow-sm border border-gray-100 transition-all">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-sm text-gray-500">Total Revenue</p>
                                <h3 class="text-2xl font-bold text-gray-800 mt-1">$12,345</h3>
                                <p class="text-sm text-green-500 mt-1 flex items-center">
                                    <i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
                                    <span>12% from last month</span>
                                </p>
                            </div>
                            <div class="bg-primary-100 p-3 rounded-lg">
                                <i data-feather="dollar-sign" class="text-primary-600 w-6 h-6"></i>
                            </div>
                        </div>
                    </div>
                    <div class="dashboard-card bg-white p-6 rounded-xl shadow-sm border border-gray-100 transition-all">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-sm text-gray-500">Total Transactions</p>
                                <h3 class="text-2xl font-bold text-gray-800 mt-1">1,234</h3>
                                <p class="text-sm text-green-500 mt-1 flex items-center">
                                    <i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
                                    <span>7% from last month</span>
                                </p>
                            </div>
                            <div class="bg-secondary-100 p-3 rounded-lg">
                                <i data-feather="shopping-cart" class="text-secondary-600 w-6 h-6"></i>
                            </div>
                        </div>
                    </div>
                    <div class="dashboard-card bg-white p-6 rounded-xl shadow-sm border border-gray-100 transition-all">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-sm text-gray-500">Warehouse Stock</p>
                                <h3 class="text-2xl font-bold text-gray-800 mt-1">3,456</h3>
                                <p class="text-sm text-red-500 mt-1 flex items-center">
                                    <i data-feather="alert-circle" class="w-4 h-4 mr-1"></i>
                                    <span>5 low stock items</span>
                                </p>
                            </div>
                            <div class="bg-yellow-100 p-3 rounded-lg">
                                <i data-feather="box" class="text-yellow-600 w-6 h-6"></i>
                            </div>
                        </div>
                    </div>
                    <div class="dashboard-card bg-white p-6 rounded-xl shadow-sm border border-gray-100 transition-all">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-sm text-gray-500">Active Riders</p>
                                <h3 class="text-2xl font-bold text-gray-800 mt-1">24</h3>
                                <p class="text-sm text-gray-500 mt-1">5 distributing now</p>
                            </div>
                            <div class="bg-green-100 p-3 rounded-lg">
                                <i data-feather="users" class="text-green-600 w-6 h-6"></i>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Charts Section -->
                <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
                    <div class="lg:col-span-2 bg-white p-6 rounded-xl shadow-sm border border-gray-100">
                        <div class="flex justify-between items-center mb-6">
                            <h3 class="font-semibold text-gray-800">Sales Overview</h3>
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 text-xs bg-primary-100 text-primary-600 rounded-full">Week</button>
                                <button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">Month</button>
                                <button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">Year</button>
                            </div>
                        </div>
                        <div class="h-64 bg-gray-50 rounded-lg flex items-center justify-center">
                            <p class="text-gray-400">Sales chart will be displayed here</p>
                        </div>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
                        <h3 class="font-semibold text-gray-800 mb-6">Recent Activities</h3>
                        <div class="space-y-4">
                            <div class="flex items-start">
                                <div class="bg-green-100 p-2 rounded-lg mr-3">
                                    <i data-feather="truck" class="text-green-600 w-4 h-4"></i>
                                </div>
                                <div>
                                    <p class="text-sm font-medium text-gray-800">New distribution to Rider #12</p>
                                    <p class="text-xs text-gray-500">5 minutes ago</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <div class="bg-blue-100 p-2 rounded-lg mr-3">
                                    <i data-feather="shopping-cart" class="text-blue-600 w-4 h-4"></i>
                                </div>
                                <div>
                                    <p class="text-sm font-medium text-gray-800">New sale from Rider #8</p>
                                    <p class="text-xs text-gray-500">22 minutes ago</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <div class="bg-yellow-100 p-2 rounded-lg mr-3">
                                    <i data-feather="rotate-ccw" class="text-yellow-600 w-4 h-4"></i>
                                </div>
                                <div>
                                    <p class="text-sm font-medium text-gray-800">Product returned to warehouse</p>
                                    <p class="text-xs text-gray-500">1 hour ago</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <div class="bg-purple-100 p-2 rounded-lg mr-3">
                                    <i data-feather="package" class="text-purple-600 w-4 h-4"></i>
                                </div>
                                <div>
                                    <p class="text-sm font-medium text-gray-800">New product added</p>
                                    <p class="text-xs text-gray-500">2 hours ago</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <div class="bg-red-100 p-2 rounded-lg mr-3">
                                    <i data-feather="alert-circle" class="text-red-600 w-4 h-4"></i>
                                </div>
                                <div>
                                    <p class="text-sm font-medium text-gray-800">Low stock alert: Product X</p>
                                    <p class="text-xs text-gray-500">5 hours ago</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Recent Transactions -->
                <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="font-semibold text-gray-800">Recent Transactions</h3>
                        <button class="flex items-center text-primary-600 text-sm">
                            <span>View All</span>
                            <i data-feather="chevron-right" class="w-4 h-4 ml-1"></i>
                        </button>
                    </div>
                    <div class="overflow-x-auto">
                        <table class="min-w-full divide-y divide-gray-200">
                            <thead class="bg-gray-50">
                                <tr>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Rider</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                    <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Action</th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#TRX-1001</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">John Doe</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-11-15 10:30</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$125.00</td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                        <a href="#" class="text-primary-600 hover:text-primary-900">View</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#TRX-1002</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jane Smith</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-11-15 09:15</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$89.50</td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                        <a href="#" class="text-primary-600 hover:text-primary-900">View</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#TRX-1003</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Mike Johnson</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-11-14 16:45</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$156.75</td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                        <a href="#" class="text-primary-600 hover:text-primary-900">View</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#TRX-1004</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sarah Williams</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-11-14 14:20</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$210.00</td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                        <a href="#" class="text-primary-600 hover:text-primary-900">View</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </main>
        </div>
    </div>

    <script>
        feather.replace();
    </script>
</body>
</html>