Add custom template ‘sub-page’ to Custom Post type?


I have a custom post type called ‘Inspections’

Doing this, you can access an inspection record by going to example.com/inspections/inspection-slug-here

However, I want to add some ‘sub-pages’ if you will:

/inspections/<inspection-slug-here>/sub-page1 /inspections/<inspection-slug-here>/sub-page2 

In this case, I would really like sub-page1 and sub-page2 to be templates that I can author in elementor, or something similar.

In a perfect scenario, I would like to pass the details of the parent (inspection-slug-here) to be loaded in this sub section so I can use custom fields or something of the likes.

Is there anything out there that does this? I am using elementor and an elementor templates tool, but cannot find any ways to do what i want.

Thanks!