示例#1
0
 public function index()
 {
     View::share(['title' => 'Product management', 'sideBar' => NavigatorHelper::getSideBarBE()]);
     $type = Type::all(['id', 'name'])->toArray();
     $format = Format_cd::all(['id', 'name'])->toArray();
     $price_groups = Price_group::all(['id', 'name', 'root_price', 'price'])->toArray();
     return view('catalog.product.list')->with(['type' => $type, 'format' => $format, 'price_groups' => $price_groups]);
 }