Se crean las especificaciones de los documentos a requerir por nivel, a su vez permitir al alumno subirlos
This commit is contained in:
@@ -39,45 +39,6 @@
|
||||
<div>
|
||||
<h5>Expediente</h5>
|
||||
|
||||
@php
|
||||
$tipos = ['curp', 'acta', 'comprobante'];
|
||||
$alumno = Auth::user()->alumnos()->first();
|
||||
@endphp
|
||||
|
||||
@foreach($tipos as $tipo)
|
||||
@php
|
||||
$doc = $alumno?->documentos->firstWhere('tipo', $tipo);
|
||||
@endphp
|
||||
|
||||
<div class="mb-3">
|
||||
<strong>{{ strtoupper($tipo) }}</strong> :
|
||||
|
||||
@if($doc)
|
||||
|
||||
@if($doc->status == 1)
|
||||
<span class="badge bg-success">✔ Validado</span>
|
||||
|
||||
@elseif($doc->status == 2)
|
||||
<span class="badge bg-danger">❌ Rechazado</span>
|
||||
|
||||
@else
|
||||
<span class="badge bg-warning">Pendiente de revision</span>
|
||||
@endif
|
||||
|
||||
<br>
|
||||
|
||||
<button
|
||||
onclick="verDocumento('{{ 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>
|
||||
|
||||
@else
|
||||
<span class="text-danger">❌ Faltante</span>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user