You only get legal and court fees, nothing on top (if that's what you meant, I'm not quite clear). The solicitor submits their bill to the legal aid board.
For most cases, the legal aid is paid back out of any compensation/damages. Legal aid is very limited now, you can't get it for personal injury, most housing matters, or most family law unless domestic violence is involved.