Spaces:
Running

File size: 24,444 Bytes
efc7caf
efd4f1c
 
 
 
 
efc7caf
efd4f1c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
efc7caf
efd4f1c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7334ea3
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
<!DOCTYPE html>
<html lang="vi" class="h-full">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>APA | Hệ thống báo cáo & CRM nội bộ</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: '#0F4C81',
                        secondary: '#FFA500',
                        accent: '#00A86B',
                        dark: '#1E293B',
                        light: '#F8FAFC'
                    }
                }
            }
        }
    </script>
    <style>
        .sidebar-item.active {
            background-color: rgba(15, 76, 129, 0.1);
            border-left: 4px solid #0F4C81;
            color: #0F4C81;
        }
        .sidebar-item:hover:not(.active) {
            background-color: rgba(15, 76, 129, 0.05);
        }
        .kpi-card {
            transition: all 0.3s ease;
        }
        .kpi-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        .lead-status-new { background-color: #EFF6FF; color: #1D4ED8; }
        .lead-status-followup { background-color: #F0FDF4; color: #047857; }
        .lead-status-deposit { background-color: #FEF2F2; color: #B91C1C; }
        .lead-status-completed { background-color: #ECFDF5; color: #059669; }
        .lead-status-cancelled { background-color: #F5F5F5; color: #6B7280; }
    </style>
</head>
<body class="bg-gray-50 dark:bg-gray-900 text-gray-800 dark:text-gray-200 h-full">
    <div class="flex h-full">
        <!-- Sidebar -->
        <div class="hidden md:flex flex-col w-64 bg-white dark:bg-gray-800 border-r border-gray-200 dark:border-gray-700">
            <div class="flex items-center justify-center h-16 px-4 border-b border-gray-200 dark:border-gray-700">
                <div class="flex items-center space-x-2">
                    <img src="http://static.photos/logo/200x200/1" alt="APA Logo" class="w-8 h-8">
                    <span class="text-xl font-bold text-primary dark:text-white">APA CRM</span>
                </div>
            </div>
            <div class="flex flex-col flex-grow p-4 overflow-y-auto">
                <div class="space-y-1">
                    <div class="px-3 py-2 text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider">Tổng quan</div>
                    <a href="#" class="sidebar-item active flex items-center px-3 py-2 text-sm font-medium rounded-md">
                        <i data-feather="home" class="w-5 h-5 mr-3"></i>
                        Dashboard
                    </a>
                    <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md">
                        <i data-feather="calendar" class="w-5 h-5 mr-3"></i>
                        Báo cáo ngày
                    </a>
                    <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md">
                        <i data-feather="users" class="w-5 h-5 mr-3"></i>
                        Quản lý Lead
                    </a>
                    <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md">
                        <i data-feather="trending-up" class="w-5 h-5 mr-3"></i>
                        KPI & Mục tiêu
                    </a>
                </div>
                <div class="mt-8 space-y-1">
                    <div class="px-3 py-2 text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider">Quản trị</div>
                    <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md">
                        <i data-feather="user" class="w-5 h-5 mr-3"></i>
                        Nhân sự
                    </a>
                    <a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md">
                        <i data-feather="settings" class="w-5 h-5 mr-3"></i>
                        Cài đặt hệ thống
                    </a>
                </div>
            </div>
            <div class="p-4 border-t border-gray-200 dark:border-gray-700">
                <div class="flex items-center">
                    <img class="w-8 h-8 rounded-full" src="http://static.photos/people/200x200/1" alt="User avatar">
                    <div class="ml-3">
                        <p class="text-sm font-medium">Nguyễn Văn A</p>
                        <p class="text-xs text-gray-500 dark:text-gray-400">Quản lý phòng</p>
                    </div>
                    <button class="ml-auto p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700">
                        <i data-feather="log-out" class="w-5 h-5"></i>
                    </button>
                </div>
            </div>
        </div>

        <!-- Main content -->
        <div class="flex-1 flex flex-col overflow-hidden">
            <!-- Top navigation -->
            <header class="bg-white dark:bg-gray-800 shadow-sm">
                <div class="flex items-center justify-between px-4 py-3">
                    <div class="flex items-center md:hidden">
                        <button class="p-2 rounded-md text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700">
                            <i data-feather="menu" class="w-5 h-5"></i>
                        </button>
                    </div>
                    <div class="flex-1 md:ml-6">
                        <h1 class="text-xl font-semibold">Dashboard</h1>
                    </div>
                    <div class="flex items-center space-x-4">
                        <button class="p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700">
                            <i data-feather="bell" class="w-5 h-5"></i>
                        </button>
                        <button class="p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700">
                            <i data-feather="mail" class="w-5 h-5"></i>
                        </button>
                        <button id="theme-toggle" class="p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700">
                            <i data-feather="moon" class="w-5 h-5 hidden dark:block"></i>
                            <i data-feather="sun" class="w-5 h-5 block dark:hidden"></i>
                        </button>
                    </div>
                </div>
            </header>

            <!-- Main content -->
            <main class="flex-1 overflow-y-auto p-4 bg-gray-50 dark:bg-gray-900">
                <!-- Stats cards -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
                    <div class="kpi-card bg-white dark:bg-gray-800 rounded-lg shadow p-6">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm font-medium text-gray-500 dark:text-gray-400">Doanh thu tháng</p>
                                <p class="mt-1 text-2xl font-semibold text-primary dark:text-primary-300">1.245.000.000đ</p>
                            </div>
                            <div class="p-3 rounded-full bg-primary bg-opacity-10">
                                <i data-feather="dollar-sign" class="w-6 h-6 text-primary"></i>
                            </div>
                        </div>
                        <div class="mt-4">
                            <span class="text-sm font-medium text-green-600 dark:text-green-400">+12.5%</span>
                            <span class="text-sm text-gray-500 dark:text-gray-400 ml-2">so với tháng trước</span>
                        </div>
                    </div>
                    <div class="kpi-card bg-white dark:bg-gray-800 rounded-lg shadow p-6">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm font-medium text-gray-500 dark:text-gray-400">Lead mới</p>
                                <p class="mt-1 text-2xl font-semibold text-accent dark:text-accent-300">24</p>
                            </div>
                            <div class="p-3 rounded-full bg-accent bg-opacity-10">
                                <i data-feather="user-plus" class="w-6 h-6 text-accent"></i>
                            </div>
                        </div>
                        <div class="mt-4">
                            <span class="text-sm font-medium text-green-600 dark:text-green-400">+3</span>
                            <span class="text-sm text-gray-500 dark:text-gray-400 ml-2">so với tuần trước</span>
                        </div>
                    </div>
                    <div class="kpi-card bg-white dark:bg-gray-800 rounded-lg shadow p-6">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm font-medium text-gray-500 dark:text-gray-400">Booking</p>
                                <p class="mt-1 text-2xl font-semibold text-secondary dark:text-secondary-300">8</p>
                            </div>
                            <div class="p-3 rounded-full bg-secondary bg-opacity-10">
                                <i data-feather="shopping-bag" class="w-6 h-6 text-secondary"></i>
                            </div>
                        </div>
                        <div class="mt-4">
                            <span class="text-sm font-medium text-red-600 dark:text-red-400">-2</span>
                            <span class="text-sm text-gray-500 dark:text-gray-400 ml-2">so với tuần trước</span>
                        </div>
                    </div>
                    <div class="kpi-card bg-white dark:bg-gray-800 rounded-lg shadow p-6">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm font-medium text-gray-500 dark:text-gray-400">Báo cáo chờ duyệt</p>
                                <p class="mt-1 text-2xl font-semibold text-gray-700 dark:text-gray-200">5</p>
                            </div>
                            <div class="p-3 rounded-full bg-gray-200 dark:bg-gray-700">
                                <i data-feather="file-text" class="w-6 h-6 text-gray-700 dark:text-gray-200"></i>
                            </div>
                        </div>
                        <div class="mt-4">
                            <span class="text-sm font-medium text-gray-600 dark:text-gray-400">Hạn: 17:00</span>
                        </div>
                    </div>
                </div>

                <!-- Charts and tables -->
                <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
                    <!-- Revenue chart -->
                    <div class="lg:col-span-2 bg-white dark:bg-gray-800 rounded-lg shadow p-6">
                        <div class="flex items-center justify-between mb-4">
                            <h2 class="text-lg font-semibold">Doanh thu theo tháng</h2>
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 text-xs bg-primary text-white rounded-md">Tháng</button>
                                <button class="px-3 py-1 text-xs bg-gray-100 dark:bg-gray-700 rounded-md">Quý</button>
                                <button class="px-3 py-1 text-xs bg-gray-100 dark:bg-gray-700 rounded-md">Năm</button>
                            </div>
                        </div>
                        <div class="h-64 bg-gray-50 dark:bg-gray-700 rounded-md flex items-center justify-center">
                            <p class="text-gray-500 dark:text-gray-400">Biểu đồ doanh thu sẽ hiển thị tại đây</p>
                        </div>
                    </div>

                    <!-- Top destinations -->
                    <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
                        <h2 class="text-lg font-semibold mb-4">Điểm đến phổ biến</h2>
                        <div class="space-y-4">
                            <div class="flex items-center">
                                <div class="w-8 h-8 rounded-full bg-blue-100 dark:bg-blue-900 flex items-center justify-center text-blue-600 dark:text-blue-300 font-bold">1</div>
                                <div class="ml-3 flex-1">
                                    <p class="text-sm font-medium">Nhật Bản</p>
                                    <div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-1.5 mt-1">
                                        <div class="bg-blue-600 h-1.5 rounded-full" style="width: 80%"></div>
                                    </div>
                                </div>
                                <span class="text-sm text-gray-500 dark:text-gray-400">12 tour</span>
                            </div>
                            <div class="flex items-center">
                                <div class="w-8 h-8 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center text-green-600 dark:text-green-300 font-bold">2</div>
                                <div class="ml-3 flex-1">
                                    <p class="text-sm font-medium">Hàn Quốc</p>
                                    <div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-1.5 mt-1">
                                        <div class="bg-green-600 h-1.5 rounded-full" style="width: 65%"></div>
                                    </div>
                                </div>
                                <span class="text-sm text-gray-500 dark:text-gray-400">8 tour</span>
                            </div>
                            <div class="flex items-center">
                                <div class="w-8 h-8 rounded-full bg-yellow-100 dark:bg-yellow-900 flex items-center justify-center text-yellow-600 dark:text-yellow-300 font-bold">3</div>
                                <div class="ml-3 flex-1">
                                    <p class="text-sm font-medium">Thái Lan</p>
                                    <div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-1.5 mt-1">
                                        <div class="bg-yellow-600 h-1.5 rounded-full" style="width: 45%"></div>
                                    </div>
                                </div>
                                <span class="text-sm text-gray-500 dark:text-gray-400">5 tour</span>
                            </div>
                            <div class="flex items-center">
                                <div class="w-8 h-8 rounded-full bg-purple-100 dark:bg-purple-900 flex items-center justify-center text-purple-600 dark:text-purple-300 font-bold">4</div>
                                <div class="ml-3 flex-1">
                                    <p class="text-sm font-medium">Châu Âu</p>
                                    <div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-1.5 mt-1">
                                        <div class="bg-purple-600 h-1.5 rounded-full" style="width: 30%"></div>
                                    </div>
                                </div>
                                <span class="text-sm text-gray-500 dark:text-gray-400">3 tour</span>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Recent leads and reports -->
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                    <!-- Recent leads -->
                    <div class="bg-white dark:bg-gray-800 rounded-lg shadow">
                        <div class="px-6 py-4 border-b border-gray-200 dark:border-gray-700">
                            <h2 class="text-lg font-semibold">Lead gần đây</h2>
                        </div>
                        <div class="divide-y divide-gray-200 dark:divide-gray-700">
                            <div class="px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="font-medium">Nguyễn Thị B</p>
                                        <p class="text-sm text-gray-500 dark:text-gray-400">Tour Nhật Bản 7N6Đ</p>
                                    </div>
                                    <span class="px-2 py-1 text-xs rounded-full lead-status-new">Mới</span>
                                </div>
                                <div class="mt-2 flex items-center text-sm text-gray-500 dark:text-gray-400">
                                    <i data-feather="calendar" class="w-4 h-4 mr-1"></i>
                                    <span>15/06/2023 - 22/06/2023</span>
                                </div>
                            </div>
                            <div class="px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="font-medium">Trần Văn C</p>
                                        <p class="text-sm text-gray-500 dark:text-gray-400">Hội nghị Hàn Quốc</p>
                                    </div>
                                    <span class="px-2 py-1 text-xs rounded-full lead-status-followup">Chăm sóc</span>
                                </div>
                                <div class="mt-2 flex items-center text-sm text-gray-500 dark:text-gray-400">
                                    <i data-feather="calendar" class="w-4 h-4 mr-1"></i>
                                    <span>10/07/2023 - 15/07/2023</span>
                                </div>
                            </div>
                            <div class="px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="font-medium">Lê Thị D</p>
                                        <p class="text-sm text-gray-500 dark:text-gray-400">Du lịch Thái Lan</p>
                                    </div>
                                    <span class="px-2 py-1 text-xs rounded-full lead-status-deposit">Đặt cọc</span>
                                </div>
                                <div class="mt-2 flex items-center text-sm text-gray-500 dark:text-gray-400">
                                    <i data-feather="calendar" class="w-4 h-4 mr-1"></i>
                                    <span>05/08/2023 - 12/08/2023</span>
                                </div>
                            </div>
                        </div>
                        <div class="px-6 py-3 border-t border-gray-200 dark:border-gray-700 text-center">
                            <a href="#" class="text-sm font-medium text-primary hover:text-primary-700 dark:hover:text-primary-300">Xem tất cả</a>
                        </div>
                    </div>

                    <!-- Pending reports -->
                    <div class="bg-white dark:bg-gray-800 rounded-lg shadow">
                        <div class="px-6 py-4 border-b border-gray-200 dark:border-gray-700">
                            <h2 class="text-lg font-semibold">Báo cáo chờ duyệt</h2>
                        </div>
                        <div class="divide-y divide-gray-200 dark:divide-gray-700">
                            <div class="px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="font-medium">Nguyễn Văn E</p>
                                        <p class="text-sm text-gray-500 dark:text-gray-400">Phòng Kinh doanh</p>
                                    </div>
                                    <span class="text-sm text-gray-500 dark:text-gray-400">14/06/2023</span>
                                </div>
                                <div class="mt-2 flex items-center text-sm text-gray-500 dark:text-gray-400">
                                    <i data-feather="clock" class="w-4 h-4 mr-1"></i>
                                    <span>Nộp lúc 16:58</span>
                                </div>
                            </div>
                            <div class="px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="font-medium">Trần Thị F</p>
                                        <p class="text-sm text-gray-500 dark:text-gray-400">Phòng Marketing</p>
                                    </div>
                                    <span class="text-sm text-gray-500 dark:text-gray-400">14/06/2023</span>
                                </div>
                                <div class="mt-2 flex items-center text-sm text-gray-500 dark:text-gray-400">
                                    <i data-feather="clock" class="w-4 h-4 mr-1"></i>
                                    <span>Nộp lúc 16:45</span>
                                </div>
                            </div>
                            <div class="px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer">
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="font-medium">Lê Văn G</p>
                                        <p class="text-sm text-gray-500 dark:text-gray-400">Phòng Hành chính</p>
                                    </div>
                                    <span class="text-sm text-gray-500 dark:text-gray-400">14/06/2023</span>
                                </div>
                                <div class="mt-2 flex items-center text-sm text-gray-500 dark:text-gray-400">
                                    <i data-feather="clock" class="w-4 h-4 mr-1"></i>
                                    <span>Nộp lúc 16:30</span>
                                </div>
                            </div>
                        </div>
                        <div class="px-6 py-3 border-t border-gray-200 dark:border-gray-700 text-center">
                            <a href="#" class="text-sm font-medium text-primary hover:text-primary-700 dark:hover:text-primary-300">Xem tất cả</a>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>

    <script>
        // Initialize AOS
        AOS.init();

        // Initialize feather icons
        feather.replace();

        // Theme toggle
        const themeToggle = document.getElementById('theme-toggle');
        const html = document.documentElement;

        themeToggle.addEventListener('click', () => {
            html.classList.toggle('dark');
            localStorage.setItem('theme', html.classList.contains('dark') ? 'dark' : 'light');
        });

        // Check for saved theme preference
        if (localStorage.getItem('theme') === 'dark' || (!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
            html.classList.add('dark');
        } else {
            html.classList.remove('dark');
        }
    </script>
</body>
</html>