Use the here document instead of an ugly php string
Surround tables with \smallskip and \bigskip