<?php $__env->startSection('datatable'); ?>

<?php
/**
* index.blade.php
* Ruta:              /transito/app/views/categorialicencia/index.blade.php
* Fecha Creación:    24/Ene/2015
*
* Interfaz de inicio para los elementos contenidos
* En la tabla asociada al modelo CategoriaLicencia
*
* @author           Michael Ortiz <michael.ortiz@turrisystem.com>
* @copyright        2015 Michael Ortiz
* @license          GPL 2 or later
* @version          2015-12-24
*
*/
?>

<div class="row">
    <div class="col-xs-12 col-md-10 col-md-offset-1">
        <div class="well">

            <fieldset>
                <legend>Categoria Licencias <?php echo HTML::link('/categoriaLicencia/create',' Agregar', array('class'=>'pull-right btn btn-primary glyphicon glyphicon-plus')); ?></legend>

        	    <div class="table-responsive">
                      <?php echo Datatable::table()
                             ->addColumn('Nivel jerarquico','Tipo vehiculo','Nombre','Descripción','Acciones')
                             ->setCallbacks([
                                    'fnHeaderCallback'=>'function( nHead, aData, iStart, iEnd, aiDisplay ) 
                                    {
                                        nHead.getElementsByTagName("th")[0].style.width= "50px";
                                        nHead.getElementsByTagName("th")[1].style.width= "50px";
                                        nHead.getElementsByTagName("th")[3].style.width= "200px";
                                        nHead.getElementsByTagName("th")[4].style.width= "150px";
                                    }'
                                ])
                             ->setUrl(route('categoriaLicencia.index'))  
                             ->render(); ?>

                </div>
            </fieldset>
        </div>    	
    </div>	
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('main_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>