updated description and notes section in watch course page
Cette révision appartient à :
Parent
8b7344d065
révision
8514d46805
@ -181,13 +181,4 @@ public function destroy($id)
|
|||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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'));
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -64,7 +64,7 @@ public function change_password(Request $request)
|
|||||||
return redirect()->back()->with('success', 'Data Saved');
|
return redirect()->back()->with('success', 'Data Saved');
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
// dd($e);
|
// dd($e);
|
||||||
return redirect()->back()->withInput()->with('error', 'Please try again');
|
return redirect()->back()->withInput()->with('error', 'Please try again');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,10 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App\Models\Watchlist;
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Models\Course;
|
use App\Models\Course;
|
||||||
use App\Models\CourseCategory;
|
|
||||||
use App\Models\Lesson;
|
use App\Models\Lesson;
|
||||||
|
|
||||||
class WatchCourseController extends Controller
|
class WatchCourseController extends Controller
|
||||||
@ -15,67 +13,10 @@ class WatchCourseController extends Controller
|
|||||||
public function watchCourse($id)
|
public function watchCourse($id)
|
||||||
{
|
{
|
||||||
$course = Course::findOrFail(encryptor('decrypt', $id));
|
$course = Course::findOrFail(encryptor('decrypt', $id));
|
||||||
$category = CourseCategory::get();
|
|
||||||
$lessons = Lesson::where('course_id', $course->id)->get();
|
$lessons = Lesson::where('course_id', $course->id)->get();
|
||||||
|
|
||||||
return view('frontend.watchCourse', compact('course', 'category', 'lessons'));
|
return view('frontend.watchCourse', compact('course', '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)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -135,47 +135,6 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="course-notes">
|
|
||||||
<h6>Steps 2: ID8 (brainstorming and coming up with lots of ideas)</h6>
|
|
||||||
<div class="course-notes-item">
|
|
||||||
<div class="dot"></div>
|
|
||||||
<p>
|
|
||||||
The way to get the idea is by removing your barriers about I only need
|
|
||||||
to
|
|
||||||
come up with good ideas and just bring a lot of ideas and it's very
|
|
||||||
important to come up with a lot's of ideas.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="course-notes">
|
|
||||||
<h6>Steps 3: take the kind of rough idea that you have been trying to validate
|
|
||||||
it
|
|
||||||
</h6>
|
|
||||||
<div class="course-notes-item">
|
|
||||||
<div class="dot"></div>
|
|
||||||
<p>
|
|
||||||
By validating I mean you present it. so you do a present it's a client
|
|
||||||
work
|
|
||||||
you do a presentation you show them the work. and you're saying here it
|
|
||||||
is
|
|
||||||
here's why I did this here's the
|
|
||||||
process that I went through.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="course-notes mb-0">
|
|
||||||
<h6>Steps 4: Refine Your Design</h6>
|
|
||||||
<div class="course-notes-item">
|
|
||||||
<div class="dot"></div>
|
|
||||||
<p>
|
|
||||||
After you've listened and documented that feedback is actually to refine
|
|
||||||
your design and improve it and make it better then it's ready after
|
|
||||||
you've
|
|
||||||
to go feedback that it's well ready to
|
|
||||||
release it or finalize it or lunch it or whatever you're doing.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Course Notes Ends Here -->
|
<!-- Course Notes Ends Here -->
|
||||||
</div>
|
</div>
|
||||||
@ -183,99 +142,6 @@
|
|||||||
aria-labelledby="nav-lcomments-tab">
|
aria-labelledby="nav-lcomments-tab">
|
||||||
<!-- Lesson Comments Starts Here -->
|
<!-- Lesson Comments Starts Here -->
|
||||||
<div class="lesson-comments">
|
<div class="lesson-comments">
|
||||||
<div class="feedback-comment pt-0 ps-0 pe-0">
|
|
||||||
<h6 class="font-title--card">Add a Public Comment</h6>
|
|
||||||
<form action="#">
|
|
||||||
<label for="comment">Comment</label>
|
|
||||||
<textarea class="form-control" id="comment"
|
|
||||||
placeholder="Add a Public Comment"></textarea>
|
|
||||||
<button type="submit"
|
|
||||||
class="button button-md button--primary float-end">Post
|
|
||||||
Comment</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="students-feedback pt-0 ps-0 pe-0 pb-0 mb-0">
|
|
||||||
<div class="students-feedback-heading">
|
|
||||||
<h5 class="font-title--card">Comments <span>(57,685)</span></h5>
|
|
||||||
</div>
|
|
||||||
<div class="students-feedback-item">
|
|
||||||
<div class="feedback-rating">
|
|
||||||
<div class="feedback-rating-start">
|
|
||||||
<div class="image">
|
|
||||||
<img src="{{asset('public/frontend/dist/images/ellipse/user.jpg')}}"
|
|
||||||
alt="Image" />
|
|
||||||
</div>
|
|
||||||
<div class="text">
|
|
||||||
<h6><a href="#">Harry Pinsky</a></h6>
|
|
||||||
<p>1 hour ago</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
Aliquam eget leo quis neque molestie dictum. Etiam ut tortor tempor,
|
|
||||||
vestibulum ante non, vulputate nibh. Cras non molestie diam. Great
|
|
||||||
Course
|
|
||||||
for Beginner 😀
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="students-feedback-item">
|
|
||||||
<div class="feedback-rating">
|
|
||||||
<div class="feedback-rating-start">
|
|
||||||
<div class="image">
|
|
||||||
<img src="{{asset('public/frontend/dist/images/ellipse/1.png')}}"
|
|
||||||
alt="Image" />
|
|
||||||
</div>
|
|
||||||
<div class="text">
|
|
||||||
<h6><a href="#">Harry Pinsky</a></h6>
|
|
||||||
<p>2 hour ago</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
Aliquam eget leo quis neque molestie dictum. Etiam ut tortor tempor,
|
|
||||||
vestibulum ante non, vulputate nibh.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="students-feedback-item">
|
|
||||||
<div class="feedback-rating">
|
|
||||||
<div class="feedback-rating-start">
|
|
||||||
<div class="image">
|
|
||||||
<img src="{{asset('public/frontend/dist/images/ellipse/2.png')}}"
|
|
||||||
alt="Image" />
|
|
||||||
</div>
|
|
||||||
<div class="text">
|
|
||||||
<h6><a href="#">Watcraz Eggsy</a></h6>
|
|
||||||
<p>1 day ago</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
Aenean vulputate nisi ligula. Quisque in tempus sapien. Quisque
|
|
||||||
vestibulum
|
|
||||||
massa eget consequat scelerisque. Phasellus varius risus nec maximus
|
|
||||||
auctor.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="students-feedback-item border-0">
|
|
||||||
<div class="feedback-rating">
|
|
||||||
<div class="feedback-rating-start">
|
|
||||||
<div class="image">
|
|
||||||
<img src="{{asset('public/frontend/dist/images/ellipse/3.png')}}"
|
|
||||||
alt="Image" />
|
|
||||||
</div>
|
|
||||||
<div class="text">
|
|
||||||
<h6><a href="#">Watcraz Eggsy</a></h6>
|
|
||||||
<p>1 day ago</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
Cras non molestie diam. Aenean vulputate nisi ligula. Quisque in tempus
|
|
||||||
sapien. Quisque vestibulum massa eget consequat scelerisque.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<button class="button button-md button--primary-outline">Load More</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Lesson Comments Ends Here -->
|
<!-- Lesson Comments Ends Here -->
|
||||||
</div>
|
</div>
|
||||||
@ -283,138 +149,6 @@ class="button button-md button--primary float-end">Post
|
|||||||
aria-labelledby="nav-loverview-tab">
|
aria-labelledby="nav-loverview-tab">
|
||||||
<!-- Course Overview Starts Here -->
|
<!-- Course Overview Starts Here -->
|
||||||
<div class="row course-overview-main">
|
<div class="row course-overview-main">
|
||||||
<div class="course-overview-main-item">
|
|
||||||
<h6 class="font-title--card">Description</h6>
|
|
||||||
<p class="mb-3 font-para--lg">
|
|
||||||
Duis placerat eleifend leo nec mattis. Phasellus scelerisque arcu quis
|
|
||||||
feugiat
|
|
||||||
efficitur. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
|
|
||||||
laoreet est eget est sagittis, et
|
|
||||||
scelerisque quam convallis. Praesent at tortor facilisis, tempus ex quis,
|
|
||||||
tempor
|
|
||||||
arcu. Duis id velit mattis diam fermentum tincidunt. Sed et vehicula lectus.
|
|
||||||
</p>
|
|
||||||
<p class="font-para--lg">
|
|
||||||
Sed ut tincidunt velit, eu bibendum turpis. Fusce in posuere felis, sed
|
|
||||||
lobortis
|
|
||||||
elit. Integer mollis sodales congue
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="course-overview-main-item">
|
|
||||||
<h6 class="font-title--card">Requirments</h6>
|
|
||||||
<p class="mb-2 font-para--lg">
|
|
||||||
Donec tristique ligula id tellus porta, dapibus imperdiet mi ullamcorper.
|
|
||||||
Vivamus suscipit, nisi eu tincidunt interdum.
|
|
||||||
</p>
|
|
||||||
<ul class="course-overview__point">
|
|
||||||
<li>
|
|
||||||
<p>
|
|
||||||
Mauris ut libero ut mauris sagittis consectetur quis eget elit.
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<p>
|
|
||||||
Mauris ut libero ut mauris sagittis consectetur quis eget elit.
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<p>
|
|
||||||
Mauris ut libero ut mauris sagittis consectetur quis eget elit.
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<p>
|
|
||||||
Mauris ut libero ut mauris sagittis consectetur quis eget elit.
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<p>
|
|
||||||
Mauris ut libero ut mauris sagittis consectetur quis eget elit.
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="course-overview-main-item">
|
|
||||||
<h6 class="font-title--card">Who This Course is For</h6>
|
|
||||||
<p class="mb-2 font-para--lg">
|
|
||||||
Sed arcu odio, ornare ac porttitor at, placerat nec dui. Nulla nec euismod
|
|
||||||
tellus. Donec facilisis condimentum commodo. Pellentesque ultricies dolor ut
|
|
||||||
magna aliquet, vitae sodales massa
|
|
||||||
euismod.
|
|
||||||
</p>
|
|
||||||
<p class="bullets-line">
|
|
||||||
<svg width="14" height="10" viewBox="0 0 14 10" fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M1 5L13 5" stroke="#202029" stroke-width="1.5"
|
|
||||||
stroke-linecap="round" stroke-linejoin="round" />
|
|
||||||
<path d="M9 0.999999L13 5L9 9" stroke="#202029" stroke-width="1.5"
|
|
||||||
stroke-linecap="round" stroke-linejoin="round" />
|
|
||||||
</svg>
|
|
||||||
This Course for Complete Beginner Students who want learn UI/UX.
|
|
||||||
</p>
|
|
||||||
<p class="bullets-line">
|
|
||||||
<svg width="14" height="10" viewBox="0 0 14 10" fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M1 5L13 5" stroke="#202029" stroke-width="1.5"
|
|
||||||
stroke-linecap="round" stroke-linejoin="round" />
|
|
||||||
<path d="M9 0.999999L13 5L9 9" stroke="#202029" stroke-width="1.5"
|
|
||||||
stroke-linecap="round" stroke-linejoin="round" />
|
|
||||||
</svg>
|
|
||||||
Nunc a ex sodales sem accumsan tristique.
|
|
||||||
</p>
|
|
||||||
<p class="bullets-line">
|
|
||||||
<svg width="14" height="10" viewBox="0 0 14 10" fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M1 5L13 5" stroke="#202029" stroke-width="1.5"
|
|
||||||
stroke-linecap="round" stroke-linejoin="round" />
|
|
||||||
<path d="M9 0.999999L13 5L9 9" stroke="#202029" stroke-width="1.5"
|
|
||||||
stroke-linecap="round" stroke-linejoin="round" />
|
|
||||||
</svg>
|
|
||||||
Suspendisse eget eros eget leo pellentesque ullamcorper ac non augue.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="course-overview-main-item mb-0">
|
|
||||||
<h6 class="font-title--card">What You Will be Learn</h6>
|
|
||||||
<p class="mb-2 font-para--lg">
|
|
||||||
Sed arcu odio, ornare ac porttitor at, placerat nec dui. Nulla nec euismod
|
|
||||||
tellus. Donec facilisis condimentum commodo. Pellentesque ultricies dolor ut
|
|
||||||
magna aliquet, vitae sodales massa
|
|
||||||
euismod.
|
|
||||||
</p>
|
|
||||||
<p class="bullets-line">
|
|
||||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M15 4.5L6.75 13.5L3 9.40909" stroke="#00AF91" stroke-width="2"
|
|
||||||
stroke-linecap="round" stroke-linejoin="round" />
|
|
||||||
</svg>
|
|
||||||
This Course for Complete Beginner Students who want learn UI/UX.
|
|
||||||
</p>
|
|
||||||
<p class="bullets-line">
|
|
||||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M15 4.5L6.75 13.5L3 9.40909" stroke="#00AF91" stroke-width="2"
|
|
||||||
stroke-linecap="round" stroke-linejoin="round" />
|
|
||||||
</svg>
|
|
||||||
|
|
||||||
Nunc a ex sodales sem accumsan tristique.
|
|
||||||
</p>
|
|
||||||
<p class="bullets-line">
|
|
||||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M15 4.5L6.75 13.5L3 9.40909" stroke="#00AF91" stroke-width="2"
|
|
||||||
stroke-linecap="round" stroke-linejoin="round" />
|
|
||||||
</svg>
|
|
||||||
Suspendisse eget eros eget leo pellentesque ullamcorper ac non augue.
|
|
||||||
</p>
|
|
||||||
<p class="bullets-line mb-0">
|
|
||||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M15 4.5L6.75 13.5L3 9.40909" stroke="#00AF91" stroke-width="2"
|
|
||||||
stroke-linecap="round" stroke-linejoin="round" />
|
|
||||||
</svg>
|
|
||||||
Suspendisse eget eros eget leo pellentesque ullamcorper ac non augue.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Course Overview Ends Here -->
|
<!-- Course Overview Ends Here -->
|
||||||
</div>
|
</div>
|
||||||
@ -503,7 +237,7 @@ class="button button-md button--primary float-end">Post
|
|||||||
</div>
|
</div>
|
||||||
<div class="videolist-area-bar__wrapper">
|
<div class="videolist-area-bar__wrapper">
|
||||||
@foreach($lessons as $lesson)
|
@foreach($lessons as $lesson)
|
||||||
<div class="videolist-area-wizard">
|
<div class="videolist-area-wizard" data-lesson-description="{{ $lesson->description }}" data-lesson-notes="{{ $lesson->notes }}">
|
||||||
<div class="wizard-heading">
|
<div class="wizard-heading">
|
||||||
<h6 class="">{{ $loop->iteration }}. {{$lesson->title}}</h6>
|
<h6 class="">{{ $loop->iteration }}. {{$lesson->title}}</h6>
|
||||||
</div>
|
</div>
|
||||||
@ -600,6 +334,26 @@ function show_video(e){
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- Include jQuery -->
|
||||||
|
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('.videolist-area-wizard').on('click', function() {
|
||||||
|
// Get lesson and material details
|
||||||
|
var lessonDescription = $(this).data('lesson-description');
|
||||||
|
var lessonNotes = $(this).data('lesson-notes');
|
||||||
|
|
||||||
|
// Update lesson description
|
||||||
|
$('#nav-ldescrip .lesson-description p').html(lessonDescription);
|
||||||
|
|
||||||
|
// Update lesson notes
|
||||||
|
$('#nav-lnotes .course-notes-area .course-notes-item p').html(lessonNotes);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@ -10,7 +10,6 @@
|
|||||||
use App\Http\Controllers\Backend\Instructors\InstructorController as instructor;
|
use App\Http\Controllers\Backend\Instructors\InstructorController as instructor;
|
||||||
use App\Http\Controllers\Backend\Courses\CourseCategoryController as courseCategory;
|
use App\Http\Controllers\Backend\Courses\CourseCategoryController as courseCategory;
|
||||||
use App\Http\Controllers\Backend\Courses\CourseController as course;
|
use App\Http\Controllers\Backend\Courses\CourseController as course;
|
||||||
use App\Http\Controllers\LessonController as lesson;
|
|
||||||
use App\Http\Controllers\Backend\Courses\MaterialController as material;
|
use App\Http\Controllers\Backend\Courses\MaterialController as material;
|
||||||
use App\Http\Controllers\Backend\Quizzes\QuizController as quiz;
|
use App\Http\Controllers\Backend\Quizzes\QuizController as quiz;
|
||||||
use App\Http\Controllers\Backend\Quizzes\QuestionController as question;
|
use App\Http\Controllers\Backend\Quizzes\QuestionController as question;
|
||||||
@ -24,10 +23,11 @@
|
|||||||
use App\Http\Controllers\CheckoutController as checkout;
|
use App\Http\Controllers\CheckoutController as checkout;
|
||||||
use App\Http\Controllers\CouponController as coupon;
|
use App\Http\Controllers\CouponController as coupon;
|
||||||
use App\Http\Controllers\WatchCourseController as watchCourse;
|
use App\Http\Controllers\WatchCourseController as watchCourse;
|
||||||
|
use App\Http\Controllers\LessonController as lesson;
|
||||||
|
|
||||||
/* students */
|
/* students */
|
||||||
use App\Http\Controllers\Students\AuthController as sauth;
|
use App\Http\Controllers\Students\AuthController as sauth;
|
||||||
use App\Http\Controllers\Students\DashboardController as studashboard;
|
use App\Http\Controllers\Students\DashboardController as studashboard;
|
||||||
use App\Http\Controllers\Students\ProfileController as stu_profile;
|
use App\Http\Controllers\Students\ProfileController as stu_profile;
|
||||||
use App\Http\Controllers\Students\sslController as sslcz;
|
use App\Http\Controllers\Students\sslController as sslcz;
|
||||||
/*
|
/*
|
||||||
@ -83,25 +83,22 @@
|
|||||||
Route::get('/student/logout', [sauth::class, 'signOut'])->name('studentlogOut');
|
Route::get('/student/logout', [sauth::class, 'signOut'])->name('studentlogOut');
|
||||||
|
|
||||||
Route::middleware(['checkstudent'])->prefix('students')->group(function () {
|
Route::middleware(['checkstudent'])->prefix('students')->group(function () {
|
||||||
Route::get('/dashboard', [studashboard::class, 'index'])->name('studentdashboard');
|
Route::get('/dashboard', [studashboard::class, 'index'])->name('studentdashboard');
|
||||||
Route::get('/profile', [stu_profile::class, 'index'])->name('student_profile');
|
Route::get('/profile', [stu_profile::class, 'index'])->name('student_profile');
|
||||||
Route::post('/profile/save', [stu_profile::class, 'save_profile'])->name('student_save_profile');
|
Route::post('/profile/save', [stu_profile::class, 'save_profile'])->name('student_save_profile');
|
||||||
Route::post('/profile/savePass', [stu_profile::class, 'change_password'])->name('change_password');
|
Route::post('/profile/savePass', [stu_profile::class, 'change_password'])->name('change_password');
|
||||||
Route::post('/change-image', [stu_profile::class, 'changeImage'])->name('change_image');
|
Route::post('/change-image', [stu_profile::class, 'changeImage'])->name('change_image');
|
||||||
|
|
||||||
// ssl Routes
|
// ssl Routes
|
||||||
Route::post('/payment/ssl/submit', [sslcz::class,'store'])->name('payment.ssl.submit');
|
Route::post('/payment/ssl/submit', [sslcz::class, 'store'])->name('payment.ssl.submit');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// frontend pages
|
||||||
Route::get('home', [HomeController::class, 'index'])->name('home');
|
Route::get('home', [HomeController::class, 'index'])->name('home');
|
||||||
Route::get('/', [HomeController::class, 'index'])->name('home');
|
Route::get('/', [HomeController::class, 'index'])->name('home');
|
||||||
|
|
||||||
Route::get('searchCourse', [course::class, 'frontIndex'])->name('searchCourse');
|
Route::get('searchCourse', [course::class, 'frontIndex'])->name('searchCourse');
|
||||||
Route::get('courseDetails/{id}', [course::class, 'frontShow'])->name('courseDetails');
|
Route::get('courseDetails/{id}', [course::class, 'frontShow'])->name('courseDetails');
|
||||||
|
|
||||||
// Route::get('watchCourse/{id}', [course::class, 'watchCourse'])->name('watchCourse');
|
|
||||||
Route::get('watchCourse/{id}', [watchCourse::class, 'watchCourse'])->name('watchCourse');
|
Route::get('watchCourse/{id}', [watchCourse::class, 'watchCourse'])->name('watchCourse');
|
||||||
|
|
||||||
Route::get('instructorProfile/{id}', [instructor::class, 'frontShow'])->name('instructorProfile');
|
Route::get('instructorProfile/{id}', [instructor::class, 'frontShow'])->name('instructorProfile');
|
||||||
Route::get('checkout', [checkout::class, 'index'])->name('checkout');
|
Route::get('checkout', [checkout::class, 'index'])->name('checkout');
|
||||||
Route::post('checkout', [checkout::class, 'store'])->name('checkout.store');
|
Route::post('checkout', [checkout::class, 'store'])->name('checkout.store');
|
||||||
@ -120,6 +117,9 @@
|
|||||||
Route::post('/payment/ssl/notify', [sslcz::class, 'notify'])->name('payment.ssl.notify');
|
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::post('/payment/ssl/cancel', [sslcz::class, 'cancel'])->name('payment.ssl.cancel');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Route::get('/about', function () {
|
Route::get('/about', function () {
|
||||||
return view('frontend.about');
|
return view('frontend.about');
|
||||||
})->name('about');
|
})->name('about');
|
||||||
|
|||||||
Chargement…
Référencer dans un nouveau ticket
Block a user