Files
Sistema-Educativo-Laravel/storage/framework/views/c94686a743245027a4791517803740e1.php
T

130 lines
5.7 KiB
PHP

<div>
<div class="mb-4">
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $tiposDocumentos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tipo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$doc = $documentosPorTipo[$tipo->slug] ?? null;
?>
<div class="mb-2">
<strong><?php echo e(strtoupper($tipo->name)); ?></strong> :
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($doc): ?>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($doc->status == 1): ?>
<span class="badge bg-success">✔ Validado</span>
<?php elseif($doc->status == 2): ?>
<span class="badge bg-danger">✘ Rechazado</span>
<?php else: ?>
<span class="badge bg-warning">Pendiente</span>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<button
onclick="verDocumento('<?php echo e(url('documento/ver/'.$doc->id)); ?>', <?php echo e($doc->id); ?>)"
class="btn btn-sm btn-primary ms-2"
>
Ver
</button>
<?php else: ?>
<span class="text-danger">✘ Faltante</span>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</div>
<div wire:ignore.self
class="modal fade"
id="exampleModal"
tabindex="-1"
role="dialog"
data-backdrop="static"
data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Carga de documentos</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<?php
$pendientes = $tiposDocumentos->filter(function($tipo) {
$doc = $this->documentosPorTipo[$tipo->slug] ?? null;
return !$doc || $doc->status == 2;
});
?>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($pendientes->isEmpty()): ?>
<div class="alert alert-success">
✔ Todos los documentos están validados
</div>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<form wire:submit.prevent="store" enctype="multipart/form-data">
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $tiposDocumentos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tipo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$doc = $documentosPorTipo[$tipo->slug] ?? null;
?>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!$doc || $doc->status == 2): ?>
<div class="mb-4">
<label class="fw-bold"><?php echo e($tipo->name); ?></label>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($doc && $doc->status == 2): ?>
<span class="badge bg-danger ms-2">Rechazado</span>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<div class="d-flex align-items-center gap-2 mt-2">
<input type="file"
id="<?php echo e($tipo->slug); ?>"
wire:model="archivos.<?php echo e($tipo->slug); ?>"
class="d-none">
<label for="<?php echo e($tipo->slug); ?>" class="btn btn-outline-primary btn-sm">
📄 Seleccionar archivo
</label>
<span class="text-muted small">
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(isset($archivos[$tipo->slug])): ?>
&nbsp;&nbsp;&nbsp; <?php echo e($archivos[$tipo->slug]->getClientOriginalName()); ?>
<?php else: ?>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</span>
</div>
</div>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<button class="btn btn-primary" type="submit">Subir</button>
</form>
</div>
</div>
</div>
</div>
</div>
<?php /**PATH C:\proyectos\primeros\sistemaEducativo\resources\views/livewire/documentos.blade.php ENDPATH**/ ?>