<?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.production_payment')); ?></h3>
                            </div>
                            <div class="pull-right">
                                <a href="<?php echo e(route('production-payments.create')); ?>" class=" button_info"><span class="fa fa-plus"></span> <?php echo e(__('administrator.create')); ?></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="wrapper-table">
                <table id="datatable" class="table table-striped table-hover ">
                    <thead>
                    <tr>
                        <th>#</th>
                        <th><?php echo e(__('administrator.type')); ?></th>
                        <th><?php echo e(__('administrator.date')); ?></th>
                        <th><?php echo e(__('administrator.reference_number')); ?></th>
                        <th><?php echo e(__('administrator.tailor')); ?> / <?php echo e(__('administrator.packer')); ?></th>
                        <th><?php echo e(__('administrator.amount')); ?></th>
                        <th><?php echo e(__('administrator.payment_method')); ?></th>
                        <th><?php echo e(__('administrator.note')); ?></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">
        let $table = $('#datatable');
        $(document).ready(function () {
            getTable();
            $table.on('click','.btn-edit',function () {
                let href = $(this).data('href');
                getHtmlForm(href,'<?php echo e(__('administrator.edit').' '.__('administrator.production_payment')); ?>','30%')
            })
        });
        function getTable() {
            $table.DataTable().destroy();
            $table.DataTable({
                ordering: false,
                serverSide: true,
                lengthMenu: tbLeng,
                ajax: "",
                columns:
                    [
                        {data: 'DT_RowIndex', searchable:false,'orderable':false},
                        {data: 'type', searchable:false},
                        {data: 'payment_date', searchable:false},
                        {data: 'payment_invoice', searchable:false},
                        {data: 'tailor_id', searchable:false},
                        {data: 'payment_amount', searchable:false},
                        {data: 'payment_method', searchable:false},
                        {data: 'note', searchable:false},
                        {data: 'action',searchable:false},
                    ],

            });

        }
    </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/production-payment/index.blade.php ENDPATH**/ ?>