
<div class="col-sm-12 gray_ttc" style="border-bottom: 2px solid #8CC73F;padding-top: 10px;padding-bottom: 10px;font-weight: bold">
    <div class="col-sm-3 text-center">Serial</div>
    <div class="col-sm-3 text-center">Section Name</div>
    <div class="col-sm-3 text-center">No. Of Video</div>
    <div class="col-sm-3 text-center">Action</div>
</div>
<?php
foreach ($all_data['all_section_info'] as $v_section) {
    $serial = ++$serial;
    ?>
<input type="hidden" id="pagination_page_number" value="<?php echo $page_number;?>">
    <div class="col-sm-12 gray_ttc " style="padding-top: 10px;padding-bottom: 10px;">

        <div class="col-sm-3 text-center"><?php echo $serial; ?></div>
        <div class="col-sm-3 text-center"><a href="#"><?php echo $v_section->section_name; ?></a></div>
        <div class="col-sm-3 text-center"><?php if($all_data[$v_section->section_id] > 0){?>
            <a href="<?php echo base_url();?>section-total-video/<?php echo$v_section->section_id;?>"><?php echo $all_data[$v_section->section_id]; ?></a>
        <?php }else{?>
            <a href="javascript:void(0)"><?php echo $all_data[$v_section->section_id]; ?></a>
        <?php }?>
        </div>

        <div class="col-sm-3 text-center" id="SectionAction">
            <a href="<?php echo base_url();?>assign-admin-video-to-section/<?php echo $v_section->section_type_id;?>/<?php echo $v_section->section_id;?>" target="_blank" class="AssignSection"><i class="fa fa-video-camera" title="Assign Video To Section"></i></a>
            <a href="javascript:void(0)" onclick="edit_section(<?php echo $v_section->section_id;?>)" class="EditBtn"><i class="fa fa-edit" title="Edit"></i></a>
            <a href="javascript:void(0)" onclick="delete_section('<?php echo base_url().'delete-section'?>','<?php echo $v_section->section_type_id;?>','<?php echo $v_section->section_id;?>')"><i class="fa fa-trash-o" title="Delete"></i></a>
        </div>

    </div>
    <?php
}
?>
<?php echo $video_course_section_pagination;?>


