Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Flowtrix - Admin Dashboard</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <div class="flex h-screen"> | |
| <!-- Sidebar --> | |
| <div class="sidebar w-64 bg-indigo-800 text-white p-4 hidden md:block"> | |
| <div class="flex items-center space-x-2 mb-8"> | |
| <i data-feather="zap" class="text-yellow-300"></i> | |
| <span class="text-xl font-bold">Flowtrix</span> | |
| </div> | |
| <nav> | |
| <div class="mb-6"> | |
| <h3 class="text-xs uppercase text-indigo-300 mb-3">Main</h3> | |
| <a href="#" class="flex items-center space-x-2 py-2 px-3 rounded-lg bg-indigo-700 mb-2"> | |
| <i data-feather="home" class="w-4"></i> | |
| <span>Dashboard</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-2 py-2 px-3 rounded-lg hover:bg-indigo-700 mb-2"> | |
| <i data-feather="users" class="w-4"></i> | |
| <span>Customers</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-2 py-2 px-3 rounded-lg hover:bg-indigo-700 mb-2"> | |
| <i data-feather="cpu" class="w-4"></i> | |
| <span>AI Agents</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-2 py-2 px-3 rounded-lg hover:bg-indigo-700 mb-2"> | |
| <i data-feather="phone" class="w-4"></i> | |
| <span>Calls</span> | |
| </a> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-xs uppercase text-indigo-300 mb-3">Billing</h3> | |
| <a href="#" class="flex items-center space-x-2 py-2 px-3 rounded-lg hover:bg-indigo-700 mb-2"> | |
| <i data-feather="credit-card" class="w-4"></i> | |
| <span>Subscriptions</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-2 py-2 px-3 rounded-lg hover:bg-indigo-700 mb-2"> | |
| <i data-feather="dollar-sign" class="w-4"></i> | |
| <span>Payments</span> | |
| </a> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-xs uppercase text-indigo-300 mb-3">Settings</h3> | |
| <a href="#" class="flex items-center space-x-2 py-2 px-3 rounded-lg hover:bg-indigo-700 mb-2"> | |
| <i data-feather="settings" class="w-4"></i> | |
| <span>Configuration</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-2 py-2 px-3 rounded-lg hover:bg-indigo-700 mb-2"> | |
| <i data-feather="shield" class="w-4"></i> | |
| <span>API Keys</span> | |
| </a> | |
| </div> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 overflow-auto"> | |
| <!-- Top Navigation --> | |
| <header class="bg-white shadow-sm p-4 flex justify-between items-center"> | |
| <div class="flex items-center space-x-4"> | |
| <button class="md:hidden"> | |
| <i data-feather="menu"></i> | |
| </button> | |
| <h1 class="text-xl font-semibold">Dashboard Overview</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button class="p-2 rounded-full hover:bg-gray-100"> | |
| <i data-feather="bell"></i> | |
| </button> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center"> | |
| <i data-feather="user" class="text-indigo-600"></i> | |
| </div> | |
| <span class="hidden md:inline">Admin</span> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Dashboard Content --> | |
| <main class="p-6"> | |
| <!-- Stats Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> | |
| <div class="card-hover bg-white p-6 rounded-lg shadow"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <p class="text-gray-500 text-sm">Active Customers</p> | |
| <h3 class="text-2xl font-bold mt-1">143</h3> | |
| <p class="text-green-500 text-sm mt-2 flex items-center"> | |
| <i data-feather="trending-up" class="w-4 mr-1"></i> | |
| <span>12% from last month</span> | |
| </p> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-blue-50 flex items-center justify-center"> | |
| <i data-feather="users" class="text-blue-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="card-hover bg-white p-6 rounded-lg shadow"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <p class="text-gray-500 text-sm">AI Agents</p> | |
| <h3 class="text-2xl font-bold mt-1">215</h3> | |
| <p class="text-green-500 text-sm mt-2 flex items-center"> | |
| <i data-feather="trending-up" class="w-4 mr-1"></i> | |
| <span>8 new this week</span> | |
| </p> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-purple-50 flex items-center justify-center"> | |
| <i data-feather="cpu" class="text-purple-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="card-hover bg-white p-6 rounded-lg shadow"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <p class="text-gray-500 text-sm">Calls Today</p> | |
| <h3 class="text-2xl font-bold mt-1">648</h3> | |
| <p class="text-red-500 text-sm mt-2 flex items-center"> | |
| <i data-feather="trending-down" class="w-4 mr-1"></i> | |
| <span>4% from yesterday</span> | |
| </p> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-green-50 flex items-center justify-center"> | |
| <i data-feather="phone" class="text-green-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="card-hover bg-white p-6 rounded-lg shadow"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <p class="text-gray-500 text-sm">Monthly Revenue</p> | |
| <h3 class="text-2xl font-bold mt-1">€4,385</h3> | |
| <p class="text-green-500 text-sm mt-2 flex items-center"> | |
| <i data-feather="trending-up" class="w-4 mr-1"></i> | |
| <span>18% from last month</span> | |
| </p> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-yellow-50 flex items-center justify-center"> | |
| <i data-feather="dollar-sign" class="text-yellow-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Activity --> | |
| <div class="bg-white rounded-lg shadow p-6 mb-8"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-lg font-semibold">Recent Calls</h2> | |
| <button class="text-sm text-indigo-600 hover:text-indigo-800">View All</button> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Agent</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Customer</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Duration</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Intent</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap">Kapper NL - Jan</td> | |
| <td class="px-6 py-4 whitespace-nowrap">Lisa M.</td> | |
| <td class="px-6 py-4 whitespace-nowrap">2:45</td> | |
| <td class="px-6 py-4 whitespace-nowrap">Appointment</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap">Restaurant DE - Anna</td> | |
| <td class="px-6 py-4 whitespace-nowrap">Thomas B.</td> | |
| <td class="px-6 py-4 whitespace-nowrap">1:32</td> | |
| <td class="px-6 py-4 whitespace-nowrap">Reservation</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap">Hotel NL - Emma</td> | |
| <td class="px-6 py-4 whitespace-nowrap">Sarah K.</td> | |
| <td class="px-6 py-4 whitespace-nowrap">4:12</td> | |
| <td class="px-6 py-4 whitespace-nowrap">Check-in</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| <!-- Quick Actions --> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <div class="card-hover bg-white rounded-lg shadow p-6"> | |
| <h3 class="font-medium mb-4">Create New Agent</h3> | |
| <p class="text-sm text-gray-500 mb-4">Quickly generate a new AI agent for a customer.</p> | |
| <button class="w-full bg-indigo-600 hover:bg-indigo-700 text-white py-2 px-4 rounded-lg text-sm flex items-center justify-center"> | |
| <i data-feather="plus" class="w-4 mr-2"></i> | |
| New Agent | |
| </button> | |
| </div> | |
| <div class="card-hover bg-white rounded-lg shadow p-6"> | |
| <h3 class="font-medium mb-4">View API Documentation</h3> | |
| <p class="text-sm text-gray-500 mb-4">Integration guides and API reference for developers.</p> | |
| <button class="w-full border border-indigo-600 text-indigo-600 hover:bg-indigo-50 py-2 px-4 rounded-lg text-sm flex items-center justify-center"> | |
| <i data-feather="code" class="w-4 mr-2"></i> | |
| API Docs | |
| </button> | |
| </div> | |
| <div class="card-hover bg-white rounded-lg shadow p-6"> | |
| <h3 class="font-medium mb-4">System Status</h3> | |
| <p class="text-sm text-gray-500 mb-4">All systems operational. Last checked 5 minutes ago.</p> | |
| <div class="flex items-center"> | |
| <span class="h-2 w-2 rounded-full bg-green-500 mr-2"></span> | |
| <span class="text-sm">No issues reported</span> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> |