undefined / properties.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
41.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Properties - EstateEase</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>
.property-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.filter-active {
background-color: #4C6B8A;
color: white;
}
</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">
<i data-feather="home" class="text-primary w-6 h-6"></i>
<span class="text-xl font-bold text-primary">EstateEase</span>
<div class="flex justify-between items-center mt-4">
<div class="text-sm text-gray-500" id="showingInfo">
Showing 1 to 10 of 24 entries
</div>
<nav class="flex space-x-2">
<button id="prevBtn" disabled class="px-3 py-1 rounded border bg-gray-100 text-gray-400 cursor-not-allowed">
Previous
</button>
<button id="nextBtn" class="px-3 py-1 rounded border bg-white hover:bg-gray-50">
Next
</button>
</nav>
</div>
</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-primary font-medium">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-dark hover:text-primary transition">Reports</a>
</nav>
<div class="flex items-center space-x-4">
<div class="relative 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">Property Insurance</a>
</div>
<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>
<!-- Ad Banner -->
<div class="ad-banner flex items-center justify-center border-b">
<p class="text-gray-500 text-sm">Advertisement Space - 728x90</p>
</div>
</header>
<main class="container mx-auto px-4 py-8">
<!-- Property Management 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">Property Portfolio</h1>
<p class="text-gray-600 mt-1">Manage all your properties in one place</p>
</div>
<div class="mt-4 md:mt-0 flex space-x-3">
<button class="bg-primary hover:bg-opacity-90 text-white py-2 px-4 rounded-md transition flex items-center">
<i data-feather="plus" class="w-4 h-4 mr-2"></i>
Add Property
</button>
<button class="bg-white border border-gray-200 hover:bg-gray-50 text-dark py-2 px-4 rounded-md transition flex items-center">
<i data-feather="download" class="w-4 h-4 mr-2"></i>
Export
</button>
</div>
</div>
<!-- Advanced Filters -->
<div class="bg-white rounded-lg shadow p-6 mb-8">
<div class="grid grid-cols-1 md:grid-cols-4 gap-4">
<div class="relative">
<i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"></i>
<input type="text" placeholder="Search properties..." class="pl-10 pr-4 py-2 w-full border border-gray-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary">
</div>
<select class="border border-gray-200 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary">
<option value="">All Status</option>
<option value="occupied">Occupied</option>
<option value="vacant">Vacant</option>
<option value="maintenance">Under Maintenance</option>
</select>
<select class="border border-gray-200 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary">
<option>All Types</option>
<option>Apartment</option>
<option>House</option>
<option>Office</option>
<option>Land</option>
</select>
<select class="border border-gray-200 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary">
<option>Show: 10</option>
<option>Show All</option>
<option>Show 25</option>
<option>Show 50</option>
</select>
</div>
<div class="flex justify-between items-center mt-4">
<button class="text-primary hover:text-opacity-80 text-sm font-medium">
<i data-feather="filter" class="w-4 h-4 mr-1"></i>
Advanced Filters
</button>
<div>
<button class="bg-gray-100 hover:bg-gray-200 text-dark py-2 px-4 rounded-md transition mr-2">
Reset
</button>
<button class="bg-primary hover:bg-opacity-90 text-white py-2 px-6 rounded-md transition">
Apply Filters
</button>
</div>
</div>
</div>
<!-- Property List -->
<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">24 Properties</h2>
<div class="flex items-center space-x-2">
<button class="p-2 rounded-md hover:bg-gray-100">
<i data-feather="list" class="w-4 h-4 text-primary"></i>
</button>
<button class="p-2 rounded-md hover:bg-gray-100">
<i data-feather="grid" class="w-4 h-4 text-gray-400"></i>
</button>
</div>
</div>
<!-- Table View -->
<div class="overflow-x-auto">
<div class="flex justify-between items-center mb-4">
<div class="flex items-center space-x-2">
<label class="text-sm text-gray-500">Show</label>
<select id="rowsPerPage" class="border border-gray-200 rounded-md px-2 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-primary">
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
<span class="text-sm text-gray-500">entries</span>
</div>
<div class="flex space-x-2">
<button id="listViewBtn" class="p-2 rounded-md hover:bg-gray-100 text-primary">
<i data-feather="list" class="w-4 h-4"></i>
</button>
<button id="gridViewBtn" class="p-2 rounded-md hover:bg-gray-100 text-gray-400">
<i data-feather="grid" class="w-4 h-4"></i>
</button>
</div>
</div>
<table id="propertiesTable" 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">Property</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">Location</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Value</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">
<!-- First 10 rows will be shown by default -->
<!-- Property 1 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<a href="property-details.html" class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-md object-cover" src="http://static.photos/real-estate/200x200/10" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-dark">Downtown Loft</div>
<div class="text-sm text-gray-500">#PR-001</div>
</div>
</a>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apartment</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">123 Main St</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">Occupied</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-dark">$2,500/mo</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">Edit</a>
<a href="#" class="text-red-600 hover:text-opacity-80">Delete</a>
</td>
</tr>
<!-- Property 2 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<a href="property-details.html" class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-md object-cover" src="http://static.photos/real-estate/200x200/20" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-dark">Lakeside Villa</div>
<div class="text-sm text-gray-500">#PR-002</div>
</div>
</a>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">House</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">456 Lakeview Dr</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">Vacant</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-dark">$4,200/mo</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">Edit</a>
<a href="#" class="text-red-600 hover:text-opacity-80">Delete</a>
</td>
</tr>
<!-- Property 3 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<a href="property-details.html" class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-md object-cover" src="http://static.photos/real-estate/200x200/30" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-dark">Urban Office</div>
<div class="text-sm text-gray-500">#PR-003</div>
</div>
</a>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Commercial</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">789 Business Ave</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">Leased</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-dark">$3,800/mo</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">Edit</a>
<a href="#" class="text-red-600 hover:text-opacity-80">Delete</a>
</td>
</tr>
<!-- Property 4 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<a href="property-details.html" class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-md object-cover" src="http://static.photos/real-estate/200x200/40" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-dark">Garden View</div>
<div class="text-sm text-gray-500">#PR-004</div>
</div>
</a>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apartment</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">321 Park Lane</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">Occupied</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-dark">$2,100/mo</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">Edit</a>
<a href="#" class="text-red-600 hover:text-opacity-80">Delete</a>
</td>
</tr>
<!-- Property 5 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<a href="property-details.html" class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-md object-cover" src="http://static.photos/real-estate/200x200/50" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-dark">Mountain View</div>
<div class="text-sm text-gray-500">#PR-005</div>
</div>
</a>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">House</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">654 Summit Rd</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">Occupied</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-dark">$1,950/mo</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">Edit</a>
<a href="#" class="text-red-600 hover:text-opacity-80">Delete</a>
</td>
</tr>
<!-- Property 6 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<a href="property-details.html" class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-md object-cover" src="http://static.photos/real-estate/200x200/60" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-dark">Sunny Terrace</div>
<div class="text-sm text-gray-500">#PR-006</div>
</div>
</a>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apartment</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">987 Sunshine Blvd</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">Occupied</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-dark">$2,300/mo</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">Edit</a>
<a href="#" class="text-red-600 hover:text-opacity-80">Delete</a>
</td>
</tr>
<!-- Property 7 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<a href="property-details.html" class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-md object-cover" src="http://static.photos/real-estate/200x200/70" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-dark">Hillside Cottage</div>
<div class="text-sm text-gray-500">#PR-007</div>
</div>
</a>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">House</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">753 Hilltop Dr</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">Vacant</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-dark">$1,750/mo</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">Edit</a>
<a href="#" class="text-red-600 hover:text-opacity-80">Delete</a>
</td>
</tr>
<!-- Property 8 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<a href="property-details.html" class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-md object-cover" src="http://static.photos/real-estate/200x200/80" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-dark">City Center</div>
<div class="text-sm text-gray-500">#PR-008</div>
</div>
</a>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apartment</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">159 Downtown Ave</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">Occupied</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-dark">$2,800/mo</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">Edit</a>
<a href="#" class="text-red-600 hover:text-opacity-80">Delete</a>
</td>
</tr>
<!-- Property 9 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<a href="property-details.html" class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-md object-cover" src="http://static.photos/real-estate/200x200/90" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-dark">Park Avenue</div>
<div class="text-sm text-gray-500">#PR-009</div>
</div>
</a>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apartment</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">357 Park St</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">Occupied</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-dark">$2,400/mo</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">Edit</a>
<a href="#" class="text-red-600 hover:text-opacity-80">Delete</a>
</td>
</tr>
<!-- Property 10 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<a href="property-details.html" class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-md object-cover" src="http://static.photos/real-estate/200x200/100" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-dark">Ocean View</div>
<div class="text-sm text-gray-500">#PR-010</div>
</div>
</a>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">House</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">852 Coastal Hwy</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">Occupied</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-dark">$3,200/mo</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">Edit</a>
<a href="#" class="text-red-600 hover:text-opacity-80">Delete</a>
</td>
</tr>
<!-- 9 more rows... -->
</tbody>
</table>
</tbody>
</table>
</div>
<!-- Pagination -->
<div class="px-6 py-4 border-t border-gray-100 flex items-center justify-between">
<div class="flex-1 flex justify-between sm:hidden">
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"> Previous </a>
<a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"> Next </a>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">Showing <span class="font-medium">1</span> to <span class="font-medium">10</span> of <span class="font-medium">24</span> results</p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Previous</span>
<i data-feather="chevron-left" class="w-4 h-4"></i>
</a>
<a href="#" aria-current="page" class="z-10 bg-primary border-primary text-white relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 1 </a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 2 </a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 3 </a>
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Next</span>
<i data-feather="chevron-right" class="w-4 h-4"></i>
</a>
</nav>
</div>
</div>
</div>
</div>
<!-- Marketing Section -->
<div class="mt-8 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">Marketing Tools</h2>
</div>
<div class="p-6">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-blue-50 rounded-lg p-6">
<div class="flex items-center mb-3">
<div class="bg-blue-100 p-2 rounded-full mr-3">
<i data-feather="globe" class="text-blue-600 w-5 h-5"></i>
</div>
<h3 class="font-medium text-dark">List on Websites</h3>
</div>
<p class="text-gray-600 text-sm">Automatically list your vacant properties on popular real estate websites.</p>
<button class="mt-4 text-primary text-sm font-medium hover:text-opacity-80 transition">Activate Now</button>
</div>
<div class="bg-green-50 rounded-lg p-6">
<div class="flex items-center mb-3">
<div class="bg-green-100 p-2 rounded-full mr-3">
<i data-feather="mail" class="text-green-600 w-5 h-5"></i>
</div>
<h3 class="font-medium text-dark">Email Campaigns</h3>
</div>
<p class="text-gray-600 text-sm">Send customized email campaigns to potential tenants or buyers.</p>
<button class="mt-4 text-primary text-sm font-medium hover:text-opacity-80 transition">Create Campaign</button>
</div>
<div class="bg-purple-50 rounded-lg p-6">
<div class="flex items-center mb-3">
<div class="bg-purple-100 p-2 rounded-full mr-3">
<i data-feather="bar-chart-2" class="text-purple-600 w-5 h-5"></i>
</div>
<h3 class="font-medium text-dark">Performance Analytics</h3>
</div>
<p class="text-gray-600 text-sm">Track how your properties perform in the market with detailed analytics.</p>
<button class="mt-4 text-primary text-sm font-medium hover:text-opacity-80 transition">View Reports</button>
</div>
</div>
</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">EstateEase</h3>
<p class="text-secondary text-sm">Simplifying property management for landlords and tenants alike.</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="#" class="hover:text-white transition">Tenants</a></li>
<li><a href="#" 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>
<li><a href="#" class="hover:text-white transition">Community</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@estateease.com</span>
</li>
<li class="flex items-center">
<i data-feather="phone" class="w-4 h-4 mr-2"></i>
<span>+1 (555) 123-4567</span>
</li>
<li class="flex items-center">
<i data-feather="map-pin" class="w-4 h-4 mr-2"></i>
<span>123 Estate St, Property City</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 EstateEase. 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>
<a href="#" class="text-secondary hover:text-white transition">
<i data-feather="instagram" class="w-5 h-5"></i>
</a>
</div>
</div>
</div>
</footer>
<script>
feather.replace();
// Property filter functionality
document.addEventListener('DOMContentLoaded', function() {
const filterButtons = document.querySelectorAll('.filter-btn');
filterButtons.forEach(button => {
button.addEventListener('click', function() {
filterButtons.forEach(btn => btn.classList.remove('filter-active'));
this.classList.add('filter-active');
// Here you would filter properties based on the selected filter
console.log('Filtering by: ' + this.dataset.filter);
});
});
});
// Pagination functionality
document.addEventListener('DOMContentLoaded', function() {
const rowsPerPage = document.getElementById('rowsPerPage');
const table = document.getElementById('propertiesTable');
const showingInfo = document.getElementById('showingInfo');
const prevBtn = document.getElementById('prevBtn');
const nextBtn = document.getElementById('nextBtn');
const listViewBtn = document.getElementById('listViewBtn');
const gridViewBtn = document.getElementById('gridViewBtn');
let currentPage = 1;
let rowsPerPageValue = parseInt(rowsPerPage.value);
function updateTable() {
const rows = table.querySelectorAll('tbody tr');
const totalRows = rows.length;
const totalPages = Math.ceil(totalRows / rowsPerPageValue);
rows.forEach((row, index) => {
if (index >= (currentPage - 1) * rowsPerPageValue && index < currentPage * rowsPerPageValue) {
row.style.display = '';
} else {
row.style.display = 'none';
}
});
showingInfo.textContent = `Showing ${((currentPage - 1) * rowsPerPageValue) + 1} to ${Math.min(currentPage * rowsPerPageValue, totalRows)} of ${totalRows} entries`;
prevBtn.disabled = currentPage === 1;
nextBtn.disabled = currentPage === totalPages;
}
// View toggle buttons
listViewBtn.addEventListener('click', function() {
this.classList.add('text-primary');
gridViewBtn.classList.remove('text-primary');
gridViewBtn.classList.add('text-gray-400');
// Implement grid view toggle logic here
});
gridViewBtn.addEventListener('click', function() {
this.classList.add('text-primary');
listViewBtn.classList.remove('text-primary');
listViewBtn.classList.add('text-gray-400');
// Implement list view toggle logic here
});
// Rows per page change
rowsPerPage.addEventListener('change', function() {
rowsPerPageValue = parseInt(this.value);
currentPage = 1;
updateTable();
});
// Pagination buttons
prevBtn.addEventListener('click', function() {
if (currentPage > 1) {
currentPage--;
updateTable();
}
});
nextBtn.addEventListener('click', function() {
const rows = table.querySelectorAll('tbody tr');
const totalRows = rows.length;
const totalPages = Math.ceil(totalRows / rowsPerPageValue);
if (currentPage < totalPages) {
currentPage++;
updateTable();
}
});
// Initialize
updateTable();
});
</script>
</body>
</html>