public function room() { $rooms = Rooms::all(); $status = true; if (Auth::check()) { $isLogin = true; } else { $isLogin = false; } return compact("rooms", "status", "isLogin"); }
public function index() { $rooms = Rooms::all(); $status = true; return compact("rooms", "status"); }