/** * Display a listing of the resource. * * @return Response */ public function index() { $vanchuyens = $this->vanchuyen->all(); return View::make('vanchuyens.index', compact('vanchuyens')); }
public function getXemGiohang() { if (Session::has('giohang')) { $chungloai = Chung_loai::all(); $loai = Loai::all(); $vanchuyens = Vanchuyen::all(); return View::make("users.carts")->with('chungloais', $chungloai)->with('loais', $loai)->with('vanchuyens', $vanchuyens); } else { return Redirect::to('/')->with('errorcart', "Vui lòng chọn sản phẩm"); } }