<?php $__env->startSection('title'); ?>
Profile
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<template>
    <div class="p-0">
        <div class="card">
            <div class="card-header ui-sortable-handle" style="cursor: move;">
                <h3 class="card-title">
                    <i class="fas fa-users mr-1"></i>
                    Users
                </h3>
                <div class="card-tools">
                    <ul class="nav nav-pills ml-auto">
                        <li class="nav-item mr-1">
                            <button class="btn btn-sm btn-primary" @click="createMode"><i class="fas fa-plus-circle"></i> Add New</button>
                        </li>
                  
                    </ul>
                </div>
            </div><!-- /.card-header -->
            <div class="card-body table-responsive table-bordered">
                <table class="table" id="example">
                    <thead>
                        <tr>
                        <th>#</th>
                        <th>Name</th>
                        <!-- <th>Role</th> -->
                        <th>Email</th>
                        <th>Date Posted</th>
                        <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($user->id); ?></td>
                            <td> <?php echo e($user->name); ?></td>
                            
                            <td><?php echo e($user->email); ?></td>
                            <td>
                                <?php echo e($user->created_at); ?>

                            </td>
                            <td>
                                <button class="btn btn-sm btn-warning" > <i class="fa fa-edit"></i> Edit</button>
                                <button class="btn btn-sm btn-danger" > <i class="fa fa-trash"></i> Delete </button>
                            </td>
                           
                        </tr>
                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
            
        </div>

    
       
    </div>
</template>
<?php $__env->stopSection(); ?>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script>
    $(document).ready(function () {
        $('#example').DataTable(); // Replace 'example' with the ID of your table
    });
</script>


<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/kart/retirement.creatorkart.com/retirement/resources/views/user/index.blade.php ENDPATH**/ ?>