<!--<div class="col-sm-4 col-sm-offset-4">
    <div class="input-group ">
        <input type="text" 
               class="form-control"
               oninput="search_all_video_course(this.value,'<?php //echo base_url() . 'search-all-video-course' ?>')"
               id="search_all_video_course_by_id"
               placeholder="Search here...">
        <span class="input-group-addon"><i class="fa fa-search"></i></span>
    </div>
</div>-->

<div class="col-sm-10" style="margin-top: 20px">
    <div class="col-sm-12 form-group">
        
    <!-- --------------------Left Side Menu start--------------------------- -->
        <div class="col-sm-3 form-group">
            
    <!-- --------------------Categories part start--------------------------- -->
            <div class="gray col-sm-12 resource_person">
                <h2>Select Course</h2>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="all_course" id="allCourse">
                    <label for="all_course">View all course</label>
                </div>
                <?php
                //$this->cf->dd($topic_info['topic']);
                foreach ($topic_info['parent_topic'] as $topic_value) {
                ?>
                    <div class="panel panel-default" id="panel_body">
                    <div class="panel-heading" id="panel_heading">
                        <h4 class="panel-title">
                            <a data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $topic_value->topic_id ?>" id="topic_name"> <i class="fa fa-book" id="book_icon"> </i> <?php echo $topic_value->topic_name ?> </a>
                        </h4>
                    </div>
                    <div id="collapse<?php echo $topic_value->topic_id ?>" class="panel-collapse collapse" style="background: none">
                        <div class="" id ="viewMoreChildTopic<?php echo $topic_value->topic_id?>">
                            <span id="childTopic<?php echo $topic_value->topic_id?>">
                                <?php
                                $i = 0;
                                foreach ($topic_info['child_topic'][$topic_value->topic_id] as $child_topic_value) {
                                    ++$i;
                                    ?>
                                    <div class="checkbox checkbox-success">
                                        <input type="checkbox" name="course" class="course_checkbox" id="VideoCourseChildTopic<?php echo $child_topic_value->topic_id ?>">
                                        <label for="course"><?php echo $child_topic_value->topic_name ?></label>
                                    </div>
                                <?php } ?>
                            </span>   
                                <?php
                                if ($i < $topic_info['total_child_topic'][$topic_value->topic_id]) {
                                ?>
                                <a
                                   id="moreChildTopic<?php echo $topic_value->topic_id ?>" 
                                   href="javascript:void(0)" onclick="moreChildTopic('<?php echo $topic_value->topic_id ?>')">more...</a>
                                <?php
                                }
                                ?>
                        </div>
                    </div>
                </div>
                <?php } 
                if ($topic_info['other_topic']) {
                    ?>
                    <div class="checkbox checkbox-success">
                        <input type="checkbox" class="course_checkbox" name="other_parent_topic" id="other_parent_topic">
                        <label for="other_parent_topic">Other courses</label>
                    </div>
                    <?php
                }
                ?>
                
            </div>
            <div class="col-sm-12 form-group"></div>
    <!-- --------------------Categories part End--------------------------- -->
            
            
    <!-- --------------------Resource Person part start--------------------------- -->
            <div class="white  col-sm-12 resource_person">
                <h2>Resource Person</h2>
                <div id="more_resource_person">
                    <span id="count_resource_person">
                        <?php 
                        $i = 0;
                            foreach($resource_person_info as $resource_person){
                              ++$i;  
                        ?>
                        <div class="checkbox checkbox-success">
                            <input type="checkbox" name="resource_person" class="course_checkbox"
                                   id="resource_person<?php echo $resource_person->resource_person_id;?>">
                            <label for="resource_person"><?php echo $resource_person->person_first_name.' '.$resource_person->person_last_name;?></label>
                        </div>
                        <?php
                            }
                        ?>
                    </span>
                <?php
                if ($i < $total_resource_person_info) {
                ?>
                <a
                   id="moreResourcePerson<?php echo $resource_person->resource_person_id ?>" 
                   href="javascript:void(0)" onclick="moreResourcePerson()">more...</a>
                <?php
                }
                ?>
                    </div>
            </div>
            <div class="col-sm-12 form-group"></div>
    <!-- --------------------Resource Person part End--------------------------- -->

    
    <!-- --------------------Rating part start--------------------------- -->        
            <div class="gray  col-sm-12 priority_level">
                <h2>Rating</h2>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="priority_level" class="course_checkbox"
                           id="priorityLevel1" value="5">
                    <label>
                        <div class="rating-star">
                            <div class="rating-star-value" style="width: <?php echo round((5 * 100) / 5) ?>%"></div>
                            <div class="rating-star-bg"></div>
                        </div>
                    </label>
                </div>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="priority_level" class="course_checkbox"
                           id="priorityLevel1" value="4">
                    <label>
                        <div class="rating-star">
                            <div class="rating-star-value" style="width: <?php echo round((4 * 100) / 5) ?>%"></div>
                            <div class="rating-star-bg"></div>
                        </div>
                    </label>
                </div>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="priority_level" class="course_checkbox"
                           id="priorityLevel1" value="3">
                    <label>
                        <div class="rating-star">
                            <div class="rating-star-value" style="width: <?php echo round((3 * 100) / 5) ?>%"></div>
                            <div class="rating-star-bg"></div>
                        </div>
                    </label>
                </div>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="priority_level" class="course_checkbox"
                           id="priorityLevel1" value="2">
                    <label>
                        <div class="rating-star">
                            <div class="rating-star-value" style="width: <?php echo round((2 * 100) / 5) ?>%"></div>
                            <div class="rating-star-bg"></div>
                        </div>
                    </label>
                </div>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="priority_level" class="course_checkbox"
                           id="priorityLevel1" value="1">
                    <label>
                        <div class="rating-star">
                            <div class="rating-star-value" style="width: <?php echo round((1 * 100) / 5) ?>%"></div>
                            <div class="rating-star-bg"></div>
                        </div>
                    </label>
                </div>
            </div>
            <div class="col-sm-12 form-group"></div>
    <!-- --------------------Rating part End--------------------------- -->
    
    
    <!-- --------------------Option part start--------------------------- -->        
            <div class="white  col-sm-12 other_priority_level">
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="other_priority_level" class="course_checkbox"
                           id="otherPriorityLevel1" value="1">
                    <label for="New">New</label>
                </div>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="other_priority_level" class="course_checkbox"
                           id="otherPriorityLevel2" value="2">
                    <label for="Popular">Popular</label>
                </div>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="course_type" class="course_checkbox"
                           id="courseType" value="1">
                    <label for="Free">Free</label>
                </div>
            </div>
            <div class="col-sm-12 form-group"></div>
    <!-- --------------------Option part End--------------------------- -->

    
    <!-- --------------------Skill part start--------------------------- -->
            <div class="gray  col-sm-12 skill_level">
                <h2>Skill Level</h2>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="skill_level" class="course_checkbox"
                           id="skillLevel1" value="1">
                    <label for="Any">Any</label>
                </div>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="skill_level" class="course_checkbox"
                           id="skillLevel2" value="2">
                    <label for="Basic">Basic</label>
                </div>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="skill_level" class="course_checkbox"
                           id="skillLevel3" value="3">
                    <label for="Intermediate">Intermediate</label>
                </div>
                <div class="checkbox checkbox-success">
                    <input type="checkbox" name="skill_level" class="course_checkbox"
                           id="skillLevel4" value="4">
                    <label for="Advanced">Advanced</label>
                </div>
            </div>
            <div class="col-sm-12 form-group"></div>
    <!-- --------------------Skill part End--------------------------- -->            
            <input type="hidden" id="baseUrl" value="<?php echo base_url(); ?>">
            <input type="hidden" id="viewCoursesUrl" value="<?php echo base_url('view-all-video-course'); ?>">
        </div>
    <!-- --------------------Left Side Menu End--------------------------- -->



    <!-- --------------------Middle Part start--------------------------- -->
        <div class="col-sm-9  form-group">
            <div style="padding: 0px;opacity: 1; display: none" id="loading_image">
                <img src="<?php echo base_url()?>image/course-loader.gif" 
                     height="60" width="60" style="margin: 20% 45%;">
            </div>
            <div class="col-sm-12 gray  form-group">
                <div id="video_course_view" style="margin-left: 9px;">
                    <div id="view_without_paginzation">
                    <?php 
                        $i = 0;
                        foreach ($video_course_info['video_course'] as $video_info){ 
                            $i++; ?>
                        <div class="<?php
                        echo ($i % 2 == 0) ? 'row white' : 'row gray';
                        ?>">
                            
                    <!-- --------------------Video Course & Creator Name start--------------------------- -->        
                            <div class="col-sm-4 form-group" style="text-align: left !important">
                                <a href="<?php echo base_url() ?>super-admin/video-course-detail/<?php echo $video_info->video_course_id;?>" target="_blank" class="red">
                                    <?php echo $video_info->video_course_title; ?>
                                </a>
                                <br>By- 
                                <?php
                                    if(isset($video_course_info['video_course_person_info'][$video_info->video_course_id])){
                                    if ($video_course_info['video_course_person_info'][$video_info->video_course_id]->person_role == 6 || $video_course_info['video_course_person_info'][$video_info->video_course_id]->person_role == 1) {
                                        echo '<span class="green">Talha Training</span>';
                                    } else{
                                        ?>
                                        <a href="<?php echo base_url() . $video_course_info['video_course_person_info'][$video_info->video_course_id]->url . '/profile' ?>" target="_blank">
                                            <?php echo $video_course_info['video_course_person_info'][$video_info->video_course_id]->person_first_name.' '.$video_course_info['video_course_person_info'][$video_info->video_course_id]->person_last_name; ?>
                                        </a>
                                    <?php } } ?>
                            </div>
                    <!-- --------------------Video Course & Creator Name End--------------------------- -->
                    
                    <!-- --------------------Video Course Price Start--------------------------- -->
                            <div class="col-sm-2 form-group text-left" style="padding-left:0; padding-top: 10px">
                                <?php 
                                if(isset($video_course_info['video_course_price_info'][$video_info->video_course_id])){
                                    if($video_course_info['video_course_price_info'][$video_info->video_course_id]->price_currency == 1){
                                        echo 'BDT '.$video_course_info['video_course_price_info'][$video_info->video_course_id]->price; 
                                    }else{
                                        echo '$ '.$video_course_info['video_course_price_info'][$video_info->video_course_id]->price; 
                                    }
                                }else{
                                    echo 'Free';
                                }
                                ?>
                            </div>
                    <!-- --------------------Video Course Price End--------------------------- -->
                    
                            <div class="col-sm-1 form-group text-left" style="padding-left:0; padding-top: 10px">
                                <?php
                                switch ($video_info->video_course_skill_level) {
                                    case 1:
                                        ?>
                                        <span title="Any">
                                            <img src="<?php echo base_url() . 'image/gray-box.jpg'; ?>" >
                                            <img src="<?php echo base_url() . 'image/gray-box.jpg'; ?>" >
                                            <img src="<?php echo base_url() . 'image/gray-box.jpg'; ?>" >
                                        </span>
                                        <?php
                                        break;
                                    case 2:
                                        ?>
                                        <span title="Basic">
                                            <img src="<?php echo base_url() . 'image/gray-box.jpg'; ?>" >
                                            <img src="<?php echo base_url() . 'image/gray-box.jpg'; ?>" >
                                            <img src="<?php echo base_url() . 'image/green-box.jpg'; ?>" >
                                        </span>
                                        <?php
                                        break;
                                    case 3:
                                        ?>
                                        <span title="Intermediate">
                                            <img src="<?php echo base_url() . 'image/gray-box.jpg'; ?>" >
                                            <img src="<?php echo base_url() . 'image/green-box.jpg'; ?>" >
                                            <img src="<?php echo base_url() . 'image/green-box.jpg'; ?>" >
                                        </span>
                                        <?php
                                        break;
                                    case 4:
                                        ?>
                                        <span title="Advanced">
                                            <img src="<?php echo base_url() . 'image/green-box.jpg'; ?>" >
                                            <img src="<?php echo base_url() . 'image/green-box.jpg'; ?>" >
                                            <img src="<?php echo base_url() . 'image/green-box.jpg'; ?>" >
                                        </span>
                                        <?php
                                        break;
                                }
                                ?>
                            </div>
                    
                    
                    <!-- --------------------Video Course Rating Start--------------------------- -->
                            <div class="col-sm-2 form-group" style="text-align: left !important;padding: 5px; padding-top: 10px">
                                <div>
                                    <img src="<?php echo base_url()?>image/star-on.png">
                                    <img src="<?php echo base_url()?>image/star-on.png">
                                    <img src="<?php echo base_url()?>image/star-on.png">
                                    <img src="<?php echo base_url()?>image/star-on.png">
                                    <img src="<?php echo base_url()?>image/star-on.png">
                                    <div></div>
                                </div>
                            </div>
                    <!-- --------------------Video Course Rating End--------------------------- -->
                    
                    <!-- --------------------Video Course Registration Part Start--------------------------- -->
                            <div class="col-sm-3 form-group" style="padding-left:0;" style="padding-top: 10px; text-align: left !important">
                                <a href="" 
                                   data-toggle="tooltip" title="Get Enrollment in this Course" data-placement="top">
                                    <img src="<?php echo base_url()?>image/registration-icon.png">
                                </a>
                            </div>
                    <!-- --------------------Video Course Registration Part End--------------------------- -->
                        
                        </div>
                        <?php }
                        echo $all_video_course_pagination;
                        ?>
                    </div>
                </div>
            </div>
        </div>
    <!-- --------------------Middle Part End--------------------------- -->
    </div>
</div>
<link href="<?php echo base_url();?>back_end_resource/all_video_course/all_video_course.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<?php echo base_url();?>back_end_resource/all_video_course/all_video_course.js"></script>
