<div class="row">
  <div class="col-sm-6 col-md-4">
    <div class="tile">
      <div class="tile-heading text-center"><?php echo $text_posts; ?></div>
      <div class="tile-body">
        <i class="fa fa-file-o"></i>
        <h2 class="pull-right"><?php echo $total_post; ?></h2>
      </div>
      <div class="tile-footer">
        <a href="javascript:void(0)" onclick="$('a[href=#tab-post]').trigger('click')" class="isl-block text-center"><?php echo $text_view_more; ?></a>
      </div>
    </div>
  </div>
  <div class="col-sm-6 col-md-4">
    <div class="tile">
      <div class="tile-heading text-center"><?php echo $text_categories; ?></div>
      <div class="tile-body">
        <i class="fa fa-list"></i>
        <h2 class="pull-right"><?php echo $total_category; ?></h2>
      </div>
      <div class="tile-footer">
        <a href="javascript:void(0)" onclick="$('a[href=#tab-category]').trigger('click')" class="isl-block text-center"><?php echo $text_view_more; ?></a>
      </div>
    </div>
  </div>
  <div class="col-sm-6 col-md-4">
    <div class="tile">
      <div class="tile-heading text-center"><?php echo $text_tags; ?></div>
      <div class="tile-body">
        <i class="fa fa-tag"></i>
        <h2 class="pull-right"><?php echo $total_tags; ?></h2>
      </div>
      <div class="tile-footer">&nbsp;</div>
    </div>
  </div>
</div>

<div class="row" style="margin-top:20px">
  <div class="col-sm-6">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><?php echo $text_popular_60days; ?></h3>
      </div>
      <table class="table table-striped table-hover">
        <thead>
          <tr>
            <th class="text-center" style="width:50px"><?php echo $text_id; ?></th>
            <th><?php echo $text_title; ?></th>
            <th class="text-center" style="width:100px"><?php echo $text_total_view; ?></th>
          </tr>
        </thead>
        <tbody>
          <?php if ($post_popular) { ?>
            <?php foreach ($post_popular as $post) { ?>
              <tr>
                <td class="text-center"><?php echo $post['post_id']; ?></td>
                <td class="text-left">
                  <a href="<?php echo $url_post_edit; ?>&post_id=<?php echo $post['post_id']; ?>" title="Edit #<?php echo $post['post_id']; ?>"><?php echo $post['title']; ?></a>
                  <div class="isl-help">Url alias: <?php echo $post['url_alias'] ? $post['url_alias'] : '-'; ?></div>
                </td>
                <td class="text-center"><?php echo $post['total_view']; ?></td>
              </tr>
            <?php } ?>
          <?php } else { ?>
            <tr>
              <td class="text-center" colspan="3"><?php echo $text_no_data; ?></td>
            </tr>
          <?php } ?>
        </tbody>
      </table>
    </div>
  </div>

  <div class="col-sm-6">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><?php echo $text_recent_update_post; ?></h3>
      </div>
      <table class="table table-striped table-hover">
        <thead>
          <tr>
            <th class="text-center" style="width:50px"><?php echo $text_id; ?></th>
            <th><?php echo $text_title; ?></th>
            <th class="text-center" style="width:120px"><?php echo $text_updated; ?></th>
          </tr>
        </thead>
        <tbody>
          <?php if ($post_recent_update) { ?>
            <?php foreach ($post_recent_update as $post) { ?>
              <tr>
                <td class="text-center"><?php echo $post['post_id']; ?></td>
                <td class="text-left">
                  <a href="<?php echo $url_post_edit; ?>&post_id=<?php echo $post['post_id']; ?>" title="Edit #<?php echo $post['post_id']; ?>"><?php echo $post['title']; ?></a>
                  <div class="isl-help">Url alias: <?php echo $post['url_alias'] ? $post['url_alias'] : '-'; ?></div>
                </td>
                <td class="text-center"><?php echo $post['updated']; ?></td>
              </tr>
            <?php } ?>
          <?php } else { ?>
            <tr>
              <td class="text-center" colspan="3"><?php echo $text_no_data; ?></td>
            </tr>
          <?php } ?>
        </tbody>
      </table>
    </div>
  </div>
</div>
