 <!-- Main content -->
<section class="content" style="zoom : 85%;">
  <div class="container-fluid">
    <div class="row">
      <div class="col-12">
        <div class="card">
          <div class="card-header">
            <div class="row">
              <div class="col-6">
                <h3 class="card-title">Batal Order</h3>
              </div>
              <div class="col-6">
              </div>
            </div>
          </div>
          <!-- /.card-header -->
          <div class="card-body">
            <table id="example1" class="table table-bordered table-striped">
              <thead>
              <tr>
                <th>Time</th>
                <th>Nama</th>
                <th>Alamat</th>
                <th>Koordinat</th>
                <th>Nomor WhatsApp</th>
                <th>Server</th>
                <th>Keterangan</th>
                <th>Action</th>
              </tr>
              </thead>
              <tbody>
              <?php
                $aserver = mysqli_query($con,"SELECT * FROM v_order_list WHERE $SqlSvData status = 'batal'");
                while ($server = mysqli_fetch_assoc($aserver)) 
                {
              ?>
              <tr>
                <td style="max-width: 100px;"><?php echo $server['time_start']; ?></td>
                <td><?php echo $server['nama']; ?></td>
                <td style="max-width: 200px;"><?php echo $server['alamat']; ?></td>
                <td><a href="https://google.com/maps/?q=<?php echo $server['latitude'].', '.$server['longitude']; ?>" target="_blank"><?php echo $server['latitude'].', '.$server['longitude']; ?></a></td>
                <td><?php echo $server['nomor_whatsapp']; ?> <a href="https://wa.me/<?php echo $server['nomor_whatsapp']; ?>" target="_blank" style="border-radius: 20px; " class="btn btn-sm btn-success">Chat</a></td>
                <td><?php echo $server['nama_server']; ?></td>
                <td><?php echo $server['keterangan_batal']; ?></td>
                <td>
                  <form method="post">
                    <?php if(in_array("Hapus", $json_array[18]['sub_menu'])){ ?>
                    <input type="submit" name="hapus<?php echo $server['id'];?>" value="Hapus" class="btn btn-danger btn-sm m-1" />
                    <?php } ?>
                  </form>
                </td>
              </tr>
            <?php
              if (isset($_POST['hapus'.$server['id']]))
              {
                $iddata = $server['id'];
                deleteAlert("order_list",$iddata );
              }
             } ?>
              </tbody>
            </table>
          </div>
          <!-- /.card-body -->
        </div>
        <!-- /.card -->
      </div>
      <!-- /.col -->
    </div>
    <!-- /.row -->
  </div>
  <!-- /.container-fluid -->
</section>
<!-- /.content -->