There was plenty of time to chat with friends.

Literal

Friends [with-と] talk time [subject-が] plenty existed.

A straightforward sentence with no grammatical surprises. たくさん ('plenty') modifies あった. The context supplying the frame is left entirely implicit.