Cut the headboard slats to size and drill 3/4" pocket holes on one edge and both ends of each of the planks. Attach them together with 1 1/4" pocket hole screws.
Cut the side trim to size and attach it to the sides of the planks with 1 1/4" pocket hole screws and wood glue. The front of the trim should be flush with the front of the planks.
Cut the top trim to size and attach it to the top of the headboard with 1 1/4" pocket hole screws and wood glue. It should be flush with the planks and side trim.