<?php $__env->startSection('title'); ?>
Ficheiros
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content-header'); ?>
Ficheiros
<?php $__env->stopSection(); ?>

<?php $__env->startSection('breadcrumb'); ?>
<li class="active">
    Ficheiros
</li>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-xs-12">
        <div class="box no-border">
            <div class="box-header">
                <h3 class="box-title">Lista de Ficheiros Removidos</h3>
            </div>
            <div class="box-body">
                <table id="table-files" class="table table-bordered table-striped dataTable">
                    <thead>
                        <tr>
                            <th></th>
                            <th>#</th>
                            <th>Designação</th>
                            <th>Caminho</th>
                            <th>Tipo</th>
                            <th>Criado</th>
                            <th>Removido</th>
                            <th>Tamanho</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script type="text/javascript">
    $(document).ready(function () {
        $('#table-files').dataTable({
            serverSide: true,
            processing: true,
            "ajax": {
                url: "<?php echo route('admin.system.files.datatables'); ?>",
                type: "POST"
            },    
            "autoWidth": false,
            "order": [[1, "asc"]],
            columns: [
                 {data: 'img', name: 'img', orderable: false, searchable: false, width: "1%", className: "text-center"},
                 {data: 'id', name: 'id'},
                 {data: 'designacao', name: 'designacao'},
                 {data: 'caminho', name: 'caminho'},
                 {data: 'tipo', name: 'tipo'},
                 {data: 'created_at', name: 'created_at'},
                 {data: 'deleted_at', name: 'deleted_at'},
                 {data: 'size', name: 'tamanho', orderable: false, searchable: false},
                 {data: 'actions', name: 'actions', orderable: false, searchable: false},
             ],
        });
    });
</script>
<?php $__env->stopSection(); ?>