You're very close to the correct meaning, Keannu, but not quite 100% there. Here is a site that explains the phrase. If you read it and try two new sentences, I'll be happy to check them out.
Take the cake
- For Teachers