/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($slug)
 {
     $room = Room::whereSlug($slug)->first();
     $roomTypeController = new RoomTypeController();
     $roomTypes = $roomTypeController->allRoomType();
     $floorController = new FloorController();
     $floors = $floorController->allFloor();
     return view('room.addroom', ['room' => $room, 'roomTypes' => $roomTypes, 'floors' => $floors]);
 }
 public function selectRoom($roomTypeSlug = null)
 {
     $floorController = new FloorController();
     $floors = $floorController->allFloor();
     $roomTypeController = new RoomTypeController();
     $roomTypes = $roomTypeController->allRoomType();
     if ($roomTypeSlug == 'all') {
         $roomController = new RoomController();
         $rooms = $roomController->allRoom();
     } else {
         $roomServiceImpl = new RoomServiceImpl();
         $rooms = $roomServiceImpl->findRoomByRoomType($roomTypeSlug);
     }
     return view('rent.roomListRent', ['rooms' => $rooms, 'floors' => $floors, 'roomTypes' => $roomTypes]);
 }