here you are vs there you have it

here you are

phrase
  • Said when handing something over to someone or doing a favour to them, usually to draw the recipient's attention to the exchange; equivalent to “thank you” when receiving something. 

there you have it

phrase
  • Used to introduce a speaker's interpretation of what has just transpired or been described 

  • That is it; that is the situation or state of things. 

How often have the words here you are and there you have it occurred in a corpus of books? (source: Google Ngram Viewer )