buttons are not working and add clients registration and login page and dashboard - Initial Deployment
Browse files- README.md +7 -5
- index.html +788 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
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: crm
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: red
|
5 |
+
colorTo: red
|
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,788 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>TaxPro CRM | Tax Planning Services Management</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 |
+
<style>
|
10 |
+
.sidebar {
|
11 |
+
transition: all 0.3s ease;
|
12 |
+
}
|
13 |
+
.sidebar.collapsed {
|
14 |
+
width: 70px;
|
15 |
+
}
|
16 |
+
.sidebar.collapsed .nav-text {
|
17 |
+
display: none;
|
18 |
+
}
|
19 |
+
.sidebar.collapsed .logo-text {
|
20 |
+
display: none;
|
21 |
+
}
|
22 |
+
.sidebar.collapsed .nav-item {
|
23 |
+
justify-content: center;
|
24 |
+
}
|
25 |
+
.client-card:hover {
|
26 |
+
transform: translateY(-5px);
|
27 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
28 |
+
}
|
29 |
+
#calendar {
|
30 |
+
height: 500px;
|
31 |
+
}
|
32 |
+
.fc-event {
|
33 |
+
cursor: pointer;
|
34 |
+
}
|
35 |
+
.progress-bar {
|
36 |
+
height: 8px;
|
37 |
+
}
|
38 |
+
.progress-bar::-webkit-progress-bar {
|
39 |
+
background-color: #e5e7eb;
|
40 |
+
border-radius: 4px;
|
41 |
+
}
|
42 |
+
.progress-bar::-webkit-progress-value {
|
43 |
+
border-radius: 4px;
|
44 |
+
background-color: #3b82f6;
|
45 |
+
}
|
46 |
+
.chart-container {
|
47 |
+
position: relative;
|
48 |
+
height: 300px;
|
49 |
+
}
|
50 |
+
</style>
|
51 |
+
</head>
|
52 |
+
<body class="bg-gray-100 font-sans">
|
53 |
+
<div class="flex h-screen overflow-hidden">
|
54 |
+
<!-- Sidebar -->
|
55 |
+
<div class="sidebar bg-blue-800 text-white w-64 flex flex-col">
|
56 |
+
<div class="p-4 flex items-center space-x-3 border-b border-blue-700">
|
57 |
+
<div class="bg-white p-2 rounded-lg">
|
58 |
+
<i class="fas fa-file-invoice-dollar text-blue-800 text-xl"></i>
|
59 |
+
</div>
|
60 |
+
<span class="logo-text text-xl font-bold">TaxPro CRM</span>
|
61 |
+
</div>
|
62 |
+
<div class="flex-1 overflow-y-auto py-4">
|
63 |
+
<div class="px-4 space-y-2">
|
64 |
+
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
|
65 |
+
<i class="fas fa-tachometer-alt"></i>
|
66 |
+
<span class="nav-text">Dashboard</span>
|
67 |
+
</div>
|
68 |
+
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
|
69 |
+
<i class="fas fa-users"></i>
|
70 |
+
<span class="nav-text">Clients</span>
|
71 |
+
</div>
|
72 |
+
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
|
73 |
+
<i class="fas fa-calendar-check"></i>
|
74 |
+
<span class="nav-text">Appointments</span>
|
75 |
+
</div>
|
76 |
+
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
|
77 |
+
<i class="fas fa-file-alt"></i>
|
78 |
+
<span class="nav-text">Documents</span>
|
79 |
+
</div>
|
80 |
+
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
|
81 |
+
<i class="fas fa-chart-line"></i>
|
82 |
+
<span class="nav-text">Reports</span>
|
83 |
+
</div>
|
84 |
+
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
|
85 |
+
<i class="fas fa-envelope"></i>
|
86 |
+
<span class="nav-text">Messages</span>
|
87 |
+
</div>
|
88 |
+
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
|
89 |
+
<i class="fas fa-cog"></i>
|
90 |
+
<span class="nav-text">Settings</span>
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
<div class="mt-auto px-4 py-6 border-t border-blue-700">
|
94 |
+
<div class="flex items-center space-x-3">
|
95 |
+
<div class="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center">
|
96 |
+
<i class="fas fa-user"></i>
|
97 |
+
</div>
|
98 |
+
<div>
|
99 |
+
<div class="nav-text font-medium">Admin User</div>
|
100 |
+
<div class="nav-text text-sm text-blue-200">Tax Consultant</div>
|
101 |
+
</div>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
</div>
|
106 |
+
|
107 |
+
<!-- Main Content -->
|
108 |
+
<div class="flex-1 overflow-auto">
|
109 |
+
<!-- Top Navigation -->
|
110 |
+
<header class="bg-white shadow-sm">
|
111 |
+
<div class="flex items-center justify-between px-6 py-4">
|
112 |
+
<div class="flex items-center space-x-4">
|
113 |
+
<button id="sidebarToggle" class="text-gray-600 hover:text-gray-900">
|
114 |
+
<i class="fas fa-bars text-xl"></i>
|
115 |
+
</button>
|
116 |
+
<h1 class="text-xl font-semibold text-gray-800">Dashboard</h1>
|
117 |
+
</div>
|
118 |
+
<div class="flex items-center space-x-4">
|
119 |
+
<div class="relative">
|
120 |
+
<button class="text-gray-600 hover:text-gray-900">
|
121 |
+
<i class="fas fa-bell text-xl"></i>
|
122 |
+
<span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
|
123 |
+
</button>
|
124 |
+
</div>
|
125 |
+
<div class="relative">
|
126 |
+
<button class="text-gray-600 hover:text-gray-900">
|
127 |
+
<i class="fas fa-envelope text-xl"></i>
|
128 |
+
<span class="absolute top-0 right-0 w-2 h-2 bg-blue-500 rounded-full"></span>
|
129 |
+
</button>
|
130 |
+
</div>
|
131 |
+
<div class="relative">
|
132 |
+
<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">
|
133 |
+
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
134 |
+
</div>
|
135 |
+
</div>
|
136 |
+
</div>
|
137 |
+
</header>
|
138 |
+
|
139 |
+
<!-- Dashboard Content -->
|
140 |
+
<main class="p-6">
|
141 |
+
<!-- Stats Cards -->
|
142 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
|
143 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
144 |
+
<div class="flex items-center justify-between">
|
145 |
+
<div>
|
146 |
+
<p class="text-gray-500">Total Clients</p>
|
147 |
+
<h3 class="text-2xl font-bold mt-1">248</h3>
|
148 |
+
<p class="text-green-500 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i> 12% from last month</p>
|
149 |
+
</div>
|
150 |
+
<div class="bg-blue-100 p-3 rounded-full">
|
151 |
+
<i class="fas fa-users text-blue-600 text-xl"></i>
|
152 |
+
</div>
|
153 |
+
</div>
|
154 |
+
</div>
|
155 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
156 |
+
<div class="flex items-center justify-between">
|
157 |
+
<div>
|
158 |
+
<p class="text-gray-500">Upcoming Appointments</p>
|
159 |
+
<h3 class="text-2xl font-bold mt-1">14</h3>
|
160 |
+
<p class="text-red-500 text-sm mt-2"><i class="fas fa-arrow-down mr-1"></i> 3 today</p>
|
161 |
+
</div>
|
162 |
+
<div class="bg-green-100 p-3 rounded-full">
|
163 |
+
<i class="fas fa-calendar-check text-green-600 text-xl"></i>
|
164 |
+
</div>
|
165 |
+
</div>
|
166 |
+
</div>
|
167 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
168 |
+
<div class="flex items-center justify-between">
|
169 |
+
<div>
|
170 |
+
<p class="text-gray-500">Documents Pending</p>
|
171 |
+
<h3 class="text-2xl font-bold mt-1">32</h3>
|
172 |
+
<p class="text-yellow-500 text-sm mt-2"><i class="fas fa-exclamation-circle mr-1"></i> 5 urgent</p>
|
173 |
+
</div>
|
174 |
+
<div class="bg-purple-100 p-3 rounded-full">
|
175 |
+
<i class="fas fa-file-alt text-purple-600 text-xl"></i>
|
176 |
+
</div>
|
177 |
+
</div>
|
178 |
+
</div>
|
179 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
180 |
+
<div class="flex items-center justify-between">
|
181 |
+
<div>
|
182 |
+
<p class="text-gray-500">Revenue This Month</p>
|
183 |
+
<h3 class="text-2xl font-bold mt-1">$24,580</h3>
|
184 |
+
<p class="text-green-500 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i> 18% from last month</p>
|
185 |
+
</div>
|
186 |
+
<div class="bg-yellow-100 p-3 rounded-full">
|
187 |
+
<i class="fas fa-dollar-sign text-yellow-600 text-xl"></i>
|
188 |
+
</div>
|
189 |
+
</div>
|
190 |
+
</div>
|
191 |
+
</div>
|
192 |
+
|
193 |
+
<!-- Main Content Grid -->
|
194 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
|
195 |
+
<!-- Recent Clients -->
|
196 |
+
<div class="lg:col-span-2 bg-white rounded-xl shadow-sm p-6">
|
197 |
+
<div class="flex items-center justify-between mb-6">
|
198 |
+
<h2 class="text-lg font-semibold">Recent Clients</h2>
|
199 |
+
<button class="text-blue-600 hover:text-blue-800 flex items-center">
|
200 |
+
<span>View All</span>
|
201 |
+
<i class="fas fa-chevron-right ml-1 text-sm"></i>
|
202 |
+
</button>
|
203 |
+
</div>
|
204 |
+
<div class="overflow-x-auto">
|
205 |
+
<table class="min-w-full divide-y divide-gray-200">
|
206 |
+
<thead>
|
207 |
+
<tr>
|
208 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Client</th>
|
209 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tax Type</th>
|
210 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
211 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Contact</th>
|
212 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Action</th>
|
213 |
+
</tr>
|
214 |
+
</thead>
|
215 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
216 |
+
<tr class="hover:bg-gray-50">
|
217 |
+
<td class="px-4 py-4 whitespace-nowrap">
|
218 |
+
<div class="flex items-center">
|
219 |
+
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
|
220 |
+
<span class="text-blue-600">JD</span>
|
221 |
+
</div>
|
222 |
+
<div class="ml-4">
|
223 |
+
<div class="text-sm font-medium text-gray-900">John Doe</div>
|
224 |
+
<div class="text-sm text-gray-500">[email protected]</div>
|
225 |
+
</div>
|
226 |
+
</div>
|
227 |
+
</td>
|
228 |
+
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Personal</td>
|
229 |
+
<td class="px-4 py-4 whitespace-nowrap">
|
230 |
+
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Active</span>
|
231 |
+
</td>
|
232 |
+
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">2 days ago</td>
|
233 |
+
<td class="px-4 py-4 whitespace-nowrap text-sm font-medium">
|
234 |
+
<button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
|
235 |
+
<button class="text-green-600 hover:text-green-900"><i class="fas fa-edit"></i></button>
|
236 |
+
</td>
|
237 |
+
</tr>
|
238 |
+
<tr class="hover:bg-gray-50">
|
239 |
+
<td class="px-4 py-4 whitespace-nowrap">
|
240 |
+
<div class="flex items-center">
|
241 |
+
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center">
|
242 |
+
<span class="text-purple-600">AS</span>
|
243 |
+
</div>
|
244 |
+
<div class="ml-4">
|
245 |
+
<div class="text-sm font-medium text-gray-900">Acme Solutions</div>
|
246 |
+
<div class="text-sm text-gray-500">[email protected]</div>
|
247 |
+
</div>
|
248 |
+
</div>
|
249 |
+
</td>
|
250 |
+
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Corporate</td>
|
251 |
+
<td class="px-4 py-4 whitespace-nowrap">
|
252 |
+
<span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Pending</span>
|
253 |
+
</td>
|
254 |
+
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">1 week ago</td>
|
255 |
+
<td class="px-4 py-4 whitespace-nowrap text-sm font-medium">
|
256 |
+
<button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
|
257 |
+
<button class="text-green-600 hover:text-green-900"><i class="fas fa-edit"></i></button>
|
258 |
+
</td>
|
259 |
+
</tr>
|
260 |
+
<tr class="hover:bg-gray-50">
|
261 |
+
<td class="px-4 py-4 whitespace-nowrap">
|
262 |
+
<div class="flex items-center">
|
263 |
+
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-pink-100 flex items-center justify-center">
|
264 |
+
<span class="text-pink-600">MJ</span>
|
265 |
+
</div>
|
266 |
+
<div class="ml-4">
|
267 |
+
<div class="text-sm font-medium text-gray-900">Mary Johnson</div>
|
268 |
+
<div class="text-sm text-gray-500">[email protected]</div>
|
269 |
+
</div>
|
270 |
+
</div>
|
271 |
+
</td>
|
272 |
+
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Estate</td>
|
273 |
+
<td class="px-4 py-4 whitespace-nowrap">
|
274 |
+
<span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Overdue</span>
|
275 |
+
</td>
|
276 |
+
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">3 weeks ago</td>
|
277 |
+
<td class="px-4 py-4 whitespace-nowrap text-sm font-medium">
|
278 |
+
<button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
|
279 |
+
<button class="text-green-600 hover:text-green-900"><i class="fas fa-edit"></i></button>
|
280 |
+
</td>
|
281 |
+
</tr>
|
282 |
+
</tbody>
|
283 |
+
</table>
|
284 |
+
</div>
|
285 |
+
</div>
|
286 |
+
|
287 |
+
<!-- Upcoming Tasks -->
|
288 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
289 |
+
<div class="flex items-center justify-between mb-6">
|
290 |
+
<h2 class="text-lg font-semibold">Upcoming Tasks</h2>
|
291 |
+
<button class="text-blue-600 hover:text-blue-800 flex items-center">
|
292 |
+
<span>Add New</span>
|
293 |
+
<i class="fas fa-plus ml-1 text-sm"></i>
|
294 |
+
</button>
|
295 |
+
</div>
|
296 |
+
<div class="space-y-4">
|
297 |
+
<div class="border-l-4 border-blue-500 pl-4 py-2">
|
298 |
+
<div class="flex justify-between items-start">
|
299 |
+
<div>
|
300 |
+
<h4 class="font-medium">Tax Return for John Doe</h4>
|
301 |
+
<p class="text-sm text-gray-500">Due: Apr 15, 2023</p>
|
302 |
+
</div>
|
303 |
+
<span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded-full">High</span>
|
304 |
+
</div>
|
305 |
+
<div class="mt-2 flex items-center text-sm text-gray-500">
|
306 |
+
<i class="fas fa-user mr-1"></i>
|
307 |
+
<span>Assigned to you</span>
|
308 |
+
</div>
|
309 |
+
<div class="mt-3">
|
310 |
+
<progress class="progress-bar w-full" value="75" max="100"></progress>
|
311 |
+
<div class="flex justify-between text-xs text-gray-500 mt-1">
|
312 |
+
<span>75% complete</span>
|
313 |
+
<span>3 of 4 docs</span>
|
314 |
+
</div>
|
315 |
+
</div>
|
316 |
+
</div>
|
317 |
+
<div class="border-l-4 border-green-500 pl-4 py-2">
|
318 |
+
<div class="flex justify-between items-start">
|
319 |
+
<div>
|
320 |
+
<h4 class="font-medium">Quarterly Review - Acme</h4>
|
321 |
+
<p class="text-sm text-gray-500">Due: Apr 20, 2023</p>
|
322 |
+
</div>
|
323 |
+
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">Medium</span>
|
324 |
+
</div>
|
325 |
+
<div class="mt-2 flex items-center text-sm text-gray-500">
|
326 |
+
<i class="fas fa-user mr-1"></i>
|
327 |
+
<span>Assigned to team</span>
|
328 |
+
</div>
|
329 |
+
<div class="mt-3">
|
330 |
+
<progress class="progress-bar w-full" value="30" max="100"></progress>
|
331 |
+
<div class="flex justify-between text-xs text-gray-500 mt-1">
|
332 |
+
<span>30% complete</span>
|
333 |
+
<span>1 of 3 docs</span>
|
334 |
+
</div>
|
335 |
+
</div>
|
336 |
+
</div>
|
337 |
+
<div class="border-l-4 border-yellow-500 pl-4 py-2">
|
338 |
+
<div class="flex justify-between items-start">
|
339 |
+
<div>
|
340 |
+
<h4 class="font-medium">Tax Planning Session</h4>
|
341 |
+
<p class="text-sm text-gray-500">Due: Apr 22, 2023</p>
|
342 |
+
</div>
|
343 |
+
<span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full">Low</span>
|
344 |
+
</div>
|
345 |
+
<div class="mt-2 flex items-center text-sm text-gray-500">
|
346 |
+
<i class="fas fa-user mr-1"></i>
|
347 |
+
<span>Assigned to you</span>
|
348 |
+
</div>
|
349 |
+
<div class="mt-3">
|
350 |
+
<progress class="progress-bar w-full" value="10" max="100"></progress>
|
351 |
+
<div class="flex justify-between text-xs text-gray-500 mt-1">
|
352 |
+
<span>10% complete</span>
|
353 |
+
<span>0 of 2 docs</span>
|
354 |
+
</div>
|
355 |
+
</div>
|
356 |
+
</div>
|
357 |
+
</div>
|
358 |
+
<button class="w-full mt-4 py-2 border border-dashed border-gray-300 rounded-lg text-gray-500 hover:text-gray-700 hover:border-gray-400">
|
359 |
+
<i class="fas fa-plus mr-1"></i> Add Task
|
360 |
+
</button>
|
361 |
+
</div>
|
362 |
+
</div>
|
363 |
+
|
364 |
+
<!-- Bottom Row -->
|
365 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
366 |
+
<!-- Calendar -->
|
367 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
368 |
+
<div class="flex items-center justify-between mb-6">
|
369 |
+
<h2 class="text-lg font-semibold">Appointment Calendar</h2>
|
370 |
+
<div class="flex space-x-2">
|
371 |
+
<button class="p-1 rounded hover:bg-gray-100">
|
372 |
+
<i class="fas fa-chevron-left"></i>
|
373 |
+
</button>
|
374 |
+
<button class="p-1 rounded hover:bg-gray-100">
|
375 |
+
<i class="fas fa-chevron-right"></i>
|
376 |
+
</button>
|
377 |
+
</div>
|
378 |
+
</div>
|
379 |
+
<div id="calendar"></div>
|
380 |
+
</div>
|
381 |
+
|
382 |
+
<!-- Tax Deadlines -->
|
383 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
384 |
+
<div class="flex items-center justify-between mb-6">
|
385 |
+
<h2 class="text-lg font-semibold">Upcoming Tax Deadlines</h2>
|
386 |
+
<button class="text-blue-600 hover:text-blue-800">
|
387 |
+
<i class="fas fa-sync-alt"></i>
|
388 |
+
</button>
|
389 |
+
</div>
|
390 |
+
<div class="space-y-4">
|
391 |
+
<div class="flex items-start p-3 rounded-lg bg-red-50">
|
392 |
+
<div class="bg-red-100 p-2 rounded-lg mr-3">
|
393 |
+
<i class="fas fa-exclamation text-red-600"></i>
|
394 |
+
</div>
|
395 |
+
<div>
|
396 |
+
<h4 class="font-medium">Personal Tax Returns</h4>
|
397 |
+
<p class="text-sm text-gray-600">April 18, 2023</p>
|
398 |
+
<p class="text-xs text-red-600 mt-1">5 days remaining</p>
|
399 |
+
</div>
|
400 |
+
</div>
|
401 |
+
<div class="flex items-start p-3 rounded-lg bg-yellow-50">
|
402 |
+
<div class="bg-yellow-100 p-2 rounded-lg mr-3">
|
403 |
+
<i class="fas fa-clock text-yellow-600"></i>
|
404 |
+
</div>
|
405 |
+
<div>
|
406 |
+
<h4 class="font-medium">Q1 Estimated Payments</h4>
|
407 |
+
<p class="text-sm text-gray-600">April 25, 2023</p>
|
408 |
+
<p class="text-xs text-yellow-600 mt-1">12 days remaining</p>
|
409 |
+
</div>
|
410 |
+
</div>
|
411 |
+
<div class="flex items-start p-3 rounded-lg bg-blue-50">
|
412 |
+
<div class="bg-blue-100 p-2 rounded-lg mr-3">
|
413 |
+
<i class="fas fa-calendar-alt text-blue-600"></i>
|
414 |
+
</div>
|
415 |
+
<div>
|
416 |
+
<h4 class="font-medium">Corporate Tax Returns</h4>
|
417 |
+
<p class="text-sm text-gray-600">May 15, 2023</p>
|
418 |
+
<p class="text-xs text-blue-600 mt-1">32 days remaining</p>
|
419 |
+
</div>
|
420 |
+
</div>
|
421 |
+
<div class="flex items-start p-3 rounded-lg bg-green-50">
|
422 |
+
<div class="bg-green-100 p-2 rounded-lg mr-3">
|
423 |
+
<i class="fas fa-calendar-alt text-green-600"></i>
|
424 |
+
</div>
|
425 |
+
<div>
|
426 |
+
<h4 class="font-medium">Q2 Estimated Payments</h4>
|
427 |
+
<p class="text-sm text-gray-600">June 15, 2023</p>
|
428 |
+
<p class="text-xs text-green-600 mt-1">63 days remaining</p>
|
429 |
+
</div>
|
430 |
+
</div>
|
431 |
+
</div>
|
432 |
+
</div>
|
433 |
+
|
434 |
+
<!-- Quick Actions -->
|
435 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
436 |
+
<div class="flex items-center justify-between mb-6">
|
437 |
+
<h2 class="text-lg font-semibold">Quick Actions</h2>
|
438 |
+
<button class="text-blue-600 hover:text-blue-800">
|
439 |
+
<i class="fas fa-ellipsis-h"></i>
|
440 |
+
</button>
|
441 |
+
</div>
|
442 |
+
<div class="grid grid-cols-2 gap-4">
|
443 |
+
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-blue-500 hover:bg-blue-50">
|
444 |
+
<div class="bg-blue-100 p-3 rounded-full mb-2">
|
445 |
+
<i class="fas fa-user-plus text-blue-600"></i>
|
446 |
+
</div>
|
447 |
+
<span class="text-sm font-medium">Add Client</span>
|
448 |
+
</button>
|
449 |
+
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-green-500 hover:bg-green-50">
|
450 |
+
<div class="bg-green-100 p-3 rounded-full mb-2">
|
451 |
+
<i class="fas fa-calendar-plus text-green-600"></i>
|
452 |
+
</div>
|
453 |
+
<span class="text-sm font-medium">Schedule</span>
|
454 |
+
</button>
|
455 |
+
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-purple-500 hover:bg-purple-50">
|
456 |
+
<div class="bg-purple-100 p-3 rounded-full mb-2">
|
457 |
+
<i class="fas fa-file-upload text-purple-600"></i>
|
458 |
+
</div>
|
459 |
+
<span class="text-sm font-medium">Upload Doc</span>
|
460 |
+
</button>
|
461 |
+
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-red-500 hover:bg-red-50">
|
462 |
+
<div class="bg-red-100 p-3 rounded-full mb-2">
|
463 |
+
<i class="fas fa-file-invoice-dollar text-red-600"></i>
|
464 |
+
</div>
|
465 |
+
<span class="text-sm font-medium">Create Invoice</span>
|
466 |
+
</button>
|
467 |
+
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-yellow-500 hover:bg-yellow-50">
|
468 |
+
<div class="bg-yellow-100 p-3 rounded-full mb-2">
|
469 |
+
<i class="fas fa-chart-pie text-yellow-600"></i>
|
470 |
+
</div>
|
471 |
+
<span class="text-sm font-medium">Reports</span>
|
472 |
+
</button>
|
473 |
+
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-indigo-500 hover:bg-indigo-50">
|
474 |
+
<div class="bg-indigo-100 p-3 rounded-full mb-2">
|
475 |
+
<i class="fas fa-envelope text-indigo-600"></i>
|
476 |
+
</div>
|
477 |
+
<span class="text-sm font-medium">Message</span>
|
478 |
+
</button>
|
479 |
+
</div>
|
480 |
+
</div>
|
481 |
+
</div>
|
482 |
+
</main>
|
483 |
+
</div>
|
484 |
+
</div>
|
485 |
+
|
486 |
+
<!-- Client Detail Modal -->
|
487 |
+
<div id="clientModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
488 |
+
<div class="bg-white rounded-xl w-full max-w-2xl max-h-[90vh] overflow-y-auto">
|
489 |
+
<div class="p-6">
|
490 |
+
<div class="flex justify-between items-start mb-6">
|
491 |
+
<div>
|
492 |
+
<h3 class="text-xl font-bold">Client Details</h3>
|
493 |
+
<p class="text-gray-500">View and edit client information</p>
|
494 |
+
</div>
|
495 |
+
<button id="closeModal" class="text-gray-400 hover:text-gray-600">
|
496 |
+
<i class="fas fa-times text-xl"></i>
|
497 |
+
</button>
|
498 |
+
</div>
|
499 |
+
|
500 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
|
501 |
+
<div class="md:col-span-1">
|
502 |
+
<div class="bg-gray-100 rounded-lg p-4 flex flex-col items-center">
|
503 |
+
<div class="w-24 h-24 rounded-full bg-blue-200 flex items-center justify-center text-3xl font-bold text-blue-700 mb-3">
|
504 |
+
JD
|
505 |
+
</div>
|
506 |
+
<h4 class="font-bold text-lg">John Doe</h4>
|
507 |
+
<p class="text-gray-500 text-sm">Personal Tax Client</p>
|
508 |
+
<div class="mt-4 w-full">
|
509 |
+
<div class="flex justify-between text-sm mb-1">
|
510 |
+
<span class="text-gray-500">Status</span>
|
511 |
+
<span class="font-medium text-green-600">Active</span>
|
512 |
+
</div>
|
513 |
+
<div class="flex justify-between text-sm mb-1">
|
514 |
+
<span class="text-gray-500">Since</span>
|
515 |
+
<span class="font-medium">Jan 2021</span>
|
516 |
+
</div>
|
517 |
+
<div class="flex justify-between text-sm">
|
518 |
+
<span class="text-gray-500">Last Contact</span>
|
519 |
+
<span class="font-medium">2 days ago</span>
|
520 |
+
</div>
|
521 |
+
</div>
|
522 |
+
</div>
|
523 |
+
</div>
|
524 |
+
<div class="md:col-span-2">
|
525 |
+
<div class="space-y-4">
|
526 |
+
<div>
|
527 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Full Name</label>
|
528 |
+
<input type="text" value="John Doe" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
529 |
+
</div>
|
530 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
531 |
+
<div>
|
532 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Email</label>
|
533 |
+
<input type="email" value="[email protected]" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
534 |
+
</div>
|
535 |
+
<div>
|
536 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Phone</label>
|
537 |
+
<input type="tel" value="(555) 123-4567" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
538 |
+
</div>
|
539 |
+
</div>
|
540 |
+
<div>
|
541 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Address</label>
|
542 |
+
<input type="text" value="123 Main St, Anytown, USA" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
543 |
+
</div>
|
544 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
545 |
+
<div>
|
546 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Tax Type</label>
|
547 |
+
<select class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
548 |
+
<option>Personal</option>
|
549 |
+
<option>Corporate</option>
|
550 |
+
<option>Estate</option>
|
551 |
+
<option>Non-profit</option>
|
552 |
+
</select>
|
553 |
+
</div>
|
554 |
+
<div>
|
555 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Status</label>
|
556 |
+
<select class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
557 |
+
<option class="text-green-600">Active</option>
|
558 |
+
<option class="text-yellow-600">Pending</option>
|
559 |
+
<option class="text-red-600">Inactive</option>
|
560 |
+
</select>
|
561 |
+
</div>
|
562 |
+
</div>
|
563 |
+
</div>
|
564 |
+
</div>
|
565 |
+
</div>
|
566 |
+
|
567 |
+
<div class="border-t border-gray-200 pt-6">
|
568 |
+
<h4 class="font-bold mb-4">Tax Documents</h4>
|
569 |
+
<div class="space-y-3">
|
570 |
+
<div class="flex items-center justify-between p-3 border rounded-lg">
|
571 |
+
<div class="flex items-center">
|
572 |
+
<i class="fas fa-file-pdf text-red-500 text-xl mr-3"></i>
|
573 |
+
<div>
|
574 |
+
<p class="font-medium">2022 Tax Return</p>
|
575 |
+
<p class="text-sm text-gray-500">Uploaded: Mar 15, 2023</p>
|
576 |
+
</div>
|
577 |
+
</div>
|
578 |
+
<div class="flex space-x-2">
|
579 |
+
<button class="text-blue-600 hover:text-blue-800">
|
580 |
+
<i class="fas fa-eye"></i>
|
581 |
+
</button>
|
582 |
+
<button class="text-gray-600 hover:text-gray-800">
|
583 |
+
<i class="fas fa-download"></i>
|
584 |
+
</button>
|
585 |
+
</div>
|
586 |
+
</div>
|
587 |
+
<div class="flex items-center justify-between p-3 border rounded-lg">
|
588 |
+
<div class="flex items-center">
|
589 |
+
<i class="fas fa-file-excel text-green-500 text-xl mr-3"></i>
|
590 |
+
<div>
|
591 |
+
<p class="font-medium">Income Statements</p>
|
592 |
+
<p class="text-sm text-gray-500">Uploaded: Feb 28, 2023</p>
|
593 |
+
</div>
|
594 |
+
</div>
|
595 |
+
<div class="flex space-x-2">
|
596 |
+
<button class="text-blue-600 hover:text-blue-800">
|
597 |
+
<i class="fas fa-eye"></i>
|
598 |
+
</button>
|
599 |
+
<button class="text-gray-600 hover:text-gray-800">
|
600 |
+
<i class="fas fa-download"></i>
|
601 |
+
</button>
|
602 |
+
</div>
|
603 |
+
</div>
|
604 |
+
<button class="w-full py-2 border border-dashed border-gray-300 rounded-lg text-gray-500 hover:text-gray-700 hover:border-gray-400 flex items-center justify-center">
|
605 |
+
<i class="fas fa-plus mr-2"></i> Add Document
|
606 |
+
</button>
|
607 |
+
</div>
|
608 |
+
</div>
|
609 |
+
|
610 |
+
<div class="mt-6 flex justify-end space-x-3">
|
611 |
+
<button class="px-4 py-2 border rounded-lg hover:bg-gray-100">Cancel</button>
|
612 |
+
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700">Save Changes</button>
|
613 |
+
</div>
|
614 |
+
</div>
|
615 |
+
</div>
|
616 |
+
</div>
|
617 |
+
|
618 |
+
<script>
|
619 |
+
// Authentication state
|
620 |
+
let currentUser = null;
|
621 |
+
const authToken = localStorage.getItem('authToken');
|
622 |
+
|
623 |
+
// Check if user is logged in
|
624 |
+
if (authToken) {
|
625 |
+
currentUser = JSON.parse(localStorage.getItem('user'));
|
626 |
+
showDashboard();
|
627 |
+
} else {
|
628 |
+
showLogin();
|
629 |
+
}
|
630 |
+
|
631 |
+
// Toggle sidebar
|
632 |
+
document.getElementById('sidebarToggle').addEventListener('click', function() {
|
633 |
+
document.querySelector('.sidebar').classList.toggle('collapsed');
|
634 |
+
});
|
635 |
+
|
636 |
+
// Navigation functions
|
637 |
+
function showLogin() {
|
638 |
+
document.getElementById('loginPage').classList.remove('hidden');
|
639 |
+
document.getElementById('dashboardPage').classList.add('hidden');
|
640 |
+
}
|
641 |
+
|
642 |
+
function showRegister() {
|
643 |
+
document.getElementById('registerPage').classList.remove('hidden');
|
644 |
+
document.getElementById('loginPage').classList.add('hidden');
|
645 |
+
}
|
646 |
+
|
647 |
+
function showDashboard() {
|
648 |
+
document.getElementById('dashboardPage').classList.remove('hidden');
|
649 |
+
document.getElementById('loginPage').classList.add('hidden');
|
650 |
+
document.getElementById('registerPage').classList.add('hidden');
|
651 |
+
loadDashboardData();
|
652 |
+
}
|
653 |
+
|
654 |
+
// Login functionality
|
655 |
+
document.getElementById('loginForm').addEventListener('submit', function(e) {
|
656 |
+
e.preventDefault();
|
657 |
+
const email = document.getElementById('loginEmail').value;
|
658 |
+
const password = document.getElementById('loginPassword').value;
|
659 |
+
|
660 |
+
// In a real app, you would validate and send to server
|
661 |
+
currentUser = { email, name: "Admin User" };
|
662 |
+
localStorage.setItem('authToken', 'sample-token');
|
663 |
+
localStorage.setItem('user', JSON.stringify(currentUser));
|
664 |
+
showDashboard();
|
665 |
+
});
|
666 |
+
|
667 |
+
// Register functionality
|
668 |
+
document.getElementById('registerForm').addEventListener('submit', function(e) {
|
669 |
+
e.preventDefault();
|
670 |
+
const name = document.getElementById('registerName').value;
|
671 |
+
const email = document.getElementById('registerEmail').value;
|
672 |
+
const password = document.getElementById('registerPassword').value;
|
673 |
+
|
674 |
+
// In a real app, you would send to server
|
675 |
+
alert('Registration successful! Please login.');
|
676 |
+
showLogin();
|
677 |
+
});
|
678 |
+
|
679 |
+
// Logout functionality
|
680 |
+
document.getElementById('logoutBtn').addEventListener('click', function() {
|
681 |
+
localStorage.removeItem('authToken');
|
682 |
+
localStorage.removeItem('user');
|
683 |
+
currentUser = null;
|
684 |
+
showLogin();
|
685 |
+
});
|
686 |
+
|
687 |
+
// Client modal functionality
|
688 |
+
document.addEventListener('DOMContentLoaded', function() {
|
689 |
+
const calendarEl = document.getElementById('calendar');
|
690 |
+
|
691 |
+
// This is a simplified representation - in a real app you'd use FullCalendar or similar
|
692 |
+
calendarEl.innerHTML = `
|
693 |
+
<div class="mb-4">
|
694 |
+
<div class="flex justify-between items-center mb-2">
|
695 |
+
<span class="font-medium">April 2023</span>
|
696 |
+
</div>
|
697 |
+
<div class="grid grid-cols-7 gap-1 text-center text-sm font-medium text-gray-500">
|
698 |
+
<div>Sun</div><div>Mon</div><div>Tue</div><div>Wed</div><div>Thu</div><div>Fri</div><div>Sat</div>
|
699 |
+
</div>
|
700 |
+
<div class="grid grid-cols-7 gap-1 mt-1">
|
701 |
+
${Array(35).fill().map((_, i) => {
|
702 |
+
const day = i - 5 + 1;
|
703 |
+
if (day <= 0 || day > 30) {
|
704 |
+
return `<div class="h-12"></div>`;
|
705 |
+
}
|
706 |
+
|
707 |
+
let content = '';
|
708 |
+
if (day === 10) content = '<div class="text-xs bg-blue-100 text-blue-800 rounded p-1 mb-1">Meeting with John</div>';
|
709 |
+
if (day === 15) content = '<div class="text-xs bg-red-100 text-red-800 rounded p-1 mb-1">Tax Deadline</div>';
|
710 |
+
if (day === 18) content = '<div class="text-xs bg-green-100 text-green-800 rounded p-1 mb-1">Client Call</div>';
|
711 |
+
if (day === 22) content = '<div class="text-xs bg-purple-100 text-purple-800 rounded p-1 mb-1">Review Docs</div>';
|
712 |
+
|
713 |
+
const todayClass = day === 18 ? 'border-2 border-blue-500' : '';
|
714 |
+
|
715 |
+
return `
|
716 |
+
<div class="h-24 p-1 border ${todayClass}">
|
717 |
+
<div class="text-right">${day}</div>
|
718 |
+
${content}
|
719 |
+
</div>
|
720 |
+
`;
|
721 |
+
}).join('')}
|
722 |
+
</div>
|
723 |
+
</div>
|
724 |
+
`;
|
725 |
+
});
|
726 |
+
|
727 |
+
// Load dashboard data
|
728 |
+
function loadDashboardData() {
|
729 |
+
// Update user info in sidebar
|
730 |
+
if (currentUser) {
|
731 |
+
const userElements = document.querySelectorAll('.nav-text.font-medium');
|
732 |
+
userElements.forEach(el => el.textContent = currentUser.name);
|
733 |
+
}
|
734 |
+
|
735 |
+
// Initialize calendar (simplified version)
|
736 |
+
const calendarEl = document.getElementById('calendar');
|
737 |
+
if (calendarEl) {
|
738 |
+
calendarEl.innerHTML = `
|
739 |
+
<div class="mb-4">
|
740 |
+
<div class="flex justify-between items-center mb-2">
|
741 |
+
<span class="font-medium">April 2023</span>
|
742 |
+
</div>
|
743 |
+
<div class="grid grid-cols-7 gap-1 text-center text-sm font-medium text-gray-500">
|
744 |
+
<div>Sun</div><div>Mon</div><div>Tue</div><div>Wed</div><div>Thu</div><div>Fri</div><div>Sat</div>
|
745 |
+
</div>
|
746 |
+
<div class="grid grid-cols-7 gap-1 mt-1">
|
747 |
+
${Array(35).fill().map((_, i) => {
|
748 |
+
const day = i - 5 + 1;
|
749 |
+
if (day <= 0 || day > 30) {
|
750 |
+
return `<div class="h-12"></div>`;
|
751 |
+
}
|
752 |
+
|
753 |
+
let content = '';
|
754 |
+
if (day === 10) content = '<div class="text-xs bg-blue-100 text-blue-800 rounded p-1 mb-1">Meeting with John</div>';
|
755 |
+
if (day === 15) content = '<div class="text-xs bg-red-100 text-red-800 rounded p-1 mb-1">Tax Deadline</div>';
|
756 |
+
if (day === 18) content = '<div class="text-xs bg-green-100 text-green-800 rounded p-1 mb-1">Client Call</div>';
|
757 |
+
if (day === 22) content = '<div class="text-xs bg-purple-100 text-purple-800 rounded p-1 mb-1">Review Docs</div>';
|
758 |
+
|
759 |
+
const todayClass = day === 18 ? 'border-2 border-blue-500' : '';
|
760 |
+
|
761 |
+
return `
|
762 |
+
<div class="h-24 p-1 border ${todayClass}">
|
763 |
+
<div class="text-right">${day}</div>
|
764 |
+
${content}
|
765 |
+
</div>
|
766 |
+
`;
|
767 |
+
}).join('')}
|
768 |
+
</div>
|
769 |
+
</div>
|
770 |
+
`;
|
771 |
+
}
|
772 |
+
|
773 |
+
// Simulate progress bar animation
|
774 |
+
document.querySelectorAll('.progress-bar').forEach(bar => {
|
775 |
+
let value = 0;
|
776 |
+
const target = parseInt(bar.value);
|
777 |
+
const interval = setInterval(() => {
|
778 |
+
if (value >= target) {
|
779 |
+
clearInterval(interval);
|
780 |
+
return;
|
781 |
+
}
|
782 |
+
value++;
|
783 |
+
bar.value = value;
|
784 |
+
}, 20);
|
785 |
+
});
|
786 |
+
</script>
|
787 |
+
<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=RAMANJAN/crm" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
788 |
+
</html>
|