undefined / reports.html
markngr's picture
implement the above prompt to all the needed pages, some still have duplicate buttons and show only a single line of data instead of a 10 entry data that I had told you. Go through each page individually and fix all the issues stated above and any other issue you will find
3fa0c93 verified
Raw History Blame Contribute Delete
30.5 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reports - RoostRuler</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.report-card:hover {
transform: translateY(-3px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="bg-gray-50 font-sans antialiased">
<!-- Top Navigation -->
<header class="bg-white shadow-sm sticky top-0 z-50">
<div class="container mx-auto px-4">
<div class="flex justify-between items-center py-3">
<div class="flex items-center space-x-2">
<button class="md:hidden p-2 rounded-md hover:bg-gray-100" id="menuToggle">
<i data-feather="menu" class="w-5 h-5"></i>
</button>
<a href="index.html" class="flex items-center space-x-2">
<i data-feather="home" class="text-primary w-6 h-6"></i>
<span class="text-xl font-bold text-primary">RoostRuler</span>
</a>
</div>
<nav class="hidden md:flex space-x-8">
<a href="index.html" class="text-dark hover:text-primary transition">Dashboard</a>
<a href="properties.html" class="text-dark hover:text-primary transition">Properties</a>
<a href="tenants.html" class="text-dark hover:text-primary transition">Tenants</a>
<a href="payments.html" class="text-dark hover:text-primary transition">Payments</a>
<a href="reports.html" class="text-primary font-medium">Reports</a>
</nav>
<div class="flex items-center space-x-4">
<!-- Small Ad Space -->
<div class="hidden md:block text-xs bg-gray-100 px-2 py-1 rounded">
<span class="text-gray-500">Sponsored:</span>
<a href="#" class="text-primary hover:underline">Tax Services</a>
</div>
<div class="relative">
<i data-feather="bell" class="w-5 h-5 text-dark"></i>
<span class="absolute -top-1 -right-1 bg-accent text-xs text-white rounded-full w-4 h-4 flex items-center justify-center">3</span>
</div>
<div class="flex items-center space-x-2">
<a href="owner-profile.html">
<img src="http://static.photos/people/200x200/42" alt="User" class="w-8 h-8 rounded-full object-cover">
</a>
<span class="hidden md:inline text-sm font-medium">John Doe</span>
</div>
</div>
</div>
</div>
</header>
<!-- Mobile Sidebar -->
<div class="fixed inset-0 bg-black bg-opacity-50 z-40 hidden" id="mobileSidebarBackdrop"></div>
<div class="fixed inset-y-0 left-0 transform -translate-x-full w-64 bg-white shadow-lg z-50 transition duration-300 ease-in-out" id="mobileSidebar">
<div class="flex flex-col h-full p-4">
<div class="flex justify-between items-center mb-8">
<div class="flex items-center space-x-2">
<i data-feather="home" class="text-primary w-6 h-6"></i>
<span class="text-xl font-bold text-primary">RoostRuler</span>
</div>
<button id="closeSidebar">
<i data-feather="x" class="w-5 h-5"></i>
</button>
</div>
<nav class="flex-1 space-y-2">
<a href="index.html" class="block px-4 py-2 rounded bg-primary bg-opacity-10 text-primary flex items-center">
<i data-feather="home" class="w-5 h-5 mr-2"></i> Home
</a>
<a href="dashboard.html" class="block px-4 py-2 rounded hover:bg-gray-100">Dashboard</a>
<a href="properties.html" class="block px-4 py-2 rounded hover:bg-gray-100">Properties</a>
<a href="tenants.html" class="block px-4 py-2 rounded hover:bg-gray-100">Tenants</a>
<a href="payments.html" class="block px-4 py-2 rounded hover:bg-gray-100">Payments</a>
<a href="reports.html" class="block px-4 py-2 rounded bg-primary bg-opacity-10 text-primary">Reports</a>
</nav>
<div class="mt-auto pt-4 border-t border-gray-200">
<div class="flex items-center space-x-2">
<img src="http://static.photos/people/200x200/42" alt="User" class="w-8 h-8 rounded-full object-cover">
<span class="text-sm font-medium">John Doe</span>
</div>
</div>
</div>
</div>
<main class="container mx-auto px-4 py-8">
<!-- Reports Header -->
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-8">
<div>
<h1 class="text-2xl font-bold text-dark">Reports & Analytics</h1>
<p class="text-gray-600 mt-1">Generate and view detailed reports for your properties</p>
</div>
<div class="mt-4 md:mt-0">
<button class="bg-primary hover:bg-opacity-90 text-white py-2 px-4 rounded-md transition flex items-center">
<i data-feather="download" class="w-4 h-4 mr-2"></i>
Export All
</button>
</div>
</div>
<!-- Report Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
<div class="report-card bg-white rounded-lg shadow p-6 transition duration-300">
<div class="flex items-center justify-between mb-4">
<div class="bg-blue-100 p-3 rounded-full">
<i data-feather="dollar-sign" class="text-blue-600 w-5 h-5"></i>
</div>
<div class="text-right">
<h3 class="text-lg font-semibold text-dark">$24,500</h3>
<p class="text-gray-500 text-sm">Monthly Revenue</p>
</div>
</div>
<p class="text-gray-600 text-sm mb-4">View detailed breakdown of income by property and tenant.</p>
<button class="w-full bg-white border border-primary text-primary hover:bg-primary hover:text-white py-2 px-4 rounded-md transition">
View Income Report
</button>
</div>
<div class="report-card bg-white rounded-lg shadow p-6 transition duration-300">
<div class="flex items-center justify-between mb-4">
<div class="bg-green-100 p-3 rounded-full">
<i data-feather="trending-up" class="text-green-600 w-5 h-5"></i>
</div>
<div class="text-right">
<h3 class="text-lg font-semibold text-dark">92%</h3>
<p class="text-gray-500 text-sm">Occupancy Rate</p>
</div>
</div>
<p class="text-gray-600 text-sm mb-4">Analyze property occupancy trends and vacancy periods.</p>
<button class="w-full bg-white border border-primary text-primary hover:bg-primary hover:text-white py-2 px-4 rounded-md transition">
View Occupancy Report
</button>
</div>
<div class="report-card bg-white rounded-lg shadow p-6 transition duration-300">
<div class="flex items-center justify-between mb-4">
<div class="bg-purple-100 p-3 rounded-full">
<i data-feather="clock" class="text-purple-600 w-5 h-5"></i>
</div>
<div class="text-right">
<h3 class="text-lg font-semibold text-dark">2.1 Days</h3>
<p class="text-gray-500 text-sm">Avg. Payment Delay</p>
</div>
</div>
<p class="text-gray-600 text-sm mb-4">Track payment timeliness and identify problematic tenants.</p>
<button class="w-full bg-white border border-primary text-primary hover:bg-primary hover:text-white py-2 px-4 rounded-md transition">
View Payment Report
</button>
</div>
<div class="report-card bg-white rounded-lg shadow p-6 transition duration-300">
<div class="flex items-center justify-between mb-4">
<div class="bg-yellow-100 p-3 rounded-full">
<i data-feather="tool" class="text-yellow-600 w-5 h-5"></i>
</div>
<div class="text-right">
<h3 class="text-lg font-semibold text-dark">12</h3>
<p class="text-gray-500 text-sm">Active Requests</p>
</div>
</div>
<p class="text-gray-600 text-sm mb-4">Monitor maintenance requests and response times.</p>
<button class="w-full bg-white border border-primary text-primary hover:bg-primary hover:text-white py-2 px-4 rounded-md transition">
View Maintenance Report
</button>
</div>
<div class="report-card bg-white rounded-lg shadow p-6 transition duration-300">
<div class="flex items-center justify-between mb-4">
<div class="bg-red-100 p-3 rounded-full">
<i data-feather="alert-triangle" class="text-red-600 w-5 h-5"></i>
</div>
<div class="text-right">
<h3 class="text-lg font-semibold text-dark">3</h3>
<p class="text-gray-500 text-sm">Overdue Payments</p>
</div>
</div>
<p class="text-gray-600 text-sm mb-4">Identify and follow up on late payments.</p>
<button class="w-full bg-white border border-primary text-primary hover:bg-primary hover:text-white py-2 px-4 rounded-md transition">
View Delinquency Report
</button>
</div>
<div class="report-card bg-white rounded-lg shadow p-6 transition duration-300">
<div class="flex items-center justify-between mb-4">
<div class="bg-indigo-100 p-3 rounded-full">
<i data-feather="pie-chart" class="text-indigo-600 w-5 h-5"></i>
</div>
<div class="text-right">
<h3 class="text-lg font-semibold text-dark">Custom</h3>
<p class="text-gray-500 text-sm">Create Report</p>
</div>
</div>
<p class="text-gray-600 text-sm mb-4">Build your own custom report with specific parameters.</p>
<button class="w-full bg-white border border-primary text-primary hover:bg-primary hover:text-white py-2 px-4 rounded-md transition">
Create Custom Report
</button>
</div>
</div>
<!-- Report Generator -->
<div class="bg-white rounded-lg shadow overflow-hidden mb-8">
<div class="px-6 py-4 border-b border-gray-100">
<h2 class="text-lg font-semibold text-dark">Report Generator</h2>
</div>
<div class="p-6">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div>
<label class="block text-gray-700 text-sm font-medium mb-2">Report Type</label>
<select class="w-full border border-gray-200 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
<option>Income Statement</option>
<option>Expense Report</option>
<option>Occupancy Summary</option>
<option>Payment History</option>
<option>Maintenance Log</option>
<option>Tax Preparation</option>
</select>
</div>
<div>
<label class="block text-gray-700 text-sm font-medium mb-2">Date Range</label>
<select class="w-full border border-gray-200 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
<option>Last 30 Days</option>
<option>This Month</option>
<option>Last Month</option>
<option>This Quarter</option>
<option>This Year</option>
<option>Custom Range</option>
</select>
</div>
<div>
<label class="block text-gray-700 text-sm font-medium mb-2">Properties</label>
<select class="w-full border border-gray-200 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
<option>All Properties</option>
<option>Downtown Loft</option>
<option>Lakeside Villa</option>
<option>Urban Office</option>
</select>
</div>
</div>
<div class="mt-6 flex justify-end space-x-3">
<button class="bg-white border border-gray-200 hover:bg-gray-50 text-dark py-2 px-4 rounded-md transition">
Reset Filters
</button>
<button class="bg-primary hover:bg-opacity-90 text-white py-2 px-6 rounded-md transition">
Generate Report
</button>
</div>
</div>
</div>
<!-- Recent Reports -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="px-6 py-4 border-b border-gray-100 flex justify-between items-center">
<h2 class="text-lg font-semibold text-dark">Recently Generated Reports</h2>
<a href="#" class="text-primary text-sm font-medium">View All</a>
</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">Report Name</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Generated</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date Range</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Properties</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">
<!-- Report 1 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-dark">Monthly Income Statement</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 5, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apr 1 - Apr 30, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Properties</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-primary hover:text-opacity-80 mr-3">View</a>
<a href="#" class="text-primary hover:text-opacity-80">Download</a>
</td>
</tr>
<!-- Report 2 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-dark">Occupancy Summary</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 1, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 1 - Apr 30, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Properties</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-primary hover:text-opacity-80 mr-3">View</a>
<a href="#" class="text-primary hover:text-opacity-80">Download</a>
</td>
</tr>
<!-- Report 3 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-dark">Expense Report</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apr 30, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apr 1 - Apr 30, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Properties</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-primary hover:text-opacity-80 mr-3">View</a>
<a href="#" class="text-primary hover:text-opacity-80">Download</a>
</td>
</tr>
<!-- Report 4 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-dark">Payment History</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apr 30, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apr 1 - Apr 30, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Properties</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-primary hover:text-opacity-80 mr-3">View</a>
<a href="#" class="text-primary hover:text-opacity-80">Download</a>
</td>
</tr>
<!-- Report 5 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-dark">Maintenance Log</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apr 30, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apr 1 - Apr 30, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Properties</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-primary hover:text-opacity-80 mr-3">View</a>
<a href="#" class="text-primary hover:text-opacity-80">Download</a>
</td>
</tr>
<!-- Report 6 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-dark">Quarterly Financials</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apr 1, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 1 - Mar 31, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Properties</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-primary hover:text-opacity-80 mr-3">View</a>
<a href="#" class="text-primary hover:text-opacity-80">Download</a>
</td>
</tr>
<!-- Report 7 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-dark">Tax Preparation</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Mar 15, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 1 - Dec 31, 2022</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Properties</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-primary hover:text-opacity-80 mr-3">View</a>
<a href="#" class="text-primary hover:text-opacity-80">Download</a>
</td>
</tr>
<!-- Report 8 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-dark">Annual Summary</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 15, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 1 - Dec 31, 2022</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Properties</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-primary hover:text-opacity-80 mr-3">View</a>
<a href="#" class="text-primary hover:text-opacity-80">Download</a>
</td>
</tr>
<!-- Report 9 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-dark">Vacancy Analysis</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 5, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 1 - Dec 31, 2022</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Properties</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-primary hover:text-opacity-80 mr-3">View</a>
<a href="#" class="text-primary hover:text-opacity-80">Download</a>
</td>
</tr>
<!-- Report 10 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-dark">Tenant Turnover</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 3, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 1 - Dec 31, 2022</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Properties</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-primary hover:text-opacity-80 mr-3">View</a>
<a href="#" class="text-primary hover:text-opacity-80">Download</a>
</td>
</tr>
<!-- More report rows... -->
</tbody>
</table>
</div>
</div>
</main>
<footer class="bg-dark text-white py-8">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-lg font-semibold mb-4">RoostRuler</h3>
<p class="text-secondary text-sm">Property mastery made easy.</p>
</div>
<div>
<h4 class="font-medium mb-4">Quick Links</h4>
<ul class="space-y-2 text-sm text-secondary">
<li><a href="index.html" class="hover:text-white transition">Dashboard</a></li>
<li><a href="properties.html" class="hover:text-white transition">Properties</a></li>
<li><a href="tenants.html" class="hover:text-white transition">Tenants</a></li>
<li><a href="payments.html" class="hover:text-white transition">Payments</a></li>
</ul>
</div>
<div>
<h4 class="font-medium mb-4">Resources</h4>
<ul class="space-y-2 text-sm text-secondary">
<li><a href="#" class="hover:text-white transition">Documentation</a></li>
<li><a href="#" class="hover:text-white transition">Support</a></li>
<li><a href="#" class="hover:text-white transition">API</a></li>
</ul>
</div>
<div>
<h4 class="font-medium mb-4">Get in Touch</h4>
<ul class="space-y-2 text-sm text-secondary">
<li class="flex items-center">
<i data-feather="mail" class="w-4 h-4 mr-2"></i>
<span>support@roostruler.com</span>
</li>
<li class="flex items-center">
<i data-feather="phone" class="w-4 h-4 mr-2"></i>
<span>+1 (555) 987-6543</span>
</li>
</ul>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-6 flex flex-col md:flex-row justify-between items-center">
<p class="text-secondary text-sm mb-4 md:mb-0">© 2023 RoostRuler. All rights reserved.</p>
<div class="flex space-x-4">
<a href="#" class="text-secondary hover:text-white transition">
<i data-feather="facebook" class="w-5 h-5"></i>
</a>
<a href="#" class="text-secondary hover:text-white transition">
<i data-feather="twitter" class="w-5 h-5"></i>
</a>
<a href="#" class="text-secondary hover:text-white transition">
<i data-feather="linkedin" class="w-5 h-5"></i>
</a>
</div>
</div>
</div>
</footer>
<script>
feather.replace();
// Mobile menu toggle
document.addEventListener('DOMContentLoaded', function() {
const menuToggle = document.getElementById('menuToggle');
const closeSidebar = document.getElementById('closeSidebar');
const mobileSidebar = document.getElementById('mobileSidebar');
const backdrop = document.getElementById('mobileSidebarBackdrop');
menuToggle.addEventListener('click', function() {
mobileSidebar.classList.remove('-translate-x-full');
backdrop.classList.remove('hidden');
document.body.classList.add('overflow-hidden');
});
closeSidebar.addEventListener('click', function() {
mobileSidebar.classList.add('-translate-x-full');
backdrop.classList.add('hidden');
document.body.classList.remove('overflow-hidden');
});
backdrop.addEventListener('click', function() {
mobileSidebar.classList.add('-translate-x-full');
backdrop.classList.add('hidden');
document.body.classList.remove('overflow-hidden');
});
});
</script>
</body>
</html>