nmtalhp commited on
Commit
0fa5932
·
verified ·
1 Parent(s): 247e195

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +489 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Amazon Seller Profit
3
- emoji: 🌖
4
- colorFrom: green
5
- colorTo: green
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: amazon-seller-profit
3
+ emoji: 🐳
4
+ colorFrom: pink
5
+ colorTo: yellow
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,489 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Amazon Seller Profit Calculator | Revenue Dashboard</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
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
10
+ <style>
11
+ .sidebar {
12
+ transition: all 0.3s ease;
13
+ }
14
+ .sidebar.collapsed {
15
+ width: 70px;
16
+ }
17
+ .sidebar.collapsed .nav-text {
18
+ display: none;
19
+ }
20
+ .sidebar.collapsed .logo-text {
21
+ display: none;
22
+ }
23
+ .sidebar.collapsed .expand-icon {
24
+ transform: rotate(180deg);
25
+ }
26
+ .main-content {
27
+ transition: margin-left 0.3s ease;
28
+ }
29
+ .dashboard-card:hover {
30
+ transform: translateY(-5px);
31
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
32
+ }
33
+ .dashboard-card {
34
+ transition: all 0.3s ease;
35
+ }
36
+ .tab-active {
37
+ border-bottom: 3px solid #3b82f6;
38
+ color: #3b82f6;
39
+ }
40
+ </style>
41
+ </head>
42
+ <body class="bg-gray-50">
43
+ <div class="flex h-screen overflow-hidden">
44
+ <!-- Sidebar -->
45
+ <div class="sidebar bg-white shadow-lg w-64 flex flex-col">
46
+ <div class="p-4 flex items-center justify-between border-b">
47
+ <div class="flex items-center">
48
+ <i class="fab fa-amazon text-3xl text-orange-500"></i>
49
+ <span class="logo-text ml-3 text-xl font-bold text-gray-800">SellerProfit</span>
50
+ </div>
51
+ <button id="toggleSidebar" class="expand-icon text-gray-500 hover:text-gray-700">
52
+ <i class="fas fa-chevron-left"></i>
53
+ </button>
54
+ </div>
55
+ <div class="flex-1 overflow-y-auto">
56
+ <nav class="p-4">
57
+ <div class="mb-6">
58
+ <p class="text-xs uppercase text-gray-500 font-semibold mb-2 nav-text">Main</p>
59
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg bg-blue-50 text-blue-600">
60
+ <i class="fas fa-chart-line mr-3"></i>
61
+ <span class="nav-text">Dashboard</span>
62
+ </a>
63
+ </div>
64
+ <div class="mb-6">
65
+ <p class="text-xs uppercase text-gray-500 font-semibold mb-2 nav-text">Sales</p>
66
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-700 hover:bg-gray-100 mb-2">
67
+ <i class="fas fa-calculator mr-3"></i>
68
+ <span class="nav-text">Profit Calculator</span>
69
+ </a>
70
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-700 hover:bg-gray-100 mb-2">
71
+ <i class="fas fa-chart-bar mr-3"></i>
72
+ <span class="nav-text">Sales Analytics</span>
73
+ </a>
74
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-700 hover:bg-gray-100">
75
+ <i class="fas fa-file-invoice-dollar mr-3"></i>
76
+ <span class="nav-text">Reports</span>
77
+ </a>
78
+ </div>
79
+ <div class="mb-6">
80
+ <p class="text-xs uppercase text-gray-500 font-semibold mb-2 nav-text">Inventory</p>
81
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-700 hover:bg-gray-100 mb-2">
82
+ <i class="fas fa-boxes mr-3"></i>
83
+ <span class="nav-text">Products</span>
84
+ </a>
85
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-700 hover:bg-gray-100">
86
+ <i class="fas fa-warehouse mr-3"></i>
87
+ <span class="nav-text">Inventory</span>
88
+ </a>
89
+ </div>
90
+ <div>
91
+ <p class="text-xs uppercase text-gray-500 font-semibold mb-2 nav-text">Settings</p>
92
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-700 hover:bg-gray-100 mb-2">
93
+ <i class="fas fa-cog mr-3"></i>
94
+ <span class="nav-text">Account</span>
95
+ </a>
96
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-700 hover:bg-gray-100">
97
+ <i class="fas fa-plug mr-3"></i>
98
+ <span class="nav-text">Integrations</span>
99
+ </a>
100
+ </div>
101
+ </nav>
102
+ </div>
103
+ <div class="p-4 border-t">
104
+ <div class="flex items-center">
105
+ <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-10 h-10 rounded-full">
106
+ <div class="ml-3 nav-text">
107
+ <p class="text-sm font-medium text-gray-800">John Smith</p>
108
+ <p class="text-xs text-gray-500">Pro Plan</p>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </div>
113
+
114
+ <!-- Main Content -->
115
+ <div class="main-content flex-1 overflow-y-auto">
116
+ <!-- Header -->
117
+ <header class="bg-white shadow-sm">
118
+ <div class="px-6 py-4 flex items-center justify-between">
119
+ <h1 class="text-2xl font-bold text-gray-800">Dashboard</h1>
120
+ <div class="flex items-center space-x-4">
121
+ <div class="relative">
122
+ <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
123
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
124
+ </div>
125
+ <button class="p-2 text-gray-500 hover:text-gray-700">
126
+ <i class="fas fa-bell"></i>
127
+ </button>
128
+ <button class="p-2 text-gray-500 hover:text-gray-700">
129
+ <i class="fas fa-question-circle"></i>
130
+ </button>
131
+ </div>
132
+ </div>
133
+ </header>
134
+
135
+ <!-- Dashboard Content -->
136
+ <main class="p-6">
137
+ <!-- Stats Cards -->
138
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
139
+ <div class="dashboard-card bg-white rounded-xl shadow p-6">
140
+ <div class="flex items-center justify-between">
141
+ <div>
142
+ <p class="text-sm font-medium text-gray-500">Total Revenue</p>
143
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">$24,780</h3>
144
+ <p class="text-sm text-green-500 mt-2">
145
+ <i class="fas fa-arrow-up mr-1"></i> 12.5% from last month
146
+ </p>
147
+ </div>
148
+ <div class="bg-blue-100 p-3 rounded-full">
149
+ <i class="fas fa-dollar-sign text-blue-600 text-xl"></i>
150
+ </div>
151
+ </div>
152
+ </div>
153
+ <div class="dashboard-card bg-white rounded-xl shadow p-6">
154
+ <div class="flex items-center justify-between">
155
+ <div>
156
+ <p class="text-sm font-medium text-gray-500">Net Profit</p>
157
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">$8,450</h3>
158
+ <p class="text-sm text-green-500 mt-2">
159
+ <i class="fas fa-arrow-up mr-1"></i> 8.3% from last month
160
+ </p>
161
+ </div>
162
+ <div class="bg-green-100 p-3 rounded-full">
163
+ <i class="fas fa-chart-line text-green-600 text-xl"></i>
164
+ </div>
165
+ </div>
166
+ </div>
167
+ <div class="dashboard-card bg-white rounded-xl shadow p-6">
168
+ <div class="flex items-center justify-between">
169
+ <div>
170
+ <p class="text-sm font-medium text-gray-500">Total Orders</p>
171
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">1,245</h3>
172
+ <p class="text-sm text-red-500 mt-2">
173
+ <i class="fas fa-arrow-down mr-1"></i> 3.2% from last month
174
+ </p>
175
+ </div>
176
+ <div class="bg-purple-100 p-3 rounded-full">
177
+ <i class="fas fa-shopping-cart text-purple-600 text-xl"></i>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ <div class="dashboard-card bg-white rounded-xl shadow p-6">
182
+ <div class="flex items-center justify-between">
183
+ <div>
184
+ <p class="text-sm font-medium text-gray-500">Avg. Profit Margin</p>
185
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">34.1%</h3>
186
+ <p class="text-sm text-green-500 mt-2">
187
+ <i class="fas fa-arrow-up mr-1"></i> 2.7% from last month
188
+ </p>
189
+ </div>
190
+ <div class="bg-yellow-100 p-3 rounded-full">
191
+ <i class="fas fa-percent text-yellow-600 text-xl"></i>
192
+ </div>
193
+ </div>
194
+ </div>
195
+ </div>
196
+
197
+ <!-- Charts Section -->
198
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
199
+ <!-- Sales Chart -->
200
+ <div class="lg:col-span-2 bg-white rounded-xl shadow p-6">
201
+ <div class="flex items-center justify-between mb-6">
202
+ <h2 class="text-lg font-semibold text-gray-800">Sales Performance</h2>
203
+ <div class="flex space-x-2">
204
+ <button class="px-3 py-1 text-sm rounded-lg bg-blue-50 text-blue-600">Monthly</button>
205
+ <button class="px-3 py-1 text-sm rounded-lg text-gray-600 hover:bg-gray-100">Weekly</button>
206
+ <button class="px-3 py-1 text-sm rounded-lg text-gray-600 hover:bg-gray-100">Daily</button>
207
+ </div>
208
+ </div>
209
+ <canvas id="salesChart" height="250"></canvas>
210
+ </div>
211
+
212
+ <!-- Top Products -->
213
+ <div class="bg-white rounded-xl shadow p-6">
214
+ <h2 class="text-lg font-semibold text-gray-800 mb-6">Top Products</h2>
215
+ <div class="space-y-4">
216
+ <div class="flex items-center">
217
+ <div class="w-10 h-10 bg-blue-100 rounded-lg flex items-center justify-center">
218
+ <i class="fas fa-box text-blue-600"></i>
219
+ </div>
220
+ <div class="ml-3 flex-1">
221
+ <p class="text-sm font-medium text-gray-800">Wireless Earbuds</p>
222
+ <div class="flex items-center justify-between">
223
+ <p class="text-xs text-gray-500">SKU: WB-2023</p>
224
+ <p class="text-sm font-semibold text-green-600">$1,245</p>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ <div class="flex items-center">
229
+ <div class="w-10 h-10 bg-green-100 rounded-lg flex items-center justify-center">
230
+ <i class="fas fa-box text-green-600"></i>
231
+ </div>
232
+ <div class="ml-3 flex-1">
233
+ <p class="text-sm font-medium text-gray-800">Smart Watch</p>
234
+ <div class="flex items-center justify-between">
235
+ <p class="text-xs text-gray-500">SKU: SW-2023</p>
236
+ <p class="text-sm font-semibold text-green-600">$980</p>
237
+ </div>
238
+ </div>
239
+ </div>
240
+ <div class="flex items-center">
241
+ <div class="w-10 h-10 bg-purple-100 rounded-lg flex items-center justify-center">
242
+ <i class="fas fa-box text-purple-600"></i>
243
+ </div>
244
+ <div class="ml-3 flex-1">
245
+ <p class="text-sm font-medium text-gray-800">Phone Case</p>
246
+ <div class="flex items-center justify-between">
247
+ <p class="text-xs text-gray-500">SKU: PC-2023</p>
248
+ <p class="text-sm font-semibold text-green-600">$745</p>
249
+ </div>
250
+ </div>
251
+ </div>
252
+ <div class="flex items-center">
253
+ <div class="w-10 h-10 bg-yellow-100 rounded-lg flex items-center justify-center">
254
+ <i class="fas fa-box text-yellow-600"></i>
255
+ </div>
256
+ <div class="ml-3 flex-1">
257
+ <p class="text-sm font-medium text-gray-800">Bluetooth Speaker</p>
258
+ <div class="flex items-center justify-between">
259
+ <p class="text-xs text-gray-500">SKU: BS-2023</p>
260
+ <p class="text-sm font-semibold text-green-600">$620</p>
261
+ </div>
262
+ </div>
263
+ </div>
264
+ <div class="flex items-center">
265
+ <div class="w-10 h-10 bg-red-100 rounded-lg flex items-center justify-center">
266
+ <i class="fas fa-box text-red-600"></i>
267
+ </div>
268
+ <div class="ml-3 flex-1">
269
+ <p class="text-sm font-medium text-gray-800">Power Bank</p>
270
+ <div class="flex items-center justify-between">
271
+ <p class="text-xs text-gray-500">SKU: PB-2023</p>
272
+ <p class="text-sm font-semibold text-green-600">$510</p>
273
+ </div>
274
+ </div>
275
+ </div>
276
+ </div>
277
+ </div>
278
+ </div>
279
+
280
+ <!-- Profit Calculator -->
281
+ <div class="bg-white rounded-xl shadow p-6 mb-6">
282
+ <h2 class="text-lg font-semibold text-gray-800 mb-6">Profit Calculator</h2>
283
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
284
+ <div>
285
+ <div class="mb-4">
286
+ <label class="block text-sm font-medium text-gray-700 mb-1">Product Price ($)</label>
287
+ <input type="number" id="productPrice" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="e.g. 29.99">
288
+ </div>
289
+ <div class="mb-4">
290
+ <label class="block text-sm font-medium text-gray-700 mb-1">Product Cost ($)</label>
291
+ <input type="number" id="productCost" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="e.g. 12.50">
292
+ </div>
293
+ <div class="mb-4">
294
+ <label class="block text-sm font-medium text-gray-700 mb-1">Shipping Cost ($)</label>
295
+ <input type="number" id="shippingCost" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="e.g. 3.99">
296
+ </div>
297
+ </div>
298
+ <div>
299
+ <div class="mb-4">
300
+ <label class="block text-sm font-medium text-gray-700 mb-1">Amazon Fees (%)</label>
301
+ <input type="number" id="amazonFees" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="e.g. 15" value="15">
302
+ </div>
303
+ <div class="mb-4">
304
+ <label class="block text-sm font-medium text-gray-700 mb-1">Quantity Sold</label>
305
+ <input type="number" id="quantitySold" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="e.g. 100">
306
+ </div>
307
+ <button id="calculateBtn" class="w-full bg-blue-600 text-white py-2 px-4 rounded-lg hover:bg-blue-700 transition duration-200">
308
+ Calculate Profit
309
+ </button>
310
+ </div>
311
+ </div>
312
+ <div id="results" class="mt-6 hidden">
313
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
314
+ <div class="bg-blue-50 p-4 rounded-lg">
315
+ <p class="text-sm font-medium text-blue-800">Gross Revenue</p>
316
+ <h3 id="grossRevenue" class="text-xl font-bold text-blue-900">$0.00</h3>
317
+ </div>
318
+ <div class="bg-green-50 p-4 rounded-lg">
319
+ <p class="text-sm font-medium text-green-800">Net Profit</p>
320
+ <h3 id="netProfit" class="text-xl font-bold text-green-900">$0.00</h3>
321
+ </div>
322
+ <div class="bg-purple-50 p-4 rounded-lg">
323
+ <p class="text-sm font-medium text-purple-800">Profit Margin</p>
324
+ <h3 id="profitMargin" class="text-xl font-bold text-purple-900">0%</h3>
325
+ </div>
326
+ </div>
327
+ </div>
328
+ </div>
329
+
330
+ <!-- Recent Orders -->
331
+ <div class="bg-white rounded-xl shadow overflow-hidden">
332
+ <div class="px-6 py-4 border-b flex items-center justify-between">
333
+ <h2 class="text-lg font-semibold text-gray-800">Recent Orders</h2>
334
+ <button class="text-sm text-blue-600 hover:text-blue-800">View All</button>
335
+ </div>
336
+ <div class="overflow-x-auto">
337
+ <table class="min-w-full divide-y divide-gray-200">
338
+ <thead class="bg-gray-50">
339
+ <tr>
340
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Order ID</th>
341
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Product</th>
342
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
343
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
344
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Revenue</th>
345
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Profit</th>
346
+ </tr>
347
+ </thead>
348
+ <tbody class="bg-white divide-y divide-gray-200">
349
+ <tr>
350
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#ORD-2023-001</td>
351
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Wireless Earbuds</td>
352
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 12, 2023</td>
353
+ <td class="px-6 py-4 whitespace-nowrap">
354
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Shipped</span>
355
+ </td>
356
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$49.99</td>
357
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-green-600 font-medium">$18.75</td>
358
+ </tr>
359
+ <tr>
360
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#ORD-2023-002</td>
361
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Smart Watch</td>
362
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 11, 2023</td>
363
+ <td class="px-6 py-4 whitespace-nowrap">
364
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Processing</span>
365
+ </td>
366
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$89.99</td>
367
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-green-600 font-medium">$32.15</td>
368
+ </tr>
369
+ <tr>
370
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#ORD-2023-003</td>
371
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Phone Case</td>
372
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 10, 2023</td>
373
+ <td class="px-6 py-4 whitespace-nowrap">
374
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Shipped</span>
375
+ </td>
376
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$19.99</td>
377
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-green-600 font-medium">$8.25</td>
378
+ </tr>
379
+ <tr>
380
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#ORD-2023-004</td>
381
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Bluetooth Speaker</td>
382
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 9, 2023</td>
383
+ <td class="px-6 py-4 whitespace-nowrap">
384
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
385
+ </td>
386
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$39.99</td>
387
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-green-600 font-medium">$14.50</td>
388
+ </tr>
389
+ <tr>
390
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#ORD-2023-005</td>
391
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Power Bank</td>
392
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 8, 2023</td>
393
+ <td class="px-6 py-4 whitespace-nowrap">
394
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Shipped</span>
395
+ </td>
396
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$29.99</td>
397
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-green-600 font-medium">$11.25</td>
398
+ </tr>
399
+ </tbody>
400
+ </table>
401
+ </div>
402
+ </div>
403
+ </main>
404
+ </div>
405
+ </div>
406
+
407
+ <script>
408
+ // Toggle sidebar
409
+ document.getElementById('toggleSidebar').addEventListener('click', function() {
410
+ document.querySelector('.sidebar').classList.toggle('collapsed');
411
+ document.querySelector('.main-content').classList.toggle('ml-20');
412
+ });
413
+
414
+ // Profit Calculator
415
+ document.getElementById('calculateBtn').addEventListener('click', function() {
416
+ const price = parseFloat(document.getElementById('productPrice').value) || 0;
417
+ const cost = parseFloat(document.getElementById('productCost').value) || 0;
418
+ const shipping = parseFloat(document.getElementById('shippingCost').value) || 0;
419
+ const fees = parseFloat(document.getElementById('amazonFees').value) || 0;
420
+ const quantity = parseInt(document.getElementById('quantitySold').value) || 0;
421
+
422
+ const amazonFeeAmount = price * (fees / 100);
423
+ const totalCostPerUnit = cost + shipping + amazonFeeAmount;
424
+ const profitPerUnit = price - totalCostPerUnit;
425
+
426
+ const grossRevenue = price * quantity;
427
+ const netProfit = profitPerUnit * quantity;
428
+ const profitMargin = (profitPerUnit / price) * 100;
429
+
430
+ document.getElementById('grossRevenue').textContent = '$' + grossRevenue.toFixed(2);
431
+ document.getElementById('netProfit').textContent = '$' + netProfit.toFixed(2);
432
+ document.getElementById('profitMargin').textContent = profitMargin.toFixed(1) + '%';
433
+
434
+ document.getElementById('results').classList.remove('hidden');
435
+ });
436
+
437
+ // Sales Chart
438
+ const salesCtx = document.getElementById('salesChart').getContext('2d');
439
+ const salesChart = new Chart(salesCtx, {
440
+ type: 'line',
441
+ data: {
442
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
443
+ datasets: [
444
+ {
445
+ label: 'Revenue',
446
+ data: [12000, 15000, 18000, 14000, 16000, 19000, 21000, 23000, 20000, 22000, 24000, 25000],
447
+ borderColor: '#3b82f6',
448
+ backgroundColor: 'rgba(59, 130, 246, 0.05)',
449
+ borderWidth: 2,
450
+ fill: true,
451
+ tension: 0.4
452
+ },
453
+ {
454
+ label: 'Profit',
455
+ data: [4000, 5000, 6000, 4500, 5500, 6500, 7000, 7500, 6800, 7200, 8000, 8500],
456
+ borderColor: '#10b981',
457
+ backgroundColor: 'rgba(16, 185, 129, 0.05)',
458
+ borderWidth: 2,
459
+ fill: true,
460
+ tension: 0.4
461
+ }
462
+ ]
463
+ },
464
+ options: {
465
+ responsive: true,
466
+ plugins: {
467
+ legend: {
468
+ position: 'top',
469
+ },
470
+ tooltip: {
471
+ mode: 'index',
472
+ intersect: false,
473
+ }
474
+ },
475
+ scales: {
476
+ y: {
477
+ beginAtZero: true,
478
+ ticks: {
479
+ callback: function(value) {
480
+ return '$' + value.toLocaleString();
481
+ }
482
+ }
483
+ }
484
+ }
485
+ }
486
+ });
487
+ </script>
488
+ <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=nmtalhp/amazon-seller-profit" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
489
+ </html>