<?php $__env->startSection('title'); ?>
categorias de Documentos
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content-header'); ?>
Categorias de Documentos
<?php $__env->stopSection(); ?>

<?php $__env->startSection('breadcrumbs'); ?>
    <?php echo @$breadcrumbs; ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-xs-12">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title">Todas as Categorias de Documentos</h3>
                <a href="#" class="btn btn-sm btn-success margin-top-5 margin-right-5 pull-right" data-toggle="modal" data-target="#modal-create-category"><i class="fa fa-plus"></i> Adicionar Nova Categoria</a>
                <?php echo $__env->make('admin.modals.documents.createCategory', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            </div>
            <div class="box-body table-responsive">
                <table id="table-categories" class="table table-bordered table-striped dataTable">
                    <thead>
                        <tr>
                            <th style="width: 1%">#</th>
                            <th>Categoria</th>
                            <th style="width: 60px"></th>
                        </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $('#table-categories').dataTable({
            "ajax": {
                url: "<?php echo route('admin.documents.categories.datatable'); ?>",
                type: "POST"
            },    
            "autoWidth": true,
            "order": [[0, "desc"]],
            "columnDefs": [
                { "orderable": false, "targets": -1 }
              ]
        });      
    });
</script>
<?php $__env->stopSection(); ?>