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/plan-b.bradford/storage/framework/views/db53d233faa69485cecd26d7a1af058735b5a575.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"><?= isset($title) ? $title : 'SIN TITULO' ?></h1>
        <div>
            <ol class="breadcrumb">
                <li class="breadcrumb-item active" aria-current="page"><?= 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 p-0">
                <div class="card-body p-4">
                    <div class="row align-items-center">
                        <div class="col-xl-10 col-8"></div>
                        <div class="col-xl-2 col-4">
                            <a href="<?php echo e(route('parent')); ?>" class="btn btn-primary btn-block float-end my-2">
                                <i class="fa fa-plus-square me-2"></i>
                                Nuevo Apoderado
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row ">
            <div class="col-md-12">
                <div class="main-container container-fluid">
                    <!-- Start::row-1 -->
                    <div class="row">
                        <div class="col-xl-12">
                            <div class="card custom-card p-2">
                                <div class="card-header">
                                    <div class="card-title text-uppercase font-14">
                                        <b><?php echo e(isset($title_table) ? $title_table : ''); ?></b>
                                    </div>
                                </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">ID</th>
                                                    <th class="text-left text-white text-nowrap">RUT</th>
                                                    <th class="text-left text-white text-nowrap">NOMBRE APODERADO</th>
                                                    <th class="text-left text-white text-nowrap">INFORMACIÓN CONTACTO</th>
                                                    <th class="text-left text-white text-nowrap">RELACIÓN ESTUDIANTE</th>
                                                    <th class="text-center text-white">ESTADO</th>
                                                    <th class="text-center text-white" width="2%">FECHA CREACIÓN</th>
                                                    <th class="text-center text-white">ACCIONES</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <?php $__currentLoopData = $list_data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $l): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <tr id="fila_<?php echo e($l->id); ?>" class="font-13">
                                                        <td class="text-center"><?php echo e($l->id); ?></td>
                                                        <td class="text-center text-nowrap">
                                                            <small hidden style="font-size: 1px">
                                                                <?php echo e(!empty($l->rut) ? $l->rut : '-'); ?>

                                                            </small>
                                                            <?php echo e(!empty($l->rut) ? formateaRut($l->rut) : '-'); ?>

                                                        </td>
                                                        <td class="text-left">
                                                            <input type="hidden" value="<?php echo e($l->first_name . ' '. $l->second_name. ' '. $l->last_name. ' '. $l->second_last_name); ?>"
                                                                id="nombre_<?php echo e($l->id); ?>">
                                                            <?php echo e(!empty($l->first_name) ? strCapital($l->first_name . ' '. $l->second_name. ' '. $l->last_name. ' '. $l->second_last_name) : 'Sin información'); ?>

                                                        </td>
                                                        <td class="text-left text-nowrap">
                                                            <b class="ml-4">EMAIL: </b><span><?php echo e(!empty($l->email) ? $l->email : 'Sin información'); ?></span><br>
                                                            <b class="ml-4">CELULAR: </b><span><?php echo e(!empty($l->mobile) ? $l->mobile : 'Sin información'); ?></span>
                                                        </td>
                                                        <td class="text-center">
                                                            <?php echo e($l->relationship_id > 0 ? $l->relationships->relationship : '-'); ?>

                                                        </td>
                                                        <td class="text-center font-15">
                                                            <?php if($l->status == true): ?>
                                                                <span class='badge bg-success'>Activo</span>
                                                            <?php else: ?>
                                                                <span class='badge bg-danger'>Inactivo</span>
                                                            <?php endif; ?>
                                                        </td>
                                                        <td class="text-center">
                                                            <?php echo e(!empty($l->created_at) ? ordenar_fechaHoraHumano($l->created_at) : 'Sin información'); ?>

                                                        </td>
                                                        <td class="text-center">
                                                            <div class="digi-dropdown dropdown d-inline-block">
                                                                <button class="btn btn-sm btn-outline-primary"
                                                                    data-bs-toggle="dropdown" aria-expanded="false"> <i
                                                                        class="fa fa-ellipsis-v"></i></button>
                                                                <ul
                                                                    class="digi-dropdown-menu dropdown-menu dropdown-slim dropdown-menu-sm">
                                                                    <li>
                                                                        <a href="<?php echo e(route('parent-edit', ['id' => $l->id])); ?>"
                                                                            class="dropdown-item">
                                                                            <span class="dropdown-icon">
                                                                                <i class="fa fa-edit"></i>
                                                                            </span>
                                                                            Editar
                                                                        </a>
                                                                    </li>
                                                                    <li>
                                                                        <button class="dropdown-item btn_deleted"
                                                                            id="<?php echo e($l->id); ?>" type="button">
                                                                            <span class="dropdown-icon">
                                                                                <i class="fa fa-trash"></i></span>
                                                                            Eliminar
                                                                        </button>
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--End::row-1 -->
                </div>
            </div>
        </div>
        <!-- ROW-1 CLOSED -->
    </div>
    <!-- CONTAINER CLOSED -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.parents.parents_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<?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)); ?>/Spanish.json`
                },
                order: [
                    [0, 'asc']
                ],
            });
            $("#div_25").removeClass('table-responsive');
            $("#table_list").attr('hidden', false);
        }, 400);
    </script>

    <script nonce="<?php echo e(app('csp_nonce')); ?>">
        $(".btn_deleted").click(function() {
            let id_btn = $(this).attr('id');
            let table = $('#table_list').DataTable();
            if ($("#fila_" + id_btn).hasClass('selected')) {
                $("#fila_" + id_btn).removeClass('selected');
            } else {
                table.$('tr.selected').removeClass('selected');
                $("#fila_" + id_btn).addClass('selected');
            }
            $("#id_modal").val(id_btn);
            $("#nombre_modal").html($(`#nombre_${id_btn}`).val());
            $("#modal-delete").modal('show');
        });

        $("#form_deleted").submit(function(e) {
            e.preventDefault();
            let id_deleted = $("#id_modal").val();
            if (id_deleted > 0) {
                $("#btn_deleted_cancel").attr('hidden', true);
                $("#btn_deleted").attr('disabled', true);
                $("#btn_deleted").html(
                    `<span class="spinner-border spinner-border-sm" id="sign_spinner"></span> Eliminado registro...`
                );
                setTimeout(function() {
                    document.getElementById("form_deleted").submit();
                }, 400);
            } else {
                toastr["error"](`Ha ocurrido un error al eliminar el registro. Recargue e intente nuevamente.`,
                    "Error de validación")
            }
        });


        $("#modal-delete").on('hidden.bs.modal', function() {
            let table = $('#table_list').DataTable();
            table.$('tr.selected').removeClass('selected');
            $("#btn_deleted_cancel").attr('hidden', false);
            $("#btn_deleted").attr('disabled', false);
            $("#btn_deleted").html(`<i class="fa fa-trash"></i> Eliminar`);
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.layout_admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/plan-b.bradford/resources/views/admin/parents/parents_list.blade.php ENDPATH**/ ?>