

<?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.tailor')); ?></h3>
                            </div>
                            <div class="pull-right">
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Tailor Create')): ?>
                                    <a onclick="getHtmlForm('<?php echo e(route('tailor.create')); ?>','<?php echo e(__('administrator.create').' '.__('administrator.tailor')); ?>','30%')" class=" button_info"><span class="fa fa-plus"></span> <?php echo e(__('administrator.create')); ?></a>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="wrapper-table">
                <table id="print_table" width="100%" class="table table-striped table-hover ​​ customize">
                    <thead>
                    <tr>
                        <th>#</th>
                        <th><?php echo e(__('administrator.type')); ?></th>
                        <th><?php echo e(__('administrator.name')); ?></th>
                        <th><?php echo e(__('administrator.contact')); ?></th>
                        <th><?php echo e(__('administrator.account_receivable')); ?></th>
                        <th><?php echo e(__('administrator.action')); ?></th>
                    </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
    <script>
        $table = $('#print_table');
        $(document).ready(function () {
            getTable();
            $table.on('click','.btn-edit',function () {
                console.log(1);
                let href = $(this).data('href');
                getHtmlForm(href,'<?php echo e(__('administrator.edit').' '.__('administrator.tailor')); ?>','30%')
            });
        });
        function getTable() {
            $table.DataTable().destroy();
            $table.DataTable({

                ordering: false,
                serverSide: true,
                lengthMenu: [[20, 30, 50, 100, 200, 500, 1000], [20, 30, 50, 100, 200, 500, 1000]],
                ajax: {
                    url: '<?php echo e(route('tailor.index')); ?>',
                },
                columns:
                    [
                        {data: 'DT_RowIndex', 'searchable': false},
                        {data: 'type',  'searchable': false},
                        {data: 'name', 'name': 'nso007_tailor.name'},
                        {data: 'phone', 'name': 'nso007_tailor.phone'},
                        {data: 'account_receivable_riel', '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/people/tailor/index.blade.php ENDPATH**/ ?>