Help Please. how can i display profile name in hotspot status

Dear MIkrotik Team
Would like to ask script code for displaying Profile name of user log in
PLEASE Help
here is part of the code thank you please help thank you

should i use API >- comm?

here is part of the code i use




<tr>
            <td align="right">Profile</td>
            <td>&(profile)</td>
        </tr>
        <tr >
            <td align="right">Expired</td>
            <td style="padding-top:0px; padding-left:2px;"><iframe id="exp" frameborder="0" scrolling="no" src="about:blank"></iframe></td>
        </tr>
        $(endif)
        </table>
        $(if login-by-mac != 'yes')
        <br>
        <input type="submit" class="buttonb" value=" PAUSE internet ">
        $(endif)