<?php
//$selectedCourse = ($_GET['cid']);
?>
<div class="row">
                                
                                <section class="col-md-12">
                                    <?php foreach($value as $val): ?>
                                        <?php foreach($val as $v): ?>
                                            <section class="col-md-2">
                                            <div  class="icheck-primary d-inline ml-2">
                                            <input type="checkbox" value="" name="todo5" id="todoCheck5">
                                            <label for="todoCheck5"></label>
                                            </div>
                                            <span class="text"><?= $v->title ?></span>
                                            
                                            </section>

                                        <?php endforeach; ?>
                                    <?php endforeach; ?>
                                    </section>
                                </div>           
                        
                                <div class="row">
                                
                                <section class="col-md-12">
                                <div class="col-md-6">
                            <button class="btn-u pull-right" type="submit">Save Course Allocation</button>                        
                        </div>
                                    </section>
                                </div>    