<div class="col-sm-12 gray_ttc text-center" style="border-bottom: 2px solid #8CC73F;padding: 10px 0 10px 0;font-weight: bold">
    <div class="col-sm-4" style="padding: 0">Alert</div>
    <div class="col-sm-4" style="padding: 0"> By</div>
    <div class="col-sm-2" style="padding: 0"> Date</div>
    <div class="col-sm-2" style="padding: 0">Action</div>
</div>

<div class="col-sm-12"><br></div>
<input type="hidden" name="url_id" id="url_id" value="<?php echo $group_url; ?>">
<span class="padding-zero" id="view_group_alert">
    <?php
    $user_id = $this->session->userdata('user_id');
    if ($group_alert_post) {
        foreach ($group_alert_post as $v_alert) {
            ?>
            <div class="col-sm-12 gray text-center" >
                <div class="col-sm-4" style="padding: 10px 0 0 0  ">
                    <?php
                    $mess = $v_alert->post_details;
                    echo substr($mess, 0, 50) . "...";
                    ?>
                    <a href="<?php echo base_url() . 'view-content-group/' . $this->utility_model->encode_id($v_alert->post_id, '/', 'Tt') . '/1'; ?>">view</a>
                </div>

                <div class="col-sm-4" style="padding: 10px 0 0 0; cursor: pointer; color: #80c12c;" id="viewGroup<?php echo $v_alert->url ?>">
                    <?php
                    //echo $v_alert->person_first_name . ' ' . $v_alert->person_last_name;
                    if (strlen($v_alert->person_first_name) && strlen($v_alert->person_last_name) < 20) {
                        echo $v_alert->person_first_name . ' ' . $v_alert->person_last_name;
                    } else {
                        echo substr($v_alert->person_first_name, 0, 30) . ' ' . substr($v_alert->person_last_name, 0, 20) . '...';
                    }
                    ?>
                </div>

                <div class="col-sm-2" style="padding: 10px 0 0 0  ">
                    <?php echo $v_alert->post_date_time; ?>
                </div>

                <div class="col-sm-2" style="padding: 10px 0 0 0  ">
                    <?php
                    $post_status = $v_alert->post_status;
                    if ($v_alert->posted_by == $user_id || $group_details->group_created_by == $user_id) {
                        if ($post_status != 2) {
                            ?>
                            <a href="#" onclick="return checkForDelete('<?php echo $v_alert->post_id; ?>', '<?php echo $group_details->group_id; ?>')">
                                <i class="fa fa-trash-o" title="Delete"></i>
                            </a>&nbsp;&nbsp;
                            <?php
                        }
                    }
                    ?>
                </div>
            </div>
            <div class="col-sm-12"><br></div>
                <?php
            }
        }
        ?>
</span>
<?php echo $group_detail_alert_pagination_link; ?>
