diff --git a/Alumni-Project/app/Http/Controllers/ForumController.php b/Alumni-Project/app/Http/Controllers/ForumController.php
index 4618064..188ef62 100644
--- a/Alumni-Project/app/Http/Controllers/ForumController.php
+++ b/Alumni-Project/app/Http/Controllers/ForumController.php
@@ -18,7 +18,7 @@ public function viewQuestions(){
}
public function viewAnswers(){
- return view('forum.viewAnswers');
+ return view('forum.viewAnswer');
}
public function createQuestion(){
diff --git a/Alumni-Project/resources/views/forum/addQuestion.blade.php b/Alumni-Project/resources/views/forum/addQuestion.blade.php
index f46aba7..4a27889 100644
--- a/Alumni-Project/resources/views/forum/addQuestion.blade.php
+++ b/Alumni-Project/resources/views/forum/addQuestion.blade.php
@@ -27,7 +27,6 @@
-
- Answers Question
+ Answers Question
@endforeach
diff --git a/Alumni-Project/routes/web.php b/Alumni-Project/routes/web.php
index 48da886..5fc4f8b 100644
--- a/Alumni-Project/routes/web.php
+++ b/Alumni-Project/routes/web.php
@@ -168,7 +168,7 @@
// View Forum
Route::get('/alumni/forum',[ForumController::class,'viewQuestions']);
- Route::get('/alumni/forumAnswers',[ForumController::class,'viewAnswers'])->name('question.answers');
+ Route::get('/alumni/forum/answer/{id}',[ForumController::class,'viewAnswers'])->name('question.answers');
// Change password
Route::get('/alumni/change-password',[AlumniLoginController::class,'showChangePasswordForm'])->name('alumni.change-password.form');
@@ -219,6 +219,7 @@
Route::get('/student/forum', [ForumController::class, 'viewQuestions'])->name('forum.index');
Route::get('/student/forum/add', [ForumController::class, 'createQuestion']);
Route::post('/student/forum/add/post', [ForumController::class, 'storeQuestion'])->name('questions.store');
+ Route::get('/student/forum/answer/{id}',[ForumController::class,'viewAnswers']);
});