<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="send_video_course_invitation_user_list_search"
                           oninput="searchSendVideoCourseInvitationUserList(this.value,'<?php echo base_url() . 'search-send-video-course-invitation-user-list' ?>')"
                           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(); ?>">
            <input type="hidden" id="invitation_id" value="<?php echo $invitation_id; ?>">
        </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-2">Serial</div>
                    <div class="col-sm-4">Email</div>          
                    <div class="col-sm-4">Profile link</div>          
                    <div class="col-sm-2">Action</div>
                </div>
                <div class="col-sm-12"><br></div>


                <div class="col-sm-12 padding-zero" id="view_invitation_receive_person">
                    <input type="hidden" id="page_number" value="<?php echo $page_number; ?>">
        
                <?php 
                    foreach ($invitation_receive_person['invitation_receive_person_data'] as $receive_person_info){
                        $serial++;
                ?>
                    <div class="col-sm-12 gray_ttc " style="padding-top: 10px;padding-bottom: 10px;">
                        
                        <div class="col-sm-2">
                            <?php echo $serial; ?>
                        </div>
                        
                        <div class="col-sm-4">
                            <?php echo $receive_person_info->invitation_send_to_email; ?>
                        </div>
                        <div class="col-sm-4">
                            <?php 
                                if(isset($person_email[$receive_person_info->invitation_receive_person_id])){
                                ?>
                                <a href="<?php echo base_url().$person_email[$receive_person_info->invitation_receive_person_id]->url.'/profile'; ?>" target="_blank">
                                <?php
                                    echo $person_email[$receive_person_info->invitation_receive_person_id]->person_first_name. ' '. $person_email[$receive_person_info->invitation_receive_person_id]->person_last_name; 

                                ?>
                                </a>
                                <?php
                                }
                            ?>
                        </div>
                        
                        <div class="col-sm-2">
                            <a href="javascript:void(0)" id="send_invitation_again<?php echo $receive_person_info->invitation_receive_person_id; ?>" onclick="sendInvitationAgain('<?php echo base_url() . 'send-invitation-again';?>','<?php echo $receive_person_info->invitation_receive_person_id; ?>')">
                                <i class="fa fa-paper-plane" title="Send invitation again"></i>
                            </a>
                            <a href="javascript:void(0)" id="send_invitation_again_successfull<?php echo $receive_person_info->invitation_receive_person_id; ?>" style="display: none">
                                <i class="fa fa-check-circle" title="Sent"></i>
                            </a>&nbsp;
                            <?php if(!isset($person_email[$receive_person_info->invitation_receive_person_id])){ ?>
                                <a href="javascript:void(0)" id="send_registration_invitation<?php echo $receive_person_info->invitation_receive_person_id; ?>" onclick="sendSiteRegistrationInvitation('<?php echo base_url().'send-registration-invitation';?>','<?php echo $receive_person_info->invitation_receive_person_id; ?>')">
                                    <i class="fa fa-sign-in" title="Send site registration invitation"></i>
                                </a>
                                <a href="javascript:void(0)" id="send_registration_invitation_successfull<?php echo $receive_person_info->invitation_receive_person_id; ?>" style="display: none">
                                    <i class="fa fa-check-circle" title="Registration invitation sent"></i>
                                </a>&nbsp;
                            <?php } ?>
                            <a href="javascript:void(0)" onclick="deleteInvitationReceivePerson('<?php echo base_url().'delete-invitation-receive-person' ?>','<?php echo $receive_person_info->invitation_receive_person_id; ?>')">
                                <i class="fa fa-trash-o"></i>
                            </a>
                        </div>
                    </div>
                <?php } 
                    echo $send_video_course_invitation_user_list_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"/>
