How To Use Technology to Entice People Back to The Office

It looks as though hybrid working is here to stay, at least for the foreseeable future. Some companies haven't had issues getting people back into the office three days a week. Others are struggling to get their employees back in for one. What is first office doing that the second isn't?  If we analyse the companies who have employees that are happy to come in versus the companies that can't get people in for love nor money, are there lessons to be learned?