Some places leave a running bill with you, but it's not usual to put the money on the table and disappear; you normally pay the waiting staff in person, though one or two places may send you to a cash desk. It's fine for each guest to pay separately for what they've consumed. But you can pay in one go as well.