コード例 #1
0
ファイル: IndexController.php プロジェクト: Arteaga71/crm
 public function measurement()
 {
     //echo "<pre>".print_r(MeasureMan::all(),1)."</pre>";
     $this->data['bids'] = Bid::getAllBids();
     foreach ($this->data['bids'] as $key => $value) {
         $this->data['bids'][$key]['source'] = $value->sourcesList['name'];
         $this->data['bids'][$key]['fio'] = $value->client['fio'];
     }
     $this->data['services'] = ServicesList::getServicesList();
     $this->data['sources'] = SourcesList::getSourcesList();
     $this->data['rejections'] = Rejection::getRejections();
     $this->data['scriptSales'] = ScriptSale::getScriptSales();
     return view('measurement', $this->data);
     //получим список замерщиков и вызовем метод index
 }
コード例 #2
0
ファイル: AdminController.php プロジェクト: Arteaga71/crm
 public function createRejection(Request $request)
 {
     $rejection = new Rejection();
     $rejection->name = $request['rejectionName'];
     $rejection->save();
 }