<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
        <div class="container">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="m-0">Mutasi Barang Keluar</h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="<?php echo base_url('beranda') ?>">Beranda</a></li>
                        <li class="breadcrumb-item">Transaksi</li>
                        <li class="breadcrumb-item active"><a href="#">Mutasi Barang Keluar</a></li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <div class="content">
        <div class="container">
            <div id="peringatan"></div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="card card-success card-outline">
                        <div class="card-header">
                            <a href="<?php echo base_url('transaksi/form_mutasikeluar') ?>" class="btn btn-success"><i class="fa fa-plus"></i> Tambah</a>
                            <button class="btn btn-primary" onclick="represh()"><i class="fa fa-sync"></i> Refresh</button>
                        </div>
                        <div class="card-body">
                            <table class="table table-hover table-bordered" id="tabelku" style="width: 100%;">
                            <thead>
                            <tr>
                                <th>Tanggal</th>
                                <th>Kode Mutasi</th>
                                <th>Nama Toko</th>
                                <th>Total Item Barang</th>
                                <th>Nama Pegawai</th>
                                <th width="2%"></th>
                            </tr>
                            </thead>
                            <tbody></tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- End #main -->
<?php @$this->load->view($footer) ?>
<!-- Page specific script -->
<script type="text/javascript">
$(document).ready(function() {
    $("#tabelku").DataTable({
        "processing":true,
        "serverSide":true,
        "responsive":true,
        "order":[[0,"DESC"]],
        "ajax":{
                url:"<?php echo base_url('transaksi/datamutasikeluar') ?>",
                type:"post",
        },
    });
});

function represh() {
    $("#tabelku").DataTable().draw();
}
</script>
<?php @$this->load->view($footerend) ?>