Spaces:
Running

undefined / index.html
JOWilkins's picture
update that dashboard with this additional data comparing two providers. It should be setup as a presentation to a prospective client: Category LAZ Proposed Monthly Current Annual Budget LAZ Proposed Annual Variance to Current Budget Notes
05f79e1 verified
Raw History Blame Contribute Delete
18.6 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BudgetVista Pro: Financial Projections</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#3B82F6',
secondary: '#6B7280'
}
}
}
}
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
}
.chart-container {
position: relative;
height: 300px;
width: 100%;
}
.financial-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.financial-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.progress-bar {
transition: width 1.5s ease-in-out;
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="container mx-auto px-4 py-6">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-primary rounded-lg flex items-center justify-center">
<i data-feather="dollar-sign" class="text-white"></i>
</div>
<h1 class="text-2xl font-bold text-gray-800">BudgetVista Pro</h1>
</div>
<button class="bg-primary text-white px-6 py-2 rounded-lg font-semibold hover:bg-blue-600 transition-colors">
<i data-feather="download" class="w-4 h-4 inline mr-2"></i>
Export Report
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Summary Cards -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="financial-card bg-white rounded-xl shadow-md p-6 border-l-4 border-primary">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-semibold text-gray-700">Monthly Expenses</h3>
<i data-feather="calendar" class="text-primary"></i>
</div>
<p class="text-3xl font-bold text-gray-900">$114,667</p>
<p class="text-sm text-gray-500 mt-2">Total Operating Costs</p>
</div>
<div class="financial-card bg-white rounded-xl shadow-md p-6 border-l-4 border-blue-400">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-semibold text-gray-700">Annual Projection</h3>
<i data-feather="trending-up" class="text-blue-400"></i>
</div>
<p class="text-3xl font-bold text-gray-900">$1,376,007</p>
<p class="text-sm text-gray-500 mt-2">Yearly Operating Budget</p>
</div>
<div class="financial-card bg-white rounded-xl shadow-md p-6 border-l-4 border-blue-300">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-semibold text-gray-700">Top Expense</h3>
<i data-feather="alert-circle" class="text-blue-300"></i>
</div>
<p class="text-2xl font-bold text-gray-900">Salaries & Wages</p>
<p class="text-sm text-gray-500 mt-2">49% of total budget</p>
</div>
</div>
<!-- Charts Section -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
<!-- Pie Chart -->
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="text-xl font-semibold text-gray-800 mb-6">Expense Distribution</h3>
<div class="chart-container">
<canvas id="expenseChart"></canvas>
</div>
</div>
<!-- Bar Chart -->
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="text-xl font-semibold text-gray-800 mb-6">Monthly vs Annual Comparison</h3>
<div class="chart-container">
<canvas id="comparisonChart"></canvas>
</div>
</div>
</div>
<!-- Detailed Table -->
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="px-6 py-4 border-b">
<h3 class="text-xl font-semibold text-gray-800">Detailed Financial Breakdown</h3>
</div>
<div class="overflow-x-auto">
<table class="w-full">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Category</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Monthly</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Annual</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Notes</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">% of Total</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">Salaries & Wages</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$56,286.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$675,432.00</td>
<td class="px-6 py-4 text-sm text-gray-500">Wages+Payroll Processing</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">49.1%</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Payroll Taxes and Burden</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$11,936.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$143,232.00</td>
<td class="px-6 py-4 text-sm text-gray-500">Payroll Tax and Worker's Comp</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">10.4%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Health, Welfare & Pension</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$8,247.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$98,964.00</td>
<td class="px-6 py-4 text-sm text-gray-500">Health and 401K</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">7.2%</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Uniforms</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$228.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$2,739.00</td>
<td class="px-6 py-4 text-sm text-gray-500">Bulk discount rate</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">0.2%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Supplies</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$450.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$5,400.00</td>
<td class="px-6 py-4 text-sm text-gray-500">Operating and Office Supplies</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">0.4%</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Repairs & Maintenance</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$5,510.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$66,120.00</td>
<td class="px-6 py-4 text-sm text-gray-500">Bus Maintenance and Cleaning Service</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">4.8%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Liability Insurance</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$17,814.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$213,768.00</td>
<td class="px-6 py-4 text-sm text-gray-500">Vehicle and GKL Insurance</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">15.5%</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Telephone & Computer</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$3,900.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$46,800.00</td>
<td class="px-6 py-4 text-sm text-gray-500">Radios, Samsara, Tripshot</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">3.4%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">License & Permits</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$607.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$7,284.00</td>
<td class="px-6 py-4 text-sm text-gray-500">Annual Registrations</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">0.5%</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Data Processing & Postage</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$240.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$2,880.00</td>
<td class="px-6 py-4 text-sm text-gray-500">Secret Shopper and Auditing Service</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">0.2%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Auto Damage & Other Claims</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$979.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$11,748.00</td>
<td class="px-6 py-4 text-sm text-gray-500">Anticipated Damage</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">0.9%</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Management Fee</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$8,333.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$99,996.00</td>
<td class="px-6 py-4 text-sm text-gray-500"></td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">7.3%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">General Expenses</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$137.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$1,644.00</td>
<td class="px-6 py-4 text-sm text-gray-500">BI/IT/Admin</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">0.1%</td>
</tr>
</tbody>
<tfoot class="bg-primary bg-opacity-10">
<tr>
<td class="px-6 py-4 text-sm font-bold text-gray-900">TOTAL OPERATING EXPENSES</td>
<td class="px-6 py-4 text-sm font-bold text-gray-900">$114,667.00</td>
<td class="px-6 py-4 text-sm font-bold text-gray-900">$1,376,007.00</td>
<td class="px-6 py-4"></td>
<td class="px-6 py-4 text-sm font-bold text-gray-900">100%</td>
</tr>
</tfoot>
</table>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-white border-t mt-12">
<div class="container mx-auto px-4 py-6">
<div class="flex items-center justify-between">
<p class="text-sm text-gray-500">© 2024 BudgetVista Pro. All financial data is projected and subject to change.</p>
<div class="flex items-center space-x-4">
<button class="text-gray-500 hover:text-primary transition-colors">
<i data-feather="share-2" class="w-5 h-5"></i>
</button>
<button class="text-gray-500 hover:text-primary transition-colors">
<i data-feather="printer" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
</footer>
<script>
// Initialize Feather Icons
feather.replace();
// Chart initialization
document.addEventListener('DOMContentLoaded', function() {
// Expense Distribution Pie Chart
const expenseCtx = document.getElementById('expenseChart').getContext('2d');
new Chart(expenseCtx, {
type: 'pie',
data: {
labels: ['Salaries', 'Insurance', 'Payroll Taxes', 'Health Benefits', 'Maintenance', 'Management', 'Other'],
datasets: [{
data: [49.1, 15.5, 10.4, 7.2, 4.8, 7.3, 5.7],
backgroundColor: [
'#3B82F6', '#60A5FA', '#93C5FD', '#BFDBFE',
'#DBEAFE', '#EFF6FF', '#F3F4F6'
],
borderWidth: 0
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'right',
labels: {
font: {
family: 'Inter'
}
}
}
}
}
});
// Comparison Bar Chart
const comparisonCtx = document.getElementById('comparisonChart').getContext('2d');
new Chart(comparisonCtx, {
type: 'bar',
data: {
labels: ['Salaries', 'Insurance', 'Payroll Taxes', 'Health', 'Maintenance', 'Management'],
datasets: [
{
label: 'Monthly ($)',
data: [56286, 17814, 11936, 8247, 5510, 8333],
backgroundColor: '#3B82F6',
borderWidth: 0
},
{
label: 'Annual ($)',
data: [675432, 213768, 143232, 98964, 66120, 99996],
backgroundColor: '#60A5FA',
borderWidth: 0
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
ticks: {
callback: function(value) {
return '$' + value.toLocaleString();
}
}
}
}
}
});
});
</script>
</body>
</html>