public function changeStatus($id) { $order = Order::findorfail($id); $orderStatus = OrderStatus::all()->pluck('title', 'id'); $view = view('admin.order.view')->with('order', $order)->with('orderStatus', $orderStatus)->with('changeStatus', true); return $view; }