<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
  <head>
    <title>News | OtomaX API <?php echo html_escape($server->sv_nama);?></title>
    <?php include_once(VIEWPATH.'includes/head.php'); ?>    
  </head>  
  <body>
    <?php include_once(VIEWPATH. '/admin/_navbar.php'); ?>
    <div class="container">
      <ul class="breadcrumb">
        <li><a href="<?php echo site_url();?>"><i class="fa fa-home"></i></a></li>
        <li><a href="<?php echo site_url('admin');?>">Admin Panel</a></li>
        <li><a href="<?php echo site_url('admin/modules/otomax');?>">OtomaX</a></li>
        <li class="active"><span><?php echo html_escape($server->sv_nama);?></span></li>
      </ul>
      <div class="row">
        <div class="col-sm-4 col-md-3">
          <?php include_once(dirname(__FILE__).'/_sidebar.php');?>
        </div>
        <div class="col-sm-8 col-md-9">
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3><i class="fa fa-newspaper-o"></i> News</h3>
            </div>
            <div class="panel-body">
              <ul class="media-list">
                <?php foreach ($news['0101'] as $item):?>
                <li class="media">
                  <div class="media-left"><i class="fa fa-thumb-tack fa-3x"></i></div>
                  <div class="media-body">
                    <h4 class="media-heading" style="border-bottom: 1px solid #ddd;padding-bottom: 15px;margin-bottom: 15px;"><?php echo $item['title'];?> <small><?php echo $item['entrydate'];?></small></h4>
                    <p class="list-group-item-text"><?php echo $item['description'];?></p>
                  </div>
                </li>
                <?php endforeach;?>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php include_once(VIEWPATH.'includes/foot.php'); ?>
  </body>
</html>