diff --git a/app/Http/Controllers/MainController.php b/app/Http/Controllers/MainController.php
index a9c2fb6..278ac04 100644
--- a/app/Http/Controllers/MainController.php
+++ b/app/Http/Controllers/MainController.php
@@ -185,6 +185,37 @@ class MainController extends Controller
}
}
+
+ public function myOrders()
+ {
+ $customerId = auth()->id(); // Assuming you are using authentication
+ $orders = Order::where('customerId', session()->get('id'))->get();
+
+ $items = DB::table('products')
+ ->join('order_items', 'order_items.productId', '=', 'products.id')
+ ->select('products.name', 'products.picture', 'products.price', 'order_items.quantity', 'order_items.orderId as order_id')
+ ->whereIn('order_items.orderId', $orders->pluck('id'))
+ ->get();
+
+ return view('orders', compact('orders', 'items'));
+ }
+
+
+ // public function myOrders()
+ // {
+ // $customerId = auth()->id(); // Assuming you are using authentication
+ // $orders = Order::where('customerId', session()->get('id'))->get();
+
+ // $items = DB::table('products')
+ // ->join('order_items', 'order_items.productId', '=', 'products.id')
+ // ->select('products.name', 'products.picture', 'products.price', 'order_items.quantity', 'order_items.orderId as order_id')
+ // ->whereIn('order_items.orderId', $orders->pluck('id'))
+ // ->get();
+
+ // return view('orders', compact('orders', 'items'));
+ // }
+
+
public function profile()
{
if (session()->has('id')) {
diff --git a/public/css/style.css b/public/css/style.css
index e758eb3..3fffb2c 100644
--- a/public/css/style.css
+++ b/public/css/style.css
@@ -3856,4 +3856,8 @@ ol {
.categories__text:before {
height: 250px;
}
+
+ .custom-upward {
+ margin-top: -20px; /* Adjust the value as needed */
+ }
}
\ No newline at end of file
diff --git a/resources/views/components/footer.blade.php b/resources/views/components/footer.blade.php
index 67f176b..8f0feb6 100644
--- a/resources/views/components/footer.blade.php
+++ b/resources/views/components/footer.blade.php
@@ -88,7 +88,20 @@
-