Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Property Owners Dashboard | NASKSOFT</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <custom-navbar></custom-navbar> | |
| <main class="dashboard"> | |
| <div class="container"> | |
| <div class="dashboard-header"> | |
| <h1>Property Owners Dashboard</h1> | |
| <div class="dashboard-actions"> | |
| <button class="btn btn-outline"><i class="fas fa-filter"></i> Filters</button> | |
| <button class="btn btn-primary"><i class="fas fa-download"></i> Export</button> | |
| </div> | |
| </div> | |
| <div class="stats-grid"> | |
| <div class="stat-card"> | |
| <h3>Total Owners</h3> | |
| <div class="stat-value">19</div> | |
| </div> | |
| <div class="stat-card"> | |
| <h3>Texas Properties</h3> | |
| <div class="stat-value">19</div> | |
| </div> | |
| <div class="stat-card"> | |
| <h3>California Owners</h3> | |
| <div class="stat-value">4</div> | |
| </div> | |
| <div class="stat-card"> | |
| <h3>Mobile Contacts</h3> | |
| <div class="stat-value">11</div> | |
| </div> | |
| </div> | |
| <div class="dashboard-grid"> | |
| <div class="dashboard-card wide"> | |
| <div class="card-header"> | |
| <h3>Property Locations</h3> | |
| <div class="card-actions"> | |
| <button class="btn-icon"><i class="fas fa-map"></i></button> | |
| </div> | |
| </div> | |
| <div id="map" style="height: 400px; margin-top: 1rem; background: #eee; border-radius: 8px; display: flex; align-items: center; justify-content: center;"> | |
| <p>Map visualization would appear here</p> | |
| </div> | |
| </div> | |
| <div class="dashboard-card"> | |
| <h3>Phone Types</h3> | |
| <div class="chart-container"> | |
| <canvas id="phoneChart"></canvas> | |
| </div> | |
| </div> | |
| <div class="dashboard-card"> | |
| <h3>Cities Distribution</h3> | |
| <div class="chart-container"> | |
| <canvas id="cityChart"></canvas> | |
| </div> | |
| </div> | |
| <div class="dashboard-card wide"> | |
| <h3>Owner Details</h3> | |
| <div class="data-table"> | |
| <table> | |
| <thead> | |
| <tr> | |
| <th>Name</th> | |
| <th>Property Address</th> | |
| <th>City</th> | |
| <th>State</th> | |
| <th>Phone</th> | |
| <th>Type</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> | |
| <td>Noriko Tagawa</td> | |
| <td>10205 Long Rifle Dr</td> | |
| <td>Fort Worth</td> | |
| <td>TX</td> | |
| <td>408-261-2870</td> | |
| <td>Landline</td> | |
| </tr> | |
| <tr> | |
| <td>Robert Brissie</td> | |
| <td>844 Ember Ln</td> | |
| <td>Mesquite</td> | |
| <td>TX</td> | |
| <td>770-906-3767</td> | |
| <td>Mobile</td> | |
| </tr> | |
| <tr> | |
| <td>Joel Garcia</td> | |
| <td>610 Edelweiss Dr</td> | |
| <td>Grand Prairie</td> | |
| <td>TX</td> | |
| <td>469-348-4887</td> | |
| <td>Mobile</td> | |
| </tr> | |
| <tr> | |
| <td>Steven Driscoll</td> | |
| <td>619 Twilight Trl</td> | |
| <td>Richardson</td> | |
| <td>TX</td> | |
| <td>469-569-2245</td> | |
| <td>Mobile</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <custom-footer></custom-footer> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Phone Type Chart | |
| const phoneCtx = document.getElementById('phoneChart').getContext('2d'); | |
| const phoneChart = new Chart(phoneCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Mobile', 'Landline'], | |
| datasets: [{ | |
| data: [11, 8], | |
| backgroundColor: [ | |
| 'rgba(54, 162, 235, 0.7)', | |
| 'rgba(255, 99, 132, 0.7)' | |
| ], | |
| borderColor: [ | |
| 'rgba(54, 162, 235, 1)', | |
| 'rgba(255, 99, 132, 1)' | |
| ], | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'bottom' | |
| } | |
| } | |
| } | |
| }); | |
| // City Distribution Chart | |
| const cityCtx = document.getElementById('cityChart').getContext('2d'); | |
| const cityChart = new Chart(cityCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['Garland', 'Richardson', 'Mesquite', 'Grand Prairie', 'Others'], | |
| datasets: [{ | |
| label: 'Properties', | |
| data: [4, 4, 3, 2, 6], | |
| backgroundColor: 'rgba(75, 192, 192, 0.7)', | |
| borderColor: 'rgba(75, 192, 192, 1)', | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true | |
| } | |
| } | |
| } | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |