<?php if (isset($component)) { $__componentOriginale0f1cdd055772eb1d4a99981c240763e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale0f1cdd055772eb1d4a99981c240763e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin-layout','data' => ['title' => 'Panel general']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin-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(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Panel general']); ?><div class="page-heading"><div><span class="eyebrow">RESUMEN GENERAL</span><h1>Panel de inscripciones</h1><p>Indicadores y actividad reciente de la plataforma.</p></div><div class="d-flex flex-wrap gap-2"><a href="<?php echo e(route('dashboard')); ?>" class="btn btn-light"><i data-lucide="refresh-cw"></i> Actualizar</a><a href="/" class="btn btn-copper"><i data-lucide="plus"></i> Nueva inscripción</a></div></div>
<div class="row g-3 mb-4"><div class="col-sm-6 col-xl-3"><div class="kpi-card"><div class="kpi-top"><span class="kpi-icon copper"><i data-lucide="files"></i></span><span class="kpi-trend <?php echo e($kpis['trend'] >= 0 ? 'up' : 'down'); ?>"><i data-lucide="trending-<?php echo e($kpis['trend'] >= 0 ? 'up' : 'down'); ?>"></i><?php echo e(abs($kpis['trend'])); ?>%</span></div><small>Total inscripciones</small><strong><?php echo e($kpis['total']); ?></strong><p><?php echo e($kpis['month']); ?> recibidas este mes</p></div></div><div class="col-sm-6 col-xl-3"><div class="kpi-card"><div class="kpi-top"><span class="kpi-icon amber"><i data-lucide="clock-3"></i></span></div><small>Pendientes</small><strong><?php echo e($kpis['pending']); ?></strong><p>Requieren primera revisión</p></div></div><div class="col-sm-6 col-xl-3"><div class="kpi-card"><div class="kpi-top"><span class="kpi-icon blue"><i data-lucide="search-check"></i></span></div><small>En revisión</small><strong><?php echo e($kpis['review']); ?></strong><p>Actualmente en proceso</p></div></div><div class="col-sm-6 col-xl-3"><div class="kpi-card"><div class="kpi-top"><span class="kpi-icon green"><i data-lucide="badge-check"></i></span><span class="kpi-trend up"><?php echo e($kpis['approval_rate']); ?>%</span></div><small>Aprobadas</small><strong><?php echo e($kpis['approved']); ?></strong><p>Tasa general de aprobación</p></div></div></div>
<div class="row g-4"><div class="col-xl-8"><section class="admin-panel h-100"><div class="panel-heading"><div><h2>Inscripciones recientes</h2><p>Últimas solicitudes ingresadas al sistema.</p></div><a href="<?php echo e(route('admin.applications.index')); ?>">Ver todas <i data-lucide="arrow-right"></i></a></div><div class="table-responsive"><table class="table admin-table align-middle mb-0"><thead><tr><th>Postulante</th><th>Tipo</th><th>Fecha</th><th>Estado</th><th></th></tr></thead><tbody><?php $__currentLoopData = $recent; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><strong><?php echo e($item->full_name); ?></strong><small><?php echo e($item->folio); ?></small></td><td><span class="type-badge"><?php echo e($item->type==='particular'?'Particular':'Radomiro Tomic'); ?></span></td><td><?php echo e($item->created_at->format('d/m/Y')); ?></td><td><span class="status-badge status-<?php echo e($item->status); ?>"><?php echo e(['pending'=>'Pendiente','review'=>'En revisión','approved'=>'Aprobada','rejected'=>'Rechazada'][$item->status]); ?></span></td><td><a href="<?php echo e(route('admin.applications.show',$item)); ?>" class="table-action"><i data-lucide="chevron-right"></i></a></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div></section></div><div class="col-xl-4"><section class="admin-panel mb-4"><div class="panel-heading"><div><h2>Por tipo de socio</h2><p>Distribución de solicitudes.</p></div></div><?php ($max=max(1,$kpis['total'])); ?><div class="type-metric"><div><span>Socio Particular</span><strong><?php echo e($types['particular']); ?></strong></div><div class="metric-track"><span style="width:<?php echo e($types['particular']/$max*100); ?>%"></span></div></div><div class="type-metric"><div><span>Radomiro Tomic</span><strong><?php echo e($types['radomiro']); ?></strong></div><div class="metric-track"><span style="width:<?php echo e($types['radomiro']/$max*100); ?>%"></span></div></div></section><section class="admin-panel"><div class="panel-heading"><div><h2>Estado del proceso</h2><p>Vista rápida del flujo actual.</p></div></div><div class="status-summary"><span class="approved"><i data-lucide="circle-check"></i><strong><?php echo e($kpis['approved']); ?></strong><small>Aprobadas</small></span><span class="rejected"><i data-lucide="circle-x"></i><strong><?php echo e($kpis['rejected']); ?></strong><small>Rechazadas</small></span></div></section></div></div> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale0f1cdd055772eb1d4a99981c240763e)): ?>
<?php $attributes = $__attributesOriginale0f1cdd055772eb1d4a99981c240763e; ?>
<?php unset($__attributesOriginale0f1cdd055772eb1d4a99981c240763e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale0f1cdd055772eb1d4a99981c240763e)): ?>
<?php $component = $__componentOriginale0f1cdd055772eb1d4a99981c240763e; ?>
<?php unset($__componentOriginale0f1cdd055772eb1d4a99981c240763e); ?>
<?php endif; ?>
<?php /**PATH C:\Users\bpere\OneDrive\Documentos\WebPrime\CCR\plataforma\resources\views\dashboard.blade.php ENDPATH**/ ?>