<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" 
                           id="manage_send_video_course_invitation_search"
                           oninput="searchSendVideoCourseInvitation(this.value,'<?php echo base_url() . 'search-manage-send-video-course-invitation' ?>')"
                           placeholder="Search here..." 
                           aria-describedby="basic-addon1">
                    <span class="input-group-addon" id="basic-addon1"><i class="fa fa-search"></i></span>
                </div>
            </div>
            <input type="hidden" id="baseUrl" value="<?php echo base_url(); ?>">
        </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 send_invitation_list_border">
                    <div class="col-sm-1">Serial</div>
                    <div class="col-sm-6">Video Course Title</div>
                    <div class="col-sm-5">No. of send invitation</div>          
                </div>
                <div class="col-sm-12"><br></div>


                <div class="col-sm-12 padding-zero" id="view_manage_send_video_course_invitation">
                <?php 
                    foreach ($video_course as $video_course_data){
                        $serial++;
                ?>
                    <div class="col-sm-12 gray_ttc " style="padding-top: 10px;padding-bottom: 10px;">
                        <div class="col-sm-1">
                            <?php echo $serial; ?>
                        </div>
                        <div class="col-sm-6">
                            <a href="<?php echo base_url().'view-single-video-course/'.$video_course_data->url; ?>">
                                <?php echo $video_course_data->video_course_title; ?>
                            </a>
                        </div>
                        <div class="col-sm-5">
                            <?php 
                                if(isset($send_invitation)){
                                    if($send_invitation[$video_course_data->video_course_id] > 0){
                                    ?>
                                        <a href="<?php echo base_url().'view-video-course-invitation/'.$video_course_data->url; ?>">
                                        <?php
                                            echo $send_invitation[$video_course_data->video_course_id]; 
                                        ?>
                                        </a>
                                    <?php
                                    }else{
                                        ?>
                                        <a href="javascript:void(0)">
                                        <?php
                                            echo $send_invitation[$video_course_data->video_course_id]; 
                                        ?>
                                        </a>
                                        <?php
                                    }
                                } 
                           ?>
                        </div>
                    </div>
                <?php } 
                echo $manage_send_video_course_invitation_pagination; ?>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="<?php echo base_url();?>back_end_resource/send_video_course_invitation/send_video_course_invitation.js" type="text/javascript"></script>
<link href="<?php echo base_url();?>back_end_resource/send_video_course_invitation/send_video_course_invitation.css" rel="stylesheet" type="text/css"/>
