
<?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 card-outline card-warning">
                    <div class="card-header">
                        <a href="<?php echo e(route('fstrs.create')); ?>" class="btn btn-warning btn-sm button-cek-permission" data-permission="fstrs.create">
                            <i class="fas fa-plus"></i> Tambah FSTR
                        </a>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table id="dataTable" class="table table-hover table-sm">
                                <thead class="bg-warning">
                                    <tr>
                                        <th width="5%">No</th>
                                        <th>Kode</th>
                                        <th>Nama</th>
                                        <th>Deskripsi</th>
                                        <th>Total Biaya</th>
                                        <th>Status</th>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<script>
    $(document).ready(function() {
        $('#dataTable').DataTable({
            "processing": true,
            "serverSide": true,
            "ajax": {
                "url": "<?php echo e(route('fstrs.index')); ?>",
                "type": "GET"
            },
            "columns": [{
                    "data": 0,
                    "name": "no",
                    "orderable": false,
                    "searchable": false
                },
                {
                    "data": 1,
                    "name": "code"
                },
                {
                    "data": 2,
                    "name": "name"
                },
                {
                    "data": 3,
                    "name": "description"
                },
                {
                    "data": 4,
                    "name": "total_cost"
                },
                {
                    "data": 5,
                    "name": "is_active",
                    "orderable": false
                }
            ],
            "responsive": false,
            "lengthChange": false,
            "autoWidth": false,
            "ordering": true,
            "info": true,
            "paging": true,
            "searching": true,
            "pageLength": 25,
            "language": {
                "search": "Cari:",
                "lengthMenu": "Tampilkan _MENU_ data",
                "info": "Menampilkan _START_ sampai _END_ dari _TOTAL_ data",
                "infoEmpty": "Menampilkan 0 sampai 0 dari 0 data",
                "infoFiltered": "(difilter dari _MAX_ total data)",
                "paginate": {
                    "first": "Pertama",
                    "last": "Terakhir",
                    "next": "Selanjutnya",
                    "previous": "Sebelumnya"
                },
                "processing": "Memuat...",
                "emptyTable": "Tidak ada data tersedia",
                "zeroRecords": "Tidak ada data yang cocok"
            },
            "order": [
                [1, 'asc']
            ] // Default sort by Code
        });
    });
</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-fstrs/index.blade.php ENDPATH**/ ?>