-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.html
94 lines (82 loc) · 3.13 KB
/
sample.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Portfolio Manager Dashboard</title>
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<!-- Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<!-- MDB -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.css" rel="stylesheet">
<!-- Chart.js for the graph -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div class="container my-5">
<h1 class="text-center mb-4">Portfolio Manager Dashboard</h1>
<!-- Summary Section with Cards -->
<div class="row mb-4">
<div class="col-lg-3 col-md-6 mb-4">
<div class="card h-100">
<div class="card-body">
<h4 class="card-title">Total Investment Amount</h4>
<p class="card-text" id="totalInvestment">$0.00</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 mb-4">
<div class="card h-100">
<div class="card-body">
<h4 class="card-title">Total Mutual Funds Managed</h4>
<p class="card-text" id="totalFunds">0</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 mb-4">
<div class="card h-100">
<div class="card-body">
<h4 class="card-title">Total Subscriptions</h4>
<p class="card-text" id="totalSubscriptions">0</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 mb-4">
<div class="card h-100">
<div class="card-body">
<h4 class="card-title">Total Returns</h4>
<p class="card-text" id="totalReturns">$0.00</p>
</div>
</div>
</div>
</div>
<!-- Investment Value over 10 days Graph -->
<div class="mb-4">
<h3>Investment Value Over 10 Days</h3>
<canvas id="investmentChart" width="400" height="150"></canvas>
</div>
<!-- Mutual Fund Investments Table -->
<h3 class="mb-3">Your Investments</h3>
<table class="table table-bordered">
<thead>
<tr>
<th>Mutual Fund Name</th>
<th>Invested Amount</th>
<th>Date of Investment</th>
<th>Current NAV</th>
<th>Total Value</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="investmentsBody">
<!-- Mutual fund investments will be dynamically populated here using JavaScript -->
</tbody>
</table>
</div>
<!-- MDB JS -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.js"></script>
<!-- Your JavaScript for fetching, displaying data and graph -->
<script src="sample.js"></script>
</body>
</html>