<?php foreach ($items as $item) { ?>
  <tr class="text-center">
    <td style="padding:8px 2px;"><?php echo $item['post_id']; ?></td>
    <td class="text-left">
      <a href="<?php echo $url_item_edit; ?>&post_id=<?php echo $item['post_id']; ?>"><?php echo $item['title']; ?></a>
      <div class="isl-help">Url alias: <?php echo $item['url_alias'] ? $item['url_alias'] : '-'; ?></div>
    </td>
    <td class="text-left" style="font-size:12px"><?php echo $item['excerpt']; ?></td>
    <td><?php echo $item['duration_start']; ?> - <?php echo $item['duration_end'] ? $item['duration_end'] : 'Not set'; ?></td>
    <td>
      <?php if ($item['status']) { ?>
        <a class="btn btn-sm btn-success btn-xs" data-isl-update='{"action":"status", "id":<?php echo $item['post_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['post_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; ?>&post_id=<?php echo $item['post_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['post_id']; ?>}'><i class="fa fa-trash-o"></i></a>
    </td>
  </tr>
<?php } ?>
