
<?php $__env->startSection('title'); ?>
<?php echo $variables['header_routes']; ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header">

                        <div class="row">
                            <div class="col-md-2 mr">
                                <a href="<?php echo e(route('armada_types.create')); ?>" class="btn btn-warning btn-block btn-sm button-cek-permission" data-permission="armada_types.create">
                                    <i class="fas fa-plus"></i> Tambah
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table id="id_data_table" class="table table-hover table-sm">
                                <thead class="bg-warning">
                                    <tr>
                                    <th width="5%">No</th>
                                    <th>Nama</th>
                                    <th>Deskripsi</th>
                                    <th>Dibuat</th>
                                </tr>
                            </thead>
                            <tbody>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<form action="" id="delete-form" method="post">
    <?php echo method_field('delete'); ?>
    <?php echo csrf_field(); ?>
</form>
<script>
    $(function() {
        $('#id_data_table').DataTable({
            processing: true,
            serverSide: true,
            ajax: '<?php echo e(route("armada_types.index")); ?>',
            columns: [{
                    data: 0,
                    name: 'no',
                    orderable: false,
                    searchable: false
                },
                {
                    data: 1,
                    name: 'name'
                },
                {
                    data: 2,
                    name: 'description'
                },
                {
                    data: 3,
                    name: 'created_at'
                }
            ],
            "responsive": false,
            "lengthChange": true,
            "autoWidth": false,
            //"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"],
            drawCallback: function(settings) {
                $('[data-toggle="tooltip"]').tooltip();
            }
        }).buttons().container().appendTo('#id_data_table_wrapper .col-md-6:eq(0)');
    });
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts/base_view', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\LSM\resources\views/m-armada-types/index.blade.php ENDPATH**/ ?>