<?php foreach($kontak as $kontak) :   endforeach; ?>
<?php foreach($admin_login as $user) :   endforeach; ?> 
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark"> 
                 <?php echo $title1; ?>
            </h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active"><?php echo $title1; ?></li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
      
          
    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
          <div class="card">
              <div class="card-header">
               
                 <a target="blank" href="<?php echo base_url('barang/tambah_data');?>"> <button type="button" class="btn btn-info" >
                  <i class="fa fa-plus"></i> Tambah Data 
                </button> </a>
                <a target="blank" href="<?php echo base_url('laporan/cetak_barang');?>"> <button type="button" class="btn btn-success" >
                  <i class="fa fa-print"></i> Cetak
                </button> </a>
                 

              </div>
              <!-- /.card-header -->
              <div class="card-body">
            
               <div id="tampil"></div>


                <script type="text/javascript" src="<?php echo base_url();?>assets/barang/jquery.js"></script>
                <script src="<?php echo base_url();?>asset/barang/bootstrap.min.js"></script>
                <script>
                    function mytable() {
                        $('#tampil').load('<?= base_url("datatables/onetable");?>');
                    }

                    function mytablewhere() {
                        $('#tampil').load('<?= base_url("datatables/tablewhere");?>');
                    }

                    function mytablequery() {
                        $('#tampil').load('<?= base_url("datatables/tablequery");?>');
                    }

                    $('li > a').click(function() {
                        $('li').removeClass();
                        $('li').parent().addClass('nav-item');
                        $(this).parent().addClass('nav-item active');
                    });
                                // root 
                    $('#tampil').load('<?= base_url("datatables/csrf");?>');
                </script>

              </div>
            
            </div>
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

