diff --git a/app/Http/Controllers/Backend/Courses/CourseController.php b/app/Http/Controllers/Backend/Courses/CourseController.php index ae69fac..fd8d2ea 100644 --- a/app/Http/Controllers/Backend/Courses/CourseController.php +++ b/app/Http/Controllers/Backend/Courses/CourseController.php @@ -182,12 +182,12 @@ public function destroy($id) } } - public function watchCourse($id) - { - $course = Course::findOrFail(encryptor('decrypt',$id)); - $category = CourseCategory::get(); - $lessons = Lesson::where('course_id', $course->id)->get(); + // public function watchCourse($id) + // { + // $course = Course::findOrFail(encryptor('decrypt',$id)); + // $category = CourseCategory::get(); + // $lessons = Lesson::where('course_id', $course->id)->get(); - return view('frontend.watchCourse', compact('course', 'category', 'lessons')); - } + // return view('frontend.watchCourse', compact('course', 'category', 'lessons')); + // } } diff --git a/app/Http/Controllers/WatchCourseController.php b/app/Http/Controllers/WatchCourseController.php new file mode 100644 index 0000000..3a405f8 --- /dev/null +++ b/app/Http/Controllers/WatchCourseController.php @@ -0,0 +1,81 @@ +id)->get(); + + return view('frontend.watchCourse', compact('course', 'category', 'lessons')); + } + + + + /** + * Display a listing of the resource. + */ + public function index() + { + // + } + + /** + * Show the form for creating a new resource. + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + */ + public function show(Watchlist $watchlist) + { + // + } + + /** + * Show the form for editing the specified resource. + */ + public function edit(Watchlist $watchlist) + { + // + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, Watchlist $watchlist) + { + // + } + + /** + * Remove the specified resource from storage. + */ + public function destroy(Watchlist $watchlist) + { + // + } +} diff --git a/resources/views/frontend/watchCourse.blade.php b/resources/views/frontend/watchCourse.blade.php index 6c57305..a6b2978 100644 --- a/resources/views/frontend/watchCourse.blade.php +++ b/resources/views/frontend/watchCourse.blade.php @@ -67,6 +67,8 @@
+ + {{-- Video Area --}}