<?php 
$notices=getNotice($link1);
if(!empty($notices)){
?>
<li class="dropdown">
  <a title="Notice Board" aria-expanded="false" aria-haspopup="true" role="button" data-toggle="dropdown" class="dropdown-toggle user-action-noti" href="#"><span class="uk-badge"><?php echo count($notices); ?></span></a>
    <ul class="dropdown-menu dropdown-noti md-list md-list-addon animated fadeIn">
        <?php foreach($notices as $value){ ?>
        <li><div class="md-list-addon-element">
            <i class="md-list-addon-icon material-icons fa fa-exclamation-triangle text-<?php echo $value['notice_type']; ?>"></i>
        </div>
        <div class="md-list-content">
            <span class="md-list-heading"><?php echo $value['subject']; ?></span>
            <span class="uk-text-small uk-text-muted uk-text-truncate"><?php echo $value['central_notice']; ?></span>
            <span style="text-align:right; font-size: 12px;"><b><?php echo $value['notice_by']; ?></b></span>
        </div></li>
        <?php } ?>
      </ul>
  </li>
<?php } ?>
