Пример #1
0
 public function viewreturn($id)
 {
     $return = Orderreturn::with('orders', 'user')->first();
     return view('admin.order.viewreturn', compact('return'));
 }
Пример #2
0
 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'));
 }