
<?php $__env->startSection('content'); ?>
    <?php Fun::lang()?>
    <div class="container-fluid">
        <div class="">
            <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.cut_piece')); ?> </h3>
                            </div>
                            <div class="pull-right">
                                
                                     
                                
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="wrapper-table">
                <table id="datatable_cut_piece" width="100%" class="table  table-striped table-hover">
                    <thead>
                    <tr>
                        <th>#</th>
                        <th><?php echo e(__('administrator.item_name')); ?></th>
                        <th><?php echo e(__('administrator.cost')); ?></th>
                        <th><?php echo e(__('administrator.created_at')); ?></th>
                        <th><?php echo e(__('administrator.action')); ?></th>
                    </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
    <script type="text/javascript">
        $(document).ready(function () {
            $(document).on('click','.print_barcode',function () {
                $(this).printThis({
                    loadCSS: "<?php echo e(asset('assets/css/pos-invoice.css')); ?>",
                    afterPrint: function () {
                        // window.location.reload();
                    }
                });
            });
            $(document).on('click', '.show_productsinfo', function () {
                let url = $(this).data('url');
                $.ajax({
                    url: url,
                    async: false,
                    success:function (data) {
                        $.alert({
                            title:'',
                            theme:'modern',
                            content:data,
                            useBootstrap:false,
                            boxWidth:'60%'
                        });
                    }
                });
            });
            $(document).on('click', '.edit', function () {
                window.location.href = $(this).data('url');
            });
            $(document).on('click', '.duplicate', function () {
                window.location.href = $(this).data('url');
            });
            $('#datatable_cut_piece').DataTable({
                "oLanguage": {
                "sSearch":"<?php echo e(__('administrator.search')); ?>:",
                "sLengthMenu": "<?php echo e(__('administrator.display')); ?> _MENU_ <?php echo e(__('administrator.record_per_page')); ?>",
                "sZeroRecords": "<?php echo e(__('administrator.Nothing_foundsorry')); ?>",
                "sInfo": "<?php echo e(__('administrator.showing')); ?> _START_ <?php echo e(__('administrator.to')); ?> _END_ <?php echo e(__('administrator.of')); ?> _TOTAL_ <?php echo e(__('administrator.record')); ?>",
                "sInfoEmpty": "<?php echo e(__('administrator.showing')); ?> 0 <?php echo e(__('administrator.to')); ?> 0 <?php echo e(__('administrator.of')); ?> 0 <?php echo e(__('administrator.record')); ?>",
                "sInfoFiltered": "(<?php echo e(__('administrator.filter_form')); ?> _MAX_ <?php echo e(__('administrator.total_records')); ?>)",
                "oPaginate": {
                "sFirst":    "<?php echo e(__('administrator.first')); ?>",
                "sLast":    "<?php echo e(__('administrator.last')); ?>",
                "sNext":    "<?php echo e(__('administrator.next')); ?>",
                "sPrevious": "<?php echo e(__('administrator.previous')); ?>"
                },
            },
                ordering: true,
                serverSide: true,
                lengthMenu: [[20, 30, 50, 100, 200, 500, 1000], [20, 30, 50, 100, 200, 500, 1000]],
                ajax: "<?php echo e(route('cut-piece.index')); ?>",
                columns:
                    [
                        {data: 'DT_RowIndex', searchable:false, "orderable": "false"},
                        {data: 'product_name', 'name': 'nso007_products.product_name'},
                        {data: 'cost', 'searchable': false},
                        {data: 'created_at', 'searchable': false},
                        {data: 'action'},

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

            });
        });
    </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/setup-item/product-cut-piece/index.blade.php ENDPATH**/ ?>