<?php $__env->startSection('content'); ?>
    <?php Fun::lang()?>

    <div class="page">
        <div class=container-fluid>
            <div class="top-content">
                <div class="row">
                    <div class="col-sm-12 col-xs-12">
                        <div class="title-add">
                            <div class="pull-left">
                                <h3><?php echo e(__('administrator.adjustment')); ?></h3>
                            </div>
                            <div class="pull-right">
                                <?php if(Gate::check('Adjustment Create')): ?>
                                    <a href="<?php echo e(route('stock-adjustment.create')); ?>" class="button_primary"><span class="fa fa-plus"></span> <?php echo e(__('administrator.adjustment')); ?></a>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="wrapper-table">
                <table id="datatable_purchases" class="table table-striped table-hover  ">
                    <thead>
                    <tr>
                        <th>#</th>
                        <th><?php echo e(__('administrator.date')); ?></th>
                        <th><?php echo e(__('administrator.invoice_number')); ?></th>
                        <th><?php echo e(__('administrator.warehouse')); ?></th>
                        <th><?php echo e(__('administrator.user')); ?></th>
                        <th><?php echo e(__('administrator.note')); ?></th>
                        <th><?php echo e(__('administrator.action')); ?></th>
                    </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>
        </div>
        <?php $__env->stopSection(); ?>
        <?php $__env->startSection('script'); ?>
            <script type="text/javascript">
                let table = $('#datatable_purchases');
                $(document).ready(function () {
                    getTable();
                });

                function getTable() {
                    table.DataTable().destroy();
                    table.DataTable({
                        ordering: false,
                        serverSide: true,
                        lengthMenu: [20, 30, 50, 100, 200, 500, 1000],
                        ajax: "<?php echo e(route('stock-adjustment.index')); ?>",
                        columns:
                            [
                                {data: 'DT_RowIndex', 'searchable': false},
                                {data: 'date'},
                                {data: 'invoice_number'},
                                {data: 'warehouse_id'},
                                {data: 'user_id'},
                                {data: 'note'},
                                {data: 'action', 'searchable': false},

                            ],

                        "initComplete": function (settings, json) {
                        }
                    });

                    $.fn.dataTable.ext.errMode = 'throw';
                }
            </script>
<?php $__env->stopSection(); ?>




<?php echo $__env->make(branchMenu(), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/administrator/adjustment/index.blade.php ENDPATH**/ ?>