An implant device includes a polymer tube including an enclosed inner space, and a mixture of a hydrogel and a plurality of nanoparticles within the enclosed inner space. Each of the plurality of nanoparticles includes a shell, payload within the shell, and one or more photothermal agents on a surface of the shell. A wall of the polymer tube includes one or more layers of nanoporous polymer sheets including a plurality of pores. The dimension of the nanoparticles is greater than the dimension of the pores, and the dimension of the payload is smaller than the dimension of the pores.