
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        Manage Pesan
                    </h1>
                        <ol class="breadcrumb">
                        <li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i> Home</a></li>
                        <li><a href="<?=base_index();?>pesan">Pesan</a></li>
                        <li class="active">Pesan List</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="box">
                                <div class="box-header">
                                <h3 class="box-title">List Pesan</h3>
                                </div><!-- /.box-header -->
                                <div class="box-body table-responsive">
                                    <table id="dtb_manual" class="table table-bordered table-striped">
                                   <thead>
                                     <tr>

                          <th>Dari</th>
													<th>Subject</th>
													<th>Tanggal</th>
													<th>Dibaca</th>
													
                          <th>Action</th>
                         
                        </tr>
                                      </thead>
                                        <tbody>
                                          <?php
                                          $data_pesan = $db->fetch_custom("select * from pesan");
                                          foreach ($data_pesan as $dt) {
                                              echo "<tr>
                                              <td>$dt->from_pesan</td>
                                              <td>$dt->subject</td>
                                              <td>".tgl_indo($dt->tgl_pesan)."</td>";
                                              if ($dt->is_read=='N') {
                                                echo '<td><span class="btn btn-block btn-info btn-xs">Belum</span></td>';
                                              } else {
                                                echo '<td><span class="btn btn-block btn-danger btn-xs">Sudah</span></td>';
                                              }
                                              echo '<td><a href="'.base_index().'pesan/detail/'.$dt->id.'" class="btn btn-success"><i class="fa fa-eye"></i> Baca Sekarang</a></td>';
                                          }
                                          ?>
                                        </tbody>
                                    </table>
                                </div><!-- /.box-body -->
                            </div><!-- /.box -->
                        </div>
                    </div>
                </section><!-- /.content -->