Check box based on table children

I have a table where each row has a Check value. I want another Check that’s readonly for the whole DocType where it’s checked based on whether or not ALL the children in the table are also checked. If any are unchecked, the DocType’s one is also unchecked.

Example 1:
| Row 1 | :white_check_mark: |
| Row 2 | :white_check_mark: |
| Row 3 | :white_check_mark: |

Result: :white_check_mark:

Example 2:
| Row 1 | :white_check_mark: |
| Row 2 | :x: |
| Row 3 | :white_check_mark: |

Result: :x: