<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> Gestión de Usuarios <?php $__env->endSlot(); ?>

    <?php if(session('success')): ?>
        <div style="margin-bottom:20px; padding:14px 20px; background:rgba(0,200,100,0.07); border:1px solid rgba(0,200,100,0.25); border-radius:10px; font-size:13px; font-family:'Space Mono',monospace; color:#4ade80;">
            <?php echo e(session('success')); ?>

        </div>
    <?php endif; ?>

    <div class="card">
        <div style="display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid var(--border);">
            <span style="font-family:'Space Mono',monospace; font-size:11px; text-transform:uppercase; letter-spacing:0.1em; color:var(--muted);">Usuarios Registrados</span>
            <a href="<?php echo e(route('admin.usuarios.create')); ?>" class="table-btn" style="border-color:rgba(0,245,255,0.25); color:var(--cyan);">
                <svg viewBox="0 0 14 14" fill="none" width="12" height="12">
                    <path d="M7 2v10M2 7h10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
                </svg>
                Nuevo Usuario
            </a>
        </div>

        <table class="data-table">
            <thead>
                <tr>
                    <th>Nombre</th>
                    <th>Correo</th>
                    <th>Rol</th>
                    <th>Acciones</th>
                </tr>
            </thead>
            <tbody>
                <?php $__currentLoopData = $usuarios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td style="font-weight:600;"><?php echo e($user->name); ?></td>
                    <td style="color:var(--muted); font-size:13px;"><?php echo e($user->email); ?></td>
                    <td>
                        <span style="display:inline-block; padding:3px 12px; border-radius:100px; font-family:'Space Mono',monospace; font-size:11px; background:rgba(0,245,255,0.07); border:1px solid rgba(0,245,255,0.18); color:var(--cyan);"><?php echo e($user->rol); ?></span>
                    </td>
                    <td>
                        <div style="display:flex; gap:8px; align-items:center;">
                            <a href="<?php echo e(route('admin.usuarios.edit', $user)); ?>" class="table-btn">
                                <svg viewBox="0 0 14 14" fill="none" width="12" height="12">
                                    <path d="M9.5 2.5l2 2L4 12H2v-2L9.5 2.5z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round"/>
                                </svg>
                                Editar
                            </a>
                            <form action="<?php echo e(route('admin.usuarios.destroy', $user)); ?>" method="POST" style="display:inline;">
                                <?php echo csrf_field(); ?>
                                <?php echo method_field('DELETE'); ?>
                                <button type="submit" class="table-btn" style="border-color:rgba(255,60,60,0.2); color:rgba(255,100,100,0.6);" onclick="return confirm('¿Eliminar este usuario?')">
                                    <svg viewBox="0 0 14 14" fill="none" width="12" height="12">
                                        <path d="M2 4h10M5 4V3a1 1 0 011-1h2a1 1 0 011 1v1M6 7v3M8 7v3M3 4l1 8h6l1-8" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
                                    </svg>
                                    Eliminar
                                </button>
                            </form>
                        </div>
                    </td>
                </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?><?php /**PATH C:\Users\hp\sistema_pago\resources\views/admin/usuarios/index.blade.php ENDPATH**/ ?>