Spaces:
Running
Running
File size: 17,373 Bytes
efd4f1c | 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 | <!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>Báo cáo ngày | APA CRM</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);
}
.file-upload {
border: 2px dashed #CBD5E0;
transition: all 0.3s ease;
}
.file-upload:hover {
border-color: #0F4C81;
}
.file-upload.dark:hover {
border-color: #3B82F6;
}
</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 (same as index.html) -->
<div class="hidden md:flex flex-col w-64 bg-white dark:bg-gray-800 border-r border-gray-200 dark:border-gray-700">
<!-- Sidebar content from index.html -->
</div>
<!-- Main content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Top navigation (same as index.html) -->
<header class="bg-white dark:bg-gray-800 shadow-sm">
<!-- Top nav content from index.html -->
</header>
<!-- Main content -->
<main class="flex-1 overflow-y-auto p-4 bg-gray-50 dark:bg-gray-900">
<div class="max-w-4xl mx-auto">
<div class="bg-white dark:bg-gray-800 rounded-lg shadow overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200 dark:border-gray-700">
<h2 class="text-xl font-semibold">Báo cáo công việc ngày</h2>
<p class="text-sm text-gray-500 dark:text-gray-400 mt-1">Ngày: <span class="font-medium">14/06/2023</span></p>
</div>
<form class="p-6 space-y-6">
<!-- Today's goals -->
<div>
<label for="today-goals" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
Mục tiêu hôm nay <span class="text-red-500">*</span>
</label>
<textarea id="today-goals" rows="2" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-primary focus:border-primary dark:bg-gray-700 dark:text-gray-200" placeholder="Nhập mục tiêu chính cần đạt được hôm nay..." required></textarea>
</div>
<!-- Work done -->
<div>
<label for="work-done" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
Công việc đã làm <span class="text-red-500">*</span>
</label>
<textarea id="work-done" rows="4" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-primary focus:border-primary dark:bg-gray-700 dark:text-gray-200" placeholder="Liệt kê chi tiết các công việc đã hoàn thành..." required></textarea>
</div>
<!-- Results -->
<div>
<label for="results" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
Kết quả đạt được <span class="text-red-500">*</span>
</label>
<textarea id="results" rows="2" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-primary focus:border-primary dark:bg-gray-700 dark:text-gray-200" placeholder="Mô tả kết quả cụ thể đạt được..." required></textarea>
</div>
<!-- Problems -->
<div>
<label for="problems" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
Vấn đề gặp phải
</label>
<textarea id="problems" rows="2" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-primary focus:border-primary dark:bg-gray-700 dark:text-gray-200" placeholder="Mô tả các vấn đề, khó khăn gặp phải..."></textarea>
</div>
<!-- Support request -->
<div>
<label for="support" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
Đề xuất / Nhờ hỗ trợ
</label>
<textarea id="support" rows="2" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-primary focus:border-primary dark:bg-gray-700 dark:text-gray-200" placeholder="Đề xuất giải pháp hoặc yêu cầu hỗ trợ từ cấp trên..."></textarea>
</div>
<!-- Time spent -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<label for="time-hours" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
Thời gian làm việc (giờ)
</label>
<input type="number" id="time-hours" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-primary focus:border-primary dark:bg-gray-700 dark:text-gray-200" placeholder="0" min="0" max="24">
</div>
<div>
<label for="time-minutes" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
Thời gian làm việc (phút)
</label>
<input type="number" id="time-minutes" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-primary focus:border-primary dark:bg-gray-700 dark:text-gray-200" placeholder="0" min="0" max="59">
</div>
</div>
<!-- Revenue (for sales) -->
<div>
<label for="revenue" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
Doanh thu ngày (nếu có)
</label>
<div class="relative rounded-md shadow-sm">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<span class="text-gray-500 sm:text-sm">đ</span>
</div>
<input type="text" id="revenue" class="block w-full pl-8 pr-12 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-primary focus:border-primary dark:bg-gray-700 dark:text-gray-200" placeholder="0">
<div class="absolute inset-y-0 right-0 flex items-center">
<label for="currency" class="sr-only">Currency</label>
<select id="currency" class="focus:ring-primary focus:border-primary h-full py-0 pl-2 pr-7 border-transparent bg-transparent text-gray-500 sm:text-sm rounded-md">
<option>VND</option>
<option>USD</option>
</select>
</div>
</div>
</div>
<!-- File upload -->
<div>
<label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
File đính kèm
</label>
<div class="file-upload mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 dark:border-gray-600 border-dashed rounded-md">
<div class="space-y-1 text-center">
<div class="flex text-sm text-gray-600 dark:text-gray-400">
<label for="file-upload" class="relative cursor-pointer bg-white dark:bg-gray-800 rounded-md font-medium text-primary hover:text-primary-700 dark:hover:text-primary-300 focus-within:outline-none">
<span>Tải lên file</span>
<input id="file-upload" name="file-upload" type="file" class="sr-only" multiple>
</label>
<p class="pl-1">hoặc kéo thả vào đây</p>
</div>
<p class="text-xs text-gray-500 dark:text-gray-400">
PDF, DOCX, XLSX, JPG, PNG tối đa 10MB
</p>
</div>
</div>
<div id="file-list" class="mt-2 space-y-2"></div>
</div>
<!-- Tomorrow's plan -->
<div>
<label for="tomorrow-plan" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
Kế hoạch ngày mai <span class="text-red-500">*</span>
</label>
<textarea id="tomorrow-plan" rows="3" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-primary focus:border-primary dark:bg-gray-700 dark:text-gray-200" placeholder="Mục tiêu, đầu việc chính, khách hàng cần follow-up..." required></textarea>
</div>
<!-- Form actions -->
<div class="flex justify-between pt-4">
<button type="button" class="px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm text-sm font-medium text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary">
Lưu nháp
</button>
<button type="submit" class="ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-primary hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary">
<i data-feather="send" class="w-4 h-4 mr-2"></i>
Nộp báo cáo
</button>
</div>
</form>
</div>
<!-- Deadline reminder -->
<div class="mt-4 bg-blue-50 dark:bg-blue-900 border border-blue-200 dark:border-blue-800 rounded-md p-4">
<div class="flex">
<div class="flex-shrink-0">
<i data-feather="alert-circle" class="h-5 w-5 text-blue-600 dark:text-blue-300"></i>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-blue-800 dark:text-blue-100">
Deadline nộp báo cáo: 17:00 hàng ngày
</h3>
<div class="mt-2 text-sm text-blue-700 dark:text-blue-300">
<p>
Bạn còn <span class="font-bold">2 giờ 15 phút</span> để hoàn thành và nộp báo cáo.
</p>
</div>
</div>
</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');
}
// File upload handling
const fileUpload = document.getElementById('file-upload');
const fileList = document.getElementById('file-list');
fileUpload.addEventListener('change', (e) => {
fileList.innerHTML = '';
Array.from(e.target.files).forEach(file => {
const fileItem = document.createElement('div');
fileItem.className = 'flex items-center justify-between p-2 bg-gray-100 dark:bg-gray-700 rounded-md';
const fileInfo = document.createElement('div');
fileInfo.className = 'flex items-center';
const fileIcon = document.createElement('i');
fileIcon.setAttribute('data-feather', 'file');
fileIcon.className = 'w-4 h-4 mr-2';
const fileName = document.createElement('span');
fileName.className = 'text-sm';
fileName.textContent = file.name;
const fileSize = document.createElement('span');
fileSize.className = 'text-xs text-gray-500 dark:text-gray-400 ml-2';
fileSize.textContent = `(${(file.size / 1024 / 1024).toFixed(2)}MB)`;
const removeBtn = document.createElement('button');
removeBtn.className = 'text-red-500 hover:text-red-700 dark:hover:text-red-400';
removeBtn.innerHTML = '<i data-feather="x" class="w-4 h-4"></i>';
removeBtn.addEventListener('click', () => {
fileItem.remove();
});
fileInfo.appendChild(fileIcon);
fileInfo.appendChild(fileName);
fileInfo.appendChild(fileSize);
fileItem.appendChild(fileInfo);
fileItem.appendChild(removeBtn);
fileList.appendChild(fileItem);
});
feather.replace();
});
</script>
</body>
</html>
|