adding watch course page

Cette révision appartient à :
Ibrahim Khail Shakil 2023-12-11 13:44:33 +06:00
Parent 6b4d175d11
révision f764d4081a
7 fichiers modifiés avec 27 ajouts et 20 suppressions

Voir le fichier

@ -25,7 +25,7 @@ public function index()
public function frontIndex()
{
$course = Course::paginate(10);
$course = Course::get();
$category = CourseCategory::get();
return view('frontend.searchCourse', compact('course', 'category'));
}
@ -179,4 +179,11 @@ public function destroy($id)
return redirect()->back();
}
}
public function watchCourse($id)
{
$course = Course::get();
$category = CourseCategory::get();
return view('frontend.watchCourse', compact('course', 'category'));
}
}

Voir le fichier

@ -135,6 +135,7 @@ class="feather feather-search">
</a>
<div class="dropdown-content">
<a href="{{route('student_profile')}}">Profile</a>
<a href="{{route('studentdashboard')}}">Dashboard</a>
<a href="{{route('studentlogOut')}}" class="text-danger">Logout</a>
</div>
</div>

Voir le fichier

@ -40,8 +40,7 @@
</a>
</div>
<div class="topic-info-text">
<h6 class="font-title--xs"><a href="#">User Experience Design Essentials - Adobe XD UI UX
Design</a></h6>
<h6 class="font-title--xs"><a href="#">{{$course->title_en}}</a></h6>
<div class="lesson-hours">
<div class="book-lesson">
<svg width="18" height="19" viewBox="0 0 18 19" fill="none"

Voir le fichier

@ -190,7 +190,7 @@
</div>
<div class="contentCard-bottom">
<h5>
<a href="#" class="font-title--card">{{$a->course?->title_en}}</a>
<a href="{{route('courseDetails', encryptor('encrypt', $a->course?->id))}}" class="font-title--card">{{$a->course?->title_en}}</a>
</h5>
<div class="contentCard-info d-flex align-items-center justify-content-between">
<a href="instructor-profile.html"
@ -205,7 +205,7 @@ class="contentCard-user d-flex align-items-center">
</div>
</div>
<a class="button button-md button--primary-outline w-100 my-3"
href="{{route('watchCourse')}}">Watch
href="{{route('watchCourse', encryptor('encrypt', $a->course?->id))}}">Watch
Course</a>
<div class="contentCard-watch--progress">
<span class="percentage" style="width: 43%;"></span>
@ -277,7 +277,7 @@ class="contentCard-user d-flex align-items-center">
</div>
</div>
<a class="button button-md button--primary-outline w-100 my-3"
href="{{route('watchCourse')}}">Watch Course</a>
href="#">Watch Course</a>
<div class="contentCard-watch--progress">
<span class="percentage" style="width: 43%;"></span>
</div>
@ -309,7 +309,7 @@ class="contentCard-user d-flex align-items-center">
</div>
</div>
<a class="button button-md button--primary-outline w-100 my-3"
href="{{route('watchCourse')}}">Watch Course</a>
href="#">Watch Course</a>
<div class="contentCard-watch--progress">
<span class="percentage" style="width: 43%;"></span>
</div>
@ -341,7 +341,7 @@ class="contentCard-user d-flex align-items-center">
</div>
</div>
<a class="button button-md button--primary-outline w-100 my-3"
href="{{route('watchCourse')}}">Watch Course</a>
href="#">Watch Course</a>
<div class="contentCard-watch--progress">
<span class="percentage" style="width: 43%;"></span>
</div>
@ -404,7 +404,7 @@ class="contentCard-user d-flex align-items-center">
</div>
</div>
<a class="button button-md button--primary-outline w-100 my-3"
href="{{route('watchCourse')}}">Watch Course</a>
href="#">Watch Course</a>
<div class="contentCard-watch--progress">
<span class="percentage" style="width: 100%;"></span>
</div>
@ -436,7 +436,7 @@ class="contentCard-user d-flex align-items-center">
</div>
</div>
<a class="button button-md button--primary-outline w-100 my-3"
href="{{route('watchCourse')}}">Watch Course</a>
href="#">Watch Course</a>
<div class="contentCard-watch--progress">
<span class="percentage" style="width: 100%;"></span>
</div>
@ -468,7 +468,7 @@ class="contentCard-user d-flex align-items-center">
</div>
</div>
<a class="button button-md button--primary-outline w-100 my-3"
href="{{route('watchCourse')}}">Watch Course</a>
href="#">Watch Course</a>
<div class="contentCard-watch--progress">
<span class="percentage" style="width: 100%;"></span>
</div>

Voir le fichier

@ -78,9 +78,6 @@
Route::get('/student/login', [sauth::class, 'signInForm'])->name('studentLogin');
Route::post('/student/login/{back_route}', [sauth::class, 'signInCheck'])->name('studentLogin.check');
Route::get('/student/logout', [sauth::class, 'signOut'])->name('studentlogOut');
/* ssl payment */
Route::post('/payment/ssl/notify', [sslcz::class,'notify'])->name('payment.ssl.notify');
Route::post('/payment/ssl/cancel', [sslcz::class,'cancel'])->name('payment.ssl.cancel');
Route::middleware(['checkstudent'])->prefix('students')->group(function () {
Route::get('/dashboard', [studashboard::class, 'index'])->name('studentdashboard');
@ -88,13 +85,14 @@
Route::post('/profile/save', [stu_profile::class, 'save_profile'])->name('student_save_profile');
Route::post('/change-image', [stu_profile::class, 'changeImage'])->name('change_image');
/* ssl payment */
Route::post('/payment/ssl/notify', [sslcz::class, 'notify'])->name('payment.ssl.notify');
Route::post('/payment/ssl/cancel', [sslcz::class, 'cancel'])->name('payment.ssl.cancel');
// ssl Routes
Route::post('/payment/ssl/submit', [sslcz::class,'store'])->name('payment.ssl.submit');
Route::get('/watchCourse', function () {
return view('frontend.watchCourse');
})->name('watchCourse');
Route::get('/studentProfile', function () {
return view('frontend.studentProfile');
})->name('studentProfile');
@ -107,6 +105,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('/about', function () {
return view('frontend.about');