<?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.customer')); ?></h3>
                            </div>
                            <div class="pull-right">
                                <?php if(Auth::user()->can('Customer Create') || Auth::user()->user_type === 'seller'): ?>
                                    <a onclick="getHtmlForm('<?php echo e(route('customer.create')); ?>','<?php echo e(__('administrator.create').' '.__('administrator.customer')); ?>','35%')" 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.seller')); ?></th>
                        <th><?php echo e(__('administrator.name')); ?></th>
                        <th><?php echo e(__('administrator.sex')); ?></th>
                        <th><?php echo e(__('administrator.contact')); ?></th>
                        <th><?php echo e(__('administrator.address')); ?></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();
        });
        function getTable() {
            $table.DataTable().destroy();
            $table.DataTable({

                ordering: false,
                serverSide: true,
                lengthMenu: tbLeng,
                ajax: {
                    url: '<?php echo e(route('customer.index')); ?>',
                    data: {

                    },
                },
                columns:
                    [
                        {data: 'DT_RowIndex', 'searchable': false},
                        {data: 'user_id', 'searchable': false},
                        {data: 'name', 'name': 'nso007_customers.name'},
                        {data: 'sex', 'name': 'nso007_customers.sex'},
                        {data: 'phone', 'name': 'nso007_customers.phone'},
                        {data: 'address', 'name': 'nso007_customers.address'},
                        {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/customers/index.blade.php ENDPATH**/ ?>