{foreach $users as $u } <td class="center">{$u.role.id} {switch name='$u.role'} {case value='1'}user{ /case} {/switch} {switch name='$u.role'} {case value='2'}admin{/case} {/switch} </td>{/foreach}
The administrators and users in this place create a table role and associate it with the users table. How should I write it here to directly use the administrator and user name on the role table associated with the users table?