Se crean las especificaciones de los documentos a requerir por nivel, a su vez permitir al alumno subirlos
This commit is contained in:
@@ -203,17 +203,23 @@
|
||||
<h5>Expediente del alumno</h5>
|
||||
|
||||
<?php
|
||||
$tipos = ['curp', 'acta', 'comprobante','certificadoPrepa','certificadoLicenciatura'];
|
||||
$nivel = $prospecto->nivelRel ?? null;
|
||||
|
||||
$tipos = $nivel
|
||||
? $nivel->documentosRequeridos
|
||||
: collect();
|
||||
|
||||
$documentos = collect($prospecto?->documentos)->keyBy('tipo');
|
||||
?>
|
||||
|
||||
<?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 = $documentos[$tipo] ?? null;
|
||||
?>
|
||||
|
||||
<?php
|
||||
$doc = $documentos[$tipo->slug] ?? null;
|
||||
?>
|
||||
|
||||
<div class="mb-3">
|
||||
<strong><?php echo e(strtoupper($tipo)); ?></strong> :
|
||||
<strong><?php echo e(strtoupper($tipo->name)); ?></strong> :
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($doc): ?>
|
||||
|
||||
@@ -243,6 +249,8 @@
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
Reference in New Issue
Block a user