public function edithotel($id) { $hotel = Hotel::where('id', '=', $id)->get()->first(); $servicioshotel = Servicio_Hotel::where('id_hotel', $id)->orderby('id_servicio')->get(); $especiales = DB::table('necesidades_espesificas')->orderBy('nombre')->get(); $especialeshotel = Necesidad_Hotel::where('id_hotel', $id)->get(); $planes = DB::table('tipos_plan')->orderBy('nombre')->get(); $estados = DB::table('estados')->orderBy('nombre')->get(); $planeshotel = Plan_hotel::where('id_hotel', $id)->get(); return view('providers.hoteles.edithotel', compact('hotel', 'servicios', 'servicioshotel', 'planes', 'estados', 'especiales', 'especialeshotel', 'planeshotel')); }
public function edithabitacion($id) { $habitacion = Habitacion::where('id', '=', $id)->get()->first(); $amenidadeshabitacion = Amenidad_Habitacion::where('id_habitacion', $id)->get(); $amenidades = DB::table('amenidades')->orderBy('nombre')->get(); $hotel = Hotel::where('id', '=', $habitacion->id_hotel)->get()->first(); return view('providers.hoteles.habitaciones.edit_habitacion', compact('habitacion', 'amenidades', 'amenidadeshabitacion', 'hotel')); }