finflux-microfinance-pro / reports.html
CyberMuse's picture
make dashboard ,clients,loans, reports ,setting section fully functional and change currnecy to inr rupee and delete saving section
c74e1bf verified
Raw History Blame Contribute Delete
21 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reports - FinFlux MicroFinance Pro</title>
<link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>💰</text></svg>">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
50: '#f0f9ff',
100: '#e0f2fe',
200: '#bae6fd',
300: '#7dd3fc',
400: '#38bdf8',
500: '#0ea5e9',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
},
secondary: {
50: '#f5f3ff',
100: '#ede9fe',
200: '#ddd6fe',
300: '#c4b5fd',
400: '#a78bfa',
500: '#8b5cf6',
600: '#7c3aed',
700: '#6d28d9',
800: '#5b21b6',
900: '#4c1d95',
}
}
}
}
}
</script>
<style>
body {
font-family: 'Inter', sans-serif;
background-color: #f8fafc;
}
.sidebar-item:hover {
background-color: rgba(14, 165, 233, 0.1);
}
.active-sidebar {
background-color: rgba(14, 165, 233, 0.2);
border-left: 4px solid #0ea5e9;
}
.report-card {
transition: all 0.3s ease;
}
.report-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="bg-gray-50">
<!-- Main Container -->
<div class="flex h-screen">
<!-- Sidebar -->
<div class="w-64 bg-white shadow-lg flex flex-col">
<div class="p-6 border-b">
<div class="flex items-center space-x-3">
<div class="bg-primary-500 text-white p-2 rounded-lg">
<i data-feather="dollar-sign" class="w-6 h-6"></i>
</div>
<h1 class="text-xl font-bold text-gray-800">FinFlux Pro</h1>
</div>
</div>
<nav class="flex-1 px-4 py-6">
<ul class="space-y-2">
<li>
<a href="index.html" class="flex items-center space-x-3 p-3 rounded-lg sidebar-item">
<i data-feather="home" class="w-5 h-5 text-gray-500"></i>
<span class="font-medium text-gray-700">Dashboard</span>
</a>
</li>
<li>
<a href="clients.html" class="flex items-center space-x-3 p-3 rounded-lg sidebar-item">
<i data-feather="users" class="w-5 h-5 text-gray-500"></i>
<span class="font-medium text-gray-700">Clients</span>
</a>
</li>
<li>
<a href="loans.html" class="flex items-center space-x-3 p-3 rounded-lg sidebar-item">
<i data-feather="credit-card" class="w-5 h-5 text-gray-500"></i>
<span class="font-medium text-gray-700">Loans</span>
</a>
</li>
<li>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg active-sidebar">
<i data-feather="bar-chart-2" class="w-5 h-5 text-primary-500"></i>
<span class="font-medium text-gray-700">Reports</span>
</a>
</li>
<li>
<a href="settings.html" class="flex items-center space-x-3 p-3 rounded-lg sidebar-item">
<i data-feather="settings" class="w-5 h-5 text-gray-500"></i>
<span class="font-medium text-gray-700">Settings</span>
</a>
</li>
</ul>
</nav>
<div class="p-4 border-t">
<div class="flex items-center space-x-3">
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-10 h-10" />
<div>
<p class="font-medium text-gray-700">Admin User</p>
<p class="text-sm text-gray-500">admin@finflux.com</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Top Bar -->
<header class="bg-white shadow-sm">
<div class="flex items-center justify-between p-4">
<div class="flex items-center space-x-4">
<h2 class="text-2xl font-bold text-gray-800">Reports</h2>
</div>
<div class="flex items-center space-x-6">
<div class="relative">
<input type="text" placeholder="Search reports..." class="pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary-300 focus:border-transparent">
<i data-feather="search" class="absolute left-3 top-2.5 w-5 h-5 text-gray-400"></i>
</div>
<button class="relative p-2 text-gray-500 hover:text-gray-700">
<i data-feather="bell" class="w-6 h-6"></i>
<span class="absolute top-0 right-0 w-3 h-3 bg-red-500 rounded-full"></span>
</button>
<button class="flex items-center space-x-2">
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-10 h-10" />
<span class="font-medium text-gray-700">Admin</span>
<i data-feather="chevron-down" class="w-4 h-4 text-gray-500"></i>
</button>
</div>
</div>
</header>
<!-- Reports Content -->
<main class="flex-1 overflow-y-auto p-6 bg-gray-50">
<!-- 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-xl shadow-sm p-6">
<div class="flex items-center justify-between">
<div>
<h3 class="font-bold text-gray-800">Financial Summary</h3>
<p class="text-sm text-gray-500 mt-1">Monthly overview</p>
</div>
<div class="bg-primary-100 p-3 rounded-lg">
<i data-feather="trending-up" class="w-6 h-6 text-primary-500"></i>
</div>
</div>
<div class="mt-4">
<p class="text-sm text-gray-600">Comprehensive financial performance report with key metrics and trends.</p>
</div>
<div class="mt-6">
<button class="w-full bg-primary-500 hover:bg-primary-600 text-white py-2 rounded-lg text-sm font-medium">
Generate Report
</button>
</div>
</div>
<div class="report-card bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between">
<div>
<h3 class="font-bold text-gray-800">Loan Portfolio</h3>
<p class="text-sm text-gray-500 mt-1">Risk assessment</p>
</div>
<div class="bg-secondary-100 p-3 rounded-lg">
<i data-feather="credit-card" class="w-6 h-6 text-secondary-500"></i>
</div>
</div>
<div class="mt-4">
<p class="text-sm text-gray-600">Detailed analysis of loan distribution, repayment rates, and default risks.</p>
</div>
<div class="mt-6">
<button class="w-full bg-primary-500 hover:bg-primary-600 text-white py-2 rounded-lg text-sm font-medium">
Generate Report
</button>
</div>
</div>
<div class="report-card bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between">
<div>
<h3 class="font-bold text-gray-800">Client Demographics</h3>
<p class="text-sm text-gray-500 mt-1">User segmentation</p>
</div>
<div class="bg-green-100 p-3 rounded-lg">
<i data-feather="users" class="w-6 h-6 text-green-500"></i>
</div>
</div>
<div class="mt-4">
<p class="text-sm text-gray-600">Analysis of client base by location, income level, and loan usage patterns.</p>
</div>
<div class="mt-6">
<button class="w-full bg-primary-500 hover:bg-primary-600 text-white py-2 rounded-lg text-sm font-medium">
Generate Report
</button>
</div>
</div>
</div>
<!-- Charts Section -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<!-- Revenue Chart -->
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-6">
<h3 class="text-lg font-semibold text-gray-800">Monthly Revenue</h3>
<button class="text-sm text-primary-500 font-medium">Export Data</button>
</div>
<div>
<canvas id="revenueChart" height="300"></canvas>
</div>
</div>
<!-- Loan Distribution Chart -->
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-6">
<h3 class="text-lg font-semibold text-gray-800">Loan Type Distribution</h3>
<button class="text-sm text-primary-500 font-medium">Export Data</button>
</div>
<div>
<canvas id="loanTypeChart" height="300"></canvas>
</div>
</div>
</div>
<!-- Recent Reports -->
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-6">
<h3 class="text-lg font-semibold text-gray-800">Recent Reports</h3>
<button class="text-sm text-primary-500 font-medium">View All</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead>
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Report Name</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Generated On</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">Actions</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-900">Q2 Financial Summary</div>
<div class="text-sm text-gray-500">Quarterly report</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 15, 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">Completed</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-primary-500 hover:text-primary-700 mr-3">Download</a>
<a href="#" class="text-gray-500 hover:text-gray-700">View</a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-900">Client Growth Analysis</div>
<div class="text-sm text-gray-500">Demographics report</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 10, 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">Completed</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-primary-500 hover:text-primary-700 mr-3">Download</a>
<a href="#" class="text-gray-500 hover:text-gray-700">View</a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-900">Loan Performance Report</div>
<div class="text-sm text-gray-500">Risk assessment</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 5, 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">Completed</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-primary-500 hover:text-primary-700 mr-3">Download</a>
<a href="#" class="text-gray-500 hover:text-gray-700">View</a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-900">Monthly Operations Summary</div>
<div class="text-sm text-gray-500">Operational report</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 30, 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">Completed</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-primary-500 hover:text-primary-700 mr-3">Download</a>
<a href="#" class="text-gray-500 hover:text-gray-700">View</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
</div>
</div>
<script>
feather.replace();
// Initialize charts
const revenueCtx = document.getElementById('revenueChart').getContext('2d');
const revenueChart = new Chart(revenueCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
datasets: [{
label: 'Revenue (₹)',
data: [1200000, 1900000, 1800000, 2200000, 2500000, 3000000],
borderColor: '#0ea5e9',
backgroundColor: 'rgba(14, 165, 233, 0.1)',
borderWidth: 2,
fill: true,
tension: 0.4
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true,
ticks: {
callback: function(value) {
return '₹' + value.toLocaleString();
}
}
}
}
}
});
const loanTypeCtx = document.getElementById('loanTypeChart').getContext('2d');
const loanTypeChart = new Chart(loanTypeCtx, {
type: 'doughnut',
data: {
labels: ['Personal', 'Business', 'Agricultural', 'Education', 'Emergency'],
datasets: [{
data: [40, 25, 15, 12, 8],
backgroundColor: [
'#0ea5e9',
'#8b5cf6',
'#10b981',
'#f59e0b',
'#ef4444'
],
borderWidth: 0
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'right',
}
},
cutout: '70%'
}
});
</script>
</body>
</html>