 <!-- Main content -->
<section class="content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-12">
        <div class="card">
          <div class="card-header">
            <div class="row">
              <div class="col-sm-6">
                <h3 class="card-title">Setting Pesan</h3>
              </div>
              <div class="col-sm-6">
              </div>
            </div>
          </div>
          <!-- /.card-header -->
          <div class="card-body">
            <table id="example1" class="table table-bordered table-striped">
              <thead>
              <tr>
                <th>Jenis Pesan</th>
                <th>Pesan WhataApp</th>
                <th>Action</th>
              </tr>
              </thead>
              <tbody>
              <?php

                $aserver = mysqli_query($con,"SELECT backround_kwitansi, pesan_kirim_tagihan, pesan_peringatan_tagihan, pesan_isolir_pelanggan, pesan_melunasi_tagihan, pesan_koneksi_off, pesan_registrasi, pesan_aktivasi FROM data_server WHERE id = '$SvId' ");
                $server = mysqli_fetch_assoc($aserver);
                $data = array(
                  array("id" => "1", "nama" => "pesan_kirim_tagihan", "pesan" => $server['pesan_kirim_tagihan']), 
                  array("id" => "2", "nama" => "pesan_peringatan_tagihan", "pesan" => $server['pesan_peringatan_tagihan']), 
                  array("id" => "3", "nama" => "pesan_isolir_pelanggan", "pesan" => $server['pesan_isolir_pelanggan']), 
                  array("id" => "4", "nama" => "pesan_melunasi_tagihan", "pesan" => $server['pesan_melunasi_tagihan']), 
                  array("id" => "5", "nama" => "pesan_koneksi_off", "pesan" => $server['pesan_koneksi_off']), 
                  array("id" => "6", "nama" => "pesan_registrasi", "pesan" => $server['pesan_registrasi']), 
                  array("id" => "7", "nama" => "pesan_aktivasi", "pesan" => $server['pesan_aktivasi'])
                );
                // echo "<pre>";
                // print_r($data);
                // echo "</pre>";
                foreach ($data as $key) {
              ?>
              <tr>
                <td><?php echo $key['nama']; ?></td>
                <td><?php echo $key['pesan']; ?></td>
                <td>
                  <a href="?<?php echo encrypt_url('setting_pesan_pesan|'.$key['nama']); ?>" type="button" class="btn btn-secondary btn-sm m-1" >Edit</a>
                </td>
              </tr>
            <?php } ?>
              </tbody>
            </table>
          </div>
          <!-- /.card-body -->
        </div>
        <!-- /.card -->
      </div>
      <!-- /.col -->
    </div>
    <!-- /.row -->
  </div>
  <!-- /.container-fluid -->
</section>
<!-- /.content -->