File size: 36,135 Bytes
d0b0c08 | 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 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Plowman Capital Dashboard</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: 70px;
}
.sidebar.collapsed .nav-text {
display: none;
}
.sidebar.collapsed .logo-text {
display: none;
}
.sidebar.collapsed .expand-icon {
transform: rotate(180deg);
}
.content {
transition: all 0.3s;
}
.content.expanded {
margin-left: 70px;
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card-hover {
transition: all 0.3s ease;
}
.progress-bar {
height: 8px;
border-radius: 4px;
background-color: #e5e7eb;
}
.progress-fill {
height: 100%;
border-radius: 4px;
transition: width 0.6s ease;
}
.investment-card:hover .investment-actions {
opacity: 1;
}
.investment-actions {
opacity: 0;
transition: opacity 0.3s ease;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-indigo-800 text-white w-64 flex flex-col fixed h-full z-10">
<div class="p-4 flex items-center justify-between border-b border-indigo-700">
<div class="flex items-center">
<i class="fas fa-chart-line text-2xl mr-3"></i>
<span class="logo-text text-xl font-bold">Plowman Capital</span>
</div>
<button id="toggleSidebar" class="expand-icon text-white focus:outline-none">
<i class="fas fa-chevron-left"></i>
</button>
</div>
<nav class="flex-1 overflow-y-auto py-4">
<div class="px-4 mb-8">
<div class="flex items-center px-4 py-3 bg-indigo-900 rounded-lg">
<i class="fas fa-home mr-3"></i>
<span class="nav-text">Dashboard</span>
</div>
</div>
<div class="px-4 mb-8">
<h3 class="nav-text uppercase text-xs font-semibold text-indigo-400 px-4 mb-2">Investments</h3>
<ul>
<li class="mb-1">
<a href="#" class="flex items-center px-4 py-2 text-indigo-200 hover:bg-indigo-700 rounded-lg">
<i class="fas fa-building mr-3"></i>
<span class="nav-text">Real Estate</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center px-4 py-2 text-indigo-200 hover:bg-indigo-700 rounded-lg">
<i class="fas fa-briefcase mr-3"></i>
<span class="nav-text">Business Stakes</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center px-4 py-2 text-indigo-200 hover:bg-indigo-700 rounded-lg">
<i class="fas fa-chart-pie mr-3"></i>
<span class="nav-text">Portfolio Analysis</span>
</a>
</li>
</ul>
</div>
<div class="px-4 mb-8">
<h3 class="nav-text uppercase text-xs font-semibold text-indigo-400 px-4 mb-2">Financials</h3>
<ul>
<li class="mb-1">
<a href="#" class="flex items-center px-4 py-2 text-indigo-200 hover:bg-indigo-700 rounded-lg">
<i class="fas fa-money-bill-wave mr-3"></i>
<span class="nav-text">Cash Flow</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center px-4 py-2 text-indigo-200 hover:bg-indigo-700 rounded-lg">
<i class="fas fa-percentage mr-3"></i>
<span class="nav-text">ROI & IRR</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center px-4 py-2 text-indigo-200 hover:bg-indigo-700 rounded-lg">
<i class="fas fa-hand-holding-usd mr-3"></i>
<span class="nav-text">Distributions</span>
</a>
</li>
</ul>
</div>
<div class="px-4 mb-8">
<h3 class="nav-text uppercase text-xs font-semibold text-indigo-400 px-4 mb-2">Reports</h3>
<ul>
<li class="mb-1">
<a href="#" class="flex items-center px-4 py-2 text-indigo-200 hover:bg-indigo-700 rounded-lg">
<i class="fas fa-file-alt mr-3"></i>
<span class="nav-text">Monthly</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center px-4 py-2 text-indigo-200 hover:bg-indigo-700 rounded-lg">
<i class="fas fa-file-invoice mr-3"></i>
<span class="nav-text">Quarterly</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center px-4 py-2 text-indigo-200 hover:bg-indigo-700 rounded-lg">
<i class="fas fa-file-contract mr-3"></i>
<span class="nav-text">Annual</span>
</a>
</li>
</ul>
</div>
</nav>
</div>
<!-- Main Content -->
<div class="content flex-1 overflow-y-auto ml-64">
<header class="bg-white shadow-sm">
<div class="max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8 flex justify-between items-center">
<h1 class="text-2xl font-bold text-gray-800">Investment Dashboard</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Search investments..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
<div class="flex items-center space-x-2">
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i class="fas fa-bell"></i>
</button>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i class="fas fa-cog"></i>
</button>
</div>
</div>
</div>
</header>
<main class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
<!-- Summary 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-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-sm font-medium text-gray-500">Total Portfolio Value</p>
<h3 class="text-2xl font-bold mt-1">$12.8M</h3>
<p class="text-sm text-green-500 mt-2 flex items-center">
<i class="fas fa-arrow-up mr-1"></i> 8.2% from last quarter
</p>
</div>
<div class="bg-indigo-100 p-3 rounded-lg">
<i class="fas fa-chart-line text-indigo-600 text-xl"></i>
</div>
</div>
</div>
<div class="card-hover bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-sm font-medium text-gray-500">Annualized ROI</p>
<h3 class="text-2xl font-bold mt-1">14.7%</h3>
<p class="text-sm text-green-500 mt-2 flex items-center">
<i class="fas fa-arrow-up mr-1"></i> 2.3% from last year
</p>
</div>
<div class="bg-green-100 p-3 rounded-lg">
<i class="fas fa-percentage text-green-600 text-xl"></i>
</div>
</div>
</div>
<div class="card-hover bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-sm font-medium text-gray-500">YTD Distributions</p>
<h3 class="text-2xl font-bold mt-1">$1.2M</h3>
<p class="text-sm text-blue-500 mt-2 flex items-center">
<i class="fas fa-calendar mr-1"></i> Next: Q3 estimate $450k
</p>
</div>
<div class="bg-blue-100 p-3 rounded-lg">
<i class="fas fa-hand-holding-usd text-blue-600 text-xl"></i>
</div>
</div>
</div>
<div class="card-hover bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-sm font-medium text-gray-500">Cash Position</p>
<h3 class="text-2xl font-bold mt-1">$3.4M</h3>
<p class="text-sm text-purple-500 mt-2 flex items-center">
<i class="fas fa-piggy-bank mr-1"></i> 26% of portfolio
</p>
</div>
<div class="bg-purple-100 p-3 rounded-lg">
<i class="fas fa-wallet text-purple-600 text-xl"></i>
</div>
</div>
</div>
</div>
<!-- Performance Charts -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<!-- Portfolio Value Over Time -->
<div class="card-hover bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-gray-800">Portfolio Value Trend</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs bg-indigo-100 text-indigo-700 rounded-md">1Y</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-700 rounded-md">3Y</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-700 rounded-md">5Y</button>
</div>
</div>
<canvas id="portfolioChart" height="250"></canvas>
</div>
<!-- ROI by Investment -->
<div class="card-hover bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-gray-800">ROI by Investment</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs bg-indigo-100 text-indigo-700 rounded-md">Current</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-700 rounded-md">Annual</button>
</div>
</div>
<canvas id="roiChart" height="250"></canvas>
</div>
</div>
<!-- Investment Performance Table -->
<div class="card-hover bg-white p-6 rounded-xl shadow-sm border border-gray-100 mb-8">
<div class="flex justify-between items-center mb-6">
<h2 class="text-lg font-semibold text-gray-800">Investment Performance</h2>
<button class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 flex items-center">
<i class="fas fa-plus mr-2"></i> Add Investment
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Investment</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Current Value</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Cost Basis</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ROI</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">IRR</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Distribution</th>
<th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<!-- Real Estate Investments -->
<tr class="investment-card hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-md flex items-center justify-center">
<i class="fas fa-building text-indigo-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Riverfront Apartments</div>
<div class="text-sm text-gray-500">Acquired 2018</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-indigo-100 text-indigo-800">Real Estate</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$4,250,000</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$3,200,000</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-600 font-medium">32.8%</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-600 font-medium">18.4%</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$125,000 (Q2 2023)</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium investment-actions">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-chart-line"></i></a>
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-file-invoice"></i></a>
<a href="#" class="text-indigo-600 hover:text-indigo-900"><i class="fas fa-ellipsis-v"></i></a>
</td>
</tr>
<tr class="investment-card hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-md flex items-center justify-center">
<i class="fas fa-building text-indigo-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Mountain View Office</div>
<div class="text-sm text-gray-500">Acquired 2020</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-indigo-100 text-indigo-800">Real Estate</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$3,100,000</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$2,750,000</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-600 font-medium">12.7%</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-600 font-medium">9.2%</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$85,000 (Q2 2023)</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium investment-actions">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-chart-line"></i></a>
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-file-invoice"></i></a>
<a href="#" class="text-indigo-600 hover:text-indigo-900"><i class="fas fa-ellipsis-v"></i></a>
</td>
</tr>
<!-- Business Investments -->
<tr class="investment-card hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-green-100 rounded-md flex items-center justify-center">
<i class="fas fa-briefcase text-green-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">TechSolutions Inc.</div>
<div class="text-sm text-gray-500">Acquired 2019</div>
</div>
</div>
</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">Business</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$2,800,000</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$1,500,000</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-600 font-medium">86.7%</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-600 font-medium">32.1%</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$75,000 (Q2 2023)</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium investment-actions">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-chart-line"></i></a>
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-file-invoice"></i></a>
<a href="#" class="text-indigo-600 hover:text-indigo-900"><i class="fas fa-ellipsis-v"></i></a>
</td>
</tr>
<tr class="investment-card hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-green-100 rounded-md flex items-center justify-center">
<i class="fas fa-briefcase text-green-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">GreenEnergy Co.</div>
<div class="text-sm text-gray-500">Acquired 2021</div>
</div>
</div>
</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">Business</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$1,650,000</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$1,800,000</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-red-600 font-medium">-8.3%</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-red-600 font-medium">-4.2%</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$0 (No distributions)</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium investment-actions">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-chart-line"></i></a>
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-file-invoice"></i></a>
<a href="#" class="text-indigo-600 hover:text-indigo-900"><i class="fas fa-ellipsis-v"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Cash Flow & Distributions -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<!-- Monthly Cash Flow -->
<div class="card-hover bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-gray-800">Monthly Cash Flow</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs bg-indigo-100 text-indigo-700 rounded-md">2023</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-700 rounded-md">2022</button>
</div>
</div>
<canvas id="cashFlowChart" height="250"></canvas>
</div>
<!-- Distribution History -->
<div class="card-hover bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-gray-800">Distribution History</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs bg-indigo-100 text-indigo-700 rounded-md">All</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-700 rounded-md">Real Estate</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-700 rounded-md">Business</button>
</div>
</div>
<div class="space-y-4">
<div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
<div>
<p class="text-sm font-medium text-gray-900">Q2 2023 Distribution</p>
<p class="text-xs text-gray-500">June 15, 2023</p>
</div>
<div class="text-right">
<p class="text-sm font-medium text-gray-900">$285,000</p>
<p class="text-xs text-gray-500">3 investments</p>
</div>
</div>
<div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
<div>
<p class="text-sm font-medium text-gray-900">Q1 2023 Distribution</p>
<p class="text-xs text-gray-500">March 15, 2023</p>
</div>
<div class="text-right">
<p class="text-sm font-medium text-gray-900">$265,000</p>
<p class="text-xs text-gray-500">3 investments</p>
</div>
</div>
<div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
<div>
<p class="text-sm font-medium text-gray-900">Q4 2022 Distribution</p>
<p class="text-xs text-gray-500">December 15, 2022</p>
</div>
<div class="text-right">
<p class="text-sm font-medium text-gray-900">$310,000</p>
<p class="text-xs text-gray-500">4 investments</p>
</div>
</div>
<div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
<div>
<p class="text-sm font-medium text-gray-900">Q3 2022 Distribution</p>
<p class="text-xs text-gray-500">September 15, 2022</p>
</div>
<div class="text-right">
<p class="text-sm font-medium text-gray-900">$240,000</p>
<p class="text-xs text-gray-500">3 investments</p>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Toggle sidebar
document.getElementById('toggleSidebar').addEventListener('click', function() {
const sidebar = document.querySelector('.sidebar');
const content = document.querySelector('.content');
sidebar.classList.toggle('collapsed');
content.classList.toggle('expanded');
});
// Portfolio Value Chart
const portfolioCtx = document.getElementById('portfolioChart').getContext('2d');
const portfolioChart = new Chart(portfolioCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'Portfolio Value',
data: [10.5, 10.7, 11.0, 11.2, 11.5, 11.8, 12.1, 12.3, 12.5, 12.6, 12.7, 12.8],
borderColor: '#6366F1',
backgroundColor: 'rgba(99, 102, 241, 0.1)',
borderWidth: 2,
fill: true,
tension: 0.4
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: false,
ticks: {
callback: function(value) {
return '$' + value + 'M';
}
}
}
}
}
});
// ROI Chart
const roiCtx = document.getElementById('roiChart').getContext('2d');
const roiChart = new Chart(roiCtx, {
type: 'bar',
data: {
labels: ['Riverfront', 'Mountain View', 'TechSolutions', 'GreenEnergy'],
datasets: [{
label: 'ROI',
data: [32.8, 12.7, 86.7, -8.3],
backgroundColor: [
'rgba(99, 102, 241, 0.7)',
'rgba(99, 102, 241, 0.7)',
'rgba(16, 185, 129, 0.7)',
'rgba(239, 68, 68, 0.7)'
],
borderColor: [
'rgba(99, 102, 241, 1)',
'rgba(99, 102, 241, 1)',
'rgba(16, 185, 129, 1)',
'rgba(239, 68, 68, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true,
ticks: {
callback: function(value) {
return value + '%';
}
}
}
}
}
});
// Cash Flow Chart
const cashFlowCtx = document.getElementById('cashFlowChart').getContext('2d');
const cashFlowChart = new Chart(cashFlowCtx, {
type: 'bar',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'Income',
data: [85, 82, 90, 88, 95, 110, 105, 100, 95, 92, 90, 285],
backgroundColor: 'rgba(16, 185, 129, 0.7)',
borderColor: 'rgba(16, 185, 129, 1)',
borderWidth: 1
}, {
label: 'Expenses',
data: [45, 40, 42, 48, 50, 55, 52, 50, 48, 45, 42, 60],
backgroundColor: 'rgba(239, 68, 68, 0.7)',
borderColor: 'rgba(239, 68, 68, 1)',
borderWidth: 1
}]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
}
},
scales: {
y: {
beginAtZero: true,
ticks: {
callback: function(value) {
return '$' + value + 'k';
}
}
}
}
}
});
</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=csmith715/samplefinancialdashboard" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |