File size: 21,121 Bytes
bfaeb56 7d5793d bfaeb56 7d5793d bfaeb56 060ab3e bfaeb56 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | <!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Estimate - RoofPrint Wizard</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
500: '#f43f5e',
},
secondary: {
500: '#f97316',
}
}
}
}
}
</script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
</head>
<body class="bg-gray-900 min-h-screen text-gray-100">
<!-- Navigation -->
<nav class="bg-gray-800 border-b border-gray-700 px-4 py-3">
<div class="max-w-7xl mx-auto flex justify-between items-center">
<div class="flex items-center space-x-2">
<a href="index.html">
<i data-feather="home" class="text-primary-500"></i>
</a>
<a href="index.html" class="text-xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-primary-500 to-secondary-500">RoofPrint Wizard</a>
</div>
<div class="flex items-center space-x-4">
<a href="projects.html" class="bg-gray-700 hover:bg-gray-600 text-white px-4 py-2 rounded-lg flex items-center space-x-2 transition-all">
<i data-feather="folder"></i>
<span>My Projects</span>
</a>
<button class="bg-gray-700 hover:bg-gray-600 text-white px-4 py-2 rounded-lg flex items-center space-x-2 transition-all">
<i data-feather="download"></i>
<span>Export Estimate</span>
</button>
<a href="index.html" class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg flex items-center space-x-2 transition-all">
<i data-feather="upload"></i>
<span>New Upload</span>
</a>
</div>
</div>
</nav>
<!-- Estimate Content -->
<div class="max-w-7xl mx-auto px-4 py-8">
<div class="flex flex-col lg:flex-row gap-8">
<!-- Main Estimate Section -->
<div class="flex-1">
<!-- Project Header -->
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700 mb-6">
<div class="flex flex-col md:flex-row md:items-center md:justify-between">
<div>
<h2 class="text-2xl font-bold mb-2">Downtown Office Complex Roof Replacement</h2>
<div class="flex flex-wrap gap-2">
<span class="bg-gray-700 text-primary-500 px-3 py-1 rounded-full text-sm font-medium">Commercial</span>
<span class="bg-gray-700 text-gray-300 px-3 py-1 rounded-full text-sm font-medium">Flat Roof</span>
<span class="bg-gray-700 text-gray-300 px-3 py-1 rounded-full text-sm font-medium">TPO Membrane</span>
</div>
</div>
<div class="mt-4 md:mt-0">
<p class="text-gray-400">Estimate Date: <span class="text-white">May 15, 2023</span></p>
<p class="text-gray-400">Estimate #: <span class="text-white">RPW-2023-0015</span></p>
</div>
</div>
</div>
<!-- Project Summary -->
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700 mb-6">
<h3 class="text-xl font-semibold mb-4 flex items-center">
<i data-feather="clipboard" class="mr-2 text-primary-500"></i>
Project Summary
</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="bg-gray-700 rounded-lg p-4">
<p class="text-gray-400 text-sm">Total Area</p>
<p class="text-2xl font-bold">15,240<span class="text-lg"> sq ft</span></p>
</div>
<div class="bg-gray-700 rounded-lg p-4">
<p class="text-gray-400 text-sm">Materials Cost</p>
<p class="text-2xl font-bold">$24,385<span class="text-lg"></span></p>
</div>
<div class="bg-gray-700 rounded-lg p-4">
<p class="text-gray-400 text-sm">Total Estimate</p>
<p class="text-2xl font-bold text-primary-500">$38,752<span class="text-lg"></span></p>
</div>
</div>
<div class="mt-6">
<h4 class="font-medium mb-2">Extracted Notes</h4>
<div class="bg-gray-700 rounded-lg p-4">
<p class="text-gray-300">• Existing roof to be removed and disposed of properly</p>
<p class="text-gray-300">• New 60-mil TPO membrane to be installed</p>
<p class="text-gray-300">• Includes 5-year labor warranty</p>
<p class="text-gray-300">• Projected completion within 18 working days</p>
</div>
</div>
</div>
<!-- Cost Breakdown -->
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<div class="flex justify-between items-center mb-6">
<h3 class="text-xl font-semibold flex items-center">
<i data-feather="dollar-sign" class="mr-2 text-primary-500"></i>
Cost Breakdown
</h3>
<div class="flex space-x-2">
<button class="bg-gray-700 hover:bg-gray-600 text-white px-3 py-1 rounded-lg text-sm flex items-center space-x-1">
<i data-feather="edit-2" class="w-4 h-4"></i>
<span>Customize</span>
</button>
<button class="bg-gray-700 hover:bg-gray-600 text-white px-3 py-1 rounded-lg text-sm flex items-center space-x-1">
<i data-feather="upload" class="w-4 h-4"></i>
<span>Import Pricing</span>
</button>
</div>
</div>
<div class="overflow-x-auto">
<table class="w-full">
<thead>
<tr class="border-b border-gray-700 text-left text-gray-400">
<th class="pb-3 pl-2">Item</th>
<th class="pb-3">Qty</th>
<th class="pb-3">Unit</th>
<th class="pb-3">Unit Cost</th>
<th class="pb-3 pr-2 text-right">Total</th>
</tr>
</thead>
<tbody>
<!-- Materials -->
<tr class="border-b border-gray-800">
<td colspan="5" class="pt-4 pb-2 pl-2 font-semibold text-primary-500">MATERIALS</td>
</tr>
<tr class="hover:bg-gray-700">
<td class="py-3 pl-2">TPO Membrane (60 mil)</td>
<td class="py-3">15,240</td>
<td class="py-3">sq ft</td>
<td class="py-3">$1.60</td>
<td class="py-3 pr-2 text-right">$24,384.00</td>
</tr>
<tr class="hover:bg-gray-700">
<td class="py-3 pl-2">Insulation Board</td>
<td class="py-3">15,240</td>
<td class="py-3">sq ft</td>
<td class="py-3">$0.45</td>
<td class="py-3 pr-2 text-right">$6,858.00</td>
</tr>
<tr class="hover:bg-gray-700">
<td class="py-3 pl-2">Fasteners</td>
<td class="py-3">1,200</td>
<td class="py-3">each</td>
<td class="py-3">$0.12</td>
<td class="py-3 pr-2 text-right">$144.00</td>
</tr>
<tr class="hover:bg-gray-700">
<td class="py-3 pl-2">Flashing</td>
<td class="py-3">320</td>
<td class="py-3">lf</td>
<td class="py-3">$4.50</td>
<td class="py-3 pr-2 text-right">$1,440.00</td>
</tr>
<!-- Labor -->
<tr class="border-b border-gray-800">
<td colspan="5" class="pt-4 pb-2 pl-2 font-semibold text-primary-500">LABOR</td>
</tr>
<tr class="hover:bg-gray-700">
<td class="py-3 pl-2">Roof Removal</td>
<td class="py-3">15,240</td>
<td class="py-3">sq ft</td>
<td class="py-3">$0.25</td>
<td class="py-3 pr-2 text-right">$3,810.00</td>
</tr>
<tr class="hover:bg-gray-700">
<td class="py-3 pl-2">Installation</td>
<td class="py-3">15,240</td>
<td class="py-3">sq ft</td>
<td class="py-3">$0.75</td>
<td class="py-3 pr-2 text-right">$11,430.00</td>
</tr>
<tr class="hover:bg-gray-700">
<td class="py-3 pl-2">Flashing Installation</td>
<td class="py-3">320</td>
<td class="py-3">lf</td>
<td class="py-3">$6.00</td>
<td class="py-3 pr-2 text-right">$1,920.00</td>
</tr>
<!-- Equipment -->
<tr class="border-b border-gray-800">
<td colspan="5" class="pt-4 pb-2 pl-2 font-semibold text-primary-500">EQUIPMENT</td>
</tr>
<tr class="hover:bg-gray-700">
<td class="py-3 pl-2">Scaffolding Rental</td>
<td class="py-3">1</td>
<td class="py-3">job</td>
<td class="py-3">$1,250.00</td>
<td class="py-3 pr-2 text-right">$1,250.00</td>
</tr>
<tr class="hover:bg-gray-700">
<td class="py-3 pl-2">Dumpster</td>
<td class="py-3">3</td>
<td class="py-3">each</td>
<td class="py-3">$350.00</td>
<td class="py-3 pr-2 text-right">$1,050.00</td>
</tr>
<!-- Totals -->
<tr class="border-t border-gray-700 font-semibold">
<td class="pt-4 pb-2 pl-2" colspan="4">Subtotal</td>
<td class="pt-4 pb-2 pr-2 text-right">$52,286.00</td>
</tr>
<tr>
<td class="pb-2 pl-2" colspan="4">Tax (6%)</td>
<td class="pb-2 pr-2 text-right">$3,137.16</td>
</tr>
<tr class="border-t border-gray-700 font-bold text-lg">
<td class="pt-4 pb-2 pl-2" colspan="4">Total Estimate</td>
<td class="pt-4 pb-2 pr-2 text-right text-primary-500">$55,423.16</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Sidebar -->
<div class="lg:w-80 space-y-6">
<!-- Client Info -->
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<h3 class="text-xl font-semibold mb-4 flex items-center">
<i data-feather="user" class="mr-2 text-primary-500"></i>
Client Information
</h3>
<div class="space-y-3">
<div>
<p class="text-gray-400 text-sm">Client Name</p>
<p class="text-gray-100">Downtown Properties LLC</p>
</div>
<div>
<p class="text-gray-400 text-sm">Contact</p>
<p class="text-gray-100">John Smith</p>
</div>
<div>
<p class="text-gray-400 text-sm">Email</p>
<p class="text-gray-100">j.smith@downtownproperties.com</p>
</div>
<div>
<p class="text-gray-400 text-sm">Phone</p>
<p class="text-gray-100">(555) 123-4567</p>
</div>
<div>
<p class="text-gray-400 text-sm">Address</p>
<p class="text-gray-100">123 Main Street, Suite 400</p>
<p class="text-gray-100">Anytown, ST 12345</p>
</div>
</div>
</div>
<!-- Blueprint Info -->
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<h3 class="text-xl font-semibold mb-4 flex items-center">
<i data-feather="file-text" class="mr-2 text-primary-500"></i>
Blueprint Details
</h3>
<div class="space-y-3">
<div>
<p class="text-gray-400 text-sm">Original File</p>
<p class="text-gray-100">downtown_office_roof.pdf</p>
</div>
<div>
<p class="text-gray-400 text-sm">Upload Date</p>
<p class="text-gray-100">May 14, 2023</p>
</div>
<div>
<p class="text-gray-400 text-sm">Scale Detected</p>
<p class="text-gray-100">1/8" = 1'-0"</p>
</div>
<div>
<p class="text-gray-400 text-sm">Extracted Data</p>
<div class="mt-1">
<span class="inline-block bg-gray-700 text-gray-300 px-2 py-1 rounded text-xs mr-1 mb-1">Square Footage</span>
<span class="inline-block bg-gray-700 text-gray-300 px-2 py-1 rounded text-xs mr-1 mb-1">Materials</span>
<span class="inline-block bg-gray-700 text-gray-300 px-2 py-1 rounded text-xs mr-1 mb-1">Dimensions</span>
<span class="inline-block bg-gray-700 text-gray-300 px-2 py-1 rounded text-xs mr-1 mb-1">Notes</span>
</div>
</div>
</div>
</div>
<!-- Actions -->
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<h3 class="text-xl font-semibold mb-4 flex items-center">
<i data-feather="settings" class="mr-2 text-primary-500"></i>
Actions
</h3>
<div class="space-y-3">
<button class="w-full bg-primary-500 hover:bg-primary-600 text-white py-2 px-4 rounded-lg flex items-center justify-center space-x-2">
<i data-feather="send" class="w-4 h-4"></i>
<span>Send to Client</span>
</button>
<button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-4 rounded-lg flex items-center justify-center space-x-2">
<i data-feather="download" class="w-4 h-4"></i>
<span>Download PDF</span>
</button>
<button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-4 rounded-lg flex items-center justify-center space-x-2">
<i data-feather="printer" class="w-4 h-4"></i>
<span>Print Estimate</span>
</button>
<button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-4 rounded-lg flex items-center justify-center space-x-2">
<i data-feather="copy" class="w-4 h-4"></i>
<span>Duplicate Estimate</span>
</button>
</div>
</div>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
// Get project ID from URL
const urlParams = new URLSearchParams(window.location.search);
const projectId = urlParams.get('project');
if (projectId) {
// Load project data from localStorage
const projects = JSON.parse(localStorage.getItem('projects') || '[]');
const project = projects.find(p => p.id === projectId);
if (project) {
// Update UI with project data
document.querySelector('h2').textContent = project.name;
document.querySelector('[class*="text-2xl font-bold"]').textContent =
`${project.area.toLocaleString()}`;
document.querySelectorAll('[class*="text-2xl font-bold"]')[1].textContent =
`${Math.round(project.cost * 0.7).toLocaleString()}`;
document.querySelectorAll('[class*="text-2xl font-bold"]')[2].textContent =
`${project.cost.toLocaleString()}`;
document.querySelector('[class*="text-lg text-primary-500"]').textContent =
`${project.cost.toLocaleString()}`;
// Update date and estimate number
const dateElement = document.querySelector('p:has(span.text-white)');
if (dateElement) {
dateElement.innerHTML = `Estimate Date: <span class="text-white">${project.date}</span>`;
}
const estimateElement = dateElement.nextElementSibling;
if (estimateElement) {
estimateElement.innerHTML = `Estimate #: <span class="text-white">RPW-${projectId.split('-')[1].slice(0,4)}</span>`;
}
}
}
});
</script>
</body>
</html> |