<?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 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 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">
<?php if(isSuperUser() || auth()->user()->hasPermission('ADD_DATA_UPLOADS')): ?>
<a href="<?php echo e(route('data-uploads-create')); ?>" class="btn btn-primary btn-block float-end my-2">
<i class="fa fa-plus-square me-2"></i>
Nueva Carga
</a>
<?php endif; ?>
</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-center text-white">AÑO</th>
<th class="text-left text-white">NIVEL</th>
<th class="text-center text-white">TOTAL REGISTROS</th>
<th class="text-center text-white">REGISTROS CORRECTOS</th>
<th class="text-center text-white">REGISTROS CON ERROR</th>
<th class="text-center text-white">FECHA CARGA</th>
<th class="text-center text-white">ACCIONES</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $list_data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $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">
<b><?php echo e($l->year); ?></b>
</td>
<td class="text-left">
<?php echo e(!empty($l->level) ? $l->level->level : '-'); ?>
</td>
<td class="text-center">
<?php echo e($l->quantity > 0 ? format_number($l->quantity) : 0); ?>
</td>
<td class="text-center">
<span class='badge bg-success'>
<?php echo e($l->quantity_success > 0 ? format_number($l->quantity_success) : 0); ?>
</span>
</td>
<td class="text-center">
<span class='badge bg-danger'>
<?php echo e($l->quantity_error > 0 ? format_number($l->quantity_error) : 0); ?>
</span>
</td>
<td class="text-center">
<?php echo e(!empty($l->created_at) ? $l->created_at : '-'); ?>
</td>
<td class="text-center">
<div class="dropdown">
<button class="btn btn-sm btn-light dropdown-toggle"
type="button" data-bs-toggle="dropdown">
<i class="fa fa-bars"></i>
</button>
<ul class="dropdown-menu">
<?php if(isSuperUser() || auth()->user()->hasPermission('VIEW_DATA_UPLOADS')): ?>
<li>
<a href="<?php echo e(route('data-uploads-detail', ['id' => $l->id])); ?>"
class="dropdown-item">
<span class="dropdown-icon">
<i class="fa fa-eye"></i>
</span>
Ver Detalle
</a>
</li>
<?php endif; ?>
</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 $__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/data_uploads/data_uploads_list.blade.php ENDPATH**/ ?>