From 044e4bd1d6a3981b79280a7fb2b3c3b3a4b7e8cc Mon Sep 17 00:00:00 2001 From: Ibrahim Khail Shakil Date: Wed, 6 Dec 2023 09:51:23 +0600 Subject: [PATCH] updated instructor profile page --- .../Backend/Courses/CourseController.php | 2 +- .../Instructors/InstructorController.php | 7 ++++ resources/views/frontend/home.blade.php | 4 +- .../frontend/instructorProfile.blade.php | 42 ++++++++----------- .../views/frontend/layouts/app.blade.php | 2 +- routes/web.php | 9 ++-- 6 files changed, 34 insertions(+), 32 deletions(-) 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 @@