From c1f8516beee36d835d7d7b7b5d566f3009bcbdb3 Mon Sep 17 00:00:00 2001 From: Ibrahim Khail Shakil Date: Tue, 12 Dec 2023 11:06:09 +0600 Subject: [PATCH] added minor changes --- app/Http/Controllers/Students/DashboardController.php | 6 ++++-- resources/views/students/dashboard.blade.php | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/Students/DashboardController.php b/app/Http/Controllers/Students/DashboardController.php index b34ba2d..9472040 100644 --- a/app/Http/Controllers/Students/DashboardController.php +++ b/app/Http/Controllers/Students/DashboardController.php @@ -5,6 +5,7 @@ use App\Http\Controllers\Controller; use App\Models\Enrollment; use App\Models\Course; +use App\Models\Checkout; use Illuminate\Http\Request; class DashboardController extends Controller @@ -13,7 +14,8 @@ public function index() { $enrollment = Enrollment::get(); $course = Course::get(); - $purchaseHistory = Enrollment::with(['course'])->orderBy('enrollment_date', 'desc')->get(); - return view('students.dashboard', compact('enrollment', 'course', 'purchaseHistory')); + $checkout = Checkout::get(); + // $purchaseHistory = Enrollment::with(['course', 'checkout'])->orderBy('enrollment_date', 'desc')->get(); + return view('students.dashboard', compact('enrollment', 'course')); } } diff --git a/resources/views/students/dashboard.blade.php b/resources/views/students/dashboard.blade.php index c8f3d10..6ccfa2e 100644 --- a/resources/views/students/dashboard.blade.php +++ b/resources/views/students/dashboard.blade.php @@ -504,11 +504,11 @@ class="contentCard-user d-flex align-items-center"> {{-- Purchase History --}}