@extends('layouts.app')

@section('title',"Cuentas bancarias")

@section('content')

<div class="card">
	<div class="card-header header-elements-inline">
		<h5 class="card-title"><i class="icon-clipboard "></i> Cuentas bancarias</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'=>'no',
	                  'url'=>url('accountbanks/create'),
	                  'class'=>" btn btn-primary",
	                  'icon'=>"icon-database-add",
	                  'text' => "Agregar cuenta"
	                )
            	)])	
			</div>
		</div>
	</div>
		<table class="table table-bordered table-hover datatable">
			<thead>
				<th>Codigo</th>
				<th>Nombre </th>
				<th>Moneda</th>
				<th>Nro. cuenta</th>
				<th>Propietario</th>
				<th>tipo</th>
				<th>tarj.</th>
				<th>cob.</th>
				<th>pag.</th>
				<th>dep.</th>
				<th>Acciones</th>
			</thead>
		</table>
</div>

	@section('scripts')
		<script>
			var columnDefs = '';
			var url = 'accountbanks';
			var columns = [
		        {data: 'id'},
		        {data: 'nombre'},
		        {data: 'moneda'},
		        {data: 'nrocuenta'},
		        {data: 'propietario'},
		        {data: 'tipo'},
		        {data: 'tarjeta'},
		        {data: 'cobrar'},
		        {data: 'pagar'},
		       	{data: 'deposito'},
		       	{data: 'action'},
		    ];</script>
		<script src="{!! asset('assets/datatables/datatables_basic.js') !!}"></script>
	@endsection
@endsection