diff --git a/app/Http/Controllers/Backend/Courses/CourseController.php b/app/Http/Controllers/Backend/Courses/CourseController.php index a841094..b4c663b 100644 --- a/app/Http/Controllers/Backend/Courses/CourseController.php +++ b/app/Http/Controllers/Backend/Courses/CourseController.php @@ -102,7 +102,7 @@ public function frontShow($id) $course = Course::findOrFail(encryptor('decrypt', $id)); // dd($course); return view('frontend.courseDetails', compact('course')); - } + } /** diff --git a/app/Http/Controllers/Backend/Instructors/InstructorController.php b/app/Http/Controllers/Backend/Instructors/InstructorController.php index 12c302a..41ca051 100644 --- a/app/Http/Controllers/Backend/Instructors/InstructorController.php +++ b/app/Http/Controllers/Backend/Instructors/InstructorController.php @@ -76,6 +76,13 @@ public function show(Instructor $instructor) // } + public function frontShow($id) + { + $instructor = Instructor::findOrFail(encryptor('decrypt', $id)); + // dd($course); + return view('frontend.instructorProfile', compact('instructor')); + } + /** * Show the form for editing the specified resource. */ diff --git a/resources/views/frontend/home.blade.php b/resources/views/frontend/home.blade.php index 02f8c69..5e321be 100644 --- a/resources/views/frontend/home.blade.php +++ b/resources/views/frontend/home.blade.php @@ -1576,7 +1576,7 @@ class="img-fluid" />
- {{$i->name_en}} + {{$i->name_en}}

{{$i->designation}}

@@ -1614,7 +1614,7 @@ class="img-fluid" />
- {{$c->title_en}} + {{$c->title_en}}
diff --git a/resources/views/frontend/instructorProfile.blade.php b/resources/views/frontend/instructorProfile.blade.php index 50c59fb..c279263 100644 --- a/resources/views/frontend/instructorProfile.blade.php +++ b/resources/views/frontend/instructorProfile.blade.php @@ -13,7 +13,7 @@