<div class="col-sm-8">
    <div class="row gray_ttc">
        <div class="col-sm-12 ">
            <div class="col-sm-12">
                <h3>
                    User Link
                    <!--<a href="add_video_management.html"> <span class="pull-right" style="font-size: 18px">Add Video</span></a>-->
                </h3>
                <hr>


            </div>

            <div class="col-sm-12 " style="padding:0px">
                <div class="col-sm-12 ">
                    <?php
                    $i = 0;
                    if ($person_link) {
                        foreach ($person_link as $v_person_link) {
                            if ($link_person_info[$v_person_link->person_link_id]->person_id == $person_id) {
                                
                            } else {
                                ?>
                                <div class="col-sm-6  white form-group">
                                    <div class="col-sm-6">
                                        <?php if ($link_person_info[$v_person_link->person_link_id]->person_image_thumb) { ?>
                                            <a href="#"><img src="<?php echo base_url() . $link_person_info[$v_person_link->person_link_id]->person_image_thumb; ?>" style="width:100px; height:100px;"  class="img-responsive"></a>
                                        <?php } else { ?>
                                            <a href="#">
                                                <img src="<?php echo base_url() . 'image/no_profile_picture.png' ?>" style="width:100px; height:100px;" class="img-responsive">
                                            </a>
                                        <?php } ?>
                                    </div>
                                    <div class="col-sm-6 ">
                                        <address>
                                            <a href="<?php echo base_url() . $link_person_info[$v_person_link->person_link_id]->url . '/profile'; ?>"> 
                                                <?php echo $link_person_info[$v_person_link->person_link_id]->person_first_name . ' ' . $link_person_info[$v_person_link->person_link_id]->person_last_name; ?></a>
                                            <br>
                                            <?php // designation goes here?><br>
                                            <?php
                                            if ($link_person_info[$v_person_link->person_link_id]->person_role == 4) {
                                                echo $link_person_info[$v_person_link->person_link_id]->organization_name;
                                            }
                                            ?><br>
                                        </address>
                                    </div>

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

                                    <div class="col-sm-12">
                                        <?php if ($v_person_link->add_link_request_status == 1) { ?>
                                            <a href="javascript:void(0)"> <i class="fa fa-unlink" title="Remove From Link"></i></a>&nbsp;&nbsp;&nbsp;

                                        <?php } else if ($v_person_link->add_link_request_status == 3) { ?>  
                                            <a href="javascript:void(0)"> <i class="fa fa-check-circle" title="Accept Request"></i></a>&nbsp;&nbsp;&nbsp;
                                            <a href="javascript:void(0)"> <i class="fa fa-user-times" title="Cancel Request"></i></a>&nbsp;&nbsp;&nbsp;

                                        <?php } ?>
                                    </div>

                                </div>
                                <?php
                            }
                        }
                    } else {
                        echo "You Don\'t have any Link Person";
                    }
                    ?>
                </div>
            </div>

        </div>
    </div><!-- /.row gray -->
</div>
