- create separate dashboard components for doctor and patient - add appointments to dashboard components - add code to backend for appointments retrieval
44 lines
1.0 KiB
Plaintext
44 lines
1.0 KiB
Plaintext
@page "/dashboard/{Role}"
|
|
|
|
<head>
|
|
<title>Dashboard</title>
|
|
</head>
|
|
<link rel="stylesheet" href="/bootstrap/dist/css/bootstrap.min.css"/>
|
|
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.22.4/dist/bootstrap-table.min.css">
|
|
<link href="https://cdn.datatables.net/2.0.4/css/dataTables.bootstrap5.css" rel="stylesheet">
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
|
|
<style>
|
|
.select,
|
|
#locale {
|
|
width: 100%;
|
|
}
|
|
.like {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.modal-backdrop.show {
|
|
display: none !important;
|
|
}
|
|
</style>
|
|
|
|
<NavLink class="btn btn-primary m-2 position-absolute top-0 end-0" href="@($"/my-profile/{Role}")">My Profile</NavLink>
|
|
|
|
@switch (Role)
|
|
{
|
|
case "doctor":
|
|
<DoctorDashboard/>
|
|
break;
|
|
case "patient":
|
|
<PatientDashboard/>
|
|
break;
|
|
default:
|
|
<p>Unknown role. Please contact support.</p>
|
|
break;
|
|
}
|
|
|
|
|
|
@code {
|
|
[Parameter] public string Role { get; set; }
|
|
} |