An advent calendar of pockets
Cut a backing that can hang from a rod or from tapes. Cut the pockets all the same size and sew them on in rows, with enough gap that a hand can get in. Number them with a stitch, a written tape, or a button you sew on firmly. Turn the top of each pocket so the edge does not fray. Hang the calendar and look at the lowest row. If a pocket sags, the backing needs a firmer cloth or a line of stitching between the rows.
Twenty-four is the usual count. Sew a sample of four before you cut the rest.
This page does not choose the filling. Small hard objects and anything a child might mouth are a product question for GOV.UK, not a guess here.
Current children's product rules are published by the Office for Product Safety and Standards and on GOV.UK. Those pages are not affiliate links, and this site does not restate the rules.