Esempio n. 1
0
 public function cm()
 {
     //return the pm view
     return view('cmDashboard', array('title' => 'CM | Welcome', 'reports' => \App\CmReport::all(), 'locations' => \App\Location::all()));
 }
Esempio n. 2
0
 public function cmJobSubmit()
 {
     CmReport::create(array('jobId' => Request::get('job_id'), 'location' => Request::get('location'), 'dateStarted' => Request::get('date_started'), 'timeStarted' => Request::get('time_started'), 'jobDescription' => Request::get('job_desc'), 'planner' => Request::get('planner'), 'technician' => Request::get('technician'), 'supervisor' => Request::get('supervisor')));
     return Redirect::to('/cm');
 }