The whole Quran was sent down during the blessed month of Ramadhan. When exactly did this happen during the Prophethood? Is it beginning or middle or End? There are ayats send down to our Prophet pbuh &hf after some events take place

Holy Quran has two revelations:
1- Daf’aee ( Sudden)
2- Tadreeji ( step by step or time to time)
So one the Night of Qadr most probably the 23rd night of the holy month of Ramadan)the whole Quran was reveled on the heart of Holy Prophet ( saww) and the 2nd revelation took place in 23 years of time span ( 13 Years in Mecca and 10 years in Medina) after the declaration of Be’that of Prophet Muhammad (saww) while he was 40 years old.