<?php for($i = 1; $i <= $number_of_options; $i++): ?>
    <div class="col-sm-12">
        <div class="form-group with-icon">
		    <label class="control-label"><?php echo getEduAppGTLang('option').' '.$i;?></label>
		    <input type="text" class="form-control" name = "options[]" id="option_<?php echo $i; ?>" required>
		    <div class="custom-control custom-checkbox imgex">
                <input type="checkbox" name="correct_answers[]" id="<?php echo $i; ?>" value="<?php echo $i; ?>" class="custom-control-input"> 
                <label for="<?php echo $i; ?>" class="custom-control-label"></label>
            </div>
	    </div>
	</div>
<?php endfor; ?>