added minor changes
Cette révision appartient à :
Parent
058f03dbc2
révision
04f1bcbc50
@ -13,7 +13,7 @@
|
||||
use File;
|
||||
|
||||
class CourseController extends Controller
|
||||
{
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
@ -182,7 +182,7 @@ public function destroy($id)
|
||||
|
||||
public function watchCourse($id)
|
||||
{
|
||||
$course = Course::get();
|
||||
$course = Course::findOrFail(encryptor('decrypt',$id));
|
||||
$category = CourseCategory::get();
|
||||
return view('frontend.watchCourse', compact('course', 'category'));
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Exception;
|
||||
use File;
|
||||
|
||||
|
||||
class InstructorController extends Controller
|
||||
{
|
||||
/**
|
||||
|
||||
@ -564,7 +564,7 @@ class="feather feather-lock">
|
||||
<!-- Course Curriculum Area Ends Here -->
|
||||
|
||||
<!-- Course Details Instructor Starts Here -->
|
||||
<div class="tab-pane fade" id="pills-c-instructor" role="tabpanel"
|
||||
<div class="tab-pane fade" id="pills-c-instructor" role="tabpanel"
|
||||
aria-labelledby="pills-c-instructor-tab">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
@ -2304,6 +2304,7 @@ class="feather feather-star">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- Price Details Section --}}
|
||||
<div class="col-lg-4 mt-4 mt-lg-0">
|
||||
<div class="courseCard--wrapper">
|
||||
<div class="cart">
|
||||
@ -2319,8 +2320,10 @@ class="feather feather-star">
|
||||
<div class="cart__checkout-process">
|
||||
<p class="time-left text-center"><span>5 hours</span> to remaining this price</p>
|
||||
<form action="#">
|
||||
<a href="{{route('add.to.cart', $course->id)}}" class="text-white button button-lg button--primary w-100">Add to Cart</a>
|
||||
<a href="{{route('checkout')}}" class="button button-lg button--primary-outline mt-3 w-100">Buy Now</a>
|
||||
<a href="{{route('add.to.cart', $course->id)}}"
|
||||
class="text-white button button-lg button--primary w-100">Add to Cart</a>
|
||||
<a href="{{route('checkout')}}"
|
||||
class="button button-lg button--primary-outline mt-3 w-100">Buy Now</a>
|
||||
</form>
|
||||
</div>
|
||||
<div class="cart__includes-info">
|
||||
@ -2426,6 +2429,7 @@ class="feather feather-star">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{-- Related Course --}}
|
||||
<section class="section new-course-feature section--bg-offwhite-five">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
|
||||
@ -77,7 +77,7 @@
|
||||
</a>
|
||||
<div class="nav-item--dropdown">
|
||||
<ul>
|
||||
<li><a href="{{route('studentProfile')}}">Student Profile</a></li>
|
||||
<li><a href="{{route('student_profile')}}">Student Profile</a></li>
|
||||
{{-- <li><a href="{{route('instructorProfile')}}">Instructor Profile</a></li> --}}
|
||||
<li><a href="{{route('checkout')}}">Check out</a></li>
|
||||
</ul>
|
||||
@ -207,7 +207,7 @@ class="feather feather-chevron-right">
|
||||
</span>
|
||||
</a>
|
||||
<ul class="navbar-mobile__menu-dropmenu">
|
||||
<li><a href="{{route('studentProfile')}}">Student Profile</a></li>
|
||||
<li><a href="{{route('student_profile')}}">Student Profile</a></li>
|
||||
<li><a href="{{route('checkout')}}">Check out</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@ -185,7 +185,7 @@
|
||||
<div class="contentCard contentCard--watch-course">
|
||||
<div class="contentCard-top">
|
||||
<a href="#"><img
|
||||
src="{{asset('public/frontend/dist/images/courses/demo-img-01.png')}}"
|
||||
src="{{asset('public/uploads/courses/'.$a->course?->image)}}"
|
||||
alt="images" class="img-fluid" /></a>
|
||||
</div>
|
||||
<div class="contentCard-bottom">
|
||||
@ -195,9 +195,9 @@
|
||||
<div class="contentCard-info d-flex align-items-center justify-content-between">
|
||||
<a href="instructor-profile.html"
|
||||
class="contentCard-user d-flex align-items-center">
|
||||
<img src="{{asset('public/frontend/dist/images/courses/7.png')}}"
|
||||
alt="client-image" class="rounded-circle" />
|
||||
<p class="font-para--md">Brandon Dias</p>
|
||||
<img src="{{asset('public/uploads/instructors/'.$a->course?->instructor?->image)}}"
|
||||
alt="client-image" class="rounded-circle" height="34" width="34" />
|
||||
<p class="font-para--md">{{$a->course?->instructor?->name_en}}</p>
|
||||
</a>
|
||||
<div class="contentCard-course--status d-flex align-items-center">
|
||||
<span class="percentage">43%</span>
|
||||
|
||||
@ -199,7 +199,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>
|
||||
@ -231,7 +231,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>
|
||||
@ -263,7 +263,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>
|
||||
@ -326,7 +326,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>
|
||||
@ -358,7 +358,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>
|
||||
@ -390,7 +390,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>
|
||||
@ -453,7 +453,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>
|
||||
@ -485,7 +485,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>
|
||||
@ -517,7 +517,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>
|
||||
|
||||
@ -88,56 +88,51 @@
|
||||
/* 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('/studentProfile', function () {
|
||||
return view('frontend.studentProfile');
|
||||
})->name('studentProfile');
|
||||
});
|
||||
|
||||
Route::get('home', [HomeController::class, 'index'])->name('home');
|
||||
Route::get('/', [HomeController::class, 'index'])->name('home');
|
||||
|
||||
|
||||
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');
|
||||
})->name('about');
|
||||
|
||||
|
||||
// Route::get('/instructorProfile', function () {
|
||||
// return view('frontend.instructorProfile');
|
||||
// })->name('instructorProfile');
|
||||
|
||||
Route::get('instructorProfile/{id}', [instructor::class, 'frontShow'])->name('instructorProfile');
|
||||
Route::get('checkout', [checkout::class, 'index'])->name('checkout');
|
||||
Route::post('checkout', [checkout::class, 'store'])->name('checkout.store');
|
||||
|
||||
|
||||
|
||||
Route::get('/cart', function () {
|
||||
return view('frontend.cart');
|
||||
})->name('cart');
|
||||
|
||||
|
||||
Route::get('/contact', function () {
|
||||
return view('frontend.contact');
|
||||
})->name('contact');
|
||||
|
||||
|
||||
// Cart
|
||||
Route::get('/cart_page', [CartController::class, 'index']);
|
||||
Route::get('cart', [CartController::class, 'cart'])->name('cart');
|
||||
Route::get('add-to-cart/{id}', [CartController::class, 'addToCart'])->name('add.to.cart');
|
||||
Route::patch('update-cart', [CartController::class, 'update'])->name('update.cart');
|
||||
Route::delete('remove-from-cart', [CartController::class, 'remove'])->name('remove.from.cart');
|
||||
// Coupon
|
||||
Route::post('coupon_check', [CartController::class, 'coupon_check'])->name('coupon_check');
|
||||
|
||||
Route::post('coupon_check', [CartController::class, 'coupon_check'])->name('coupon_check');
|
||||
|
||||
Route::get('/about', function () {
|
||||
return view('frontend.about');
|
||||
})->name('about');
|
||||
|
||||
Route::get('/contact', function () {
|
||||
return view('frontend.contact');
|
||||
})->name('contact');
|
||||
|
||||
// Route::get('/cart', function () {
|
||||
// return view('frontend.cart');
|
||||
// })->name('cart');
|
||||
|
||||
// Route::get('/instructorProfile', function () {
|
||||
// return view('frontend.instructorProfile');
|
||||
// })->name('instructorProfile');
|
||||
|
||||
|
||||
// Route::get('/studentProfile', function () {
|
||||
// return view('frontend.studentProfile');
|
||||
// })->name('studentProfile');
|
||||
Chargement…
Référencer dans un nouveau ticket
Block a user