<?php foreach ($items as $item) { ?>
  <tr class="text-center">
    <td style="padding:8px 2px;"><?php echo $item['category_id']; ?></td>
    <td class="text-left">
      <a href="<?php echo $url_item_edit; ?>&category_id=<?php echo $item['category_id']; ?>"><?php echo $item['path_html']; ?></a>
      <div class="isl-help">Alias: <?php echo $item['url_alias'] ? $item['url_alias'] : '-'; ?></div>
    </td>
    <td class="text-center">
      <?php echo $item['post_count']; ?>
    </td>
    <td class="text-center">
      <input type="number" name="sort_order[<?php echo $item['category_id']; ?>]" value="<?php echo $item['sort_order']; ?>" class="form-control input-sm item-sort-order">
    </td>
    <td>
      <?php if ($item['status']) { ?>
        <a class="btn btn-sm btn-success btn-xs" data-isl-update='{"action":"status", "id":<?php echo $item['category_id']; ?>, "value":0}' data-toggle="tooltip" title="Click to set as Draft"><i class="fa fa-check"></i></a>
      <?php } else { ?>
        <a class="btn btn-sm btn-danger btn-xs" data-isl-update='{"action":"status", "id":<?php echo $item['category_id']; ?>, "value":1}' data-toggle="tooltip" title="Click to publish"><i class="fa fa-close"></i></a>
      <?php } ?>
    </td>
    <td style="padding:8px 2px;">
      <a href="<?php echo $url_item_edit; ?>&category_id=<?php echo $item['category_id']; ?>" class="btn btn-primary btn-sm"><i class="fa fa-pencil"></i></a>
      <a class="btn btn-danger btn-sm" data-isl-update='{"action":"delete", "id":<?php echo $item['category_id']; ?>}'><i class="fa fa-trash-o"></i></a>
    </td>
  </tr>
<?php } ?>
