Hot Water issues in entire apartment, How can I fix this?
The pictures do not show anything useful, except that maybe the heater may be old.

it will quickly run out, the dip tube may be broken off.

The dip tube extends the inlet so that the cold water enters the tank at the bottom, below the hot water.

https://www.youtube.com/watch?v=9fnQEIx-anI