Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +661 -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: error
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 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,661 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>The Connector Group Command Center</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 |
+
.dashboard-card {
|
| 12 |
+
transition: all 0.3s ease;
|
| 13 |
+
}
|
| 14 |
+
.dashboard-card:hover {
|
| 15 |
+
transform: translateY(-5px);
|
| 16 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
| 17 |
+
}
|
| 18 |
+
.performance-indicator {
|
| 19 |
+
width: 12px;
|
| 20 |
+
height: 12px;
|
| 21 |
+
border-radius: 50%;
|
| 22 |
+
display: inline-block;
|
| 23 |
+
margin-right: 5px;
|
| 24 |
+
}
|
| 25 |
+
.performance-good {
|
| 26 |
+
background-color: #10B981;
|
| 27 |
+
}
|
| 28 |
+
.performance-warning {
|
| 29 |
+
background-color: #F59E0B;
|
| 30 |
+
}
|
| 31 |
+
.performance-critical {
|
| 32 |
+
background-color: #EF4444;
|
| 33 |
+
}
|
| 34 |
+
.custom-scrollbar::-webkit-scrollbar {
|
| 35 |
+
height: 6px;
|
| 36 |
+
width: 6px;
|
| 37 |
+
}
|
| 38 |
+
.custom-scrollbar::-webkit-scrollbar-track {
|
| 39 |
+
background: #f1f1f1;
|
| 40 |
+
}
|
| 41 |
+
.custom-scrollbar::-webkit-scrollbar-thumb {
|
| 42 |
+
background: #888;
|
| 43 |
+
border-radius: 3px;
|
| 44 |
+
}
|
| 45 |
+
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
|
| 46 |
+
background: #555;
|
| 47 |
+
}
|
| 48 |
+
.tab-active {
|
| 49 |
+
border-bottom: 3px solid #3B82F6;
|
| 50 |
+
color: #3B82F6;
|
| 51 |
+
font-weight: 600;
|
| 52 |
+
}
|
| 53 |
+
.funnel-step {
|
| 54 |
+
position: relative;
|
| 55 |
+
margin-bottom: 20px;
|
| 56 |
+
}
|
| 57 |
+
.funnel-bar {
|
| 58 |
+
height: 40px;
|
| 59 |
+
display: flex;
|
| 60 |
+
align-items: center;
|
| 61 |
+
justify-content: space-between;
|
| 62 |
+
padding: 0 15px;
|
| 63 |
+
color: white;
|
| 64 |
+
font-weight: bold;
|
| 65 |
+
border-radius: 4px;
|
| 66 |
+
margin-bottom: 5px;
|
| 67 |
+
transition: width 0.5s ease;
|
| 68 |
+
}
|
| 69 |
+
.funnel-percentage {
|
| 70 |
+
position: absolute;
|
| 71 |
+
right: 10px;
|
| 72 |
+
color: white;
|
| 73 |
+
}
|
| 74 |
+
.heatmap-cell {
|
| 75 |
+
width: 30px;
|
| 76 |
+
height: 30px;
|
| 77 |
+
display: flex;
|
| 78 |
+
align-items: center;
|
| 79 |
+
justify-content: center;
|
| 80 |
+
border-radius: 4px;
|
| 81 |
+
font-size: 10px;
|
| 82 |
+
font-weight: bold;
|
| 83 |
+
}
|
| 84 |
+
</style>
|
| 85 |
+
</head>
|
| 86 |
+
<body class="bg-gray-50">
|
| 87 |
+
<div class="min-h-screen">
|
| 88 |
+
<!-- Header -->
|
| 89 |
+
<header class="bg-white shadow-sm">
|
| 90 |
+
<div class="max-w-7xl mx-auto px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
|
| 91 |
+
<div class="flex items-center">
|
| 92 |
+
<div class="bg-blue-600 text-white p-2 rounded-lg">
|
| 93 |
+
<i class="fas fa-satellite-dish text-2xl"></i>
|
| 94 |
+
</div>
|
| 95 |
+
<h1 class="ml-3 text-2xl font-bold text-gray-900">The Connector Group Command Center</h1>
|
| 96 |
+
</div>
|
| 97 |
+
<div class="flex items-center space-x-4">
|
| 98 |
+
<div class="relative">
|
| 99 |
+
<button id="refresh-btn" class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition flex items-center">
|
| 100 |
+
<i class="fas fa-sync-alt mr-2"></i> Refresh Data
|
| 101 |
+
</button>
|
| 102 |
+
<div id="last-updated" class="text-xs text-gray-500 mt-1 text-right">Last updated: Just now</div>
|
| 103 |
+
</div>
|
| 104 |
+
<div class="relative">
|
| 105 |
+
<button id="account-menu" class="flex items-center space-x-2 focus:outline-none">
|
| 106 |
+
<img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User profile">
|
| 107 |
+
<span class="text-gray-700">Admin</span>
|
| 108 |
+
</button>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</header>
|
| 113 |
+
|
| 114 |
+
<!-- Filters -->
|
| 115 |
+
<div class="bg-white shadow-sm mt-1">
|
| 116 |
+
<div class="max-w-7xl mx-auto px-4 py-3 sm:px-6 lg:px-8">
|
| 117 |
+
<div class="flex flex-wrap items-center justify-between gap-4">
|
| 118 |
+
<div class="flex items-center space-x-4">
|
| 119 |
+
<div>
|
| 120 |
+
<label for="subaccount-filter" class="block text-sm font-medium text-gray-700 mb-1">Subaccount</label>
|
| 121 |
+
<select id="subaccount-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
|
| 122 |
+
<option>All Subaccounts</option>
|
| 123 |
+
<option>BrowConnector</option>
|
| 124 |
+
<option>LipConnector</option>
|
| 125 |
+
<option>LashConnector</option>
|
| 126 |
+
<option>BeautyConnector</option>
|
| 127 |
+
</select>
|
| 128 |
+
</div>
|
| 129 |
+
<div>
|
| 130 |
+
<label for="brand-filter" class="block text-sm font-medium text-gray-700 mb-1">Brand</label>
|
| 131 |
+
<select id="brand-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
|
| 132 |
+
<option>All Brands</option>
|
| 133 |
+
<option>Premium</option>
|
| 134 |
+
<option>Standard</option>
|
| 135 |
+
<option>Basic</option>
|
| 136 |
+
</select>
|
| 137 |
+
</div>
|
| 138 |
+
<div>
|
| 139 |
+
<label for="manager-filter" class="block text-sm font-medium text-gray-700 mb-1">Account Manager</label>
|
| 140 |
+
<select id="manager-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
|
| 141 |
+
<option>All Managers</option>
|
| 142 |
+
<option>Sarah Johnson</option>
|
| 143 |
+
<option>Michael Chen</option>
|
| 144 |
+
<option>Emily Rodriguez</option>
|
| 145 |
+
</select>
|
| 146 |
+
</div>
|
| 147 |
+
</div>
|
| 148 |
+
<div class="flex items-center space-x-4">
|
| 149 |
+
<div>
|
| 150 |
+
<label for="time-filter" class="block text-sm font-medium text-gray-700 mb-1">Time Range</label>
|
| 151 |
+
<select id="time-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
|
| 152 |
+
<option>Last 7 Days</option>
|
| 153 |
+
<option>Today</option>
|
| 154 |
+
<option>Yesterday</option>
|
| 155 |
+
<option>Last 30 Days</option>
|
| 156 |
+
<option>This Month</option>
|
| 157 |
+
<option>Custom Range...</option>
|
| 158 |
+
</select>
|
| 159 |
+
</div>
|
| 160 |
+
<button class="mt-6 bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition">
|
| 161 |
+
Apply Filters
|
| 162 |
+
</button>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
</div>
|
| 167 |
+
|
| 168 |
+
<!-- Main Content -->
|
| 169 |
+
<main class="max-w-7xl mx-auto px-4 py-6 sm:px-6 lg:px-8">
|
| 170 |
+
<!-- Summary Metrics -->
|
| 171 |
+
<div class="mb-8">
|
| 172 |
+
<h2 class="text-xl font-bold text-gray-900 mb-4">Business Overview</h2>
|
| 173 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-4">
|
| 174 |
+
<!-- Total Clients -->
|
| 175 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow">
|
| 176 |
+
<div class="flex justify-between items-start">
|
| 177 |
+
<div>
|
| 178 |
+
<p class="text-sm font-medium text-gray-500">Total Clients</p>
|
| 179 |
+
<p class="text-2xl font-bold text-gray-900 mt-1">142</p>
|
| 180 |
+
<p class="text-sm text-gray-500 mt-1">+12% from last month</p>
|
| 181 |
+
</div>
|
| 182 |
+
<div class="performance-indicator performance-good"></div>
|
| 183 |
+
</div>
|
| 184 |
+
<div class="mt-4 h-2 bg-gray-200 rounded-full">
|
| 185 |
+
<div class="h-2 bg-green-500 rounded-full" style="width: 75%"></div>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
+
|
| 189 |
+
<!-- Total MRR -->
|
| 190 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow">
|
| 191 |
+
<div class="flex justify-between items-start">
|
| 192 |
+
<div>
|
| 193 |
+
<p class="text-sm font-medium text-gray-500">Total MRR</p>
|
| 194 |
+
<p class="text-2xl font-bold text-gray-900 mt-1">$42,850</p>
|
| 195 |
+
<p class="text-sm text-gray-500 mt-1">+8% from last month</p>
|
| 196 |
+
</div>
|
| 197 |
+
<div class="performance-indicator performance-warning"></div>
|
| 198 |
+
</div>
|
| 199 |
+
<div class="mt-4 h-2 bg-gray-200 rounded-full">
|
| 200 |
+
<div class="h-2 bg-yellow-500 rounded-full" style="width: 60%"></div>
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
|
| 204 |
+
<!-- Total Leads -->
|
| 205 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow">
|
| 206 |
+
<div class="flex justify-between items-start">
|
| 207 |
+
<div>
|
| 208 |
+
<p class="text-sm font-medium text-gray-500">Total Leads</p>
|
| 209 |
+
<p class="text-2xl font-bold text-gray-900 mt-1">3,245</p>
|
| 210 |
+
<p class="text-sm text-gray-500 mt-1">+15% from last month</p>
|
| 211 |
+
</div>
|
| 212 |
+
<div class="performance-indicator performance-good"></div>
|
| 213 |
+
</div>
|
| 214 |
+
<div class="mt-4 h-2 bg-gray-200 rounded-full">
|
| 215 |
+
<div class="h-2 bg-green-500 rounded-full" style="width: 85%"></div>
|
| 216 |
+
</div>
|
| 217 |
+
</div>
|
| 218 |
+
|
| 219 |
+
<!-- Total Bookings -->
|
| 220 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow">
|
| 221 |
+
<div class="flex justify-between items-start">
|
| 222 |
+
<div>
|
| 223 |
+
<p class="text-sm font-medium text-gray-500">Total Bookings</p>
|
| 224 |
+
<p class="text-2xl font-bold text-gray-900 mt-1">872</p>
|
| 225 |
+
<p class="text-sm text-gray-500 mt-1">+5% from last month</p>
|
| 226 |
+
</div>
|
| 227 |
+
<div class="performance-indicator performance-warning"></div>
|
| 228 |
+
</div>
|
| 229 |
+
<div class="mt-4 h-2 bg-gray-200 rounded-full">
|
| 230 |
+
<div class="h-2 bg-yellow-500 rounded-full" style="width: 55%"></div>
|
| 231 |
+
</div>
|
| 232 |
+
</div>
|
| 233 |
+
|
| 234 |
+
<!-- Overall Conversion Rate -->
|
| 235 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow">
|
| 236 |
+
<div class="flex justify-between items-start">
|
| 237 |
+
<div>
|
| 238 |
+
<p class="text-sm font-medium text-gray-500">Conversion Rate</p>
|
| 239 |
+
<p class="text-2xl font-bold text-gray-900 mt-1">26.8%</p>
|
| 240 |
+
<p class="text-sm text-gray-500 mt-1">-2% from last month</p>
|
| 241 |
+
</div>
|
| 242 |
+
<div class="performance-indicator performance-critical"></div>
|
| 243 |
+
</div>
|
| 244 |
+
<div class="mt-4 h-2 bg-gray-200 rounded-full">
|
| 245 |
+
<div class="h-2 bg-red-500 rounded-full" style="width: 45%"></div>
|
| 246 |
+
</div>
|
| 247 |
+
</div>
|
| 248 |
+
</div>
|
| 249 |
+
</div>
|
| 250 |
+
|
| 251 |
+
<!-- Tabs Navigation -->
|
| 252 |
+
<div class="border-b border-gray-200 mb-6">
|
| 253 |
+
<nav class="-mb-px flex space-x-8 overflow-x-auto custom-scrollbar">
|
| 254 |
+
<button class="tab-active whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">
|
| 255 |
+
Lead & Appointment Metrics
|
| 256 |
+
</button>
|
| 257 |
+
<button class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300">
|
| 258 |
+
Pipeline Metrics
|
| 259 |
+
</button>
|
| 260 |
+
<button class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300">
|
| 261 |
+
Client Retention
|
| 262 |
+
</button>
|
| 263 |
+
<button class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300">
|
| 264 |
+
Ad Performance
|
| 265 |
+
</button>
|
| 266 |
+
<button class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300">
|
| 267 |
+
Automation Health
|
| 268 |
+
</button>
|
| 269 |
+
<button class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300">
|
| 270 |
+
Operational Metrics
|
| 271 |
+
</button>
|
| 272 |
+
</nav>
|
| 273 |
+
</div>
|
| 274 |
+
|
| 275 |
+
<!-- Lead & Appointment Metrics -->
|
| 276 |
+
<div id="lead-metrics" class="mb-8">
|
| 277 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 278 |
+
<!-- New Leads Chart -->
|
| 279 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow col-span-1">
|
| 280 |
+
<div class="flex justify-between items-center mb-4">
|
| 281 |
+
<h3 class="text-lg font-medium text-gray-900">New Leads</h3>
|
| 282 |
+
<div class="flex space-x-2">
|
| 283 |
+
<button class="px-2 py-1 text-xs bg-blue-100 text-blue-800 rounded">Day</button>
|
| 284 |
+
<button class="px-2 py-1 text-xs bg-gray-100 text-gray-800 rounded">Week</button>
|
| 285 |
+
<button class="px-2 py-1 text-xs bg-gray-100 text-gray-800 rounded">Month</button>
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
<canvas id="newLeadsChart" height="200"></canvas>
|
| 289 |
+
</div>
|
| 290 |
+
|
| 291 |
+
<!-- Leads by Source -->
|
| 292 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow col-span-1">
|
| 293 |
+
<h3 class="text-lg font-medium text-gray-900 mb-4">Leads by Source</h3>
|
| 294 |
+
<canvas id="leadsBySourceChart" height="200"></canvas>
|
| 295 |
+
</div>
|
| 296 |
+
|
| 297 |
+
<!-- Appointment Metrics -->
|
| 298 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow col-span-1">
|
| 299 |
+
<h3 class="text-lg font-medium text-gray-900 mb-4">Appointment Metrics</h3>
|
| 300 |
+
<div class="space-y-4">
|
| 301 |
+
<div>
|
| 302 |
+
<div class="flex justify-between mb-1">
|
| 303 |
+
<span class="text-sm font-medium text-gray-700">Confirmed</span>
|
| 304 |
+
<span class="text-sm font-medium text-gray-700">78%</span>
|
| 305 |
+
</div>
|
| 306 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 307 |
+
<div class="bg-green-500 h-2.5 rounded-full" style="width: 78%"></div>
|
| 308 |
+
</div>
|
| 309 |
+
</div>
|
| 310 |
+
<div>
|
| 311 |
+
<div class="flex justify-between mb-1">
|
| 312 |
+
<span class="text-sm font-medium text-gray-700">Showed</span>
|
| 313 |
+
<span class="text-sm font-medium text-gray-700">62%</span>
|
| 314 |
+
</div>
|
| 315 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 316 |
+
<div class="bg-blue-500 h-2.5 rounded-full" style="width: 62%"></div>
|
| 317 |
+
</div>
|
| 318 |
+
</div>
|
| 319 |
+
<div>
|
| 320 |
+
<div class="flex justify-between mb-1">
|
| 321 |
+
<span class="text-sm font-medium text-gray-700">No-Shows</span>
|
| 322 |
+
<span class="text-sm font-medium text-gray-700">16%</span>
|
| 323 |
+
</div>
|
| 324 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 325 |
+
<div class="bg-red-500 h-2.5 rounded-full" style="width: 16%"></div>
|
| 326 |
+
</div>
|
| 327 |
+
</div>
|
| 328 |
+
</div>
|
| 329 |
+
<div class="mt-6 grid grid-cols-2 gap-4">
|
| 330 |
+
<div class="bg-gray-50 p-3 rounded-lg">
|
| 331 |
+
<p class="text-sm text-gray-500">Avg Time to First Contact</p>
|
| 332 |
+
<p class="text-lg font-bold">2.4 hrs</p>
|
| 333 |
+
</div>
|
| 334 |
+
<div class="bg-gray-50 p-3 rounded-lg">
|
| 335 |
+
<p class="text-sm text-gray-500">Lead-to-Booking Time</p>
|
| 336 |
+
<p class="text-lg font-bold">3.2 days</p>
|
| 337 |
+
</div>
|
| 338 |
+
</div>
|
| 339 |
+
</div>
|
| 340 |
+
</div>
|
| 341 |
+
|
| 342 |
+
<!-- Top & Bottom Performers -->
|
| 343 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mt-6">
|
| 344 |
+
<!-- Top Performers -->
|
| 345 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow">
|
| 346 |
+
<h3 class="text-lg font-medium text-gray-900 mb-4">Top Performing Subaccounts</h3>
|
| 347 |
+
<div class="space-y-3">
|
| 348 |
+
<div class="flex items-center justify-between p-2 bg-green-50 rounded">
|
| 349 |
+
<div class="flex items-center">
|
| 350 |
+
<div class="bg-green-100 text-green-800 p-2 rounded-full mr-3">
|
| 351 |
+
<i class="fas fa-trophy"></i>
|
| 352 |
+
</div>
|
| 353 |
+
<div>
|
| 354 |
+
<p class="font-medium">BrowConnector NYC</p>
|
| 355 |
+
<p class="text-sm text-gray-500">Conversion: 34.2%</p>
|
| 356 |
+
</div>
|
| 357 |
+
</div>
|
| 358 |
+
<span class="text-green-800 font-bold">+12%</span>
|
| 359 |
+
</div>
|
| 360 |
+
<div class="flex items-center justify-between p-2 bg-green-50 rounded">
|
| 361 |
+
<div class="flex items-center">
|
| 362 |
+
<div class="bg-green-100 text-green-800 p-2 rounded-full mr-3">
|
| 363 |
+
<i class="fas fa-medal"></i>
|
| 364 |
+
</div>
|
| 365 |
+
<div>
|
| 366 |
+
<p class="font-medium">LashConnector LA</p>
|
| 367 |
+
<p class="text-sm text-gray-500">Conversion: 30.8%</p>
|
| 368 |
+
</div>
|
| 369 |
+
</div>
|
| 370 |
+
<span class="text-green-800 font-bold">+8%</span>
|
| 371 |
+
</div>
|
| 372 |
+
<div class="flex items-center justify-between p-2 bg-green-50 rounded">
|
| 373 |
+
<div class="flex items-center">
|
| 374 |
+
<div class="bg-green-100 text-green-800 p-2 rounded-full mr-3">
|
| 375 |
+
<i class="fas fa-award"></i>
|
| 376 |
+
</div>
|
| 377 |
+
<div>
|
| 378 |
+
<p class="font-medium">LipConnector Miami</p>
|
| 379 |
+
<p class="text-sm text-gray-500">Conversion: 28.5%</p>
|
| 380 |
+
</div>
|
| 381 |
+
</div>
|
| 382 |
+
<span class="text-green-800 font-bold">+5%</span>
|
| 383 |
+
</div>
|
| 384 |
+
</div>
|
| 385 |
+
</div>
|
| 386 |
+
|
| 387 |
+
<!-- Bottom Performers -->
|
| 388 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow">
|
| 389 |
+
<h3 class="text-lg font-medium text-gray-900 mb-4">Underperforming Subaccounts</h3>
|
| 390 |
+
<div class="space-y-3">
|
| 391 |
+
<div class="flex items-center justify-between p-2 bg-red-50 rounded">
|
| 392 |
+
<div class="flex items-center">
|
| 393 |
+
<div class="bg-red-100 text-red-800 p-2 rounded-full mr-3">
|
| 394 |
+
<i class="fas fa-exclamation-triangle"></i>
|
| 395 |
+
</div>
|
| 396 |
+
<div>
|
| 397 |
+
<p class="font-medium">BeautyConnector Chicago</p>
|
| 398 |
+
<p class="text-sm text-gray-500">No-Show: 28%</p>
|
| 399 |
+
</div>
|
| 400 |
+
</div>
|
| 401 |
+
<span class="text-red-800 font-bold">-15%</span>
|
| 402 |
+
</div>
|
| 403 |
+
<div class="flex items-center justify-between p-2 bg-red-50 rounded">
|
| 404 |
+
<div class="flex items-center">
|
| 405 |
+
<div class="bg-red-100 text-red-800 p-2 rounded-full mr-3">
|
| 406 |
+
<i class="fas fa-exclamation-circle"></i>
|
| 407 |
+
</div>
|
| 408 |
+
<div>
|
| 409 |
+
<p class="font-medium">BrowConnector Dallas</p>
|
| 410 |
+
<p class="text-sm text-gray-500">Stale Leads: 42%</p>
|
| 411 |
+
</div>
|
| 412 |
+
</div>
|
| 413 |
+
<span class="text-red-800 font-bold">-12%</span>
|
| 414 |
+
</div>
|
| 415 |
+
<div class="flex items-center justify-between p-2 bg-red-50 rounded">
|
| 416 |
+
<div class="flex items-center">
|
| 417 |
+
<div class="bg-red-100 text-red-800 p-2 rounded-full mr-3">
|
| 418 |
+
<i class="fas fa-flag"></i>
|
| 419 |
+
</div>
|
| 420 |
+
<div>
|
| 421 |
+
<p class="font-medium">LashConnector Houston</p>
|
| 422 |
+
<p class="text-sm text-gray-500">Conversion: 18.2%</p>
|
| 423 |
+
</div>
|
| 424 |
+
</div>
|
| 425 |
+
<span class="text-red-800 font-bold">-9%</span>
|
| 426 |
+
</div>
|
| 427 |
+
</div>
|
| 428 |
+
</div>
|
| 429 |
+
</div>
|
| 430 |
+
|
| 431 |
+
<!-- Funnel Visualization -->
|
| 432 |
+
<div class="mt-6">
|
| 433 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow">
|
| 434 |
+
<h3 class="text-lg font-medium text-gray-900 mb-4">Lead Conversion Funnel</h3>
|
| 435 |
+
<div class="funnel-container">
|
| 436 |
+
<div class="funnel-step">
|
| 437 |
+
<div class="flex justify-between mb-1">
|
| 438 |
+
<span class="text-sm font-medium text-gray-700">Opt-in Leads</span>
|
| 439 |
+
<span class="text-sm font-medium text-gray-700">1,245</span>
|
| 440 |
+
</div>
|
| 441 |
+
<div class="funnel-bar bg-blue-600" style="width: 100%">
|
| 442 |
+
<span>100%</span>
|
| 443 |
+
</div>
|
| 444 |
+
</div>
|
| 445 |
+
<div class="funnel-step">
|
| 446 |
+
<div class="flex justify-between mb-1">
|
| 447 |
+
<span class="text-sm font-medium text-gray-700">Booked Appointments</span>
|
| 448 |
+
<span class="text-sm font-medium text-gray-700">872</span>
|
| 449 |
+
</div>
|
| 450 |
+
<div class="funnel-bar bg-blue-500" style="width: 70%">
|
| 451 |
+
<span>70%</span>
|
| 452 |
+
</div>
|
| 453 |
+
</div>
|
| 454 |
+
<div class="funnel-step">
|
| 455 |
+
<div class="flex justify-between mb-1">
|
| 456 |
+
<span class="text-sm font-medium text-gray-700">Showed Appointments</span>
|
| 457 |
+
<span class="text-sm font-medium text-gray-700">540</span>
|
| 458 |
+
</div>
|
| 459 |
+
<div class="funnel-bar bg-blue-400" style="width: 43%">
|
| 460 |
+
<span>43%</span>
|
| 461 |
+
</div>
|
| 462 |
+
</div>
|
| 463 |
+
<div class="funnel-step">
|
| 464 |
+
<div class="flex justify-between mb-1">
|
| 465 |
+
<span class="text-sm font-medium text-gray-700">Closed Sales</span>
|
| 466 |
+
<span class="text-sm font-medium text-gray-700">334</span>
|
| 467 |
+
</div>
|
| 468 |
+
<div class="funnel-bar bg-blue-300" style="width: 27%">
|
| 469 |
+
<span>27%</span>
|
| 470 |
+
</div>
|
| 471 |
+
</div>
|
| 472 |
+
</div>
|
| 473 |
+
</div>
|
| 474 |
+
</div>
|
| 475 |
+
</div>
|
| 476 |
+
|
| 477 |
+
<!-- Heatmap Section -->
|
| 478 |
+
<div class="mt-8">
|
| 479 |
+
<div class="dashboard-card bg-white p-4 rounded-lg shadow">
|
| 480 |
+
<h3 class="text-lg font-medium text-gray-900 mb-4">Appointment Heatmap by Day/Hour</h3>
|
| 481 |
+
<div class="overflow-x-auto">
|
| 482 |
+
<table class="min-w-full">
|
| 483 |
+
<thead>
|
| 484 |
+
<tr>
|
| 485 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Hour</th>
|
| 486 |
+
<th class="px-4 py-2 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Mon</th>
|
| 487 |
+
<th class="px-4 py-2 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Tue</th>
|
| 488 |
+
<th class="px-4 py-2 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Wed</th>
|
| 489 |
+
<th class="px-4 py-2 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Thu</th>
|
| 490 |
+
<th class="px-4 py-2 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Fri</th>
|
| 491 |
+
<th class="px-4 py-2 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Sat</th>
|
| 492 |
+
<th class="px-4 py-2 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Sun</th>
|
| 493 |
+
</tr>
|
| 494 |
+
</thead>
|
| 495 |
+
<tbody class="divide-y divide-gray-200">
|
| 496 |
+
<!-- Sample heatmap data -->
|
| 497 |
+
<tr>
|
| 498 |
+
<td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">9 AM</td>
|
| 499 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-100">12</div></td>
|
| 500 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-200">18</div></td>
|
| 501 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-100">14</div></td>
|
| 502 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-300">22</div></td>
|
| 503 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-100">16</div></td>
|
| 504 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-gray-100">4</div></td>
|
| 505 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-gray-100">2</div></td>
|
| 506 |
+
</tr>
|
| 507 |
+
<tr>
|
| 508 |
+
<td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">10 AM</td>
|
| 509 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-300">24</div></td>
|
| 510 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-400">32</div></td>
|
| 511 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-300">26</div></td>
|
| 512 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-500">38</div></td>
|
| 513 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-300">28</div></td>
|
| 514 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-100">12</div></td>
|
| 515 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-gray-100">6</div></td>
|
| 516 |
+
</tr>
|
| 517 |
+
<tr>
|
| 518 |
+
<td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">11 AM</td>
|
| 519 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-400">34</div></td>
|
| 520 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-500">42</div></td>
|
| 521 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-400">36</div></td>
|
| 522 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-600">48</div></td>
|
| 523 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-400">38</div></td>
|
| 524 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-200">20</div></td>
|
| 525 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-100">10</div></td>
|
| 526 |
+
</tr>
|
| 527 |
+
<tr>
|
| 528 |
+
<td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">12 PM</td>
|
| 529 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-500">40</div></td>
|
| 530 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-600">52</div></td>
|
| 531 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-500">44</div></td>
|
| 532 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-700">58</div></td>
|
| 533 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-500">46</div></td>
|
| 534 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-300">28</div></td>
|
| 535 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-100">14</div></td>
|
| 536 |
+
</tr>
|
| 537 |
+
<tr>
|
| 538 |
+
<td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">1 PM</td>
|
| 539 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-400">32</div></td>
|
| 540 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-500">42</div></td>
|
| 541 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-400">34</div></td>
|
| 542 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-600">48</div></td>
|
| 543 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-400">36</div></td>
|
| 544 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-200">22</div></td>
|
| 545 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-100">12</div></td>
|
| 546 |
+
</tr>
|
| 547 |
+
<tr>
|
| 548 |
+
<td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">2 PM</td>
|
| 549 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-300">26</div></td>
|
| 550 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-400">34</div></td>
|
| 551 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-300">28</div></td>
|
| 552 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-500">38</div></td>
|
| 553 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-300">30</div></td>
|
| 554 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-green-100">18</div></td>
|
| 555 |
+
<td class="px-4 py-2 whitespace-nowrap text-center"><div class="heatmap-cell bg-gray-100">8</div></td>
|
| 556 |
+
</tr>
|
| 557 |
+
</tbody>
|
| 558 |
+
</table>
|
| 559 |
+
</div>
|
| 560 |
+
</div>
|
| 561 |
+
</div>
|
| 562 |
+
</main>
|
| 563 |
+
</div>
|
| 564 |
+
|
| 565 |
+
<script>
|
| 566 |
+
// Initialize charts
|
| 567 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 568 |
+
// New Leads Chart
|
| 569 |
+
const newLeadsCtx = document.getElementById('newLeadsChart').getContext('2d');
|
| 570 |
+
const newLeadsChart = new Chart(newLeadsCtx, {
|
| 571 |
+
type: 'line',
|
| 572 |
+
data: {
|
| 573 |
+
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
| 574 |
+
datasets: [{
|
| 575 |
+
label: 'New Leads',
|
| 576 |
+
data: [45, 72, 68, 85, 62, 38, 22],
|
| 577 |
+
backgroundColor: 'rgba(59, 130, 246, 0.2)',
|
| 578 |
+
borderColor: 'rgba(59, 130, 246, 1)',
|
| 579 |
+
borderWidth: 2,
|
| 580 |
+
tension: 0.4,
|
| 581 |
+
fill: true
|
| 582 |
+
}]
|
| 583 |
+
},
|
| 584 |
+
options: {
|
| 585 |
+
responsive: true,
|
| 586 |
+
plugins: {
|
| 587 |
+
legend: {
|
| 588 |
+
display: false
|
| 589 |
+
}
|
| 590 |
+
},
|
| 591 |
+
scales: {
|
| 592 |
+
y: {
|
| 593 |
+
beginAtZero: true
|
| 594 |
+
}
|
| 595 |
+
}
|
| 596 |
+
}
|
| 597 |
+
});
|
| 598 |
+
|
| 599 |
+
// Leads by Source Chart
|
| 600 |
+
const leadsBySourceCtx = document.getElementById('leadsBySourceChart').getContext('2d');
|
| 601 |
+
const leadsBySourceChart = new Chart(leadsBySourceCtx, {
|
| 602 |
+
type: 'doughnut',
|
| 603 |
+
data: {
|
| 604 |
+
labels: ['Facebook', 'Instagram', 'Website', 'Referrals', 'Google'],
|
| 605 |
+
datasets: [{
|
| 606 |
+
data: [35, 25, 20, 15, 5],
|
| 607 |
+
backgroundColor: [
|
| 608 |
+
'rgba(59, 130, 246, 0.7)',
|
| 609 |
+
'rgba(236, 72, 153, 0.7)',
|
| 610 |
+
'rgba(16, 185, 129, 0.7)',
|
| 611 |
+
'rgba(245, 158, 11, 0.7)',
|
| 612 |
+
'rgba(99, 102, 241, 0.7)'
|
| 613 |
+
],
|
| 614 |
+
borderWidth: 0
|
| 615 |
+
}]
|
| 616 |
+
},
|
| 617 |
+
options: {
|
| 618 |
+
responsive: true,
|
| 619 |
+
plugins: {
|
| 620 |
+
legend: {
|
| 621 |
+
position: 'right',
|
| 622 |
+
}
|
| 623 |
+
},
|
| 624 |
+
cutout: '70%'
|
| 625 |
+
}
|
| 626 |
+
});
|
| 627 |
+
|
| 628 |
+
// Refresh button functionality
|
| 629 |
+
document.getElementById('refresh-btn').addEventListener('click', function() {
|
| 630 |
+
// Simulate data refresh
|
| 631 |
+
const now = new Date();
|
| 632 |
+
document.getElementById('last-updated').textContent = 'Last updated: ' + now.toLocaleTimeString();
|
| 633 |
+
|
| 634 |
+
// Add loading animation
|
| 635 |
+
this.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Refreshing...';
|
| 636 |
+
setTimeout(() => {
|
| 637 |
+
this.innerHTML = '<i class="fas fa-sync-alt mr-2"></i> Refresh Data';
|
| 638 |
+
}, 1000);
|
| 639 |
+
});
|
| 640 |
+
|
| 641 |
+
// Tab switching functionality
|
| 642 |
+
const tabs = document.querySelectorAll('[id^="tab-"]');
|
| 643 |
+
tabs.forEach(tab => {
|
| 644 |
+
tab.addEventListener('click', function() {
|
| 645 |
+
// Remove active class from all tabs
|
| 646 |
+
document.querySelectorAll('[id^="tab-"]').forEach(t => {
|
| 647 |
+
t.classList.remove('tab-active');
|
| 648 |
+
t.classList.add('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
|
| 649 |
+
});
|
| 650 |
+
|
| 651 |
+
// Add active class to clicked tab
|
| 652 |
+
this.classList.add('tab-active');
|
| 653 |
+
this.classList.remove('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
|
| 654 |
+
|
| 655 |
+
// Here you would show/hide the corresponding content sections
|
| 656 |
+
});
|
| 657 |
+
});
|
| 658 |
+
});
|
| 659 |
+
</script>
|
| 660 |
+
<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=elevateandautomate/error" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 661 |
+
</html>
|