app/Http/Controllers/AdminController.php
///*** Order Section | Functions Starts Here  ***///
Order Section | Functions Starts Here
Order Section | Functions Starts Here
public function viewOrder(){
        $orders = Order::with([
            'user','orderDetails'
        ])->orderBy('created_at','desc')->get();
        return view('backend.order.view-order',compact('orders'));
    }
public function viewOrder ( ) { $ orders = Order :: with ( [ 'user' , 'orderDetails' ] ) -> orderBy ( 'created_at' , 'desc' ) -> get ( ) ; return view ( 'backend.order.view-order' , compact ( 'orders' ) ) ; }
Order Section | Functions Starts Here
Order Section | Functions Starts Here