public function index() { $data['active'] = 'versheet'; $data['doc_type'] = VersheetType::all(); $data['vs'] = Versheet::all(); $data['user_no'] = User::where('role', '=', 'no')->get(); return View::make(Auth::user()->role . '.versheet.list', $data); }