Ejemplo n.º 1
0
 /**
  * 获取增加菜品页面
  * 
  * @return Response
  */
 public function getAdd()
 {
     $shops = AuthController::checkAllShops();
     $types = Dictionary::where('wy_dic_id', DIC_GOODS_TYPE)->get(array('wy_dic_item_id', 'wy_dic_value'));
     $headerShop = AuthController::checkUserURL();
     if (empty($headerShop)) {
         return View::make('admin.freshbiz.goods.goodsadd', compact('types', 'shops'))->withWarning(Lang::get('messages.10006'));
     } else {
         if (empty($shops->toArray())) {
             return View::make('admin.freshbiz.goods.goodsadd', compact('headerShop', 'types', 'shops'))->withWarning(Lang::get('messages.10006'));
         } else {
             return View::make('admin.freshbiz.goods.goodsadd', compact('headerShop', 'types', 'shops'));
         }
     }
 }