<div class="col-sm-10">
    <div class="row ">
        <div class="col-sm-12 ">
            <div class="col-sm-6 col-sm-offset-3">
                <div class="input-group">
                    <input type="text" 
                           class="form-control" 
                           oninput="searchCourseWorkFile(this.value,'<?php echo base_url() . 'search-course-work-file' ?>')"
                           placeholder="Search here..." 
                           aria-describedby="basic-addon1">
                    <span class="input-group-addon" id="basic-addon1"><i class="fa fa-search"></i></span>
                </div>
            </div>
        </div>

        <div class="col-sm-12 "><br></div>
        <div class="col-sm-12 ">
            <div class="col-sm-12" ><br>  <hr></div>
            <div class="col-sm-12" id="view_course">
                <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-2">Category Name</div>
                    <div class="col-sm-4">Course Name</div>
                    <div class="col-sm-3">Folder Name</div>
                    <div class="col-sm-1">Video</div>          
                    <div class="col-sm-1">Status</div>          
                    <div class="col-sm-1">Action</div>
                </div>
                <div class="col-sm-12"><br></div>


                <div class="col-sm-12 padding-zero" id="view_work_file_courses">
                    <?php
                    foreach ($all_video_courses as $video_course_value) {
                        ?>
                        <div class="col-sm-12 gray_ttc " style="padding-top: 10px;padding-bottom: 10px;">
                            <div class="col-sm-2">
                                <?php
                                echo $video_course_value->course_category_name;
                                ?>
                            </div>
                            <div class="col-sm-4">
                                <a href="<?php echo base_url() . $video_course_value->url ?>" target="_blank">
                                    <?php
                                    if (strlen($video_course_value->video_course_title) > 30) {
                                        echo mb_substr($video_course_value->video_course_title, 0, 30, 'utf-8') . ' ...';
                                    } else {
                                        echo $video_course_value->video_course_title;
                                    }
                                    ?>
                                </a>
                            </div>
                            <div class="col-sm-3 ">
                                <?php
                                echo $video_course_value->video_folder_name;
                                ?>
                            </div>
                            <div class="col-sm-1 text-center">
                                <a href="<?php echo base_url() . 'view-video-work-file/' . $video_course_value->url; ?>" target="_blank">
                                    <?php
                                    echo $total_course_video[$video_course_value->video_management_id];
                                    ?>
                                </a>
                            </div>
                            <div class="col-sm-1 ">
                                <?php
                                if ($video_course_value->upload_video_status == 1) {
                                    echo 'Active';
                                } else if ($video_course_value->upload_video_status == 5) {
                                    echo 'Draft';
                                }
                                ?>
                            </div>
                            <div class="col-sm-1">
                                <a href="<?php echo base_url() . 'edit-video-work-file/' . $video_course_value->url; ?>" target="_blank">
                                    <i class="fa fa-edit" title="Edit"></i>
                                </a>
                                <a href="javascript:void(0)"
                                   onclick="deleteCourseVideoFile('<?php echo base_url() . 'delete-video-file'; ?>','<?php echo $video_course_value->video_management_id ?>')" >
                                    <i class="fa fa-trash" title="Delete"></i>
                                </a>
                            </div>
                        </div>
                        <?php
                    }
                    ?>
                </div>



                
                
                
                
            </div>



        </div>
    </div>

    <div class="col-sm-12 "><br></div>
    <div class="col-sm-12 ">
        <div class="col-sm-12 gray" style="padding-left: 10px">
            <a href="<?php echo base_url(); ?>super-admin">Dashboard</a>->> <span> Manage Course Work File </span>
        </div>
    </div>
    <div class="col-sm-12 "><br></div>

</div>

<script type="text/javascript" src="<?php echo base_url(); ?>back_end_resource/video_course/video_course.js">
</script>