caliberpayanalytics / index.html
OpulenceNYC's picture
Add 2 files
3b499c5 verified
Raw History Blame Contribute Delete
29.8 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Payment Analytics Dashboard | Caliber Integration</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.gradient-bg {
background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
}
.sidebar {
transition: all 0.3s ease;
}
.dashboard-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.progress-bar {
transition: width 1s ease-in-out;
}
.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(74, 144, 226, 0); }
100% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0); }
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-white w-64 flex-shrink-0 shadow-lg">
<div class="p-4 gradient-bg text-white">
<div class="flex items-center space-x-3">
<i class="fas fa-building-shield text-2xl"></i>
<h1 class="text-xl font-bold">CaliberPay Analytics</h1>
</div>
<p class="text-xs mt-1 opacity-80">v3.1.0</p>
</div>
<nav class="mt-6">
<div class="px-4">
<div class="py-2 text-xs font-semibold text-gray-500 uppercase tracking-wider">Main</div>
<a href="#" class="flex items-center px-4 py-3 text-blue-600 bg-blue-50 rounded-lg">
<i class="fas fa-chart-pie mr-3"></i>
Dashboard
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg mt-1">
<i class="fas fa-database mr-3"></i>
Data Integration
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg mt-1">
<i class="fas fa-bell mr-3"></i>
Alerts
</a>
</div>
<div class="px-4 mt-6">
<div class="py-2 text-xs font-semibold text-gray-500 uppercase tracking-wider">Reports</div>
<a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg">
<i class="fas fa-file-invoice-dollar mr-3"></i>
Payment Reports
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg mt-1">
<i class="fas fa-clock-rotate-left mr-3"></i>
Overdue Balances
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg mt-1">
<i class="fas fa-calendar-alt mr-3"></i>
Scheduled Tasks
</a>
</div>
<div class="absolute bottom-0 w-full p-4 border-t">
<div class="flex items-center">
<img src="https://randomuser.me/api/portraits/women/44.jpg" class="w-8 h-8 rounded-full" alt="Profile">
<div class="ml-3">
<p class="text-sm font-medium">Sarah Johnson</p>
<p class="text-xs text-gray-500">Admin</p>
</div>
</div>
</div>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="flex justify-between items-center px-8 py-4">
<h2 class="text-2xl font-semibold text-gray-800">Payment Data Integration</h2>
<div class="flex items-center space-x-4">
<div class="relative">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
</div>
<button class="p-2 text-gray-500 hover:text-blue-600">
<i class="fas fa-bell text-xl"></i>
</button>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main class="p-8">
<!-- Status Cards -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
<div class="dashboard-card bg-white rounded-xl shadow p-6 flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
<i class="fas fa-plug text-xl"></i>
</div>
<div>
<p class="text-sm text-gray-500">API Connection</p>
<h3 class="text-2xl font-bold">Active</h3>
</div>
</div>
<div class="dashboard-card bg-white rounded-xl shadow p-6 flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
<i class="fas fa-sync-alt text-xl"></i>
</div>
<div>
<p class="text-sm text-gray-500">Last Sync</p>
<h3 class="text-2xl font-bold">Today, 09:42</h3>
</div>
</div>
<div class="dashboard-card bg-white rounded-xl shadow p-6 flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4">
<i class="fas fa-file-invoice text-xl"></i>
</div>
<div>
<p class="text-sm text-gray-500">Records Processed</p>
<h3 class="text-2xl font-bold">1,284</h3>
</div>
</div>
<div class="dashboard-card bg-white rounded-xl shadow p-6 flex items-center">
<div class="p-3 rounded-full bg-red-100 text-red-600 mr-4">
<i class="fas fa-exclamation-triangle text-xl"></i>
</div>
<div>
<p class="text-sm text-gray-500">Overdue Balances</p>
<h3 class="text-2xl font-bold">47</h3>
</div>
</div>
</div>
<!-- Main Integration Panel -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<!-- Data Integration Card -->
<div class="lg:col-span-2 bg-white rounded-xl shadow overflow-hidden">
<div class="gradient-bg px-6 py-4 text-white">
<div class="flex justify-between items-center">
<h3 class="text-lg font-semibold">Caliber PMS Integration</h3>
<span class="bg-white text-blue-600 text-xs px-2 py-1 rounded-full">v3.1</span>
</div>
</div>
<div class="p-6">
<div class="flex items-center justify-between mb-6">
<div>
<h4 class="font-medium">Owner Payment Records</h4>
<p class="text-sm text-gray-500">Extracting payment data from Caliber</p>
</div>
<button id="syncBtn" class="flex items-center px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition">
<i class="fas fa-sync-alt mr-2"></i>
Sync Now
</button>
</div>
<div class="mb-6">
<div class="flex justify-between text-sm text-gray-600 mb-1">
<span>Extraction Progress</span>
<span id="progressPercent">0%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div id="progressBar" class="progress-bar bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div>
</div>
</div>
<div class="grid grid-cols-2 gap-4 mb-6">
<div class="border rounded-lg p-4">
<div class="flex items-center mb-2">
<i class="fas fa-calendar-day text-blue-500 mr-2"></i>
<span class="text-sm font-medium">Schedule Settings</span>
</div>
<div class="flex items-center justify-between">
<span class="text-gray-500 text-sm">Next Pull:</span>
<span class="font-medium">15th, 00:00</span>
</div>
<div class="flex items-center justify-between mt-1">
<span class="text-gray-500 text-sm">Frequency:</span>
<span class="font-medium">Twice Monthly</span>
</div>
</div>
<div class="border rounded-lg p-4">
<div class="flex items-center mb-2">
<i class="fas fa-exclamation-circle text-red-500 mr-2"></i>
<span class="text-sm font-medium">Overdue Detection</span>
</div>
<div class="flex items-center justify-between">
<span class="text-gray-500 text-sm">Threshold:</span>
<span class="font-medium">30 Days</span>
</div>
<div class="flex items-center justify-between mt-1">
<span class="text-gray-500 text-sm">Last Scan:</span>
<span class="font-medium">Today, 09:42</span>
</div>
</div>
</div>
<div class="border rounded-lg p-4 bg-gray-50">
<div class="flex items-center mb-2">
<i class="fas fa-info-circle text-blue-500 mr-2"></i>
<span class="text-sm font-medium">Integration Details</span>
</div>
<p class="text-sm text-gray-600">
This integration automatically pulls owner payment records from Caliber Property Management System twice per month (1st and 15th) and identifies accounts with overdue balances exceeding 30 days.
</p>
</div>
</div>
</div>
<!-- Recent Activity & Alerts -->
<div class="space-y-6">
<!-- Recent Sync Activity -->
<div class="bg-white rounded-xl shadow overflow-hidden">
<div class="gradient-bg px-6 py-4 text-white">
<h3 class="text-lg font-semibold">Recent Activity</h3>
</div>
<div class="p-4 space-y-4 max-h-96 overflow-y-auto">
<div class="flex items-start">
<div class="p-2 bg-green-100 text-green-600 rounded-full mr-3">
<i class="fas fa-check"></i>
</div>
<div>
<p class="text-sm font-medium">Data sync completed</p>
<p class="text-xs text-gray-500">Today, 09:42 AM</p>
<p class="text-xs mt-1">Processed 42 new payment records</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 bg-blue-100 text-blue-600 rounded-full mr-3">
<i class="fas fa-bolt"></i>
</div>
<div>
<p class="text-sm font-medium">Overdue scan completed</p>
<p class="text-xs text-gray-500">Today, 09:45 AM</p>
<p class="text-xs mt-1">Found 3 new overdue accounts</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 bg-yellow-100 text-yellow-600 rounded-full mr-3">
<i class="fas fa-exclamation"></i>
</div>
<div>
<p class="text-sm font-medium">Warning: API rate limit</p>
<p class="text-xs text-gray-500">Yesterday, 11:30 PM</p>
<p class="text-xs mt-1">Approaching Caliber API rate limit</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 bg-green-100 text-green-600 rounded-full mr-3">
<i class="fas fa-check"></i>
</div>
<div>
<p class="text-sm font-medium">Scheduled sync completed</p>
<p class="text-xs text-gray-500">Jun 15, 12:00 AM</p>
<p class="text-xs mt-1">Monthly data extraction successful</p>
</div>
</div>
</div>
</div>
<!-- Overdue Alerts -->
<div class="bg-white rounded-xl shadow overflow-hidden">
<div class="bg-red-600 px-6 py-4 text-white">
<div class="flex justify-between items-center">
<h3 class="text-lg font-semibold">Overdue Alerts</h3>
<span class="bg-white text-red-600 text-xs px-2 py-1 rounded-full">3 New</span>
</div>
</div>
<div class="p-4 space-y-4 max-h-64 overflow-y-auto">
<div class="p-3 border border-red-100 rounded-lg bg-red-50">
<div class="flex justify-between items-start">
<div>
<p class="font-medium text-red-700">#OWN-4829</p>
<p class="text-sm">Balance: $1,250.00</p>
</div>
<span class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded">42 days</span>
</div>
<p class="text-xs mt-2 text-gray-600">Last payment: May 2, 2023</p>
</div>
<div class="p-3 border border-orange-100 rounded-lg bg-orange-50">
<div class="flex justify-between items-start">
<div>
<p class="font-medium text-orange-700">#OWN-3157</p>
<p class="text-sm">Balance: $850.50</p>
</div>
<span class="text-xs bg-orange-100 text-orange-800 px-2 py-1 rounded">35 days</span>
</div>
<p class="text-xs mt-2 text-gray-600">Last payment: May 9, 2023</p>
</div>
<div class="p-3 border border-yellow-100 rounded-lg bg-yellow-50">
<div class="flex justify-between items-start">
<div>
<p class="font-medium text-yellow-700">#OWN-7291</p>
<p class="text-sm">Balance: $2,100.00</p>
</div>
<span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">31 days</span>
</div>
<p class="text-xs mt-2 text-gray-600">Last payment: May 11, 2023</p>
</div>
</div>
<div class="px-4 py-3 bg-gray-50 border-t">
<button class="w-full py-2 text-sm font-medium text-blue-600 hover:text-blue-800">
View All Overdue Accounts (47)
</button>
</div>
</div>
</div>
</div>
<!-- Data Preview -->
<div class="mt-8 bg-white rounded-xl shadow overflow-hidden">
<div class="gradient-bg px-6 py-4 text-white">
<h3 class="text-lg font-semibold">Recent Payment Records</h3>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Owner ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Property</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Days Overdue</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#OWN-4829</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 text-sm text-gray-500">$1,250.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 2, 2023</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Overdue</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">42</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#OWN-3157</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">456 Oak Ave</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$850.50</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 9, 2023</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-orange-100 text-orange-800">Overdue</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">35</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#OWN-7291</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">789 Pine Blvd</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$2,100.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 11, 2023</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">Overdue</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">31</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#OWN-6423</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">321 Elm St</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$1,750.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 1, 2023</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">Current</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">-</td>
</tr>
</tbody>
</table>
</div>
<div class="px-6 py-4 bg-gray-50 border-t flex justify-between items-center">
<span class="text-sm text-gray-600">Showing <span class="font-medium">4</span> of <span class="font-medium">1,284</span> records</span>
<button class="px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50">
View All Records
</button>
</div>
</div>
</main>
</div>
</div>
<script>
// Simulate data sync progress
document.getElementById('syncBtn').addEventListener('click', function() {
this.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Syncing...';
this.disabled = true;
let progress = 0;
const progressBar = document.getElementById('progressBar');
const progressPercent = document.getElementById('progressPercent');
const interval = setInterval(() => {
progress += Math.floor(Math.random() * 10) + 5;
if (progress > 100) progress = 100;
progressBar.style.width = progress + '%';
progressPercent.textContent = progress + '%';
if (progress === 100) {
clearInterval(interval);
this.innerHTML = '<i class="fas fa-check mr-2"></i> Sync Complete';
// Add a new activity item
const activityContainer = document.querySelector('.max-h-96');
const newActivity = document.createElement('div');
newActivity.className = 'flex items-start';
newActivity.innerHTML = `
<div class="p-2 bg-green-100 text-green-600 rounded-full mr-3">
<i class="fas fa-check"></i>
</div>
<div>
<p class="text-sm font-medium">Manual sync completed</p>
<p class="text-xs text-gray-500">Just now</p>
<p class="text-xs mt-1">Processed 18 new payment records</p>
</div>
`;
activityContainer.insertBefore(newActivity, activityContainer.firstChild);
// Enable button again after 3 seconds
setTimeout(() => {
this.innerHTML = '<i class="fas fa-sync-alt mr-2"></i> Sync Now';
this.disabled = false;
progressBar.style.width = '0%';
progressPercent.textContent = '0%';
}, 3000);
}
}, 300);
});
// Add pulse animation to overdue alerts badge
const overdueBadge = document.querySelector('.bg-red-600 + .p-4');
const newAlert = document.createElement('div');
newAlert.className = 'p-3 border border-red-100 rounded-lg bg-red-50 pulse';
newAlert.innerHTML = `
<div class="flex justify-between items-start">
<div>
<p class="font-medium text-red-700">#OWN-8934</p>
<p class="text-sm">Balance: $950.00</p>
</div>
<span class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded">New</span>
</div>
<p class="text-xs mt-2 text-gray-600">New overdue account detected</p>
`;
setTimeout(() => {
overdueBadge.insertBefore(newAlert, overdueBadge.firstChild);
// Remove pulse after 5 seconds
setTimeout(() => {
newAlert.classList.remove('pulse');
}, 5000);
}, 2000);
</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=OpulenceNYC/caliberpayanalytics" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>