<?php $__env->startSection('content'); ?>
         <div class="container">
               <h2>Usuários</h2>
            <table class="table table-bordered" id="laravel_datatable">
               <thead>
                  <tr>
                     <th>Id</th>
                     <th>Name</th>
                     <th>Email</th>
                     <th>Created at</th>
                     <th>Editar</th>
                  </tr>
               </thead>
            </table>
         </div>
   <script>
   $(document).ready( function () {
    $('#laravel_datatable').DataTable({
           processing: true,
           serverSide: true,
           ajax: "<?php echo e(url('users-list')); ?>",
           columns: [
                    { data: 'id', name: 'id' },
                    { data: 'name', name: 'name' },
                    { data: 'email', name: 'email' },
                    { data: 'created_at', name: 'created_at' },
                    { data: 'id', name: 'id', render:function(data, type, row){
                        return "<a class='btn btn-outline-info' href='users/"+ row.id +"/edit'><i class='far fa-eye' aria-hidden='true'></i></a>"
                        }}
                     ,
                 ]
        });
     });
  </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\resources\views/users.blade.php ENDPATH**/ ?>