<div class="col-sm-10">

    <div class="row ">


        <div class="col-sm-12 ">
            <div class="col-sm-12 ">
                <div class="col-sm-12 gray">

                    <div class="col-sm-4 h4">
                         Tutorial Topics List
                    </div>
                    <div class="col-sm-4 col-sm-offset-4 ">

                        <form action="#" method="post">
                            <div class="input-group">
                                <input type="text" class="form-control"  placeholder="Search here..." aria-describedby="basic-addon1">
                                <span class="input-group-addon" id="basic-addon1"><i class="fa fa-search"></i></span>
                            </div>
                        </form>

                    </div>

                </div>
            </div>

            <div class="col-sm-12" ><br></div>

                <div class="col-sm-12">

                    <div class="col-sm-12 gray_ttc text-left" style="border-bottom: 2px solid #8CC73F;padding-top: 10px;padding-bottom: 10px;font-weight: bold">

                        <div class="col-sm-6">Tutorial Topics Title</div>
                        <div class="col-sm-2">Work File</div>
                        <div class="col-sm-2">Status</div>
                        <div class="col-sm-2">Action</div>
                    </div>
                    
                    <div class="col-sm-12"><br></div> 
                    <?php foreach ($selected_tutorial_topics_info as $v_selected_tutorial_topics_info) { ?>
                        <div class="col-sm-12 gray_ttc text-left" >

                            <div class="col-sm-6" style="padding-top: 1px "><?php echo $v_selected_tutorial_topics_info->tutorial_topic_title; ?></div>
                            <div class="col-sm-2" style="padding-top: 10px"><a href="<?php echo base_url() ?>manage-tutorial-work-file/<?php echo $v_selected_tutorial_topics_info->tutorial_topic_id?>"><?php echo count($tutorial_work_file[$v_selected_tutorial_topics_info->tutorial_topic_id]) ?></a></div>
                            <div class="col-sm-2" style="padding-top: 1px ">
                                <?php
                                $topics_status = $v_selected_tutorial_topics_info->tutorial_topic_status;
                                if ($topics_status == 0) {
                                    echo '<strong style=color:red>Unpublished</strong>';
                                } else if ($topics_status == 1) {
                                    echo '<strong style=color:green>Published</strong>';
                                }
                                 else if ($topics_status == 2) {
                                    echo '<strong style=color:limegreen>Archive</strong>';
                                }
                                ?>
                            </div>
                            <div class="col-sm-2" style="padding-top: 1px ">
                                <?php
                                $topics_status = $v_selected_tutorial_topics_info->tutorial_topic_status;
                                if ($topics_status == 0) {
                                    ?>

                                    <a href="<?php echo base_url() ?>active-tutorial-topic/<?php echo $v_selected_tutorial_topics_info->tutorial_topic_id.'/'.$v_selected_tutorial_topics_info->tutorial_id ?>"><i class="fa  fa-user-plus" title="Active"></i></a><span>&nbsp;&nbsp;&nbsp;</span>

                                    <a href="<?php echo base_url() ?>archive-tutorial-topic/<?php echo $v_selected_tutorial_topics_info->tutorial_topic_id.'/'.$v_selected_tutorial_topics_info->tutorial_id ?>"><i class="fa  fa-user-secret" title="Archive"></i></a>
                                <?php } else if ($topics_status == 1) {
                                    ?>

                                    <a href="<?php echo base_url() ?>inactive-tutorial-topic/<?php echo $v_selected_tutorial_topics_info->tutorial_topic_id.'/'.$v_selected_tutorial_topics_info->tutorial_id ?>"><i class="fa  fa-user-times" title="Inactive"></i></a><span>&nbsp;&nbsp;&nbsp;</span>

                                    <a href="<?php echo base_url() ?>archive-tutorial-topic/<?php echo $v_selected_tutorial_topics_info->tutorial_topic_id.'/'.$v_selected_tutorial_topics_info->tutorial_id ?>"><i class="fa  fa-user-secret" title="Archive"></i></a>

                                <?php
                                } else if ($topics_status == 2) {
                                    ?>

                                    <a href="<?php echo base_url() ?>active-tutorial-topic/<?php echo $v_selected_tutorial_topics_info->tutorial_topic_id.'/'.$v_selected_tutorial_topics_info->tutorial_id ?>"><i class="fa  fa-user-plus" title="Active"></i></a><span>&nbsp;&nbsp;&nbsp;</span>

                                    <a href="<?php echo base_url() ?>inactive-tutorial-topic/<?php echo $v_selected_tutorial_topics_info->tutorial_topic_id.'/'.$v_selected_tutorial_topics_info->tutorial_id ?>"><i class="fa  fa-user-times" title="Inactive"></i></a><span>&nbsp;&nbsp;&nbsp;</span>
                                <?php } ?>


                            </div>
                        </div>
                        <div class="col-sm-12"><br></div> 
                    <?php } ?>
                    <div class="col-sm-12 text-center">
                        <nav class="course-pagination">
                            <ul class="pagination">
                                <li>
                                    <a href="#" aria-label="Previous">
                                        <span aria-hidden="true" title="First Page">&laquo;&laquo;</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="#" aria-label="Previous">
                                        <span aria-hidden="true" title="Previous Page">&laquo;</span>
                                    </a>
                                </li>
                                <li><a href="#">1</a></li>
                                <li><a href="#">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a href="#">4</a></li>
                                <li><a href="#">5</a></li>
                                <li>
                                    <a href="#" aria-label="Next">
                                        <span aria-hidden="true" title="Next Page">&raquo;</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="#" aria-label="Next">
                                        <span aria-hidden="true" title="Last Page">&raquo;&raquo;</span>
                                    </a>
                                </li>
                            </ul>
                        </nav>
                    </div>
                </div>
          

        </div><!-- /.row gray -->


    </div>
    
    <div class="col-sm-12">    <br><br></div>

    <div class="col-sm-12 ">
        <div class="col-sm-12 gray text-left">
            <label><a href="<?php echo base_url() ?>super_admin">Dashboard </a>->>Manage Tutorial</label>
        </div> 
    </div> 
    <div class="col-sm-12">    <br><br></div>

</div>