<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;
?>

            