The petty cash control account is shown below:
Notice how the opening cash balance brought-forward (b/f) & closing cash carried forward (c/f) combine to make both sides of the account balance.