示例#1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create($society)
 {
     if (Helpers::perm('admin', $society) or Helpers::perm('edit', $society)) {
         $data['society'] = $society;
         $data['groupsoc'] = Society::find($society);
         $data['individuals'] = Individual::Socindiv($society)->get();
         return View::make('groups.create', $data);
     } else {
         return View::make("shared.unauthorised");
     }
 }