<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
  <head>
    <title>Admin &gt; Transaksi Via SMS</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 class="active"><span>Transaksi Via SMS</span></li>
      </ul>
      <div class="row">
        <div class="col-sm-4 col-md-3">
          <?php include(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-file-text-o"></i> Template</h3>
            </div>
            <div class="panel-body">
              <div class="list-group">
                <?php foreach($templates as $tpl_key=>$tpl_val):?>
                <a id="<?php echo $tpl_key;?>" class="list-group-item" href="<?php echo site_url('admin/modules/smstrx/template/'.$tpl_key);?>" data-toggle="modal" data-target="#myModal"><?php echo html_escape($tpl_val[0]);?></a>
                <?php endforeach;?> 
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php include_once(VIEWPATH.'includes/foot.php'); ?>
  </body>
</html>