Unable to visit dying friend

I have been caring for a friend with cancer for 18 months. He is now in hospital at end of life and I have been visiting regularly as he has no nearby relatives. The hospital have now stopped all visiting. I understand why, but its breaking my heart

I am so sorry to hear that. it must be so, so hard for you both.

Is your friend conscious? Would you be able to call him? Or maybe write a letter for nurses to read? I know, not really a substitute for being there in person. but might give you both some comfort.

Also just feel tremendously proud of the care you have given these past 18 months.

Big hugs in incredibly difficult times.