public function viewreturn($id) { $return = Orderreturn::with('orders', 'user')->first(); return view('admin.order.viewreturn', compact('return')); }
public function myreturns() { $user = Sentinel::check(); $user = User::findorfail($user->id); $returns = Orderreturn::with('order_return', 'order_return.orders', 'order_return.orders.product')->where('user_id', $user->id)->get(); ///dd($returns); return view('site.myreturns', compact('returns')); }