Se crean las especificaciones de los documentos a requerir por nivel, a su vez permitir al alumno subirlos
This commit is contained in:
@@ -37,45 +37,6 @@
|
||||
<div>
|
||||
<h5>Expediente</h5>
|
||||
|
||||
<?php
|
||||
$tipos = ['curp', 'acta', 'comprobante'];
|
||||
$alumno = Auth::user()->alumnos()->first();
|
||||
?>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $tipos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tipo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php
|
||||
$doc = $alumno?->documentos->firstWhere('tipo', $tipo);
|
||||
?>
|
||||
|
||||
<div class="mb-3">
|
||||
<strong><?php echo e(strtoupper($tipo)); ?></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 de revision</span>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
|
||||
<br>
|
||||
|
||||
<button
|
||||
onclick="verDocumento('<?php echo e(url('documento/ver/'.$doc->id)); ?>')"
|
||||
class="btn btn-sm btn-primary mt-2">
|
||||
<i class="fa-duotone fa-solid fa-eye"></i> Ver documento
|
||||
</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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user