示例#1
0
 public function __construct()
 {
     $this->locations = Location::all(array('id', 'new_house_address', 'street_name'));
     $this->reportCodes = ReportCode::all(array('code', 'meaning'));
     $this->planners = Planners::all(array('name'));
     $this->technicians = Technicians::all(array('name'));
     $this->supervisors = Supervisors::all(array('name'));
     $this->repairCodes = RepairCode::all(array('code', 'meaning'));
     $this->faultCodes = FaultCode::all(array('code', 'meaning'));
     $this->rootCauseCode = RootCauseCode::all(array('code', 'meaning'));
     $this->reports = CmReport::all();
 }
示例#2
0
 public function cm()
 {
     //return the pm view
     return view('cmDashboard', array('title' => 'CM | Welcome', 'reports' => \App\CmReport::all(), 'locations' => \App\Location::all()));
 }