Beispiel #1
0
 public function actionActivity()
 {
     $model = new Activity('search');
     $model->with('users');
     $model->unsetAttributes();
     if (isset($_GET['Activity'])) {
         $model->attributes = $_GET['Activity'];
     }
     $this->render('activity', array('model' => $model));
 }
Beispiel #2
0
 public function edit($id)
 {
     $activity = Activity::with('points')->find($id);
     $menu = 'academic';
     return View::make('points.edit', compact('activity', 'menu'));
 }
 /**
  * Show the form for creating a new resource.
  * GET /activities/create
  *
  * @return Response
  */
 public function logs()
 {
     //$cpage = 'activity';
     $logs = Activity::with('actor')->get();
     return $logs;
 }
 public function index()
 {
     $activities = Activity::with('participations')->where('project_id', '=', Auth::user()->curr_project_id)->where('location_id', '=', Auth::user()->location_id)->get();
     $menu = 'academic';
     return View::make('participations.index', compact('activities', 'menu'));
 }