/**
  * Display a listing of the resource.
  * // show cart
  * @return Response
  */
 public function getIndex()
 {
     //MENU
     $mainMenu = Category::getParentMenu();
     $allMenu = Category::getAllMenu($mainMenu);
     //HOT PRODUCTS.
     $hotProduct = Product::hotProduct();
     //DISCOUNT PRODUCTS.
     $discountProduct = Product::discountProduct();
     //PAY
     $pay = Pay::lists('name', 'id');
     //SHIP
     $ship = Ship::lists('name', 'id');
     if (\Session::has('giohang')) {
         $data = \Session::get('giohang');
         return view('fornindex.shopping_cart', compact('ship', 'pay', 'data', 'allMenu', 'hotProduct', 'discountProduct'));
     } else {
         echo 'vui long chon san pham!!!';
     }
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $transaction = Transaction::find($id);
     $customer = Customer::lists('name', 'id');
     $ship = Ship::lists('name', 'id');
     $pay = Pay::lists('name', 'id');
     return view('transactions.edit', compact('transaction', 'customer', 'ship', 'pay'));
 }