Spaces:
Running
Running
Download index.html from poluser/cost-tracking-test: direct link, hf CLI and curl.
- Browser
- Download file 37.4 kB
-
https://huggingface.co/spaces/poluser/cost-tracking-test/resolve/main/index.html
- Command line
-
hf download hf://spaces/poluser/cost-tracking-test/index.html
-
curl -L -o index.html https://huggingface.co/spaces/poluser/cost-tracking-test/resolve/main/index.html
37.4 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ConstructTrack - Construction Project Cost Tracker</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .sidebar { | |
| transition: all 0.3s; | |
| } | |
| .sidebar.collapsed { | |
| width: 80px; | |
| } | |
| .sidebar.collapsed .nav-text { | |
| display: none; | |
| } | |
| .sidebar.collapsed .logo-text { | |
| display: none; | |
| } | |
| .main-content { | |
| transition: all 0.3s; | |
| } | |
| .sidebar.collapsed + .main-content { | |
| margin-left: 80px; | |
| } | |
| .progress-bar { | |
| transition: width 0.6s ease; | |
| } | |
| .chart-container { | |
| position: relative; | |
| height: 300px; | |
| width: 100%; | |
| } | |
| .custom-scrollbar::-webkit-scrollbar { | |
| width: 6px; | |
| height: 6px; | |
| } | |
| .custom-scrollbar::-webkit-scrollbar-track { | |
| background: #f1f1f1; | |
| } | |
| .custom-scrollbar::-webkit-scrollbar-thumb { | |
| background: #888; | |
| border-radius: 3px; | |
| } | |
| .custom-scrollbar::-webkit-scrollbar-thumb:hover { | |
| background: #555; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar bg-blue-800 text-white w-64 flex flex-col"> | |
| <div class="p-4 flex items-center justify-between border-b border-blue-700"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-hard-hat text-2xl mr-3"></i> | |
| <span class="logo-text text-xl font-bold">ConstructTrack</span> | |
| </div> | |
| <button id="toggleSidebar" class="text-white focus:outline-none"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| <div class="p-4 border-b border-blue-700"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center"> | |
| <i class="fas fa-user"></i> | |
| </div> | |
| <div class="ml-3 nav-text"> | |
| <div class="font-medium">Project Manager</div> | |
| <div class="text-xs text-blue-200">Admin</div> | |
| </div> | |
| </div> | |
| </div> | |
| <nav class="flex-1 overflow-y-auto"> | |
| <div class="p-2"> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-tachometer-alt mr-3"></i> | |
| <span class="nav-text">Dashboard</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-project-diagram mr-3"></i> | |
| <span class="nav-text">Projects</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-dollar-sign mr-3"></i> | |
| <span class="nav-text">Cost Tracking</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-chart-bar mr-3"></i> | |
| <span class="nav-text">Reports</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-users mr-3"></i> | |
| <span class="nav-text">Contractors</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-truck mr-3"></i> | |
| <span class="nav-text">Materials</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-calendar-alt mr-3"></i> | |
| <span class="nav-text">Schedule</span> | |
| </a> | |
| </div> | |
| <div class="p-2 border-t border-blue-700"> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-cog mr-3"></i> | |
| <span class="nav-text">Settings</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-sign-out-alt mr-3"></i> | |
| <span class="nav-text">Logout</span> | |
| </a> | |
| </div> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="main-content flex-1 overflow-auto"> | |
| <header class="bg-white shadow-sm p-4 flex justify-between items-center"> | |
| <h1 class="text-2xl font-bold text-gray-800">Project Dashboard</h1> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <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"> | |
| <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> | |
| </div> | |
| <button class="p-2 rounded-full hover:bg-gray-100"> | |
| <i class="fas fa-bell text-gray-600"></i> | |
| <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span> | |
| </button> | |
| </div> | |
| </header> | |
| <main class="p-6"> | |
| <!-- Project Overview --> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-6"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-500">Total Budget</p> | |
| <h3 class="text-2xl font-bold">$1,250,000</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-600"> | |
| <i class="fas fa-wallet text-xl"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex justify-between text-sm text-gray-500 mb-1"> | |
| <span>Spent</span> | |
| <span>$875,000 (70%)</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-600 h-2 rounded-full progress-bar" style="width: 70%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-500">Project Progress</p> | |
| <h3 class="text-2xl font-bold">65%</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-green-100 text-green-600"> | |
| <i class="fas fa-chart-line text-xl"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex justify-between text-sm text-gray-500 mb-1"> | |
| <span>Completion</span> | |
| <span>45 days remaining</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-green-500 h-2 rounded-full progress-bar" style="width: 65%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-500">Materials Cost</p> | |
| <h3 class="text-2xl font-bold">$520,000</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-orange-100 text-orange-600"> | |
| <i class="fas fa-boxes text-xl"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex justify-between text-sm text-gray-500 mb-1"> | |
| <span>Budget</span> | |
| <span>$600,000 (87%)</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-orange-500 h-2 rounded-full progress-bar" style="width: 87%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-500">Labor Cost</p> | |
| <h3 class="text-2xl font-bold">$355,000</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-purple-100 text-purple-600"> | |
| <i class="fas fa-users text-xl"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex justify-between text-sm text-gray-500 mb-1"> | |
| <span>Budget</span> | |
| <span>$450,000 (79%)</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-purple-500 h-2 rounded-full progress-bar" style="width: 79%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts Section --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="text-lg font-semibold">Cost Breakdown</h2> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 text-xs bg-blue-100 text-blue-600 rounded">Monthly</button> | |
| <button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded">Quarterly</button> | |
| <button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded">Yearly</button> | |
| </div> | |
| </div> | |
| <div class="chart-container"> | |
| <canvas id="costBreakdownChart"></canvas> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="text-lg font-semibold">Budget vs Actual</h2> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 text-xs bg-blue-100 text-blue-600 rounded">All</button> | |
| <button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded">Materials</button> | |
| <button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded">Labor</button> | |
| </div> | |
| </div> | |
| <div class="chart-container"> | |
| <canvas id="budgetVsActualChart"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Expenses & Project Timeline --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6"> | |
| <div class="bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="p-6 border-b"> | |
| <h2 class="text-lg font-semibold">Recent Expenses</h2> | |
| </div> | |
| <div class="overflow-x-auto custom-scrollbar"> | |
| <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">Date</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Category</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Vendor</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</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 text-sm text-gray-500">2023-06-15</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Concrete</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">ABC Suppliers</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$12,500</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">Paid</span> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-14</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Steel</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">MetalWorks Inc</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$18,750</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> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-12</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Labor</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">BuildRight Crew</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$32,000</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">Paid</span> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-10</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Electrical</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">PowerUp Electric</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$8,450</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Overdue</span> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-08</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Plumbing</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">PipeMasters LLC</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$6,800</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">Paid</span> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <div class="p-4 border-t flex justify-center"> | |
| <button class="text-blue-600 hover:text-blue-800 text-sm font-medium">View All Expenses</button> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="text-lg font-semibold">Project Timeline</h2> | |
| <button class="text-blue-600 hover:text-blue-800 text-sm font-medium">View Full Timeline</button> | |
| </div> | |
| <div class="space-y-4"> | |
| <div class="flex"> | |
| <div class="flex flex-col items-center mr-4"> | |
| <div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center"> | |
| <i class="fas fa-check text-white text-xs"></i> | |
| </div> | |
| <div class="w-px h-full bg-gray-300"></div> | |
| </div> | |
| <div class="pb-4"> | |
| <p class="text-sm text-gray-500">June 1, 2023</p> | |
| <h3 class="font-medium">Site Preparation Completed</h3> | |
| <p class="text-sm text-gray-500">All site clearing and preparation work finished on schedule</p> | |
| </div> | |
| </div> | |
| <div class="flex"> | |
| <div class="flex flex-col items-center mr-4"> | |
| <div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center"> | |
| <i class="fas fa-check text-white text-xs"></i> | |
| </div> | |
| <div class="w-px h-full bg-gray-300"></div> | |
| </div> | |
| <div class="pb-4"> | |
| <p class="text-sm text-gray-500">June 10, 2023</p> | |
| <h3 class="font-medium">Foundation Work Completed</h3> | |
| <p class="text-sm text-gray-500">Concrete pouring and foundation work finished</p> | |
| </div> | |
| </div> | |
| <div class="flex"> | |
| <div class="flex flex-col items-center mr-4"> | |
| <div class="w-6 h-6 rounded-full bg-blue-500 flex items-center justify-center"> | |
| <i class="fas fa-cog text-white text-xs"></i> | |
| </div> | |
| <div class="w-px h-full bg-gray-300"></div> | |
| </div> | |
| <div class="pb-4"> | |
| <p class="text-sm text-gray-500">June 15, 2023 - Current</p> | |
| <h3 class="font-medium">Framing in Progress</h3> | |
| <p class="text-sm text-gray-500">Structural framing 65% complete</p> | |
| </div> | |
| </div> | |
| <div class="flex"> | |
| <div class="flex flex-col items-center mr-4"> | |
| <div class="w-6 h-6 rounded-full bg-gray-300 flex items-center justify-center"> | |
| <i class="fas fa-clock text-gray-600 text-xs"></i> | |
| </div> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-500">July 5, 2023 - Upcoming</p> | |
| <h3 class="font-medium">Plumbing & Electrical</h3> | |
| <p class="text-sm text-gray-500">Scheduled to begin after framing completion</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Cost Categories & Quick Actions --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> | |
| <div class="bg-white rounded-lg shadow p-6 col-span-2"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="text-lg font-semibold">Cost Categories</h2> | |
| <button class="text-blue-600 hover:text-blue-800 text-sm font-medium">View Details</button> | |
| </div> | |
| <div class="grid grid-cols-2 md:grid-cols-3 gap-4"> | |
| <div class="border rounded-lg p-4 hover:shadow-md transition-shadow"> | |
| <div class="flex items-center mb-2"> | |
| <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-2"> | |
| <i class="fas fa-box text-blue-600"></i> | |
| </div> | |
| <h3 class="font-medium">Materials</h3> | |
| </div> | |
| <p class="text-gray-500 text-sm mb-2">$520,000 / $600,000</p> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-600 h-2 rounded-full" style="width: 87%"></div> | |
| </div> | |
| </div> | |
| <div class="border rounded-lg p-4 hover:shadow-md transition-shadow"> | |
| <div class="flex items-center mb-2"> | |
| <div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center mr-2"> | |
| <i class="fas fa-users text-green-600"></i> | |
| </div> | |
| <h3 class="font-medium">Labor</h3> | |
| </div> | |
| <p class="text-gray-500 text-sm mb-2">$355,000 / $450,000</p> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-green-500 h-2 rounded-full" style="width: 79%"></div> | |
| </div> | |
| </div> | |
| <div class="border rounded-lg p-4 hover:shadow-md transition-shadow"> | |
| <div class="flex items-center mb-2"> | |
| <div class="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center mr-2"> | |
| <i class="fas fa-tools text-purple-600"></i> | |
| </div> | |
| <h3 class="font-medium">Equipment</h3> | |
| </div> | |
| <p class="text-gray-500 text-sm mb-2">$78,500 / $100,000</p> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-purple-500 h-2 rounded-full" style="width: 78%"></div> | |
| </div> | |
| </div> | |
| <div class="border rounded-lg p-4 hover:shadow-md transition-shadow"> | |
| <div class="flex items-center mb-2"> | |
| <div class="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center mr-2"> | |
| <i class="fas fa-file-alt text-yellow-600"></i> | |
| </div> | |
| <h3 class="font-medium">Permits</h3> | |
| </div> | |
| <p class="text-gray-500 text-sm mb-2">$15,000 / $20,000</p> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-yellow-500 h-2 rounded-full" style="width: 75%"></div> | |
| </div> | |
| </div> | |
| <div class="border rounded-lg p-4 hover:shadow-md transition-shadow"> | |
| <div class="flex items-center mb-2"> | |
| <div class="w-8 h-8 rounded-full bg-red-100 flex items-center justify-center mr-2"> | |
| <i class="fas fa-shield-alt text-red-600"></i> | |
| </div> | |
| <h3 class="font-medium">Insurance</h3> | |
| </div> | |
| <p class="text-gray-500 text-sm mb-2">$12,500 / $15,000</p> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-red-500 h-2 rounded-full" style="width: 83%"></div> | |
| </div> | |
| </div> | |
| <div class="border rounded-lg p-4 hover:shadow-md transition-shadow"> | |
| <div class="flex items-center mb-2"> | |
| <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-2"> | |
| <i class="fas fa-ellipsis-h text-indigo-600"></i> | |
| </div> | |
| <h3 class="font-medium">Other</h3> | |
| </div> | |
| <p class="text-gray-500 text-sm mb-2">$8,000 / $10,000</p> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-indigo-500 h-2 rounded-full" style="width: 80%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="mb-4"> | |
| <h2 class="text-lg font-semibold">Quick Actions</h2> | |
| </div> | |
| <div class="space-y-3"> | |
| <button class="w-full flex items-center p-3 border rounded-lg hover:bg-blue-50 hover:border-blue-200 transition-colors"> | |
| <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3"> | |
| <i class="fas fa-plus text-blue-600"></i> | |
| </div> | |
| <span class="font-medium">Add New Expense</span> | |
| </button> | |
| <button class="w-full flex items-center p-3 border rounded-lg hover:bg-green-50 hover:border-green-200 transition-colors"> | |
| <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3"> | |
| <i class="fas fa-file-invoice-dollar text-green-600"></i> | |
| </div> | |
| <span class="font-medium">Create Invoice</span> | |
| </button> | |
| <button class="w-full flex items-center p-3 border rounded-lg hover:bg-purple-50 hover:border-purple-200 transition-colors"> | |
| <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3"> | |
| <i class="fas fa-chart-pie text-purple-600"></i> | |
| </div> | |
| <span class="font-medium">Generate Report</span> | |
| </button> | |
| <button class="w-full flex items-center p-3 border rounded-lg hover:bg-orange-50 hover:border-orange-200 transition-colors"> | |
| <div class="w-10 h-10 rounded-full bg-orange-100 flex items-center justify-center mr-3"> | |
| <i class="fas fa-calendar-plus text-orange-600"></i> | |
| </div> | |
| <span class="font-medium">Schedule Payment</span> | |
| </button> | |
| <button class="w-full flex items-center p-3 border rounded-lg hover:bg-red-50 hover:border-red-200 transition-colors"> | |
| <div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-3"> | |
| <i class="fas fa-exclamation-triangle text-red-600"></i> | |
| </div> | |
| <span class="font-medium">Flag Budget Issue</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| // Toggle sidebar | |
| document.getElementById('toggleSidebar').addEventListener('click', function() { | |
| document.querySelector('.sidebar').classList.toggle('collapsed'); | |
| }); | |
| // Initialize charts | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Cost Breakdown Chart (Pie) | |
| const costBreakdownCtx = document.getElementById('costBreakdownChart').getContext('2d'); | |
| const costBreakdownChart = new Chart(costBreakdownCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Materials', 'Labor', 'Equipment', 'Permits', 'Insurance', 'Other'], | |
| datasets: [{ | |
| data: [520, 355, 78.5, 15, 12.5, 8], | |
| backgroundColor: [ | |
| '#3B82F6', | |
| '#10B981', | |
| '#8B5CF6', | |
| '#F59E0B', | |
| '#EF4444', | |
| '#6366F1' | |
| ], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'right', | |
| }, | |
| tooltip: { | |
| callbacks: { | |
| label: function(context) { | |
| const label = context.label || ''; | |
| const value = context.raw || 0; | |
| const total = context.dataset.data.reduce((a, b) => a + b, 0); | |
| const percentage = Math.round((value / total) * 100); | |
| return `${label}: $${value.toFixed(1)}k (${percentage}%)`; | |
| } | |
| } | |
| } | |
| }, | |
| cutout: '70%' | |
| } | |
| }); | |
| // Budget vs Actual Chart (Bar) | |
| const budgetVsActualCtx = document.getElementById('budgetVsActualChart').getContext('2d'); | |
| const budgetVsActualChart = new Chart(budgetVsActualCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['Materials', 'Labor', 'Equipment', 'Permits', 'Insurance', 'Other'], | |
| datasets: [ | |
| { | |
| label: 'Budget', | |
| data: [600, 450, 100, 20, 15, 10], | |
| backgroundColor: '#E5E7EB', | |
| borderRadius: 4 | |
| }, | |
| { | |
| label: 'Actual', | |
| data: [520, 355, 78.5, 15, 12.5, 8], | |
| backgroundColor: '#3B82F6', | |
| borderRadius: 4 | |
| } | |
| ] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| scales: { | |
| x: { | |
| grid: { | |
| display: false | |
| } | |
| }, | |
| y: { | |
| beginAtZero: true, | |
| ticks: { | |
| callback: function(value) { | |
| return '$' + value + 'k'; | |
| } | |
| } | |
| } | |
| }, | |
| plugins: { | |
| legend: { | |
| position: 'top', | |
| }, | |
| tooltip: { | |
| callbacks: { | |
| label: function(context) { | |
| const label = context.dataset.label || ''; | |
| const value = context.raw || 0; | |
| return `${label}: $${value.toFixed(1)}k`; | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Animate progress bars on page load | |
| const progressBars = document.querySelectorAll('.progress-bar'); | |
| progressBars.forEach(bar => { | |
| const width = bar.style.width; | |
| bar.style.width = '0'; | |
| setTimeout(() => { | |
| bar.style.width = width; | |
| }, 300); | |
| }); | |
| }); | |
| </script> | |
| <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=poluser/cost-tracking-test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |