@extends('layout')


@section('content')

<div class="page-header page-header-default">
	<div class="breadcrumb-line">
		<ul class="breadcrumb">
			<li><a href="index.html"><i class="icon-home2 position-left"></i> Master</a></li>
			<li class="active">User</li>
		</ul>
	</div>
</div>

<div class="content">
	<div class="panel panel-flat">
		<div class="panel-heading">
			<h5 class="panel-title">User</h5>
			<div class="heading-elements">
				<ul class="icons-list">
		      		<li><a data-action="collapse"></a></li>
		      	</ul>
	       	</div>
	    </div>
	    <div class="panel-body">
	    	<button class="btn btn-primary" id="btn_tambah_satuan"><i class=""></i>Tambah</button>
	    </div>

	    <table class="table datatable-basic table-stripped">
	    	<thead>
				<tr>
					<th>No</th>
					<th>Nama User</th>
                    <th>Departemen</th>
                    <th>Organisasi</th>
					<th class="text-center">Aksi</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>1</td>
                    <td>Admin</td>
					<td>Admin</td>
                    <td>Admin</td>
					<td style="text-align: center">
						<button class="btn btn-warning" onclick="edit_satuan()"><i class="icon-pencil"></i> </button>
						<button class="btn btn-danger"><i class="icon-eraser"></i></button>
					</td>
				</tr>
				<tr>
					<td>2</td>
                    <td>User</td>
					<td>User</td>
                    <td>User</td>
					<td style="text-align: center">
						<button class="btn btn-warning" onclick="edit_satuan()"><i class="icon-pencil"></i> </button>
						<button class="btn btn-danger"><i class="icon-eraser"></i></button>
					</td>
				</tr>
			</tbody>
	    </table>
	</div>
</div>

<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
	<div class="modal-dialog" role="document">
	    <div class="modal-content">
	    	<div class="modal-header">
	    		<h5 class="modal-title" id="exampleModalLabel">Data</h5>
	    		<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span></button>
	      	</div>
	      	<div class="modal-body">
	      		<form class="form-horizontal" autocomplete="off">
                	<div class="form-group">
	      				<label class="control-label col-sm-4">ID</label>
	      				<div class="col-sm-8">
	      					<input type="text" name="popup_nama" class="form-control">
	      				</div>
	      			</div>
	      			<div class="form-group">
	      				<label class="control-label col-sm-4">Nama Kategori</label>
	      				<div class="col-sm-8">
	      					<input type="text" name="popup_nama" class="form-control">
	      				</div>
	      			</div>
	      		</form>
	      	</div>
	      	<div class="modal-footer">
	        	<button type="button" class="btn btn-primary" id="btn_popup_simpan">Simpan</button>
	      	</div>
	    </div>
	</div>
</div>

<script type="text/javascript">
	$("#btn_tambah_satuan").click(function(){
		$("#exampleModal").modal("show");
	})

	function edit_satuan(){
		$("#exampleModal").modal("show");
	}
</script>

@endsection