/** * Show the form for editing the specified rate. * * @param int $id * @return Response */ public function edit($hotelid, $id) { $rate = SupplementRate::find($id); $rates = SupplementRate::where('from', $rate->from)->where('to', $rate->to)->where('room_type_id', $rate->room_type_id)->where('market_id', $rate->market_id)->get(); $checkedmarketids = array(); $roomtype = RoomType::with('roomSpecification')->find($rate->room_type_id); $mealbases = MealBasis::all(); return View::make('control-panel.hotel.supplement-rates.edit', compact('hotelid', 'rate', 'rates', 'mealbases', 'checkedmarketids', 'roomtype')); }