<div>
    
    <div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:1.75rem;flex-wrap:wrap;gap:1rem;">
        <div>
            <h1 style="font-size:1.5rem;font-weight:700;color:#0f172a;margin:0;">Dashboard</h1>
            <p style="font-size:13px;color:#64748b;margin:4px 0 0;">Panel de administración — Capital Semilla</p>
        </div>
        <button wire:click="$set('mostrarGestionUsuarios', true)"
            style="display:inline-flex;align-items:center;gap:0.5rem;background:#002d6b;color:#fff;padding:0.6rem 1.25rem;border-radius:0.625rem;font-size:13.5px;font-weight:600;border:none;cursor:pointer;">
            <svg style="width:15px;height:15px;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                      d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"/>
            </svg>
            Gestionar usuarios
        </button>
    </div>

    
    <div style="display:grid;grid-template-columns:repeat(4,1fr);gap:0.875rem;margin-bottom:1.25rem;">
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = [
            ['Total',        $stats['total'],          '#f8fafc','#0f172a','#002d6b'],
            ['Radicadas',    $stats['radicadas'],       '#eff6ff','#1d4ed8','#1d4ed8'],
            ['En revisión',  $stats['en_revision'],    '#fefce8','#854d0e','#ca8a04'],
            ['Aprobadas',    $stats['aprobadas'],       '#f0fdf4','#15803d','#16a34a'],
            ['En ejecución', $stats['en_ejecucion'],   '#eef2ff','#3730a3','#4338ca'],
            ['Condonación',  $stats['en_condonacion'], '#f0fdfa','#0f766e','#0d9488'],
            ['Condonadas',   $stats['condonadas'],      '#ecfdf5','#065f46','#059669'],
            ['Rechazadas',   $stats['rechazadas'],      '#fef2f2','#b91c1c','#dc2626'],
        ]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as [$label, $valor, $bg, $tc, $accent]): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div style="background:<?php echo e($bg); ?>;border-radius:0.875rem;padding:1.1rem 1.25rem;border:1px solid rgba(0,0,0,0.04);">
            <div style="font-size:1.75rem;font-weight:800;color:<?php echo e($tc); ?>;line-height:1;"><?php echo e($valor); ?></div>
            <div style="font-size:12px;color:<?php echo e($accent); ?>;margin-top:4px;font-weight:600;"><?php echo e($label); ?></div>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    </div>

    
    <div style="display:grid;grid-template-columns:1fr 1fr;gap:0.875rem;margin-bottom:1.5rem;">
        <div style="background:#fff;border-radius:0.875rem;border:1px solid #e8ecf4;padding:1.1rem 1.25rem;display:flex;align-items:center;gap:1rem;">
            <div style="width:42px;height:42px;border-radius:0.625rem;background:#eef3fc;display:flex;align-items:center;justify-content:center;flex-shrink:0;">
                <svg style="width:20px;height:20px;color:#002d6b;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/>
                </svg>
            </div>
            <div>
                <div style="font-size:11.5px;color:#64748b;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;">Monto total solicitado</div>
                <div style="font-size:1.35rem;font-weight:800;color:#002d6b;">$<?php echo e(number_format($stats['monto_total'], 0, ',', '.')); ?> <span style="font-size:12px;font-weight:400;color:#94a3b8;">COP</span></div>
            </div>
        </div>
        <div style="background:#fff;border-radius:0.875rem;border:1px solid #e8ecf4;padding:1.1rem 1.25rem;display:flex;align-items:center;gap:1rem;">
            <div style="width:42px;height:42px;border-radius:0.625rem;background:#f0fdf4;display:flex;align-items:center;justify-content:center;flex-shrink:0;">
                <svg style="width:20px;height:20px;color:#15803d;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
                </svg>
            </div>
            <div>
                <div style="font-size:11.5px;color:#64748b;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;">Total desembolsado</div>
                <div style="font-size:1.35rem;font-weight:800;color:#15803d;">$<?php echo e(number_format($stats['monto_desembolsado'], 0, ',', '.')); ?> <span style="font-size:12px;font-weight:400;color:#94a3b8;">COP</span></div>
            </div>
        </div>
    </div>

    
    <div style="background:#fff;border-radius:1rem;border:1px solid #e8ecf4;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,0.04);">
        <div style="display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid #f1f5f9;flex-wrap:wrap;gap:0.75rem;">
            <span style="font-size:14px;font-weight:700;color:#0f172a;">Solicitudes</span>
            <div style="display:flex;gap:0.625rem;flex-wrap:wrap;">
                <div style="position:relative;">
                    <svg style="position:absolute;left:0.65rem;top:50%;transform:translateY(-50%);width:14px;height:14px;color:#94a3b8;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
                    </svg>
                    <input wire:model.live.debounce.300ms="filtroBusqueda" type="text"
                        style="border:1.5px solid #e2e8f0;border-radius:0.625rem;padding:0.55rem 0.75rem 0.55rem 2.1rem;font-size:13px;outline:none;width:220px;"
                        placeholder="Buscar radicado o nombre...">
                </div>
                <select wire:model.live="filtroEstado"
                    style="border:1.5px solid #e2e8f0;border-radius:0.625rem;padding:0.55rem 0.875rem;font-size:13px;outline:none;background:#fff;color:#475569;">
                    <option value="">Todos los estados</option>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $estados; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $estado): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($estado->value); ?>"><?php echo e($estado->label()); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </select>
            </div>
        </div>
        <div style="overflow-x:auto;">
            <table style="width:100%;border-collapse:collapse;font-size:13.5px;">
                <thead>
                    <tr style="background:#f8fafc;">
                        <th style="padding:0.75rem 1rem;text-align:left;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:0.07em;">Radicado</th>
                        <th style="padding:0.75rem 1rem;text-align:left;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:0.07em;">Asociado</th>
                        <th style="padding:0.75rem 1rem;text-align:right;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:0.07em;">Monto</th>
                        <th style="padding:0.75rem 1rem;text-align:center;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:0.07em;">Estado</th>
                        <th style="padding:0.75rem 1rem;text-align:center;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:0.07em;">Puntaje</th>
                        <th style="padding:0.75rem 1rem;text-align:center;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:0.07em;">Acciones</th>
                    </tr>
                </thead>
                <tbody>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $solicitudes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sol): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <tr style="border-top:1px solid #f1f5f9;" onmouseover="this.style.background='#fafbff'" onmouseout="this.style.background=''">
                        <td style="padding:0.875rem 1rem;">
                            <span style="font-family:monospace;font-weight:700;font-size:12.5px;color:#002d6b;background:#eef3fc;padding:2px 8px;border-radius:0.375rem;">
                                <?php echo e($sol->radicado); ?>

                            </span>
                        </td>
                        <td style="padding:0.875rem 1rem;">
                            <div style="font-weight:600;color:#1e293b;font-size:13.5px;"><?php echo e($sol->asociado->name); ?></div>
                            <div style="font-size:11.5px;color:#94a3b8;"><?php echo e($sol->asociado->numero_asociado); ?></div>
                        </td>
                        <td style="padding:0.875rem 1rem;text-align:right;font-weight:600;color:#1e293b;">
                            $<?php echo e(number_format($sol->monto_solicitado, 0, ',', '.')); ?>

                        </td>
                        <td style="padding:0.875rem 1rem;text-align:center;">
                            <span class="badge-<?php echo e($sol->estado->color()); ?>"
                                  style="display:inline-block;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:600;">
                                <?php echo e($sol->estado->label()); ?>

                            </span>
                        </td>
                        <td style="padding:0.875rem 1rem;text-align:center;">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($sol->evaluacion): ?>
                            <span style="font-weight:700;<?php echo e($sol->evaluacion->puntaje_total >= 65 ? 'color:#15803d;' : 'color:#dc2626;'); ?>">
                                <?php echo e($sol->evaluacion->puntaje_total); ?><span style="font-size:11px;font-weight:400;color:#94a3b8;">/100</span>
                            </span>
                            <?php else: ?>
                            <span style="color:#cbd5e1;">—</span>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </td>
                        <td style="padding:0.875rem 1rem;text-align:center;">
                            <div style="display:flex;justify-content:center;gap:0.5rem;">
                                <a href="<?php echo e(route('evaluador.evaluar', $sol)); ?>"
                                   style="font-size:12px;font-weight:600;color:#002d6b;background:#eef3fc;padding:0.35rem 0.75rem;border-radius:0.5rem;text-decoration:none;">
                                    Ver
                                </a>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($sol->estado->value === 'informe_6'): ?>
                                <button wire:click="aprobarParaJunta(<?php echo e($sol->id); ?>)"
                                    style="font-size:12px;font-weight:600;color:#0f766e;background:#f0fdfa;border:1px solid #99f6e4;padding:0.35rem 0.75rem;border-radius:0.5rem;border:none;cursor:pointer;">
                                    → Junta
                                </button>
                                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            </div>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr>
                        <td colspan="6" style="text-align:center;padding:3.5rem;color:#94a3b8;font-size:13.5px;">
                            No hay solicitudes registradas
                        </td>
                    </tr>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </tbody>
            </table>
        </div>
        <div style="padding:0.875rem 1rem;border-top:1px solid #f1f5f9;">
            <?php echo e($solicitudes->links()); ?>

        </div>
    </div>

    
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($mostrarGestionUsuarios): ?>
    <div style="position:fixed;inset:0;background:rgba(0,0,0,0.45);z-index:200;display:flex;align-items:flex-start;justify-content:center;padding:3rem 1rem;overflow-y:auto;">
        <div style="background:#fff;border-radius:1.25rem;box-shadow:0 25px 60px rgba(0,0,0,0.25);width:100%;max-width:760px;">
            <div style="display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid #f1f5f9;">
                <h2 style="font-size:15px;font-weight:700;color:#0f172a;margin:0;">Gestión de usuarios</h2>
                <button wire:click="$set('mostrarGestionUsuarios', false)"
                    style="background:none;border:none;cursor:pointer;color:#94a3b8;font-size:1.5rem;line-height:1;padding:0.25rem;">×</button>
            </div>

            
            <div style="padding:1.5rem;border-bottom:1px solid #f1f5f9;background:#f8fafc;">
                <h3 style="font-size:13px;font-weight:700;color:#374151;margin:0 0 1rem;text-transform:uppercase;letter-spacing:0.06em;">Crear nuevo usuario</h3>
                <div style="display:grid;grid-template-columns:1fr 1fr;gap:0.875rem;margin-bottom:1rem;">
                    <div>
                        <label style="display:block;font-size:11.5px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:0.4rem;">Nombre completo</label>
                        <input wire:model="nuevoNombre" type="text"
                            style="width:100%;border:1.5px solid #e2e8f0;border-radius:0.625rem;padding:0.65rem 0.875rem;font-size:13.5px;outline:none;background:#fff;"
                            placeholder="Nombre completo">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['nuevoNombre'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p style="color:#dc2626;font-size:11.5px;margin:3px 0 0;"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                    <div>
                        <label style="display:block;font-size:11.5px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:0.4rem;">Correo electrónico</label>
                        <input wire:model="nuevoEmail" type="email"
                            style="width:100%;border:1.5px solid #e2e8f0;border-radius:0.625rem;padding:0.65rem 0.875rem;font-size:13.5px;outline:none;background:#fff;"
                            placeholder="correo@fempha.com.co">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['nuevoEmail'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p style="color:#dc2626;font-size:11.5px;margin:3px 0 0;"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                    <div>
                        <label style="display:block;font-size:11.5px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:0.4rem;">Contraseña</label>
                        <input wire:model="nuevoPassword" type="password"
                            style="width:100%;border:1.5px solid #e2e8f0;border-radius:0.625rem;padding:0.65rem 0.875rem;font-size:13.5px;outline:none;background:#fff;"
                            placeholder="Mínimo 8 caracteres">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['nuevoPassword'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p style="color:#dc2626;font-size:11.5px;margin:3px 0 0;"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                    <div>
                        <label style="display:block;font-size:11.5px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:0.4rem;">Rol</label>
                        <select wire:model="nuevoRol"
                            style="width:100%;border:1.5px solid #e2e8f0;border-radius:0.625rem;padding:0.65rem 0.875rem;font-size:13.5px;outline:none;background:#fff;color:#374151;">
                            <option value="">Seleccionar rol...</option>
                            <option value="asociado">Asociado</option>
                            <option value="evaluador">Evaluador</option>
                            <option value="junta">Junta Directiva</option>
                            <option value="admin">Administrador</option>
                        </select>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['nuevoRol'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p style="color:#dc2626;font-size:11.5px;margin:3px 0 0;"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                </div>
                <button wire:click="crearUsuario"
                    style="background:#002d6b;color:#fff;border:none;border-radius:0.625rem;padding:0.65rem 1.5rem;font-size:13.5px;font-weight:600;cursor:pointer;">
                    Crear usuario
                </button>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('usuario_creado')): ?>
                <span style="font-size:12.5px;color:#15803d;margin-left:1rem;">✅ <?php echo e(session('usuario_creado')); ?></span>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            
            <div style="padding:1.5rem;">
                <h3 style="font-size:13px;font-weight:700;color:#374151;margin:0 0 1rem;text-transform:uppercase;letter-spacing:0.06em;">Usuarios registrados</h3>
                <div style="overflow-x:auto;">
                    <table style="width:100%;border-collapse:collapse;font-size:13px;">
                        <thead>
                            <tr style="background:#f8fafc;border-bottom:1px solid #e8ecf4;">
                                <th style="padding:0.625rem 0.875rem;text-align:left;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;">Nombre</th>
                                <th style="padding:0.625rem 0.875rem;text-align:left;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;">Email</th>
                                <th style="padding:0.625rem 0.875rem;text-align:center;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;">Rol</th>
                                <th style="padding:0.625rem 0.875rem;text-align:center;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;">Estado</th>
                                <th style="padding:0.625rem 0.875rem;text-align:center;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;">Acción</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $usuarios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $u): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr style="border-bottom:1px solid #f1f5f9;">
                                <td style="padding:0.625rem 0.875rem;font-weight:600;color:#1e293b;"><?php echo e($u->name); ?></td>
                                <td style="padding:0.625rem 0.875rem;color:#64748b;font-size:12.5px;"><?php echo e($u->email); ?></td>
                                <td style="padding:0.625rem 0.875rem;text-align:center;">
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $u->getRoleNames(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rol): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <span style="display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;
                                        <?php if($rol==='admin'): ?> background:#fee2e2;color:#b91c1c;
                                        <?php elseif($rol==='evaluador'): ?> background:#f3e8ff;color:#7e22ce;
                                        <?php elseif($rol==='junta'): ?> background:#ccfbf1;color:#0f766e;
                                        <?php else: ?> background:#dbeafe;color:#1d4ed8; <?php endif; ?>">
                                        <?php echo e(ucfirst($rol)); ?>

                                    </span>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                </td>
                                <td style="padding:0.625rem 0.875rem;text-align:center;">
                                    <span style="display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;
                                        <?php echo e(($u->estado ?? 'activo') === 'activo' ? 'background:#dcfce7;color:#15803d;' : 'background:#f1f5f9;color:#64748b;'); ?>">
                                        <?php echo e(ucfirst($u->estado ?? 'activo')); ?>

                                    </span>
                                </td>
                                <td style="padding:0.625rem 0.875rem;text-align:center;">
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($u->id !== auth()->id()): ?>
                                    <button wire:click="toggleEstadoUsuario(<?php echo e($u->id); ?>)"
                                        style="font-size:11.5px;font-weight:600;background:none;border:none;cursor:pointer;
                                            <?php echo e(($u->estado ?? 'activo') === 'activo' ? 'color:#dc2626;' : 'color:#15803d;'); ?>">
                                        <?php echo e(($u->estado ?? 'activo') === 'activo' ? 'Desactivar' : 'Activar'); ?>

                                    </button>
                                    <?php else: ?>
                                    <span style="color:#cbd5e1;font-size:12px;">—</span>
                                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

<style>
.badge-blue    { background:#dbeafe; color:#1d4ed8; }
.badge-gray    { background:#f1f5f9; color:#475569; }
.badge-yellow  { background:#fef9c3; color:#854d0e; }
.badge-green   { background:#dcfce7; color:#15803d; }
.badge-red     { background:#fee2e2; color:#b91c1c; }
.badge-indigo  { background:#e0e7ff; color:#3730a3; }
.badge-orange  { background:#ffedd5; color:#c2410c; }
.badge-teal    { background:#ccfbf1; color:#0f766e; }
.badge-emerald { background:#d1fae5; color:#065f46; }
.badge-cyan    { background:#cffafe; color:#0e7490; }
.badge-purple  { background:#f3e8ff; color:#7e22ce; }
</style>
</div><?php /**PATH /home/evolucionamos/public_html/csfemphahf/csemillafpha/resources/views/admin/dashboard.blade.php ENDPATH**/ ?>