<div class="col-sm-2 gray">
    <div class="row ">
        <div class="panel-group text-center" id="accordion">

            <?php foreach ($tutorial as $v_tutorial){ ?>    
            <div class="panel panel-default">
                <div class="panel-heading" style="background-color: #8CC73F">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $v_tutorial->tutorial_id ?>"><?php echo $v_tutorial->tutorial_title ?></a>
                    </h4>
                </div>
                <div id="collapse<?php echo $v_tutorial->tutorial_id ?>" class="panel-collapse collapse in">


                    <div class="" style="text-align: justify">
                        <?php foreach ($topics[$v_tutorial->tutorial_id] as $v_topics){ ?>
                        <a href="<?php echo base_url()?>view-topics/<?php echo $v_topics->tutorial_topic_id?>" class="list-group-item "><i class="fa  fa-home ">&nbsp;&nbsp;</i><?php echo $v_topics->tutorial_topic_title?></a>
                        <?php } ?>

                    </div>


                </div>
            </div>



            <?php } ?>
        </div>


    </div>


</div>