@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">Warna SPK</li>
		</ul>
	</div>
</div>

<div class="content">
	<div class="panel panel-flat">
		<div class="panel-heading">
			<h5 class="panel-title">Warna SPK</h5>
			<div class="heading-elements">
				<ul class="icons-list">
		      		<li><a data-action="collapse"></a></li>
		      	</ul>
	       	</div>
	    </div>
	    <div class="panel-body">
	    </div>
	    <table class="table table-stripped" id="table_perkiraan">
	    	<thead>
				<tr>
					<th width="3%">No</th>
					<th>Nama</th>
					<th class="text-center">Aksi</th>
				</tr>
			</thead>
			<tbody>
				
			</tbody>
	    </table>
	     
	</div>
</div>



<script type="text/javascript"> 
	var tp;
	$(document).ready(function(){
		tp = $("#table_perkiraan").DataTable({
			processing: true,
	        serverSide: true,
	        ajax: '{{ url('warnaspk/tampil_parentmotif') }}',
	        columns: [
	            {data: 'id_motif', name: 'id_motif', orderable: false, searchable: false, render : function(data, type, full, meta){
			  		return meta.row+1;
			  	}},
	            {data: 'nama', name: 'nama'},
	            {data: 'aksi', name: 'aksi', orderable: false, searchable: false}
	        ],
		});		
		
	})



	
</script>
@endsection