@extends('layouts.app')

@section('title',"Tipo de documentos")

@section('content')
<div class="card">
	<div class="card-header header-elements-inline">
		<h5 class="card-title"><i class="icon-clipboard "></i> Tipo de documentos </h5>
		<div class="header-elements">
			<div class="list-icons">
        		<a class="list-icons-item" data-action="collapse"></a>
        		<a class="list-icons-item" data-action="reload"></a>
        		<a class="list-icons-item" data-action="remove"></a>
        	</div>
    	</div>
	</div>	
	<div class="card-body mt-2">
		<div class="row">
			<div class="col-12">
				@include('layouts.buttons.button-create',['buttons'=> array(
	                array(
	                  'modal'=>'si',
	                  'url'=>'#',
	                  'class'=>" btn btn-primary",
	                  'icon'=>"icon-database-add",
	                  'text' => "Crear nuevo"
	                )
            	)])					
			</div>
		</div>
	</div>
	<div class="">
		<table class="table table-bordered table-hover datatable ">
			<thead>
				<tr>
	                <th colspan="3"></th>
	                <th colspan="3">Compras</th>
	                <th colspan="3">Ventas</th>
	                <th></th>
            	</tr>
				<tr>
					<th>Codigo</th>
					<th>Descripcion </th>
					<th></th>

					<th>Descuento </th>
					<th>Impuesto</th>
					<th>Total</th>

					<th>Descuento</th>
					<th>Impuesto</th>
					<th>Total</th>

					<th>Acciones</th>
				</tr>
			</thead>
		</table>
	<div>
</div>
@include('Catalogo.views.add.tipdoc')
<div class="response-ajax"></div>
	@section('scripts')
		<script>
			var url = 'tipdoc';
			var columns = [
				        {data: 'codsun'},
				        {data: 'descrip'},
				        {data: 'descor'},
				        {data: 'cuenta1'},
				        {data: 'cuenta2'},
				        {data: 'cuenta3'},
				        {data: 'cuenta4'},
				        {data: 'cuenta5'},
				        {data: 'cuenta6'},
				        {data: 'action'},
				    ];
	  		//Estilos columns
		</script>
		<script src="{!! asset('assets/datatables/datatables_basic.js') !!}"></script>
	@endsection
@endsection