

<?php $__env->startSection('content'); ?>

<h3>Data User</h3>

<a href="/user/create"
   class="btn btn-primary mb-3">
    Tambah User
</a>

<table class="table table-bordered table-hover datatable">

    <thead>
        <tr>
            <th>Nama</th>
            <th>Email</th>
            <th>Role</th>
            <th>Aksi</th>
        </tr>
    </thead>

    <tbody>

    <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $u): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

    <tr>
        <td><?php echo e($u->name); ?></td>
        <td><?php echo e($u->email); ?></td>
        <td><?php echo e($u->role); ?></td>
        <td>

            <form
                action="/user/<?php echo e($u->id); ?>"
                method="POST">

                <?php echo csrf_field(); ?>
                <?php echo method_field('DELETE'); ?>

                <button
                    class="btn btn-danger btn-sm">
                    Hapus
                </button>

            </form>

        </td>
</tr>

    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

    </tbody>

</table>

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