AV1925 commited on
Commit
23ff214
·
verified ·
1 Parent(s): f5fe8d2

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +685 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Avcom
3
- emoji: 🌖
4
- colorFrom: pink
5
- colorTo: indigo
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: avcom
3
+ emoji: 🐳
4
+ colorFrom: gray
5
+ colorTo: gray
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,685 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>LoanMaster ERP - Lending Management System</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ .sidebar {
11
+ transition: all 0.3s ease;
12
+ }
13
+ .sidebar-collapsed {
14
+ width: 70px;
15
+ }
16
+ .sidebar-collapsed .nav-text {
17
+ display: none;
18
+ }
19
+ .sidebar-collapsed .logo-text {
20
+ display: none;
21
+ }
22
+ .sidebar-collapsed .nav-item {
23
+ justify-content: center;
24
+ }
25
+ .content {
26
+ transition: margin-left 0.3s ease;
27
+ }
28
+ .notification-badge {
29
+ position: absolute;
30
+ top: -5px;
31
+ right: -5px;
32
+ font-size: 10px;
33
+ background: #ef4444;
34
+ color: white;
35
+ border-radius: 50%;
36
+ width: 18px;
37
+ height: 18px;
38
+ display: flex;
39
+ align-items: center;
40
+ justify-content: center;
41
+ }
42
+ .chart-container {
43
+ position: relative;
44
+ height: 300px;
45
+ }
46
+ .dropdown:hover .dropdown-menu {
47
+ display: block;
48
+ }
49
+ .risk-high { background-color: #fee2e2; }
50
+ .risk-medium { background-color: #fef3c7; }
51
+ .risk-low { background-color: #dcfce7; }
52
+ .status-approved { background-color: #dcfce7; color: #166534; }
53
+ .status-pending { background-color: #fef3c7; color: #92400e; }
54
+ .status-rejected { background-color: #fee2e2; color: #991b1b; }
55
+ </style>
56
+ </head>
57
+ <body class="bg-gray-100 font-sans">
58
+ <div class="flex h-screen overflow-hidden">
59
+ <!-- Sidebar -->
60
+ <div class="sidebar bg-blue-800 text-white w-64 flex flex-col">
61
+ <!-- Logo -->
62
+ <div class="p-4 flex items-center space-x-3 border-b border-blue-700">
63
+ <div class="bg-white p-2 rounded-lg">
64
+ <i class="fas fa-hand-holding-usd text-blue-800 text-xl"></i>
65
+ </div>
66
+ <span class="logo-text text-xl font-bold">LoanMaster ERP</span>
67
+ </div>
68
+
69
+ <!-- User Profile -->
70
+ <div class="p-4 flex items-center space-x-3 border-b border-blue-700">
71
+ <div class="relative">
72
+ <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-10 h-10 rounded-full">
73
+ <span class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full border-2 border-white"></span>
74
+ </div>
75
+ <div class="flex flex-col">
76
+ <span class="font-medium">Robert Johnson</span>
77
+ <span class="text-xs text-blue-300">Loan Officer</span>
78
+ </div>
79
+ </div>
80
+
81
+ <!-- Navigation -->
82
+ <nav class="flex-1 overflow-y-auto">
83
+ <ul class="space-y-1 p-2">
84
+ <li>
85
+ <a href="#" class="nav-item flex items-center p-3 space-x-3 rounded-lg bg-blue-900">
86
+ <i class="fas fa-tachometer-alt"></i>
87
+ <span class="nav-text">Dashboard</span>
88
+ </a>
89
+ </li>
90
+ <li>
91
+ <a href="#" class="nav-item flex items-center p-3 space-x-3 rounded-lg hover:bg-blue-700">
92
+ <i class="fas fa-user-plus"></i>
93
+ <span class="nav-text">New Applications</span>
94
+ </a>
95
+ </li>
96
+ <li>
97
+ <a href="#" class="nav-item flex items-center p-3 space-x-3 rounded-lg hover:bg-blue-700">
98
+ <i class="fas fa-clipboard-list"></i>
99
+ <span class="nav-text">Loan Portfolio</span>
100
+ </a>
101
+ </li>
102
+ <li>
103
+ <a href="#" class="nav-item flex items-center p-3 space-x-3 rounded-lg hover:bg-blue-700">
104
+ <i class="fas fa-users"></i>
105
+ <span class="nav-text">Customers</span>
106
+ </a>
107
+ </li>
108
+ <li>
109
+ <a href="#" class="nav-item flex items-center p-3 space-x-3 rounded-lg hover:bg-blue-700">
110
+ <i class="fas fa-file-invoice-dollar"></i>
111
+ <span class="nav-text">Payments</span>
112
+ </a>
113
+ </li>
114
+ <li>
115
+ <a href="#" class="nav-item flex items-center p-3 space-x-3 rounded-lg hover:bg-blue-700">
116
+ <i class="fas fa-chart-line"></i>
117
+ <span class="nav-text">Reports</span>
118
+ </a>
119
+ </li>
120
+ <li>
121
+ <a href="#" class="nav-item flex items-center p-3 space-x-3 rounded-lg hover:bg-blue-700">
122
+ <i class="fas fa-cog"></i>
123
+ <span class="nav-text">Settings</span>
124
+ </a>
125
+ </li>
126
+ <li>
127
+ <a href="#" class="nav-item flex items-center p-3 space-x-3 rounded-lg hover:bg-blue-700">
128
+ <i class="fas fa-code"></i>
129
+ <span class="nav-text">VB Integration</span>
130
+ </a>
131
+ </li>
132
+ </ul>
133
+ </nav>
134
+
135
+ <!-- Collapse Button -->
136
+ <div class="p-4 border-t border-blue-700">
137
+ <button id="toggleSidebar" class="w-full flex items-center justify-center p-2 rounded-lg hover:bg-blue-700">
138
+ <i class="fas fa-chevron-left"></i>
139
+ </button>
140
+ </div>
141
+ </div>
142
+
143
+ <!-- Main Content -->
144
+ <div class="content flex-1 flex flex-col overflow-hidden">
145
+ <!-- Top Navigation -->
146
+ <header class="bg-white shadow-sm">
147
+ <div class="flex items-center justify-between px-6 py-3">
148
+ <!-- Search -->
149
+ <div class="flex items-center space-x-4">
150
+ <button id="mobileMenuButton" class="md:hidden text-gray-500">
151
+ <i class="fas fa-bars"></i>
152
+ </button>
153
+ <div class="relative">
154
+ <input type="text" placeholder="Search loans, customers..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
155
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
156
+ </div>
157
+ </div>
158
+
159
+ <!-- Notifications & User -->
160
+ <div class="flex items-center space-x-4">
161
+ <div class="relative">
162
+ <button class="p-2 rounded-full hover:bg-gray-100">
163
+ <i class="fas fa-bell text-gray-600"></i>
164
+ <span class="notification-badge">3</span>
165
+ </button>
166
+ </div>
167
+ <div class="relative">
168
+ <button class="p-2 rounded-full hover:bg-gray-100">
169
+ <i class="fas fa-envelope text-gray-600"></i>
170
+ <span class="notification-badge">2</span>
171
+ </button>
172
+ </div>
173
+
174
+ <div class="dropdown relative">
175
+ <button class="flex items-center space-x-2 focus:outline-none">
176
+ <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-8 h-8 rounded-full">
177
+ <span class="hidden md:inline">Robert J.</span>
178
+ <i class="fas fa-chevron-down text-xs"></i>
179
+ </button>
180
+ <div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 hidden">
181
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Profile</a>
182
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
183
+ <div class="border-t border-gray-200"></div>
184
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a>
185
+ </div>
186
+ </div>
187
+ </div>
188
+ </div>
189
+ </header>
190
+
191
+ <!-- Main Content Area -->
192
+ <main class="flex-1 overflow-y-auto p-6">
193
+ <!-- Page Header -->
194
+ <div class="flex justify-between items-center mb-6">
195
+ <h1 class="text-2xl font-bold text-gray-800">Lending Management Dashboard</h1>
196
+ <div class="flex space-x-2">
197
+ <button onclick="showVBIntegrationModal()" class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 flex items-center space-x-2">
198
+ <i class="fas fa-code"></i>
199
+ <span>VB Integration</span>
200
+ </button>
201
+ <button class="px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50 flex items-center space-x-2">
202
+ <i class="fas fa-filter"></i>
203
+ <span>Filter</span>
204
+ </button>
205
+ </div>
206
+ </div>
207
+
208
+ <!-- Stats Cards -->
209
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
210
+ <div class="bg-white p-6 rounded-lg shadow">
211
+ <div class="flex items-center justify-between">
212
+ <div>
213
+ <p class="text-gray-500">Total Loan Portfolio</p>
214
+ <h3 class="text-2xl font-bold">$4,563,892</h3>
215
+ <p class="text-green-500 text-sm mt-1">
216
+ <i class="fas fa-arrow-up"></i> 8.2% from last quarter
217
+ </p>
218
+ </div>
219
+ <div class="p-3 rounded-full bg-blue-100 text-blue-600">
220
+ <i class="fas fa-hand-holding-usd text-xl"></i>
221
+ </div>
222
+ </div>
223
+ </div>
224
+
225
+ <div class="bg-white p-6 rounded-lg shadow">
226
+ <div class="flex items-center justify-between">
227
+ <div>
228
+ <p class="text-gray-500">New Applications</p>
229
+ <h3 class="text-2xl font-bold">42</h3>
230
+ <p class="text-red-500 text-sm mt-1">
231
+ <i class="fas fa-arrow-down"></i> 3.5% from last month
232
+ </p>
233
+ </div>
234
+ <div class="p-3 rounded-full bg-green-100 text-green-600">
235
+ <i class="fas fa-file-signature text-xl"></i>
236
+ </div>
237
+ </div>
238
+ </div>
239
+
240
+ <div class="bg-white p-6 rounded-lg shadow">
241
+ <div class="flex items-center justify-between">
242
+ <div>
243
+ <p class="text-gray-500">Delinquency Rate</p>
244
+ <h3 class="text-2xl font-bold">2.8%</h3>
245
+ <p class="text-green-500 text-sm mt-1">
246
+ <i class="fas fa-arrow-down"></i> 1.2% from last quarter
247
+ </p>
248
+ </div>
249
+ <div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
250
+ <i class="fas fa-exclamation-triangle text-xl"></i>
251
+ </div>
252
+ </div>
253
+ </div>
254
+
255
+ <div class="bg-white p-6 rounded-lg shadow">
256
+ <div class="flex items-center justify-between">
257
+ <div>
258
+ <p class="text-gray-500">Active Customers</p>
259
+ <h3 class="text-2xl font-bold">1,243</h3>
260
+ <p class="text-green-500 text-sm mt-1">
261
+ <i class="fas fa-arrow-up"></i> 5.3% from last quarter
262
+ </p>
263
+ </div>
264
+ <div class="p-3 rounded-full bg-purple-100 text-purple-600">
265
+ <i class="fas fa-users text-xl"></i>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ </div>
270
+
271
+ <!-- Charts Row -->
272
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
273
+ <!-- Loan Portfolio Chart -->
274
+ <div class="bg-white p-6 rounded-lg shadow">
275
+ <div class="flex justify-between items-center mb-4">
276
+ <h3 class="font-semibold text-lg">Loan Portfolio Growth</h3>
277
+ <select class="border rounded px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
278
+ <option>This Year</option>
279
+ <option>Last Year</option>
280
+ <option>Last 5 Years</option>
281
+ </select>
282
+ </div>
283
+ <div class="chart-container">
284
+ <canvas id="portfolioChart"></canvas>
285
+ </div>
286
+ </div>
287
+
288
+ <!-- Loan Types Distribution -->
289
+ <div class="bg-white p-6 rounded-lg shadow">
290
+ <div class="flex justify-between items-center mb-4">
291
+ <h3 class="font-semibold text-lg">Loan Types Distribution</h3>
292
+ <select class="border rounded px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
293
+ <option>Current Portfolio</option>
294
+ <option>New Applications</option>
295
+ </select>
296
+ </div>
297
+ <div class="chart-container">
298
+ <canvas id="loanTypeChart"></canvas>
299
+ </div>
300
+ </div>
301
+ </div>
302
+
303
+ <!-- Recent Applications & VB Integration -->
304
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
305
+ <!-- Recent Applications -->
306
+ <div class="lg:col-span-2 bg-white p-6 rounded-lg shadow">
307
+ <h3 class="font-semibold text-lg mb-4">Recent Loan Applications</h3>
308
+ <div class="overflow-x-auto">
309
+ <table class="min-w-full divide-y divide-gray-200">
310
+ <thead class="bg-gray-50">
311
+ <tr>
312
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Application #</th>
313
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Customer</th>
314
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
315
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
316
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Risk</th>
317
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
318
+ </tr>
319
+ </thead>
320
+ <tbody class="bg-white divide-y divide-gray-200">
321
+ <tr>
322
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">LN-2023-0042</td>
323
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Michael Brown</td>
324
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$25,000</td>
325
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Personal</td>
326
+ <td class="px-6 py-4 whitespace-nowrap">
327
+ <span class="px-2 py-1 text-xs rounded-full risk-medium">Medium</span>
328
+ </td>
329
+ <td class="px-6 py-4 whitespace-nowrap">
330
+ <span class="px-2 py-1 text-xs rounded-full status-pending">Pending</span>
331
+ </td>
332
+ </tr>
333
+ <tr>
334
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">LN-2023-0041</td>
335
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sarah Johnson</td>
336
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$15,000</td>
337
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Auto</td>
338
+ <td class="px-6 py-4 whitespace-nowrap">
339
+ <span class="px-2 py-1 text-xs rounded-full risk-low">Low</span>
340
+ </td>
341
+ <td class="px-6 py-4 whitespace-nowrap">
342
+ <span class="px-2 py-1 text-xs rounded-full status-approved">Approved</span>
343
+ </td>
344
+ </tr>
345
+ <tr>
346
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">LN-2023-0040</td>
347
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">David Wilson</td>
348
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$150,000</td>
349
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Mortgage</td>
350
+ <td class="px-6 py-4 whitespace-nowrap">
351
+ <span class="px-2 py-1 text-xs rounded-full risk-high">High</span>
352
+ </td>
353
+ <td class="px-6 py-4 whitespace-nowrap">
354
+ <span class="px-2 py-1 text-xs rounded-full status-rejected">Rejected</span>
355
+ </td>
356
+ </tr>
357
+ <tr>
358
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">LN-2023-0039</td>
359
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Emily Davis</td>
360
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$35,000</td>
361
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Business</td>
362
+ <td class="px-6 py-4 whitespace-nowrap">
363
+ <span class="px-2 py-1 text-xs rounded-full risk-medium">Medium</span>
364
+ </td>
365
+ <td class="px-6 py-4 whitespace-nowrap">
366
+ <span class="px-2 py-1 text-xs rounded-full status-approved">Approved</span>
367
+ </td>
368
+ </tr>
369
+ </tbody>
370
+ </table>
371
+ </div>
372
+ <button class="mt-4 text-blue-600 hover:text-blue-800 text-sm font-medium">
373
+ View all applications <i class="fas fa-arrow-right ml-1"></i>
374
+ </button>
375
+ </div>
376
+
377
+ <!-- VB Integration Panel -->
378
+ <div class="bg-white p-6 rounded-lg shadow">
379
+ <div class="flex justify-between items-center mb-4">
380
+ <h3 class="font-semibold text-lg">Visual Basic Integration</h3>
381
+ <button onclick="showVBIntegrationModal()" class="text-blue-600 hover:text-blue-800 text-sm font-medium">
382
+ <i class="fas fa-plus"></i> New Integration
383
+ </button>
384
+ </div>
385
+ <div class="space-y-3">
386
+ <div class="p-3 bg-gray-50 rounded-lg">
387
+ <div class="flex items-center justify-between mb-2">
388
+ <span class="font-medium">Loan Calculator</span>
389
+ <span class="text-xs px-2 py-1 bg-green-100 text-green-800 rounded-full">Active</span>
390
+ </div>
391
+ <p class="text-xs text-gray-500 mb-2">Calculates loan payments and amortization</p>
392
+ <div class="flex space-x-2">
393
+ <button class="text-xs px-2 py-1 bg-blue-100 text-blue-800 rounded hover:bg-blue-200">
394
+ <i class="fas fa-play"></i> Run
395
+ </button>
396
+ <button class="text-xs px-2 py-1 bg-gray-100 text-gray-800 rounded hover:bg-gray-200">
397
+ <i class="fas fa-edit"></i> Edit
398
+ </button>
399
+ </div>
400
+ </div>
401
+ <div class="p-3 bg-gray-50 rounded-lg">
402
+ <div class="flex items-center justify-between mb-2">
403
+ <span class="font-medium">Risk Assessment</span>
404
+ <span class="text-xs px-2 py-1 bg-green-100 text-green-800 rounded-full">Active</span>
405
+ </div>
406
+ <p class="text-xs text-gray-500 mb-2">Analyzes borrower risk factors</p>
407
+ <div class="flex space-x-2">
408
+ <button class="text-xs px-2 py-1 bg-blue-100 text-blue-800 rounded hover:bg-blue-200">
409
+ <i class="fas fa-play"></i> Run
410
+ </button>
411
+ <button class="text-xs px-2 py-1 bg-gray-100 text-gray-800 rounded hover:bg-gray-200">
412
+ <i class="fas fa-edit"></i> Edit
413
+ </button>
414
+ </div>
415
+ </div>
416
+ <div class="p-3 bg-gray-50 rounded-lg">
417
+ <div class="flex items-center justify-between mb-2">
418
+ <span class="font-medium">Report Generator</span>
419
+ <span class="text-xs px-2 py-1 bg-yellow-100 text-yellow-800 rounded-full">Pending</span>
420
+ </div>
421
+ <p class="text-xs text-gray-500 mb-2">Generates regulatory reports</p>
422
+ <div class="flex space-x-2">
423
+ <button class="text-xs px-2 py-1 bg-blue-100 text-blue-800 rounded hover:bg-blue-200">
424
+ <i class="fas fa-play"></i> Run
425
+ </button>
426
+ <button class="text-xs px-2 py-1 bg-gray-100 text-gray-800 rounded hover:bg-gray-200">
427
+ <i class="fas fa-edit"></i> Edit
428
+ </button>
429
+ </div>
430
+ </div>
431
+ </div>
432
+ <button class="mt-4 text-blue-600 hover:text-blue-800 text-sm font-medium">
433
+ View all integrations <i class="fas fa-arrow-right ml-1"></i>
434
+ </button>
435
+ </div>
436
+ </div>
437
+ </main>
438
+ </div>
439
+ </div>
440
+
441
+ <!-- VB Integration Modal -->
442
+ <div id="vbIntegrationModal" class="fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full hidden z-50">
443
+ <div class="relative top-20 mx-auto p-5 border w-1/2 shadow-lg rounded-md bg-white">
444
+ <div class="flex justify-between items-center mb-4">
445
+ <h3 class="text-lg font-bold">Visual Basic Integration</h3>
446
+ <button onclick="hideVBIntegrationModal()" class="text-gray-500 hover:text-gray-700">
447
+ <i class="fas fa-times"></i>
448
+ </button>
449
+ </div>
450
+ <div class="mb-4">
451
+ <label class="block text-gray-700 text-sm font-bold mb-2" for="vbFunction">
452
+ VB Function Name
453
+ </label>
454
+ <input id="vbFunction" type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" placeholder="CalculateLoanPayment">
455
+ </div>
456
+ <div class="mb-4">
457
+ <label class="block text-gray-700 text-sm font-bold mb-2" for="vbParameters">
458
+ Parameters (JSON format)
459
+ </label>
460
+ <textarea id="vbParameters" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline h-24" placeholder='{"principal": 10000, "rate": 5.5, "term": 60}'></textarea>
461
+ </div>
462
+ <div class="mb-4">
463
+ <label class="block text-gray-700 text-sm font-bold mb-2" for="vbDescription">
464
+ Description
465
+ </label>
466
+ <textarea id="vbDescription" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" placeholder="Calculates monthly loan payment amount"></textarea>
467
+ </div>
468
+ <div class="flex justify-end space-x-3">
469
+ <button onclick="hideVBIntegrationModal()" class="px-4 py-2 bg-gray-300 text-gray-800 rounded hover:bg-gray-400">
470
+ Cancel
471
+ </button>
472
+ <button onclick="runVBIntegration()" class="px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700">
473
+ <i class="fas fa-play mr-2"></i> Run VB Function
474
+ </button>
475
+ <button onclick="saveVBIntegration()" class="px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700">
476
+ <i class="fas fa-save mr-2"></i> Save
477
+ </button>
478
+ </div>
479
+ <div id="vbOutput" class="mt-4 p-3 bg-gray-100 rounded hidden">
480
+ <h4 class="font-bold mb-2">Output:</h4>
481
+ <pre id="vbOutputContent" class="text-sm"></pre>
482
+ </div>
483
+ </div>
484
+ </div>
485
+
486
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
487
+ <script>
488
+ // Toggle sidebar
489
+ const toggleSidebar = document.getElementById('toggleSidebar');
490
+ const sidebar = document.querySelector('.sidebar');
491
+ const content = document.querySelector('.content');
492
+
493
+ toggleSidebar.addEventListener('click', () => {
494
+ sidebar.classList.toggle('sidebar-collapsed');
495
+ content.classList.toggle('ml-64');
496
+ toggleSidebar.innerHTML = sidebar.classList.contains('sidebar-collapsed')
497
+ ? '<i class="fas fa-chevron-right"></i>'
498
+ : '<i class="fas fa-chevron-left"></i>';
499
+ });
500
+
501
+ // Mobile menu toggle
502
+ const mobileMenuButton = document.getElementById('mobileMenuButton');
503
+ mobileMenuButton.addEventListener('click', () => {
504
+ sidebar.classList.toggle('hidden');
505
+ });
506
+
507
+ // Dropdown menus
508
+ document.querySelectorAll('.dropdown').forEach(dropdown => {
509
+ dropdown.addEventListener('click', (e) => {
510
+ e.stopPropagation();
511
+ const menu = dropdown.querySelector('.dropdown-menu');
512
+ menu.classList.toggle('hidden');
513
+ });
514
+ });
515
+
516
+ // Close dropdown when clicking outside
517
+ document.addEventListener('click', () => {
518
+ document.querySelectorAll('.dropdown-menu').forEach(menu => {
519
+ menu.classList.add('hidden');
520
+ });
521
+ });
522
+
523
+ // Charts
524
+ // Portfolio Chart
525
+ const portfolioCtx = document.getElementById('portfolioChart').getContext('2d');
526
+ const portfolioChart = new Chart(portfolioCtx, {
527
+ type: 'line',
528
+ data: {
529
+ labels: ['Q1', 'Q2', 'Q3', 'Q4'],
530
+ datasets: [{
531
+ label: 'Loan Portfolio',
532
+ data: [3200000, 3800000, 4200000, 4560000],
533
+ borderColor: '#3B82F6',
534
+ backgroundColor: 'rgba(59, 130, 246, 0.1)',
535
+ fill: true,
536
+ tension: 0.4
537
+ }]
538
+ },
539
+ options: {
540
+ responsive: true,
541
+ maintainAspectRatio: false,
542
+ plugins: {
543
+ legend: {
544
+ display: false
545
+ }
546
+ },
547
+ scales: {
548
+ y: {
549
+ beginAtZero: false,
550
+ grid: {
551
+ drawBorder: false
552
+ },
553
+ ticks: {
554
+ callback: function(value) {
555
+ return '$' + (value / 1000000) + 'M';
556
+ }
557
+ }
558
+ },
559
+ x: {
560
+ grid: {
561
+ display: false
562
+ }
563
+ }
564
+ }
565
+ }
566
+ });
567
+
568
+ // Loan Type Chart
569
+ const loanTypeCtx = document.getElementById('loanTypeChart').getContext('2d');
570
+ const loanTypeChart = new Chart(loanTypeCtx, {
571
+ type: 'doughnut',
572
+ data: {
573
+ labels: ['Mortgage', 'Auto', 'Personal', 'Business', 'Other'],
574
+ datasets: [{
575
+ data: [45, 25, 15, 10, 5],
576
+ backgroundColor: [
577
+ '#3B82F6',
578
+ '#10B981',
579
+ '#6366F1',
580
+ '#F59E0B',
581
+ '#EF4444'
582
+ ],
583
+ borderWidth: 0
584
+ }]
585
+ },
586
+ options: {
587
+ responsive: true,
588
+ maintainAspectRatio: false,
589
+ plugins: {
590
+ legend: {
591
+ position: 'right'
592
+ }
593
+ },
594
+ cutout: '70%'
595
+ }
596
+ });
597
+
598
+ // VB Integration Functions
599
+ function showVBIntegrationModal() {
600
+ document.getElementById('vbIntegrationModal').classList.remove('hidden');
601
+ }
602
+
603
+ function hideVBIntegrationModal() {
604
+ document.getElementById('vbIntegrationModal').classList.add('hidden');
605
+ }
606
+
607
+ function runVBIntegration() {
608
+ const functionName = document.getElementById('vbFunction').value;
609
+ const params = document.getElementById('vbParameters').value;
610
+
611
+ // This is where you would normally call your VB code
612
+ // For demo purposes, we'll simulate a response
613
+
614
+ let output;
615
+ try {
616
+ const parsedParams = JSON.parse(params);
617
+
618
+ if (functionName === 'CalculateLoanPayment') {
619
+ // Simulate loan payment calculation
620
+ const principal = parsedParams.principal || 10000;
621
+ const rate = parsedParams.rate || 5.0;
622
+ const term = parsedParams.term || 60;
623
+
624
+ const monthlyRate = rate / 100 / 12;
625
+ const payment = principal * monthlyRate * Math.pow(1 + monthlyRate, term) / (Math.pow(1 + monthlyRate, term) - 1);
626
+
627
+ output = {
628
+ status: 'success',
629
+ result: {
630
+ monthlyPayment: payment.toFixed(2),
631
+ totalInterest: (payment * term - principal).toFixed(2),
632
+ totalPayment: (payment * term).toFixed(2)
633
+ }
634
+ };
635
+ } else if (functionName === 'AssessRisk') {
636
+ // Simulate risk assessment
637
+ const creditScore = parsedParams.creditScore || 700;
638
+ const dti = parsedParams.dti || 0.35;
639
+
640
+ let riskLevel;
641
+ if (creditScore < 600 || dti > 0.5) {
642
+ riskLevel = 'High';
643
+ } else if (creditScore < 700 || dti > 0.4) {
644
+ riskLevel = 'Medium';
645
+ } else {
646
+ riskLevel = 'Low';
647
+ }
648
+
649
+ output = {
650
+ status: 'success',
651
+ result: {
652
+ riskLevel: riskLevel,
653
+ approvalRecommendation: riskLevel === 'High' ? 'Reject' : 'Approve',
654
+ conditions: riskLevel === 'Medium' ? 'Higher interest rate recommended' : 'Standard terms'
655
+ }
656
+ };
657
+ } else {
658
+ output = {
659
+ status: 'error',
660
+ message: 'Function not recognized'
661
+ };
662
+ }
663
+ } catch (e) {
664
+ output = {
665
+ status: 'error',
666
+ message: 'Invalid parameters: ' + e.message
667
+ };
668
+ }
669
+
670
+ document.getElementById('vbOutputContent').textContent = JSON.stringify(output, null, 2);
671
+ document.getElementById('vbOutput').classList.remove('hidden');
672
+ }
673
+
674
+ function saveVBIntegration() {
675
+ const functionName = document.getElementById('vbFunction').value;
676
+ const params = document.getElementById('vbParameters').value;
677
+ const description = document.getElementById('vbDescription').value;
678
+
679
+ // In a real application, this would save to your database
680
+ alert(`VB Integration saved:\nFunction: ${functionName}\nDescription: ${description}`);
681
+ hideVBIntegrationModal();
682
+ }
683
+ </script>
684
+ <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=AV1925/avcom" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
685
+ </html>
prompts.txt ADDED
File without changes