

<?php $__env->startSection('title','Data Pengguna'); ?>

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

<div class="card-dark">


    <div class="d-flex justify-content-between align-items-center mb-4">

        <h4 class="text-white">
            <i class="bi bi-people-fill"></i>
            Data Pengguna
        </h4>

        <form method="GET" action="<?php echo e(route('users.index')); ?>" class="d-flex gap-2">
            <input name="search" class="form-control-dark" placeholder="Cari nama atau email" value="<?php echo e(request('search')); ?>" data-live-search="true">
            <select name="perpage" class="form-control-dark">
                <option value="10" <?php echo e(request('perpage', 10) == 10 ? 'selected' : ''); ?>>10</option>
                <option value="25" <?php echo e(request('perpage') == 25 ? 'selected' : ''); ?>>25</option>
                <option value="50" <?php echo e(request('perpage') == 50 ? 'selected' : ''); ?>>50</option>
            </select>
            <button class="btn-primary-glow">Cari</button>
        </form>

    </div>

    <table class="table table-dark table-hover">

        <thead>

            <tr>
                <th>ID</th>
                <th>Nama</th>
                <th>Email</th>
                <th>Role</th>
            </tr>

        </thead>

        <tbody>
        <?php $__empty_1 = true; $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <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->role); ?></td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <tr>
                <td colspan="4">
                    <div class="empty-state">Belum ada pengguna.</div>
                </td>
            </tr>
        <?php endif; ?>
        </tbody>

    </table>

    <div class="d-flex justify-content-center mt-4"><?php echo e($users->appends(request()->except('page'))->links()); ?></div>

</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\tugas pa asur\konser-ticket\resources\views/users/index.blade.php ENDPATH**/ ?>