<?php
foreach ($all_notification as $notification_value) {
    ?>
    <div class="media col-sm-10 col-sm-offset-1 <?php echo ($notification_seen_info[$notification_value->notification_id] == 2) ? 'deep_green' : '' ?>" id="viewSinglenotification<?php echo $notification_value->notification_id ?>" style="cursor: pointer;">
        <div class="media-left">
            <?php
            if ($notify_by_info[$notification_value->notification_id]->person_role == 6) {
                ?>
                <img class="media-object " src="<?php echo base_url() ?>images/logo-50.png" alt="logo">
                <?php
            } else {
                if ($notify_by_info[$notification_value->notification_id]->person_image) {
                    ?>
                    <img class="media-object " height="45" width="45"
                         src="<?php echo base_url() . 'content-library/' . $notify_by_info[$notification_value->notification_id]->url . '/' . $notify_by_info[$notification_value->notification_id]->person_image ?>" alt="logo">
                         <?php
                     } else {
                         ?>
                    <img class="media-object " src="<?php echo base_url() ?>images/logo-50.png" alt="logo">
                    <?php
                }
            }
            ?>
        </div>
        <div class="media-body" style="padding-left: 20px !important; text-align: left !important">
            <span class="text-justify" style="">
                <?php
                echo $notification_message[$notification_value->notification_id];
                ?>
            </span>
            <div class="media-bottom">
                <p style="color: #999999">
                    <?php echo $notification_date_time[$notification_value->notification_id] ?>
                </p>
            </div>
        </div>
        <div class="modal fade" style="" id="viewDeleteWorkFile" tabindex="-1" role="dialog" aria-labelledby="changeRole" aria-hidden="true">
            <?php
            $message2 = '<span style="text-align:center">There is no content in this notification?</span>';
            $this->cf->view_single_modal('notification', $message2);
            ?>
        </div>
    </div>
    <?php
}