<table class="widefat">
	<tbody>
		<tr>
			<td><label><?php esc_html_e('Select a badge To assign', 'mycred-toolkit'); ?></label></td>
			<td>
				<?php if (mycred_get_badge_ids()) : ?>
					<select name="myCred_badges_override">
						<option value=""><?php esc_html_e('Select a badge', 'mycred-toolkit'); ?></option>
						<?php foreach (mycred_get_badge_ids() as $id) : ?>
							<option value="<?php echo esc_attr( $id ); ?>" <?php echo $id == $badge ? 'selected' : ''; ?>><?php echo esc_html( mycred_get_badge($id)->title ); ?></option>
						<?php endforeach; ?>
					</select>
				<?php endif; ?>
			</td>
		</tr>
	</tbody>
</table>