Esempio n. 1
0
 public function import_goods()
 {
     $warehouses = Warehouse::all();
     $goods = Good::all();
     $this->data['goods'] = $goods;
     $this->data['warehourses'] = $warehouses;
     $this->data['current_tab'] = 39;
     return view('manage.order.import_goods', $this->data);
 }
 public function item($domain, $item_id)
 {
     $item = Good::find($item_id);
     return $this->respond(['num_orders' => $item->orders()->count() + 251]);
 }