HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux Bradford-Sitios 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/informe-admision/storage/framework/views/6e35860c515f9b3e5aadad22ec89d42ae4b8f8b9.php
<?php $__env->startSection('contenido'); ?>
    <!-- PAGE-HEADER -->
    <div class="page-header d-flex align-items-center justify-content-between border-bottom mb-4">
        <h1 class="page-title"><?php echo e(isset($title) ? $title : 'SIN TITULO'); ?></h1>
        <div>
            <ol class="breadcrumb">
                <li class="breadcrumb-item">Reportes</li>
                <li class="breadcrumb-item active" aria-current="page"><?php echo e(isset($title) ? $title : 'SIN TITULO'); ?></li>
            </ol>
        </div>
    </div>
    <!-- PAGE-HEADER END -->

    <!-- CONTAINER -->
    <div class="main-container container-fluid">
        
        <div class="col-xl-12">
            <div class="card custom-card p-2">
                <div class="card-header d-flex align-items-center justify-content-between">
                    <div class="card-title text-uppercase font-14">
                        <i class="fa fa-filter me-1 text-primary"></i>
                        <b>Filtros de Reporte</b>
                    </div>
                </div>
                <div class="card-body">
                    <form action="<?php echo e(route('reports-admissions')); ?>" method="GET" id="form_filter">
                        <div class="row g-3">
                            <?php if(!$has_records): ?>
                                <div class="col-12">
                                    <div class="alert alert-warning py-2 px-3 mb-0 fs-13 text-center">
                                        <i class="fa fa-exclamation-circle me-1"></i>
                                        Aún no hay postulaciones registradas para filtrar.
                                    </div>
                                </div>
                            <?php endif; ?>
                            <div class="col-md-3">
                                <label class="form-label fs-13"><b>AÑO POSTULACIÓN</b></label>
                                <select class="form-control" name="filter_year" id="filter_year"
                                    <?php echo e($has_records ? '' : 'disabled'); ?>>
                                    <option value="">Todos</option>
                                    <?php $__currentLoopData = $years; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $y): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($y); ?>"
                                            <?php echo e($filters['year'] == $y ? 'selected' : ''); ?>>
                                            <?php echo e($y); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="col-md-3">
                                <label class="form-label fs-13"><b>FAMILIA</b></label>
                                <select class="form-control select2" name="filter_family" id="filter_family"
                                    style="width: 100%" <?php echo e($has_records ? '' : 'disabled'); ?>>
                                    <option value="">Todas</option>
                                    <?php $__currentLoopData = $families; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $f): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($f->id); ?>"
                                            <?php echo e($filters['family_id'] == $f->id ? 'selected' : ''); ?>>
                                            <?php echo e(implode(' ', array_map('ucfirst', explode('-', $f->name)))); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="col-md-3">
                                <label class="form-label fs-13"><b>ESTADO</b></label>
                                <select class="form-control" name="filter_status" id="filter_status"
                                    <?php echo e($has_records ? '' : 'disabled'); ?>>
                                    <option value="">Todos</option>
                                    <option value="pending"
                                        <?php echo e($filters['status'] == 'pending' ? 'selected' : ''); ?>>
                                        Pendiente
                                    </option>
                                    <option value="approved"
                                        <?php echo e($filters['status'] == 'approved' ? 'selected' : ''); ?>>
                                        Aprobada
                                    </option>
                                    <option value="rejected"
                                        <?php echo e($filters['status'] == 'rejected' ? 'selected' : ''); ?>>
                                        Rechazada
                                    </option>
                                </select>
                            </div>
                            <div class="col-md-3">
                                <label class="form-label fs-13"><b>NIVEL A POSTULAR</b></label>
                                <select class="form-control" name="filter_level" id="filter_level"
                                    <?php echo e($has_records ? '' : 'disabled'); ?>>
                                    <option value="">Todos</option>
                                    <?php $__currentLoopData = $levels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lv): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($lv->id); ?>"
                                            <?php echo e($filters['level'] == $lv->id ? 'selected' : ''); ?>>
                                            <?php echo e($lv->level); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="col-md-4">
                                <label class="form-label fs-13"><b>RUT ALUMNO</b></label>
                                <input type="text" class="form-control" name="filter_rut" id="filter_rut"
                                    value="<?php echo e($filters['rut']); ?>" placeholder="Ej: 28000000-1"
                                    <?php echo e($has_records ? '' : 'disabled'); ?>>
                            </div>
                            <div class="col-md-4">
                                <label class="form-label fs-13"><b>NOMBRE / APELLIDO ALUMNO</b></label>
                                <input type="text" class="form-control" name="filter_name" id="filter_name"
                                    value="<?php echo e($filters['name']); ?>" placeholder="Buscar por nombre o apellido..."
                                    <?php echo e($has_records ? '' : 'disabled'); ?>>
                            </div>
                            <div class="col-md-4 d-flex align-items-end">
                                <div class="w-100">
                                    <button type="submit" class="btn btn-primary w-100"
                                        <?php echo e($has_records ? '' : 'disabled'); ?>>
                                        <i class="fa fa-search"></i> Aplicar Filtros
                                    </button>
                                    <?php if($has_records): ?>
                                        <a href="<?php echo e(route('reports-admissions')); ?>"
                                            class="btn btn-sm btn-link w-100 mt-1">
                                            Limpiar filtros
                                        </a>
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>

        
        <div class="row">
            <div class="col-md-12">
                <div class="main-container container-fluid">
                    <div class="row">
                        <div class="col-xl-12">
                            <div class="card custom-card p-2">
                                <div class="card-header d-flex align-items-center justify-content-between">
                                    <div class="card-title text-uppercase font-14">
                                        <b><?php echo e(isset($title_table) ? $title_table : ''); ?></b>
                                        <span class="badge bg-primary ms-2"><?php echo e(count($list_data)); ?> registros</span>
                                    </div>
                                    <?php if(isSuperUser() || auth()->user()->hasPermission('EXPORT_REPORTS_ADMISSIONS')): ?>
                                        <?php if(count($list_data) > 0): ?>
                                            <a href="<?php echo e(route('reports-admissions-export')); ?>?<?php echo e(http_build_query(request()->only(['filter_year', 'filter_family', 'filter_status', 'filter_level', 'filter_rut', 'filter_name']))); ?>"
                                                class="btn btn-success" id="btn_export" target="_blank">
                                                <i class="fa fa-file-excel-o me-1"></i> Exportar a Excel
                                            </a>
                                        <?php else: ?>
                                            <button type="button" class="btn btn-success" disabled>
                                                <i class="fa fa-file-excel-o me-1"></i> Exportar a Excel
                                            </button>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                </div>
                                <div class="card-body">
                                    <div class="table-responsive">
                                        <div class="text-center" id="div_spinner">Cargando...<br>
                                            <div class="d-flex justify-content-center mt-2">
                                                <div class="spinner-border spinner-border-md" role="status">
                                                    <span class="sr-only">Cargando...</span>
                                                </div>
                                            </div>
                                        </div>
                                        <table class="table table-hover" id="table_list" hidden>
                                            <thead class="bg-primary">
                                                <tr class="font-13">
                                                    <th class="text-center text-white">AÑO</th>
                                                    <th class="text-left text-white">FAMILIA</th>
                                                    <th class="text-left text-white">POSTULANTE</th>
                                                    <th class="text-center text-white">RUT</th>
                                                    <th class="text-center text-white">NIVEL</th>
                                                    <th class="text-left text-white">ENTREVISTADORA</th>
                                                    <th class="text-center text-white">PTS</th>
                                                    <th class="text-center text-white">%</th>
                                                    <th class="text-center text-white">ESTADO</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <?php $__currentLoopData = $list_data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $l): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php
                                                        $d = $l->dataUploadsDetails;
                                                        $family_display = !empty($l->family) ? implode(' ', array_map('ucfirst', explode('-', $l->family->name))) : '-';
                                                    ?>
                                                    <tr class="font-13">
                                                        <td class="text-center">
                                                            <b><?php echo e(!empty($l->year) ? $l->year : '-'); ?></b>
                                                        </td>
                                                        <td class="text-left text-nowrap">
                                                            <?php echo e($family_display); ?>

                                                        </td>
                                                        <td class="text-left text-nowrap">
                                                            <?php if(!empty($d)): ?>
                                                                <?php echo e(!empty($d->applicant_father_lastname) ? $d->applicant_father_lastname : ''); ?>

                                                                <?php echo e(!empty($d->applicant_mother_lastname) ? $d->applicant_mother_lastname : ''); ?>,
                                                                <?php echo e(!empty($d->applicant_names) ? $d->applicant_names : ''); ?>

                                                            <?php else: ?>
                                                                -
                                                            <?php endif; ?>
                                                        </td>
                                                        <td class="text-center">
                                                            <?php echo e(!empty($d) && !empty($d->applicant_rut) ? $d->applicant_rut : '-'); ?>

                                                        </td>
                                                        <td class="text-center">
                                                            <?php echo e(!empty($l->level) ? $l->level->level : '-'); ?>

                                                        </td>
                                                        <td class="text-left">
                                                            <?php echo e(!empty($l->interviewer) ? $l->interviewer : '-'); ?>

                                                        </td>
                                                        <td class="text-center">
                                                            <?php echo e($l->total_points !== null ? $l->total_points : '-'); ?>

                                                        </td>
                                                        <td class="text-center">
                                                            <?php echo e($l->percentage !== null ? $l->percentage . '%' : '-'); ?>

                                                        </td>
                                                        <td class="text-center">
                                                            <?php if($l->status == 'pending'): ?>
                                                                <span class="badge bg-warning">Pendiente</span>
                                                            <?php elseif($l->status == 'approved'): ?>
                                                                <span class="badge bg-success">Aprobada</span>
                                                            <?php elseif($l->status == 'rejected'): ?>
                                                                <span class="badge bg-danger">Rechazada</span>
                                                            <?php else: ?>
                                                                <span class="badge bg-secondary"><?php echo e($l->status); ?></span>
                                                            <?php endif; ?>
                                                        </td>
                                                    </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- CONTAINER CLOSED -->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js_content'); ?>
    <script nonce="<?php echo e(app('csp_nonce')); ?>">
        setTimeout(function() {
            $("#div_spinner").html('')
            $('#table_list').DataTable({
                responsive: true,
                "bLengthChange": false,
                "language": {
                    "url": `<?php echo e(asset(ASSETS_JS_ADMIN)); ?>/Spanish.json`
                },
                order: [
                    [0, 'desc']
                ],
            });
            $("#table_list").attr('hidden', false);
        }, 400);
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.layout_admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\javom\Documents\proyectos\informe-admision\resources\views/admin/reports/reports_admissions.blade.php ENDPATH**/ ?>