/**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     if ($result = check_auth_to('QXZ_EDIT')) {
         return $result;
     }
     $authObj = new Auth();
     $data['authList'] = $authObj->getAuthList();
     $data['authGroupInfo'] = AuthGroup::find($id);
     $data['selectAuth'] = AuthGroupRelaionship::getAuthGroupRelationshipByGroupLabel($id);
     foreach ($data['authList'] as &$item) {
         foreach ($item as &$val) {
             $val->selected = in_array($val->auth_label, $data['selectAuth']) ? true : false;
         }
     }
     return view('admin.auth_group.edit', $data);
 }