
<div class="col-sm-10" style="padding-left:0px ">
    <div class="col-sm-3 form-group">
        <div class="gray col-sm-12">
            <h3 style="text-align: left !important;padding-left: 20px">Categories</h3>
            <?php
            if ($video_course_category) {
                ?>
                <ul id="category_view" style="text-align: left !important;padding-left: 22px">
                    <li><a href="javascript:void(0)"
                           onclick="getCategoryID('<?php echo base_url() . 'view-category-video-courses' ?>', '<?php echo 'all'; ?>')" ><i class="fa fa-globe" title="All"> </i> &nbsp; &nbsp;All</a></li>
                        <?php
                        $counter = 0;
                        foreach ($video_course_category as $category_value) {
                            ?>
                        <li><a href="javascript:void(0)"
                               onclick="getCategoryID('<?php echo base_url() . 'view-category-video-courses' ?>', '<?php echo $category_value->course_category_id; ?>')" >
                                <i class="fa fa-book" title="<?php echo $category_value->course_category_name; ?>"> </i> &nbsp;
                                <?php
                                echo $category_value->course_category_name;
                                ?></a>
                        </li>
                        <?php
                        $counter++;
                    }
                    if ($total_video_course_category > $counter) {
                        ?>
                        <a href="javascript:void(0)" 
                           onclick="moreCategory('<?php echo base_url() . 'view-more-category-video-courses'; ?>', '<?php echo $counter; ?>')">
                            More....
                        </a>
                        <?php
                    }
                    ?>
                </ul>
            <?php } ?>
        </div>

        <div class="col-sm-12 form-group"></div>

        <div class="white  col-sm-12" style="padding: 20px !important">
            <h3>Skill Level</h3>
            <div class="checkbox checkbox-success">
                <input type="checkbox" name="skill_level"
                       onclick="getSkillLevel(this.value, '<?php echo base_url() . 'view-skill-level-video-course' ?>');"
                       id="skill_level0" value="0">
                <label for="Any">Any</label>
            </div>
            <div class="checkbox checkbox-success">
                <input type="checkbox" name="skill_level"
                       onclick="getSkillLevel(this.value, '<?php echo base_url() . 'view-skill-level-video-course' ?>');"
                       id="skill_level1" value="1">
                <label for="Basic">Basic</label>
            </div>
            <div class="checkbox checkbox-success">
                <input type="checkbox" name="skill_level"
                       onclick="getSkillLevel(this.value, '<?php echo base_url() . 'view-skill-level-video-course' ?>');"
                       id="skill_level2" value="2">
                <label for="Intermediate">Intermediate</label>
            </div>
            <div class="checkbox checkbox-success">
                <input type="checkbox" name="skill_level" 
                       onclick="getSkillLevel(this.value, '<?php echo base_url() . 'view-skill-level-video-course' ?>');"
                       id="skill_level3" value="3">
                <label for="Advanced">Advanced</label>
            </div>
        </div>


        <div class="col-sm-12 form-group"></div>


        <!--<div class="gray  col-sm-12" style="padding: 20px !important">
            <h3>Technology</h3>
            <div id="technology_view" class="checkbox checkbox-success">
                <?php
                $counter1 = 0;
                foreach ($technology_list as $value) {
                    ++$counter1;
                    ?>
                    <input id="course_technology<?php echo $value->course_topic_id; ?>"
                           onchange="getTechnologValue(this.value, '<?php echo base_url() . 'view-video-course-by-technology' ?>');"
                           class="styled" 
                           type="checkbox" 
                           value="<?php echo $value->course_topic_id; ?>" >
                    <label for="<?php echo $value->course_topic_name; ?>"><?php echo $value->course_topic_name; ?></label><br/>
                    <?php
                }
                if ($total_technology_list->total_topic > $counter1) {
                    ?>
                    <a href="javascript:void(0)" 
                       onclick="moreTechnology('<?php echo base_url() . 'get-video-course-more-technology' ?>', '<?php echo $counter1 ?>')">
                        More....
                    </a>
                    <?php
                }
                ?>
            </div>
        </div>

        <div class="col-sm-12 form-group"></div>-->



        <div class="white  col-sm-12" style="padding: 20px !important">
            <div class="checkbox checkbox-success">
                <input type="checkbox" name="priority_level"
                       onclick="getPriorityLevel(this.value, '<?php echo base_url() . 'view-video-course-priority' ?>');"
                       id="priority_level1" 
                       value="1">
                <label for="New">New</label>
            </div>
            <div class="checkbox checkbox-success">
                <input type="checkbox" name="priority_level"
                       onclick="getPriorityLevel(this.value, '<?php echo base_url() . 'view-video-course-priority' ?>');"
                       id="priority_level2" 
                       value="2">
                <label for="Popular">Popular</label>
            </div>
        </div>


        <div class="col-sm-12 form-group"></div>


        <div class="gray  col-sm-12" style="padding: 20px !important">
            <div class="checkbox checkbox-success">
                <input type="checkbox" name="course_type"
                       onclick="getFreeVideoCourse(this.value, '<?php echo base_url() . 'view-free-video-course' ?>');"
                       id="course_type" value="2">
                <label for="Free Course">Free Course</label>
            </div>
        </div>

        <div class="col-sm-12 form-group"></div>

    </div>

    <div class="col-sm-9  form-group">
        <div class="col-sm-12 gray  form-group">
            <div id="video_course_view" style="margin-left: 9px">
                <?php
                $i = 0;
                foreach ($video_courses as $video_course_value) {
                    ++$i;
                    ?>
                    <div class="<?php
                    if ($i % 2 == 0) {
                        echo 'row gray';
                    } else {
                        echo 'row white';
                    }
                    ?>">
                        <div class="col-sm-7 form-group" style="text-align: left !important">
                            <a href="<?php echo base_url() . $video_course_value->url; ?>" target="_blank" class="red">
                                <?php echo $video_course_value->video_course_title; ?>
                            </a><br>
                            By- 
                            <?php
                            if ($video_course_value->person_role == 6 || $video_course_value->person_role == 1) {
                                echo '<span class="green">Talha Training</span>';
                            } else if ($video_course_value->person_role == 3) {
                                ?>
                                <a href="<?php echo base_url() . $individual_teacher_value[$video_course_value->person_id]->url . '/profile' ?>" target="_blank">
                                    <?php
                                    echo $individual_teacher_value[$video_course_value->person_id]->person_first_name . ' ' . $individual_teacher_value[$video_course_value->person_id]->person_last_name;
                                    ?>
                                </a>
                                <?php
                            } else if ($video_course_value->person_role == 4) {
                                ?>
                                <a href="<?php echo base_url() . $organization_value[$video_course_value->person_id]->url . '/profile' ?>" target="_blank">
                                    <?php
                                    echo $organization_value[$video_course_value->person_id]->organization_name;
                                    ?>
                                </a>
                                <?php
                            }
                            ?>

                        </div>
                        <!--<div class="col-sm-2 form-group"><div class="rating"></div></div>-->
                        <div class="col-sm-2 form-group" style="text-align: left !important">
                            <span class="red">
                                <?php
                                switch ($video_course_value->video_management_level) {
                                    case 0:
                                        ?>
                                        <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 1:
                                        ?>
                                        <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 2:
                                        ?>
                                        <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 3:
                                        ?>
                                        <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;
                                }
                                ?>
                            </span>
                        </div>
                        <div class="col-sm-3 form-group" style="text-align: left !important">
                            <span style="margin-left: 20px">
                                <?php
                                if ($video_course_value->video_course_type == 1) {
                                    if($video_course_value->video_course_price_currency == 1){
                                        //echo 'BDT 15,500';
                                        echo 'BDT '.$video_course_value->video_course_price;
                                    }
                                    if($video_course_value->video_course_price_currency == 2){
                                        echo 'USD '.$video_course_value->video_course_price;
                                    }
                                    
                                } elseif ($video_course_value->video_course_type == 2) {
                                    echo 'Free';
                                }
                                ?>
                            </span>
                        </div>                        
                    </div>
                    <?php
                }
                ?>




                <?php
                $total_page = ceil($total_video_course->total_video_course / 10);
                if ($total_page > 1) {
                    ?>
                    <nav class="course-pagination">
                        <ul class="pagination">
                            <?php
                            if ($page > 2) {
                                ?>
                                <li>
                                    <a href="<?php echo base_url() . 'video-course'; ?>" aria-label="Previous">
                                        <span aria-hidden="true" title="First Page">&laquo;&laquo;</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo base_url() . 'video-course/' . ($page - 1); ?>" aria-label="Previous">
                                        <span aria-hidden="true" title="Previous Page">&laquo;</span>
                                    </a>
                                </li>
                            <?php } elseif ($page > 1) { ?>
                                <li>
                                    <a href="<?php echo base_url() . 'video-course/' . ($page - 1); ?>" aria-label="Previous">
                                        <span aria-hidden="true" title="Previous Page">&laquo;</span>
                                    </a>
                                </li>
                                <?php
                            }
                            for ($i = 0; $total_page > $i; $i++) {
                                echo '<li><a href="' . base_url() . 'video-course/' . ($i + 1) . '">' . ($i + 1) . '</a></li>';
                            }
                            if ($total_page != $page) {
                                ?>
                                <li>
                                    <a href="<?php echo base_url() . 'video-course/' . ($page + 1); ?>" aria-label="Next">
                                        <span aria-hidden="true" title="Next Page">&raquo;</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo base_url() . 'video-course/' . $total_page; ?>" aria-label="Next">
                                        <span aria-hidden="true" title="Last Page">&raquo;&raquo;</span>
                                    </a>
                                </li>
                            <?php } ?>
                        </ul>
                    </nav>
                <?php } ?>




            </div>
        </div>
    </div>
</div>

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