404
++ Page not found +
++ Sorry, we couldn’t find the page you’re looking for. +
+diff --git a/src/pages/student/StudentDashboardContent.tsx b/src/pages/student/StudentDashboardContent.tsx index 0ecd5ac..366f7b7 100644 --- a/src/pages/student/StudentDashboardContent.tsx +++ b/src/pages/student/StudentDashboardContent.tsx @@ -1,17 +1,38 @@ +import { useEffect } from "react"; import EnrolCourse from "./EnrolCourse"; import StudentDashboardProfile from "./StudentDashboardProfile"; const StudentDashboardContent = () => { + useEffect(() => { + // Inject Botpress chatbot script + const script1 = document.createElement("script"); + script1.src = "https://cdn.botpress.cloud/webchat/v2.1/inject.js"; + script1.async = true; + + const script2 = document.createElement("script"); + script2.src = "https://mediafiles.botpress.cloud/48256a3c-04c9-44dc-bfa3-af660f1609fb/webchat/v2.1/config.js"; + script2.async = true; + + document.body.appendChild(script1); + document.body.appendChild(script2); + + // Cleanup function to remove scripts when component unmounts + return () => { + document.body.removeChild(script1); + document.body.removeChild(script2); + }; + }, []); + return (
+ Learn how to grow your skill with our expert advice. +
+404
++ Sorry, we couldn’t find the page you’re looking for. +
++ What students say about us +
+++{`“${featuredTestimonial.body}”`}
+
++{`“${testimonial.body}”`}
+
{description}
+{value}
+{profile.role}
++ {counselling.CashAmount > 0 + ? `৳${counselling.CashAmount}` + : "Free"} +
++ Counsellor Name:{" "} + {counselling.CreateBy} +
++ Description:{" "} + + {counselling.Description} + +
++ Type:{" "} + {counselling.Type} +
++ Duration:{" "} + {counselling.Duration}{" "} + Minutes +
++ Date and Time:{" "} + + {formatDateTime(counselling.selectDate)} + +
+Error fetching counselling data
} + + {currentTab === "All Counselling" && + !isLoading && + !error && + filteredCounsellingSessions.length > 0 && ( ++ {counselling.CashAmount > 0 + ? `৳${counselling.CashAmount}` + : "Free"} +
++ Counsellor Name:{" "} + {counselling.CreateBy} +
++ Description:{" "} + + {counselling.Description} + +
++ Type:{" "} + {counselling.Type} +
++ Duration:{" "} + + {counselling.Duration} Minutes + +
++ Date and Time:{" "} + + {formatDateTime(counselling.selectDate)} + +
+ + {/* New fields */} + {counselling.MeetLink && ( + + Meet Link: {counselling.MeetLink} + + )} + {counselling.StudyRoomNumber && ( ++ Study Room Number:{" "} + + {counselling.StudyRoomNumber} + +
+ )} + {counselling.BookedByName ? ( + <> ++ Booked By:{" "} + + {counselling.BookedByName} + +
++ Booked By Phone:{" "} + + {counselling.BookedByPhone} + +
+ > + ) : ( ++ Not Booked Yet +
+ )} ++ Payment:{" "} + + {counselling.isPayment ? "Completed" : "Pending"} + +
+ ++ Is Completed:{" "} + + {counselling.Completed ? "" : "Completed"} + +
++ {counselling.CashAmount > 0 + ? `৳${counselling.CashAmount}` + : "Free"} +
++ Counsellor Name:{" "} + {counselling.CreateBy} +
++ Description:{" "} + + {counselling.Description} + +
++ Type:{" "} + {counselling.Type} +
++ Duration:{" "} + {counselling.Duration}{" "} + Minutes +
++ Date and Time:{" "} + + {formatDateTime(counselling.selectDate)} + +
+ + {/* New fields */} + {counselling.MeetLink && ( + + Meet Link: {counselling.MeetLink} + + )} + {counselling.StudyRoomNumber && ( ++ Study Room Number:{" "} + + {counselling.StudyRoomNumber} + +
+ )} + {counselling.BookedByName ? ( + <> ++ Booked By:{" "} + + {counselling.BookedByName} + +
++ Booked By Phone:{" "} + + {counselling.BookedByPhone} + +
+ > + ) : ( ++ Not Booked Yet +
+ )} ++ Payment:{" "} + + {counselling.isPayment ? "Completed" : "Pending"} + +
++ Booking Status:{" "} + + {counselling.isBooked ? "Booked" : "Not Booked"} + +
++ {counselling.CashAmount > 0 + ? `৳${counselling.CashAmount}` + : "Free"} +
++ Counsellor:{" "} + {counselling.CreateBy} +
++ Description:{" "} + {counselling.Description} +
++ Type: {counselling.Type} +
++ Duration:{" "} + + {counselling.Duration} Minutes + +
++ Date & Time:{" "} + + {formatDateTime(counselling.selectDate)} + +
++ Use a permanent address where you can receive mail. +
+{post.postContent}
+ {post.postImage && ( +{comment.comment}
+ {comment.image && ( +Error fetching counselling data
} + + {currentTab === "All Counselling" && + !isLoading && + !error && + filteredCounsellingSessions.length > 0 && ( ++ Fill out the form below to create a new study group. +
++ Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet + fugiat veniam occaecat fugiat aliqua. +
++ {counselling.CashAmount > 0 + ? `৳${counselling.CashAmount}` + : "Free"} +
++ Counsellor Name:{" "} + {counselling.CreateBy} +
++ Description:{" "} + + {counselling.Description} + +
++ Type:{" "} + {counselling.Type} +
++ Duration:{" "} + {counselling.Duration}{" "} + Minutes +
++ Date and Time:{" "} + + {formatDateTime(counselling.selectDate)} + +
+ + {/* New fields */} + {counselling.MeetLink && ( + + Meet Link: {counselling.MeetLink} + + )} + {counselling.StudyRoomNumber && ( ++ Study Room Number:{" "} + + {counselling.StudyRoomNumber} + +
+ )} + {counselling.BookedByName ? ( + <> + + > + ) : ( ++ Not Booked Yet +
+ )} ++ Payment:{" "} + + {counselling.isPayment === true ? "Completed" : "Pending"} + +
++ Booking Status:{" "} + + {counselling.isBooked ? "Booked" : "Not Booked"} + +
++ {counselling.CashAmount > 0 + ? `৳${counselling.CashAmount}` + : "Free"} +
++ Counsellor Name:{" "} + {counselling.CreateBy} +
++ Description:{" "} + + {counselling.Description} + +
++ Type:{" "} + {counselling.Type} +
++ Duration:{" "} + + {counselling.Duration} Minutes + +
++ Date and Time:{" "} + + {formatDateTime(counselling.selectDate)} + +
+ + {/* New fields */} + {counselling.MeetLink && ( + + Meet Link: {counselling.MeetLink} + + )} + {counselling.StudyRoomNumber && ( ++ Study Room Number:{" "} + + {counselling.StudyRoomNumber} + +
+ )} + {counselling.BookedByName ? ( + <> ++ Booked By:{" "} + + {counselling.BookedByName} + +
++ Booked By Phone:{" "} + + {counselling.BookedByPhone} + +
+ > + ) : ( ++ Not Booked Yet +
+ )} ++ Payment:{" "} + + {counselling.isPayment ? "Completed" : "Pending"} + +
+ ++ Is Completed:{" "} + + {counselling.Completed ? "" : "Completed"} + +
+An error occurred. Please try again later.
++ A list of all the files associated with this course, including their + name, description, type, and size. +
++ File Name + | ++ Description + | ++ Type + | ++ File Type + | ++ Size + | ++ Uploaded By + | ++ Action + | +
---|---|---|---|---|---|---|
+ {file.fileName} + | ++ {file.fileDescription} + | ++ {file.type} + | ++ {file.fileType} + | ++ {file.fileSize} KB + | ++ {file.uploadedBy} + | ++ + | +