@extends('layouts.app')

@section('title',"Familia de articulos")

@section('content')
<div class="card">
	<div class="card-header header-elements-inline">
		<h5 class="card-title"><i class="icon-clipboard "></i> Tags </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 tag"
	                )
            	)])	
			</div>
		</div>
	</div>
	<table class="table table-bordered table-hover datatable">
		<thead>
			<th>id</th>
			<th>Nombre </th>
			<th>Slug</th>
			<th>Descripcion</th>
			<th width="20%">Acciones</th>
		</thead>
	</table>
</div>
@include('Utilitarios.views.add.tag_art')
<div class="response-ajax"></div>

	@section('scripts')
	<script>
		$('.sub_utilitys').addClass('nav-item-open nav-item-expanded');
		var url = 'tag_art';
		var columns = [
		        {data: 'id'},
		        {data: 'nombre'},
		        {data: 'slug'},
		        {data: 'descripcion'},
		        {data: 'action'},
		    ];
	</script>
	<script src="{!! asset('assets/datatables/datatables_basic.js') !!}"></script>
	@endsection
@endsection