public function addnew() { $data['item_sub_groups'] = Itemsubgroup::where('itemgroupid', 1)->get(); return view('createfactoryitem', $data); }