-
+
@if ($material->type=='video')
-
+
@else
-
+
@endif
diff --git a/routes/web.php b/routes/web.php
index 467e20f..b1b67b9 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -23,6 +23,7 @@
use App\Http\Controllers\HomeController;
use App\Http\Controllers\CheckoutController as checkout;
use App\Http\Controllers\CouponController as coupon;
+use App\Http\Controllers\WatchCourseController as watchCourse;
/* students */
use App\Http\Controllers\Students\AuthController as sauth;
@@ -98,7 +99,8 @@
Route::get('searchCourse', [course::class, 'frontIndex'])->name('searchCourse');
Route::get('courseDetails/{id}', [course::class, 'frontShow'])->name('courseDetails');
-Route::get('watchCourse/{id}', [course::class, 'watchCourse'])->name('watchCourse');
+// Route::get('watchCourse/{id}', [course::class, 'watchCourse'])->name('watchCourse');
+Route::get('watchCourse/{id}', [watchCourse::class, 'watchCourse'])->name('watchCourse');
Route::get('instructorProfile/{id}', [instructor::class, 'frontShow'])->name('instructorProfile');
Route::get('checkout', [checkout::class, 'index'])->name('checkout');