I am studying mvc and user interface. I am trying to display and check user details and if a certain variable is true, I want a bootstrap toggle on icon to appear, and if false, I want it to be a toggle off icon. So if s.Active is true, instead of true, I want the on icon. Can anyone advise on this?
@foreach(var s in Model.Tickets) {
<tr>
<td>@s.Issue</td>
<td>@s.CreatedOn</td>
<td>@s.Active</td>
</tr>
}```