Haram
Whoever gives charity to be seen by people nullifies it, says the Quran. The Prophet ﷺ warned: whoever shows off his good deeds to win praise, Allah will expose his real intention.
Source: Quran 2:264 with Tafsir Ibn Kathir · Sahih al-Bukhari 6499 · Sahih Muslim 2987