<% if (pb.children) { %>
<% for (const [i, c] of pb.children.entries()) { %>
<% if (i !== 0) { %>
<% } %>
<%- c.name %>
<% for (const cp of c.permission) { %>
<% } %>
<% } %>
<% } else { %>
<%- pb.name %>
<% for (const p of pb.permission) { %>
<% } %>
<% } %>