<?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.packer')); ?></h3>
                            </div>
                            <div class="pull-right">
                                <a onclick="getHtmlForm('<?php echo e(route('packers.create')); ?>','<?php echo e(__('administrator.create')); ?> <?php echo e(__('administrator.packer')); ?>','30%')" 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.name')); ?></th>
                        <th><?php echo e(__('administrator.contact')); ?></th>
                        <th><?php echo e(__('administrator.fee')); ?></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.packer')); ?>','30%')
            })
        });
        function getTable() {
            $table.DataTable().destroy();
            $table.DataTable({
                ordering: false,
                serverSide: true,
                lengthMenu: tbLeng,
                ajax: "",
                columns:
                    [
                        {data: 'DT_RowIndex', searchable:false,'orderable':false},
                        {data: 'name','name': 'nso007_packer.name'},
                        {data: 'contact', 'name': 'nso007_packer.contact'},
                        {data: 'fee', searchable:false},
                        {data: 'action',searchable:false},
                    ],
                "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/packer/index.blade.php ENDPATH**/ ?>