<div class="container-fluid" id="container-wrapper">
	<div class="d-sm-flex align-items-center justify-content-between mb-4">
		<h1 class="h3 mb-0 text-gray-800">Reset & Sample data</h1>
		<ol class="breadcrumb">
			<li class="breadcrumb-item"><a href="./">Home</a></li>
			<li class="breadcrumb-item active" aria-current="page">Reset & Sample data</li>
		</ol>
	</div>
	<div class="row">
		<div class="col-md-12">
			<form action="#" method="post">
				<div class="card">
					<div class="card-header  d-flex flex-row align-items-center justify-content-between">
						<h6 class="m-0 font-weight-bold text-warning">List Data</h6>
						<span id="nestable-menu" class="float-right">
							<button type="button" class="btn btn-danger btn-sm full_reset" data-toggle="tooltip" title="Reset Ulang"><i class="fa fa-refresh"></i> Reset Ulang</button>
						</span>
					</div>
					
					<div class="card-body table-responsive">
						<div class="card-block">
							<div class="row">
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='kategori' id="install_kategori" >
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Input sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Kategori</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-kategori">0</span></span>
														<span>Data kategori</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='bahan' id="install_bahan">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Input sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Bahan</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-bahan">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='satuan' id="install_satuan">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Input sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Satuan</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-satuan">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='produk' id="install_produk">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Input sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Produk</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-produk">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
							 
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='konsumen' id="install_konsumen">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Input sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Konsumen</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-konsumen">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='supplier' id="install_supplier">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Input sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Supplier</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-supplier">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='pembelian' id="install_pembelian">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Tidak ada sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Pembelian</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-pembelian">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='penjualan' id="install_penjualan">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Tidak ada sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Penjualan</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-penjualan">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='pengeluaran' id="install_pengeluaran">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Tidak ada sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Pengeluaran</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-pengeluaran">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='jurnal' id="install_jurnal">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Tidak ada sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Jurnal</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-jurnal">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
								<!--div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='kasbon' id="install_kasbon">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Tidak ada sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Kasbon</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-kasbon">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div-->
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='stokmasuk' id="install_stokmasuk">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Tidak ada sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Stok Masuk</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-stokmasuk">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='stokkeluar' id="install_stokkeluar">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Tidak ada sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Stok Keluar</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-stokkeluar">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="col-xl-3 col-md-6 mb-4 confirm_install cursor" data-name='mutasikas' id="install_mutasikas">
									<div class="card h-100">
										<div class="card-body">
											<div class="row align-items-center">
												<div class="col mr-2">
													<div class="text-xs font-weight-bold text-uppercase mb-1">Tidak ada sample</div>
													<div class="h5 mb-0 font-weight-bold text-gray-800">Mutasi antar Kas</div>
													<div class="mt-2 mb-0 text-muted text-xs">
														<span class="text-success mr-2"><i class="fa fa-database"></i> <span id="data-mutasikas">0</span></span>
														<span>Data</span>
													</div>
												</div>
												<div class="col-auto">
													<i class="fa fa-database fa-2x text-primary"></i>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div><!-- /.card -->
					</div><!-- /.card -->
				</div><!-- /.card -->
			</form>
		</div>
	</div>
</div>
<div class="modal fade" id="confirm-install" role="dialog" tabindex="-1">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title" id="Label_Install">Confirm Install</h4>
				<button aria-hidden="true" class="close" data-dismiss="modal" type="button">&times;</button>
			</div>
			<div class="modal-body">
				<p>Anda akan menginput dummy <span class="title-install"></span>, prosedur ini tidak dapat diubah.</p>
				<p>Apakah Anda ingin melanjutkan untuk menginput <span class="title-install"></span>?</p>
				<input type="hidden" id="install-data">
			</div>
			<div class="modal-footer">
				<button class="btn btn-danger" data-dismiss="modal" type="button">Tidak</button> 
				<button class="btn btn-info install_dummy" type="button">YA</button> 
			</div>
		</div>
	</div>
</div>
<div class="modal fade" id="confirm-reset" role="dialog" tabindex="-1">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title" id="Label_Reset">Confirm Reset</h4>
				<button aria-hidden="true" class="close" data-dismiss="modal" type="button">&times;</button>
			</div>
			<div class="modal-body">
				<p>Anda akan mereset data <span class="title-reset"></span>, prosedur ini tidak dapat diubah.</p>
				<p>Apakah Anda ingin melanjutkan untuk mereset <span class="title-reset"></span>?</p>
				<input type="hidden" id="reset-data">
			</div>
			<div class="modal-footer">
				<button class="btn btn-danger" data-dismiss="modal" type="button">Tidak</button> 
				<button class="btn btn-info reset_dummy" type="button">YA</button> 
			</div>
		</div>
	</div>
</div>

<div class="modal fade" id="confirm-fullreset" role="dialog" tabindex="-1">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title" id="myModalLabel">Confirm Reset Ulang</h4>
				<button aria-hidden="true" class="close" data-dismiss="modal" type="button">&times;</button>
			</div>
			<div class="modal-body">
				<p>Anda akan mereset semua data, lakukan backup terlebih dahulu, prosedur ini tidak dapat diubah.</p>
				<p>Apakah Anda ingin melanjutkan?</p>
			</div>
			<div class="modal-footer">
				<button class="btn btn-danger" data-dismiss="modal" type="button">Tidak</button> 
				<button class="btn btn-info reset_ulang" type="button">YA</button> 
			</div>
		</div>
	</div>
</div>
<script src="<?= base_url('assets/'); ?>js/rollback.js" type="text/javascript"></script>
<style>
	.cursor{cursor: pointer;}
</style>
<script>
	$(document).ready(function() {
		cek_data('kategori');
		cek_data('bahan');
		cek_data('satuan');
		cek_data('produk');
		cek_data('konsumen');
		cek_data('supplier');
		cek_data('penjualan');
		cek_data('pembelian');
		cek_data('pengeluaran');
		cek_data('jurnal');
		cek_data('stokmasuk');
		cek_data('stokkeluar');
		cek_data('mutasikas');
		// cek_data('kasbon');
	});
</script>		
